]> Pileus Git - ~andy/gtk/blob - ChangeLog
remove CellRendererTextPixbuf
[~andy/gtk] / ChangeLog
1 2001-09-07  Havoc Pennington  <hp@pobox.com>
2
3         * gtk/gtkmain.c: move some docs inline
4
5 2001-09-07  Havoc Pennington  <hp@pobox.com>
6
7         * gtk/gtk.h: tsk tsk, jrb broke the build
8
9 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
10
11         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
12         Removed 'fill' attribute.  It was silly b/c that was a property of
13         the cell renderer, anyway.
14         (gtk_tree_view_column_render): Actually render the packed
15         renderers.
16         * doc/tree-column-sizing.txt: initial devel documentation.
17         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
18         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
19
20         * tests/testtreefocus.c: fix up to reflect above changes.
21         * tests/testtreeview.c: ditto
22         * demos/gtk-demo/stock_browser.c: ditto
23
24 2001-09-07  Alex Larsson  <alexl@redhat.com>
25
26         * gdk/linux-fb/gdkcolor-fb.c:
27         Removed unused function.
28         
29         * gdk/linux-fb/gdkdrawable-fb2.c
30         * gdk/linux-fb/gdkfont-fb.c:
31         Use PangoLanguage functions.
32
33         * gdk/linux-fb/gdkinput.c:
34         * gdk/linux-fb/gdkselection-fb.c:
35         Fix const warnings.
36         
37         * gdk/linux-fb/gdkwindow-fb.c:
38         Fix warning. Implement gdk_window_set_icon_list() and
39         gdk_window_get_frame_extents(). (No icon support yet though.)
40
41         * gtk/gtkwindow.c (gtk_window_get_position):
42         If window->frame is set get the extents of it instead.
43         
44 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
45
46         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
47         Make the default default colormap the GdkRGB colormap,
48         not the system colormap.
49
50         * gtk/gtkinvisible.c (gtk_invisible_init) 
51           gtk/gtkwindow.c (gtk_window_init): Set the current
52         colormap, as returned by _gtk_widget_peek_colormap()
53         on the widget.
54
55         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
56         to GTK+. Make it return %NULL instead of the default
57         colormap if no colormap has explicitely been pushed.
58
59         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
60         colormaps on ancestral widgets before defaulting the
61         the system default colormap.
62
63         * docs/Changes-2.0.txt: explain colormap changes.
64
65 2001-09-07  Havoc Pennington  <hp@redhat.com>
66
67         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
68         #57424
69
70 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
71
72         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
73         make gdk_set_use_xshm a noop. Remove --no-xshm command line
74         option. If we aren't autodetecting properly, we need
75         to fix the problem, or at least make it an environment
76         variable setting, to avoid problems with propagating
77         to embedded children, plugins, etc.
78
79         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
80
81         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
82         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
83         New function to render a pixmap and mask for a particular colormap.
84
85         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
86         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
87         of internal implementation of the same.
88
89 2001-09-07  Havoc Pennington  <hp@redhat.com>
90
91         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
92         debug code that seems to have caused a breakpoint in valid cases
93         
94         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
95         pointer on the first view when adding the second view, fixes
96         crash when closing gtk-demo text test with active selection
97
98         * gtk/gtktextbuffer.c
99         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
100         clipboards in the list of clipboards - probably fixes #59836
101
102 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
103
104       Make gdkx.h the only installed header from gdk/x11.
105       All structures in gdk/x11 are opaque.
106
107         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
108         Don't install gdk{drawable,pixmap,window}-x11.h.
109
110         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
111         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
112         GdkVisualClass into C files.
113
114         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
115
116         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
117         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
118         Add public functions to replace previously exported direct
119         structure access.
120         gdk_x11_colormap_get_{xdisplay,xcolormap} 
121         gdk_x11_cursor_get_{xdisplay,xcursor},
122         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
123         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
124         gdk_x11_gc_get_{xdisplay,ximage}
125         
126         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
127         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
128
129       Fix a number of variables and functions that were exported
130       "accidentally" from GDK.
131
132         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
133         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
134         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
135         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
136         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
137         gdk_event_queue_find_first, gdk_event_queue_remove_link,
138         gdk_event_queue_append, gdk_event_button_generate,
139         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
140
141         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
142            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
143         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
144         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
145         gdk_use_xshm, gdk_input_ignore_core.
146
147         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
148         #defines to namespace functions into the private _gdk_ 
149         namespace.
150
151         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
152         to replace gdk_parent_root exported variable. Adjust and
153         deprecate GDK_ROOT_PARENT().
154
155         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
156         GDK_ROOT_PARENT usage, remove includes of port-specific
157         headers.
158
159         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
160         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
161         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
162
163         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
164         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
165         gdk_wm_delete_window functions, gdk_wm_take_focus, 
166         use gdk_atom_intern() instead.
167
168         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
169           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
170           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
171           gtk/gtkselection.c 
172         Unexport gdk_selection_property, just use 
173         gdk_atom_intern ("GDK_SELECTION").
174
175         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
176         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
177         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
178         GdkVisualprivate, gdk_x11_gc_flush.
179
180       Make a number of public exports of variables into functions
181       to increase encapsulation.
182
183         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
184         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
185         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
186
187         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
188         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
189         gdk_error_warnings.
190
191         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
192           docs/Changes-2.0.txt: 
193         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
194         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
195         Add gdk_x11_get_default_xdisplay().
196
197         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
198         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
199         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
200         Don't export gdk_progclass, move --class command line
201         option and handling to common portion of GDK.
202
203       Miscellaneous fixes:
204
205         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
206         g_return_val_if_fail that should have been g_return_if_fail.
207
208         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
209         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
210
211         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
212         X11 dependency.
213
214         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
215         Remove unused gdk_key_repeat_disable/restore.
216
217         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
218         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
219         Remove unused gdk_null_window_warnings variable.
220
221         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
222         it can be retrieved from the repository; it is too far
223         from functional to be worth having people check out;
224         it would be easier to start from scratch, I suspect.
225
226         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
227
228         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
229         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
230         Fix some accidentally global variables and unused global variables.
231
232         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
233         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
234         Fix some accidentally global variables and unused global variables.
235
236       Add some space for future expansion to multihead.
237
238         * gdk/gdkdrawable.h: Add four reserved function pointers
239         for future expansion of GdkDrawableClass.
240
241         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
242         where we can put a GdkScreen * later.
243
244 2001-09-07  Havoc Pennington  <hp@redhat.com>
245
246         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
247         adjustments after validating destination yrange; fixes #53918
248         (This may cause other issues, but I hope it won't)
249         
250 2001-09-05  Havoc Pennington  <hp@redhat.com>
251
252         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
253         line into start line, update the character counts in parent nodes; 
254         caused a bug when end and start line had different parent nodes.
255
256 2001-08-30  Havoc Pennington  <hp@redhat.com>
257         
258         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
259         assertion that tag is in a table
260
261 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
262
263         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
264         g_strcasecmp on NULL strings. (#59058)
265
266 2001-09-06  Alex Larsson  <alexl@redhat.com>
267
268         * gtk/gtkbin.c:
269         * gtk/gtkfontsel.c:
270         * gtk/gtkspinbutton.c:
271         * gtk/gtktipsquery.c:
272         Use GtkType/GType instead of uint.
273
274 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
275
276         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
277         sort column.
278
279         * gtk/gtktreestore.c (gtk_list_store_init): ditto
280
281         * gtk/gtktreesortable.c: add docs.
282
283 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
284
285         * Version 1.3.7
286
287         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
288         docs for gtk-config
289
290         * modules/input/Makefile.am (install-data-local): Don't
291         run gtk-query-immodules if DESTDIR is set.
292
293         * NEWS: Various additions.
294
295 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
296
297         * NEWS: updates for 1.3.7 release.
298
299 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
300
301         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
302         handle default sort feature
303
304         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
305         new function to handle default sort.
306         (gtk_tree_sortable_has_default_sort_func): check if default sort
307         is set.
308
309         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
310         handle default sort feature
311
312 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
313
314         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
315         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
316         #59731
317
318 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
319
320         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
321         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
322         time, #59727
323
324         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
325         correctly.
326
327 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
328
329         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
330         so that we don't eternally update the keymap after we
331         get a change notification.
332
333         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
334         incorrect cast.
335
336 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
337
338         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
339         it working. It mostly works now, although there're still a few issues
340         to be worked out.
341
342         * tests/testtreesort.c (main): changes to have a better test
343         application for the GtkTreeModelSort.
344
345 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
346
347         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
348         fix for bug #59222.
349
350         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
351         gpointer search_data argument to function definition and
352         prototype, to match GtkTreeViewSearchEqualFunc typedef.
353
354 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
355
356         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
357         per jrb's request.
358
359 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
360
361         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
362
363         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
364
365 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
366
367         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
368         Instead of always mirroring the selection to a single PRIMARY
369         selection, allow it to be mirrored to any number of clipboards.
370
371         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
372         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
373
374         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
375         GtkClipboard argument, and for paste_clipboard, the
376         @override_location argument from @paste_primary.
377
378         * gtk/gtktextview.c: Adapt to above change.
379         
380 2001-08-30  Havoc Pennington  <hp@redhat.com>
381
382         * gtk/gtktextview.c (invalidated_handler): put validate idle at
383         resize - 2 just for flexibility
384
385 2001-08-30  Havoc Pennington  <hp@redhat.com>
386
387         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
388         object from the empty-child-anchor case by drawing a little box.
389         
390         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
391         if the child anchor has no anchored widgets - fixes #59328.
392
393         Also, remove bizarre deletion of preedit string that seems to have
394         gotten in here somehow.
395
396 2001-08-30  Havoc Pennington  <hp@redhat.com>
397
398         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
399         to #58420 from Hidetoshi Tajima and Matthias Clasen
400
401 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
402
403         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
404         change color when the GtkTreeView loses focus.
405
406         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
407         ditto.
408         
409         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
410
411 2001-08-28  Havoc Pennington  <hp@pobox.com>
412
413         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
414
415 2001-08-28  Havoc Pennington  <hp@pobox.com>
416
417         * demos/gtk-demo/main.c (setup_default_icon): add default icon
418
419         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
420         warning fix
421         (gtk_radio_button_new_with_label): warning fix
422
423         * gtk/gtkdnd.c: used some random GtkImage private structs, 
424         update to reflect GtkImage changes
425
426         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
427         whether the hint is supported, just always set the icon. A task
428         list might want to use it even if the WM doesn't, and the WM may
429         change over time. Also, XDeleteProperty() if list == NULL.
430
431         * gtk/gtkwindow.c (gtk_window_set_icon_list)
432         (gtk_window_get_icon_list)
433         (gtk_window_set_icon)
434         (gtk_window_get_icon)
435         (gtk_window_set_default_icon_list)
436         (gtk_window_get_default_icon_list):
437         new functions
438
439         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
440
441         * gtk/gtkimage.c: Implement property support, bug #59408
442
443         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
444         on reparent-without-removing-first a bit more helpful.
445         Let's just destroy this FAQ.
446
447 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
448
449         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
450         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
451
452 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
453
454         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
455         of use_text_format to the end of the function. (#56447)
456
457 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
458
459         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
460         only in response to an area_prepared signal.
461
462 2001-08-28  Alex Larsson  <alexl@redhat.com>
463
464         * gtk/gtkwidget.c (gtk_widget_class_init):
465         Make unrealize GTK_RUN_LAST.
466
467 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
468
469         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
470         with_label and with_mnemonic should create radio buttons, not
471         check buttons
472
473 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
474
475         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
476         * tests/treestoretest.c (make_window): ditto
477         * demos/gtk-demo/main.c (create_tree): ditto
478         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
479
480 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
481
482         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
483         GTK selection types rather than GtkTreeSelectionMode.
484
485         * docs/Changes-2.0: Add comment about selection change.
486
487 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
488
489         * gtk/gtkenums.h (GtkSelectionMode): deprecate
490         GTK_SELECTION_EXTENDED.
491
492         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
493         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
494
495         * gtk/gtkctree.c: ditto
496
497         * gtk/gtklist.c: ditto
498
499         * gtk/gtktree.c: ditto
500
501 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
502
503         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
504         of typos in compat macros. (#59624, Skip Montaro)
505
506 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
507
508         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
509         macro.
510
511          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
512  
513         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
514         interface to be a standard setter from gtk_menu_item_right_justify.
515         (gtk_menu_item_get_right_justified): a getter to go with the setter
516
517         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
518         gtk_menu_item_right_justify.
519
520         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
521         gtk_menu_item_set_right_justified.
522  
523 2001-08-27  Jens Finke <jens@gnome.org>
524
525         * gtk+.spec.in: Updated to match gpp requirements, reworked the
526         files section to make it work with 1.3.x releases.
527
528 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
529
530         * gtk/gtkbutton.[ch]:
531         Add properties for labels, mnemonics and stock items.
532         Added C accessor functions for the properties.
533         Removed deprecated button->child.
534
535         * gtk/gtkradiobutton.c:
536         * gtk/gtktogglebutton.c:
537         Update to use the functions in GtkButton.
538
539         * gtk/gtkcheckbutton.c:
540         Update to use the functions in GtkButton.
541         Changed size allocation of child. Now only gets as much
542         space as it requests.
543
544         * gtk/gtkclist.c:
545         Don't use GtkButton->child
546
547         * gtk/gtklabel.c:
548         Fixed typo in docs
549         
550 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
551
552         * tests/testgtk.c:
553         * tests/Makefile.am:
554         Ressurect the properties test.
555         I don't care if it is inferior, I just want to test my property code.
556
557 2001-08-25  Chema Celorio  <chema@celorio.com>
558
559         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
560         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
561         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
562
563 2001-08-24  Havoc Pennington  <hp@pobox.com>
564
565         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
566         these are already in gtkmenu.h, and the copies
567         here were broken.
568
569         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
570
571         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
572         special-case bitmaps to allow no colormap
573         (bitmap1): implement no-colormap bitmap-getting
574         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
575         alpha
576         (rgb8): indentation
577         (rgb1a, rgb1): change the way we read the data out of the image, 
578         old way didn't seem to work quite right.
579
580         I'm pretty sure a lot of the rgbconvert code is still broken.
581         
582         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
583         above position constraint (I really intended to do this before,
584         don't know what's up with that)
585         (gtk_XParseGeometry): shut up gcc
586
587         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
588         and "0" should have been. remove the attempted 4-bytes-at-once
589         optimization, it was totally broken.
590
591 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
592
593         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
594         on push to buttons (based on patch from Soeren Sandmann, #54720)
595
596           - Add child_displacement_x/y style properties to control how far the
597             child moves when the button is depressed.
598
599           - Add non-exported function _gtk_button_set_depressed to clean
600             up the handling of the in/out shadow and separate it frmo
601             widget->state.
602
603           - Lots of code cleanup and simplification of state handling
604             for GtkButton/GtkToggleButton.
605  
606         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
607         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
608
609 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
610
611         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
612         and make gtk_image_new() take no arguments. The compiler will
613         catch it, and it is vastly more useful than having
614         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
615
616         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
617         to add tearoff-title property (#51319, Lee Mallabone)
618
619 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
620
621         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
622         gtk_menu_item_configure(). (#58925)
623
624 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
625
626         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
627         "use_align" to give people the option to just make a cell visible.
628
629         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
630         we were scrolling past the end of the tree.
631
632         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
633         rename gtk_tree_view_column_pack_start_cell_renderer to
634         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
635
636 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
637
638         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
639         a stray g_object_ref() left over from gtk_object_ref/sink.
640         (Pointed out by Josh Pritikin.)
641
642 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
643
644         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
645         to gtk_container_get_children. Added deprecated compatibility
646         macro. (Suggested by Vitaly Tishkov, #59051)
647
648         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
649         calls.
650
651 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
652
653         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
654         gtk_menu_bar_append/prepend/insert, forgot to do this
655         when we deprecated gtk_menu_append/prepend/insert.
656
657         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
658         compat macros.
659
660         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
661         renamed by compat macro.
662
663         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
664         gtk_font_selection_dialog_get_font(). (Suggested by
665         Vitaly Tishkov, #59383)
666
667 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
668
669         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
670         Rename from gtk_text_tag_table_size(). (#59366)
671
672 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
673
674         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
675         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
676         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
677         (#59173).
678
679 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
680
681         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
682         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
683         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
684
685 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
686
687         [ Patch from Sebastian Wilhelmi, 52790 ]
688
689         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
690
691         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
692         Move compatibility macros from g[dt]kcompat.h to within 
693         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
694
695         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
696
697         * demos/Makefile.am demos/gtk-demo/Makefile.am 
698           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
699           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
700
701         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
702                  testpixbuf.c}: Fix usages of deprecated functions.
703
704 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
705
706         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
707         when changing models.
708
709 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
710
711         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
712         We check the current event for modifiers rather than try to trap
713         all presses.
714
715 2001-08-22  Anders Carlsson  <andersca@gnu.org>
716
717         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
718         It's LIST_STORE, not LISTSTORE.
719
720 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
721
722         * gtk/gtk.h: Remove commented out gtkpacker reference.
723
724 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
725
726         * configure.in (all_loaders): Add tga loader, 
727         patch by Nicola Girardi. (#56067)
728
729 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
730
731         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
732         a little.  More needs to be done tomorrow.
733
734 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
735
736         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
737
738 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
739
740         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
741         reported by Kristian Rietveld <kristian@planet.nl> to handle row
742         == NULL.
743         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
744         <kristian@planet.nl> to change destroy order.
745
746 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
747
748         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
749         correct marshaller.
750
751 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
752
753         * gtk/gtkliststore.c: Fix up warnings, #58928.
754
755         * gtk/gtktreeselection.h: Change signal prototype, #58647
756
757         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
758         #59221.
759
760         * gtk/gtkstyle.c: Actually prelight arrow, #50981
761         
762 2001-08-18  Hans Breuer  <hans@breuer.org>
763
764         * gdk/gdk.def : updated externals
765
766         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
767         is required to get (at least) visible in entry fields. Some selections
768         are really handled now - even on win32 - but copying via middle
769         mouse button into a different app needs to wait ... 
770
771         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
772         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
773
774         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
775         handling. I'm not sure if it is better now, but at least not worse
776
777         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
778         with SetWindowPos () which allows more fine-tuning backing-store wise
779
780         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
781         Also changed move/resize to be more like the X version.
782
783         * gtk/gtk.def : updated externals
784
785 2001-08-19  Sven Neumann  <sven@gimp.org>
786
787         * gtk/gtktooltips.c
788         * tests/testtreesort.c
789         * tests/treestoretest.c: inserted some casts to get rid of compiler
790         warnings.
791
792 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>>
793
794         * gtk/gtktreeviewcolumn.c
795         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
796
797         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
798         (_gtk_tree_view_find_node): If *node is NULL,
799         *tree should be NULL too.
800
801         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
802         column/renderers.
803         * tests/testtreecolumns.c: ditto
804         * tests/testtreefocus.c: ditto
805         * tests/testtreesort.c: ditto
806         * tests/testtreeview.c: ditto
807         * tests/treestoretest.c: ditto
808
809 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
810
811         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
812         signals; is_expander/is_expanded.
813
814         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
815         pixbufs.
816
817         * gtk/gtktreeview.c: set above properties.
818
819 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
820
821         * gtk/gtkwidget.h: Really remove set_default_style().
822
823         * docs/Changes-2.0.txt: added a note about
824         gtk_widget_push/pop/set_default_style.
825
826 2001-08-18  Havoc Pennington  <hp@pobox.com>
827
828         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
829         hints_changed in addition to the other cases.
830         (gtk_window_move_resize): include last position from configure
831         notify in debug spew
832
833 2001-08-18  James Henstridge  <james@daa.com.au>
834
835         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
836         second argument to the weak ref notify, cleaning up some uglyness.
837         (gtk_accel_group_attach): remove and add the weak notifier when
838         changing the accel groups slist.
839         (gtk_accel_group_detach): same here.
840
841 2001-08-17  Darin Adler  <darin@bentspoon.com>
842
843         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
844         missing parameters to utf8 functions to make it compile.
845
846 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
847
848         * gtk/gtktreeprivate.h:
849         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
850         (gtk_tree_view_init), (gtk_tree_view_set_property),
851         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
852         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
853         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
854         (gtk_tree_view_set_destroy_count_func),
855         (gtk_tree_view_set_enable_search),
856         (gtk_tree_view_get_enable_search),
857         (gtk_tree_view_get_search_column),
858         (gtk_tree_view_set_search_column),
859         (gtk_tree_view_get_search_equal_func),
860         (gtk_tree_view_set_search_equal_func),
861         (gtk_tree_view_search_dialog_destroy),
862         (gtk_tree_view_search_position_func),
863         (gtk_tree_view_interactive_search),
864         (gtk_tree_view_search_delete_event),
865         (gtk_tree_view_search_button_press_event),
866         (gtk_tree_view_search_key_press_event),
867         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
868         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
869         * gtk/gtktreeview.h:
870         Add heavily modified patch from Kristian Rietveld to handle
871         interactive searching.
872
873 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
874
875         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
876         string parameter.
877
878         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
879         GtkMenuShell::selection_done, now that we have it, instead of 
880         ::deactivate so we're not tearing the menu apart and notify
881         the user prematurely.
882
883 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
884
885         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
886         window, clear window->need_default_position to avoid infinite loops.
887         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
888
889 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
890
891         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
892         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
893         (gtk_tree_view_set_property): don't cast possible NULL objects.
894         (gtk_tree_view_destroy): reset the model to NULL.
895
896         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
897         parent_class handler.
898
899 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
900
901         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
902
903 2001-08-17  Anders Carlsson  <andersca@gnu.org>
904
905         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
906         point numbers so that the result will be floating point.
907
908 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
909
910         * tests/testgtk.c (create_handle_box): 
911         (create_toolbar): Replace gtk_window_set_policy calls by
912         gtk_window_set_resizable.
913
914 2001-08-16  Jakub Steiner <jimmac@ximian.com>
915
916         * gtk/stock-icons/dialog_info.png: new style bulb
917         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
918         * gtk/stock-icons/dialog_warning.png: need a hand?
919         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
920           the aa border gets chopped off ok
921         * gtk/stock-icons/stock_colorselector.png: using the new hand
922         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
923           this one is for, but the old icon was butt ugly.
924         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
925         * gtk/stock-icons/stock*_insert_object.png: "
926         * gtk/stock-icons/stock_index.png: using new hand icon
927         * gtk/stock-icons/stock*_new.png: the document template being used 
928           elsewhere too
929         * gtk/stock-icons/stock*_print*.png: new print and print preview 
930           icons (panel/menu)  
931         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
932           icons based on Tuomas' floppy image.
933         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
934         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
935         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
936         * gtk/stock-icons/stock*_undelete.png: "
937         * gtk/stock-icons/stock_preferences.png: I have a version with a 
938           document base if the sliders are no good.
939         * gtk/stock-icons/stock_properties.png: properties 
940         
941
942         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
943           (tigert@ximian.com) clipboard icons
944         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
945         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
946         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
947           little bigger IMHO
948
949 2001-08-16  Sven Neumann  <sven@gimp.org>
950
951         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
952
953 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
954
955         * gtk/gtkcellrenderertext.c:
956         Avoid warning when specifying NULL for "attributes" property
957
958 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
959
960         * docs/debugging.txt: Add a warning about --enable-debug=no,
961         some editorial changes.
962
963 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
964
965         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
966         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
967         debugging info, remove unused debug flags. (#58330)
968
969 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
970
971         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
972         (gtk_tree_selection_select_all): Remove strict checking for rows.
973
974 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
975         
976         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
977         Don't remove the tooltip window when the tip text changes. (#15891)
978
979 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
980
981         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
982         $(srcdir).
983
984 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
985
986         * Makefile.am (EXTRA_DIST): Fix problem with trying to
987         dist files from intl/, which is no longer there.
988
989 2001-08-11  Hans Breuer  <hans@breuer.org>
990
991         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
992           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
993           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
994           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
995           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
996           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
997
998         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
999           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
1000         GDK_TYPE_EVENT signals
1001
1002         * gtk/gtkalignment.c : removed 'direct allocation bug',
1003         which Tim discovered while reading the patch
1004
1005 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
1006
1007         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
1008         compat macros for push/pop/set_visual that were supposed
1009         to be added a long time ago, but got dropped. 
1010
1011 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
1012
1013         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
1014         property notifies.
1015
1016 2001-08-07  Havoc Pennington  <hp@pobox.com>
1017
1018         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
1019
1020         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
1021         some fixage is needed here, but nothing simple. Owen understands
1022         it. ;-)
1023
1024         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
1025         sizing and positioning.  Also, fix bug in compute_geometry_hints
1026         (width/height confusion for setting min size). 
1027         (gtk_window_move): new function
1028         (gtk_window_resize): new function
1029         (gtk_window_get_size): new function
1030         (gtk_window_get_position): new function
1031         (gtk_window_parse_geometry): new function
1032         
1033         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
1034         (gtk_widget_get_size_request): new function
1035         (gtk_widget_get_usize): delete, that was a short-lived function
1036         ;-)
1037         (gtk_widget_set_usize): deprecate
1038         (gtk_widget_set_uposition): deprecate, make it a trivial 
1039         gtk_window_move() wrapper
1040         (gtk_widget_class_init): remove x/y/width/height properties,
1041         add width_request height_request
1042         
1043         * demos/*: update to avoid deprecated functions
1044         
1045         * gtk/gtklayout.c: add x/y child properties
1046
1047         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
1048         uses of "gint16"
1049
1050         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
1051         sizing test
1052
1053         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
1054         configure events on toplevel windows are always in root window
1055         coordinates, following ICCCM spec that all synthetic events 
1056         are in root window coords already, while real events are 
1057         in parent window coords. Previously the code assumed that 
1058         coords of 0,0 were parent window coords, which was 
1059         really broken.
1060   
1061         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
1062         warning
1063  
1064         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
1065         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
1066         hints in gtk_window_parse_geometry()
1067  
1068         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
1069         new USER_POS USER_SIZE hints    
1070
1071 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1072
1073         * tests/prop-editor.c (properties_from_type): Use 
1074         g_object_class_list_properties to get the param specs 
1075         for a given type. (#58609)
1076
1077 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1078
1079         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
1080         free the text_aa parts. (#57549)
1081
1082 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1083
1084         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
1085         not the foreground color. (#57621)
1086
1087 2001-08-09  Alexander Larsson <alexl@redhat.com>
1088
1089         * gdk/win32/gdkfont-win32.c:
1090         Update to the new pango win32 api.
1091
1092 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
1093
1094         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
1095         COMPOUND_TEXT instead of TEXT
1096         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
1097         interpret the return value of g_string_to_compound_text()
1098         (#55152)
1099
1100 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1101
1102         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
1103         fail if iter is NULL. (#58347)
1104
1105 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1106
1107         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
1108         some off-by-one issues, fixing selection of line-ends. (#50323)
1109
1110 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1111
1112         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
1113         functions in order to make mouse operation work again in the
1114         color wheel. (#58604)
1115
1116 2001-08-07  James Henstridge  <james@daa.com.au>
1117
1118         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
1119         the accelerator when the accel object is changed.  Fixes bug
1120         #58628.
1121
1122 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
1123
1124         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
1125         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
1126         (gnome bugzilla #58202)
1127
1128 2001-08-06  Havoc Pennington  <hp@pobox.com>
1129  
1130         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
1131         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
1132         it was expecting a GdkWindow, not a GdkWindowImplX11.
1133  
1134         Also, we were getting the window rect in screen coords 
1135         and the screen rect in window coords then intersecting 
1136         them; instead, get window rect in window coords.
1137  
1138         Finally, there were codepaths that resulted in a stuck server grab
1139         (when the window was fully onscreen, or on gdk_image_new()
1140         failure); make the server ungrab thing a bit more
1141         robust/consistent.
1142
1143 2001-08-06  Sven Neumann  <sven@gimp.org>
1144
1145         * gdk/gdkpango.c (gdk_pango_context_destroy): 
1146         check if info->colormap != NULL before unref'ing it. It might have
1147         been set to NULL using gdk_pango_context_set_colormap().
1148
1149 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
1150
1151         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
1152         Fix conversion from float to int so that we don't get
1153         skew in the int => float => int roundtrip. 
1154         (#58120, reported by Vitaly Tishkov). Also fix problem
1155         where if no alpha was set, the returned alpha
1156         from (say) set_current_alpha() was returned as 1, not 65535.
1157
1158 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
1159
1160         * gtk/gtklist.c (gtk_list_clear_items): Fix
1161         problem with selecting a new focus child.
1162
1163         * gtk/gtklist.c (gtk_list_clear_items): Clear 
1164         list->undo/list_focus_child after unparenting
1165         child, since unparenting the child can result
1166         in list->last_focus_child being set. (#58024)
1167
1168         * Makefile.am (SUBDIRS): Add target specific pc
1169         files to DISTCLEANFILES.
1170
1171         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
1172         (58327, Matthias Clasen)
1173
1174 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
1175
1176         * tests/testgtk.c: Patch from Hans (with various modifications),
1177         to add the ability to use testgtk as a rough-and-ready
1178         benchmark. Try, 'testgtk --bench all:5' (if you want decent
1179         numbers, run without a window manager)
1180
1181 2001-08-04 Alexander Larsson <alexl@redhat.com>
1182
1183         * gdk/win32/gdkinput.c:
1184         Add #ifdef HAVE_WINTAB around wintab.h include.
1185
1186         * gtk/gtk.def:
1187         Removed marshals that have been moved to glib.
1188         Commented out plug and socket. They didn't compile for me 
1189         on win32.
1190
1191 2001-08-04  Hans Breuer  <hans@breuer.org>
1192
1193         * gtk/stocks-icons/makefile.msc : new file
1194         * gtk/makefile.msc.in : use it
1195
1196         * gtk/gtkstyle.c : not all platforms do provide M_PI and
1197         friends, but luckily there is G_PI
1198
1199         * gtk/gtk.def : updated
1200
1201         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
1202         windows WS_POPUP, but only those without a parent. This fixes the 
1203         mis-alignment between the selectable (temp, input only) window and 
1204         the window text of GtkLabel.
1205
1206         (gdk_window_show) : respect private->state when actually showing
1207         the window.
1208
1209         (gdk_window_set_transient_for) : Implementation from Wolfgang 
1210         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
1211         error handling. Should fix #50586.
1212
1213         * gdk/win32/gdkevents-win32.c : beautify log output
1214
1215 2001-08-04  Michael Natterer  <mitch@gimp.org>
1216
1217         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
1218         Need to show the image after adding it to the GtkImageMenuItem.
1219         This used to work without in testgtk because of the
1220         gtk_widget_show_all() at the end of the function.
1221         (Closes #54978).
1222
1223 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
1224
1225         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
1226         (gtk_notebook_set_child_property): fix finding of child's page,
1227         since we have to validly deal with labels and menus here as well.
1228         (gtk_notebook_get_child_property): fix warning.
1229         (gtk_notebook_class_init): property tab_pack is of type
1230         GTK_TYPE_PACK_TYPE (enum) not boolean.
1231         (gtk_notebook_find_child): don't always warn, we might be looking
1232         for a label or menu child.
1233         (gtk_notebook_map): fix mapping of panel.
1234
1235         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
1236         widget's mapped state, regardless of the value being set equals
1237         old settings, since things like REALIZED(parent) or MAPPED(parent)
1238         may have changed since the old value was set. make it an error to
1239         invoke this function on a toplevel widget.
1240
1241 2001-07-31  Darin Adler  <darin@bentspoon.com>
1242
1243         * gdk/gdkprivate.h:
1244         * gdk/x11/gdkx.h:
1245         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
1246
1247         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
1248         GTK_OBJECT.
1249
1250 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
1251
1252         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
1253         scoping error pointed out by matthiasc@poet.de.
1254
1255 2001-07-31  Sven Neumann  <sven@gimp.org>
1256
1257         * demos/gtk-demo/appwindow.c
1258         * demos/gtk-demo/item_factory.c
1259         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
1260
1261 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
1262
1263         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
1264         argument order for g_signal_has_handler_pending.
1265
1266 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
1267
1268         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
1269         instead of long deprecated g_scanner_stat_mode().
1270
1271 2001-07-29  Hans Breuer  <hans@breuer.org>
1272
1273         * gdk/makefile.msc : build in the backend dir after
1274         auto-generating files
1275
1276         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
1277         with code from win32-production-branch.
1278
1279         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
1280         before calling DestroyWindow, which indirectly calls 
1281         gdk_window_destroy_notify ()
1282
1283         (performance patch merged from win32-production-branch)
1284         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
1285         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
1286         R2_COPYPEN rop). It is claimed to be much faster.
1287
1288 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
1289
1290         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
1291         add an "attributes" property to the text renderer for ATK.
1292
1293 2001-07-26  Alex Larsson  <alexl@redhat.com>
1294
1295         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
1296         Initialize image->bits_per_pixel from the drawable, not from
1297         the root window.
1298
1299         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
1300         Fix cast. argument is an IMPL already.
1301
1302 2001-07-15  James Henstridge  <james@daa.com.au>
1303
1304         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
1305         (gtk_window_remove_accel_group): same here.
1306         (gtk_window_key_press_event): same here.
1307
1308         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
1309         (gtk_widget_remove_accelerator): same here.
1310         (gtk_widget_remove_accelerators): same here.
1311
1312         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
1313
1314         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
1315         instead of GtkObject.
1316
1317         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
1318         now takes GObjects.
1319
1320         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
1321         pass a GObject to gtk_accel_group_entries_from_object.
1322         (gtk_item_factory_create_item): s/accel_widget/accel_object/
1323
1324         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
1325
1326         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
1327
1328         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
1329         GObjects can have accelerators set now.  Add compatibility
1330         defines.
1331
1332         * gtk/gtkmarshal.list: add missing marshallers.
1333
1334         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
1335         accelerators on plain GObjects.  gtk_accel_group_object_destroy
1336         has been converted into a weak reference, and
1337         gtk_accel_group_delete_entries is now a destroy notify for that
1338         piece of data.
1339
1340 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
1341
1342         * gdk/gdkdraw.c: Added a check on the colormap depth to
1343         gdk_drawable_set_colormap()
1344         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
1345         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
1346         for pixmaps without visuals (more specifically, bitmaps)
1347         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
1348         doesn't set a colormap with the wrong depth
1349
1350
1351 2001-07-22  Anders Carlsson  <andersca@gnome.org>
1352
1353         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
1354         expander_height and expander_width properties with a single
1355         property, expander_size.
1356         (gtk_tree_view_init): Set the tab_offset to expander_size
1357         plus some padding.
1358         (gtk_tree_view_unrealize): Remove the expand/collapse
1359         timeout if it exists.
1360         (coords_are_over_arrow): Fix a small bug.
1361         (gtk_tree_view_motion_draw_column_motion_arrow): Use
1362         expander_size.
1363         (gtk_tree_view_draw_focus): Use "treeview" instead of
1364         "add-mode" as detail when drawing the focus.
1365         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
1366         instead of "add-mode" as detail when drawing the focus.
1367         (gtk_tree_view_deleted): If we have a node currently being
1368         expanded or collapsed, remove the timeout and set the node 
1369         to NULL.
1370         (gtk_tree_view_queue_draw_arrow): New function that just
1371         redraws the arrow of a node.
1372         (gtk_tree_view_draw_arrow): Use expander_size instead of
1373         expander_width/expander_height, also pass a different
1374         expander_style to gtk_paint_expander depending on the 
1375         state of the node being drawn.
1376         (expand_collapse_timeout): New function for expanding 
1377         or collapsing a node depending on the previous state.
1378         (gtk_tree_view_real_expand_row): Add timeout and set 
1379         correct state for node being expanded.
1380         (gtk_tree_view_real_collapse_row): Add timeout and set
1381         correct state for node being collapsed.
1382
1383         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
1384         information about the node currently being expanded or
1385         collapsed, and also a timeout id.
1386
1387         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
1388         with expander_style for draw_expander.
1389
1390         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
1391         expander_style.
1392         (create_expander_affine): New function for creating an 
1393         expander affine.
1394         (apply_affine_on_point): New function for applying an 
1395         affine to a point.
1396         (gtk_default_draw_expander): Modified to take expander_style
1397         instead of is_open, and to draw the rectangle rotated differently
1398         depending on the expander style.
1399         (gtk_paint_expander): Replace is_open with expander_style.
1400
1401         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
1402
1403         * gtk/gtkenums.h: Add expander style enum.
1404
1405 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
1406
1407         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
1408         value from gtk_tree_model_get_iter, the model might be empty.
1409
1410 2001-07-20  Hans Breuer  <hans@breuer.org>
1411
1412         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
1413         gdk/gdkinput.c like the other backends
1414
1415         * gdk/win32/gdkinput-win32.h :
1416         * gdk/win32/gdkinput.c :
1417         * gdk/win32/gdkvisual-win32.c :
1418         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
1419         GdkVisual GObjectification. UNTESTED for pen-devices because
1420         I simply have none.
1421
1422         * gdk/gdk.def :
1423         * gtk/gtk.def : updated externals
1424
1425         * gtk/gtkiconfactory.c :
1426         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
1427         before passing &error to functions to avoid strange crashes
1428         
1429         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
1430
1431         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
1432
1433         * gtk/makefile.msc.in : updated
1434
1435 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
1436
1437         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
1438         Add property support. (#51858)
1439
1440 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
1441
1442         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
1443         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
1444         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
1445
1446 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
1447
1448         * gtk/gtkcolorsel.c: Add propery support (roughly
1449         based on patch from Lee Mallabone, #51014)
1450
1451         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
1452         deprecated, since we already g_warning() on it.
1453
1454 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
1455
1456         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
1457         typo that sometimes caused selection not to work properly.
1458
1459         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
1460         entry when tabbing in. (#57743)
1461         
1462         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
1463         user drags up above or down below the entry, move
1464         to the end or the beginning of the entry. (Suggestion
1465         from Jay Cox, #50940)
1466
1467         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
1468         a current selection, then when moving by chars or
1469         words, move to the end of the selection rather than
1470         from entry->current_pos. (Suggestion from Jay Cox,
1471         #50942)
1472         
1473 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
1474
1475         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
1476         set window->decorated. (Patch from Hidetoshi Tajima,
1477         #55846)
1478
1479 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
1480
1481         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
1482         the widget/child realization/mapping invariants.
1483
1484         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
1485         gtk_widget_[get/set]_child_visible() to control
1486         whether visible children of a mapped window are
1487         mapped.
1488
1489         * docs/widget_system.txt: Updated for changes in
1490         container contract, and addition of GTK_CHILD_VISIBLE.
1491
1492         * gtk/gtkcontainer.c: Add generic map()/unmap()
1493         functions that work for almost all containers.
1494
1495         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
1496         gtk_widget_set_child_visible() where necessary.
1497
1498         * gtk/*.c: Remove excess map(), unmap(), and 
1499         realization/mapping invariant enforcing code
1500         from many containers.
1501
1502 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
1503
1504         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
1505         Get the foreground color from 'text', nor 'fg'. (#57568)
1506
1507 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
1508
1509         * gtk/*.c: Patch from Matthias Clasen to remove remove
1510         all instances of g_return_if_fail (foo != NULL); that are
1511         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
1512         since the second check catches the NULL anyways.
1513
1514 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1515
1516         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
1517         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
1518         GDK_THREADS_ENTER()/LEAVE() pairs.
1519
1520         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
1521         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
1522         pairs. (Problem found by M. Meeks)
1523
1524 2001-07-18  Darin Adler  <darin@bentspoon.com>
1525
1526         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
1527         that we don't get a g_warning message every time we register a new
1528         icon size.
1529
1530         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
1531         using pixel variable of the correct type.
1532         
1533 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
1534
1535         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
1536         so that using X functions on a GdkWindow is possible, if
1537         a little hairy.
1538
1539         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
1540         and ts_origin of a GC, so that external parties can offset/restore
1541         a GC, when using gdk_window_get_internal_paint_info().
1542
1543 2001-07-17  Darin Adler  <darin@bentspoon.com>
1544
1545         * .cvsignore: Ignore the sgml directory made by gtkdoc.
1546         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
1547         instead of the deprecated gtk_window_set_policy.
1548         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
1549         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
1550         function to get rid of warning and some code too.
1551         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
1552         missing const.
1553         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
1554         unused local.
1555         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
1556         const.
1557         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
1558         (gdk_utf8_to_compound_text): Add missing const.
1559         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
1560         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
1561         cast and get rid of an unnecessary one.
1562         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
1563         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
1564         local.
1565         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
1566         Remove unused local.
1567         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
1568         missing const.
1569         * tests/testsocket.c: (add_child): Add cast so the printf format
1570         doesn't make us implicitly depend on what integer type
1571         gtk_socket_get_id returns.
1572         * tests/testtextbuffer.c: Add missing const.
1573         * tests/testtreefocus.c: (main): Remove unused local.
1574         * tests/treestoretest.c: (iter_remove): Remove unused local.
1575         (uppercase_value): Remove unused function.
1576         (make_window): Add statement to quiet the compiler's uninitialized
1577         variable warning.
1578
1579 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
1580
1581         * gtk/gtkrange.c:
1582         (second_timeout): 
1583         (initial_timeout): 
1584         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
1585         (gtk_range_calc_layout): compute the new layout based on an
1586         adjustment->value being passed in as argument.
1587         (gtk_range_button_press): for button2 slider warps, first recalc
1588         the layout, then adjust the value. also, use update_slider_position()
1589         for adjusting the value, so we keep pixel quantisation at which we
1590         usually operate (upon motion or button releases). the reason for this
1591         is that, we can't change the adjustment upon button2 presses to a non
1592         quantised value and upon button2 release re-quantise the value since
1593         that'd alter the value even if we didn't get any motion events (causing
1594         unexpected scroll area warps upon release and/or slider pixel-jitter).
1595         (gtk_range_motion_notify): update the slider position from queried
1596         coordinates, not event coordinates.
1597
1598 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
1599
1600         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
1601         the default gc values are: width=0, CapBut, JoinMiter.
1602
1603 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
1604
1605         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
1606         into account the xpad and ypad when calculating the width and the
1607         height of the pixbuf cel.
1608
1609 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
1610
1611         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
1612         Rename to gtk_radio_menu_item_get_group(), add deprecated
1613         alias. (#57044)
1614
1615         * gtk/gtkfilesel.c: Indentation fix.
1616
1617 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
1618
1619         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
1620         Hasselmann to fix warnings in compat macros. 
1621         (#56773)
1622
1623         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
1624         stupid wrong cast added in last patch.
1625
1626 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
1627
1628         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
1629         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
1630
1631 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
1632
1633         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
1634         missing cast.
1635
1636         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
1637         NULL/FALSE return value confusion.
1638
1639         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
1640         problem when scrollbar completely fills range. (Patch
1641         from  Matthias Clasen, #57047)
1642
1643 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
1644
1645         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
1646         clean up when handling events for move-resize emulation.
1647         (Problem traced down by Matthias Clasen, #57271)
1648
1649 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
1650
1651         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
1652           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
1653           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
1654           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
1655           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
1656           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
1657           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
1658         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
1659
1660 2001-07-09  Peter Williams  <peterw@ximian.com>
1661
1662         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
1663         for when srcdir != builddir
1664
1665 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1666
1667         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
1668         gtk_tree_model_get_iter_root.
1669
1670         * gtk/gtkliststore.c: Add a bunch of g_return statements.
1671         (gtk_list_store_iter_n_children): Fix up.
1672
1673         * gtk/gtktreestore.c: Add a bunch of g_return statements.
1674
1675 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
1676
1677         * gtk/gtkwidget.c (gtk_widget_class_init):
1678         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
1679         restore some workingness.
1680
1681         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
1682         handle of window type for input-only windows.
1683
1684 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
1685
1686         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
1687         Patch from Gregory Merchan to add 
1688         gtk_button_box_set_secondary(), which separates
1689         the child into a separate group from the normal
1690         buttons. (#56331)
1691
1692         * gtk/gtkdialog.c: Make help buttons secondary by
1693         default.
1694
1695         * gtk/gtkbbox.c: Added a child property "secondary".
1696
1697         * gtk/testgtk.c: Turn on the help button for the 
1698         color selector to check that it properly appears
1699         as secondary.
1700
1701 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
1702  
1703         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
1704         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
1705         Add gdk_set_pointer_hooks() to allow pointer-querying to
1706         be hooked by an event record/playback system like GERD.
1707         (#56914)
1708         
1709 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
1710
1711         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
1712         in the right value of initial_emission to
1713         gtk_widget_set_style_internal (#57091)
1714
1715 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
1716
1717         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
1718         Make compile.
1719
1720         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
1721         with calling gtk_widget_set_style_internal() with
1722         the old style, not the new style. (#56989)
1723
1724 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
1725
1726         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
1727           gtk/gtkwidget.c:
1728         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
1729         not GTK_WIDGET_GET_ANCESTOR ... see 
1730         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
1731         Indicate the best practice in the docs for gtk_widget_get_toplevel().
1732
1733         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
1734         so GtkPlug can give the correct signals when transforming
1735         from a child to a toplevel.
1736         
1737         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
1738         reparentation correctly.
1739
1740         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
1741         Propagate the previous_toplevel argument down properly.
1742
1743         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
1744         of wrong atr list.
1745
1746         * gtk/gtkplug.[ch]: Add an "embedded" signal.
1747
1748         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
1749         signals.
1750
1751         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
1752         functions gtk_plug_get_id(), gtk_socket_get_id(),
1753         to avoid the user having to worry about realization,
1754         and gdkx.h.
1755
1756         * tests/testsocket.c: Extend to try out the new signals
1757         and gtk_plug/socket_get_id().
1758
1759         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
1760         setting of underline attributes.
1761
1762         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
1763         DestroyNotify events from SubstructureNotifyMask
1764
1765         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
1766         Switch GDK_WINDOW_TYPE (window) as needed.
1767
1768         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
1769         allow creation of toplevel windows as children of
1770         foreign windows.
1771
1772         * gtk/gtkplug.c: Remove hacks involving changing private
1773         fields of GdkWindow.
1774
1775         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
1776         exactly the same signals and notification
1777         be emitted for local embedding as for inter-process
1778         embedding.
1779
1780 2001-07-04  James Henstridge  <james@daa.com.au>
1781
1782         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
1783
1784 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
1785
1786         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
1787         XEMBED embedding add a _XEMBED_INFO property to the
1788         client with version number and a "mapped" flags.
1789         Use the mapped flag instead of the racy MapRequestEvent
1790
1791         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
1792         code to reliably set things (when the child is a passive
1793         embedder participating in the XEMBED protocol) intead
1794         of just being a hack for embedding non-participating
1795         programs. Fix various bugs and race conditions.
1796         
1797         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
1798         work by simply making the GtkSocket the gtk parent
1799         of the GtkPlug. Set a flag in this case and make
1800         the GtkPlug work like a normal container by overriding
1801         methods such as check_resize and "chaining past" GtkWindow
1802         to GtkBin.
1803
1804         * gtk/gtkentry.c (gtk_entry_real_activate)
1805           gtk/gtkmain.c (gtk_propagate_event): 
1806         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
1807         
1808         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
1809         gtk_widget_get_ancestor):
1810         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
1811         might not give the expected result and recommend
1812         an alternative.
1813
1814         * tests/testsocket.c tests/testsocket_child.c
1815         tests/testsocket_common.c tests/Makefile.am: Extended
1816         to test different type of adding plugs to sockets
1817         (local,active,passive), and to test mapping/unmapping
1818         the plug.
1819
1820         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
1821         mark the window as destroyed until after we
1822         called _gdk_windowing_window_destroy().
1823         (_gdk_windowing_window_destroy() may use GDK functions
1824         on the window.)
1825
1826         * gdk/x11/gdkinput.c: Remove the check for finalization - 
1827         devices can be finalized under some circumnstances.
1828  
1829         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
1830         small problem with GDK_TYPE_DEVICE.
1831  
1832 2001-07-02  Havoc Pennington  <hp@pobox.com>
1833
1834         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
1835         use constants not atoms.
1836
1837 2001-07-02  James Henstridge  <james@daa.com.au>
1838
1839         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
1840         PANGO_TYPE_TAB_ARRAY.
1841
1842         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
1843         for PANGO_TYPE_TAB_ARRAY.
1844
1845         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
1846         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
1847
1848         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
1849         the file.  Remove Pango types from defs -- they are now defined in
1850         libpango.
1851
1852 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
1853
1854         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
1855
1856         * gtk/gtkobject.c (gtk_object_destroy): invoke
1857         g_object_run_dispose().
1858
1859         * gtk/gtkwindow.c: 
1860         * gtk/gtkwidget.c: 
1861         * gtk/gtkobject.c:
1862         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
1863         method.
1864
1865 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
1866
1867         * gtk/gtktypeutils.c (gtk_type_class): Remove
1868         change check for GTK_TYPE_OBJECT derivation to
1869         G_TYPE_OBJECTS - it's Tim-approved to use this 
1870         for arbitary objects.
1871
1872         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
1873         prefix gtk_container_dequeue_resize_handler().
1874
1875         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
1876         to the hierarachy_changed signal, since you otherwise
1877         have to always keep that around.
1878
1879         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
1880         for extra argument to hierarchy_changed.
1881
1882 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
1883
1884         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
1885         for style to mean "revert to default style"
1886
1887         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
1888           gtk_widget_restore_default_style): Make this functions
1889         deprecated aliases for gtk_widget_set_style (widget, NULL).
1890
1891         * gtk/gtkwidget.[ch]: Remove:
1892            gtk_widget_set_default_style ()
1893            gtk_widget_push_style ()
1894            gtk_widget_pop_style ()
1895         These functions interact are overriden by RC files, and
1896         thus virtually useless, and complicated.
1897
1898 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
1899
1900         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
1901         most of the previous global variables in gtkrc.c. This is
1902         in preparation for multi-head, since each screen can
1903         have different GtkSettings and RC information.
1904
1905         * gtk/gtkrc.[ch]: 
1906
1907         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
1908         GtkSettings parameter to GtkRcStyle::parse.
1909
1910         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
1911         Add two new settings gtk-theme-name, gtk-key-theme-name,
1912         for RC files that are loaded by name after reading
1913         the default RC files.
1914         
1915         * gtk/gtkrc.c: Allow priorities for styles, as wll as
1916         bindings.
1917
1918         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
1919         and use it by default for RC files loaded via 
1920         gtk-theme-name, gtk-key-theme-name.
1921
1922         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
1923         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
1924         tests/testgtkrc: Require pathnames to be absolute.
1925
1926         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
1927         the source when parsing, since the operation of looking up a
1928         pixmap from an RC file depends on the parsing context.
1929
1930         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
1931         reset RC styles on all widgets when files are reparsed.
1932
1933         * tests/testgtk.c (create_rc_file) 
1934           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
1935         Simplify, now that gtk_rc_reparse_all() resets styles on
1936         all widgets itself.
1937
1938         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
1939         return value.
1940
1941         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
1942         GtkSettings argument.
1943
1944         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
1945         gtk_settings_get_global().
1946
1947         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
1948         to get the appropriate GtkSettings for a widget. (For now,
1949         just gets the default GtkSetttings.) 
1950
1951         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
1952           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
1953         changes.
1954
1955         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
1956         getting a style for a path without actually having a widget.
1957         (Allows using a style for a subpart of a widget, for
1958         example.)
1959
1960         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
1961         the RC files to be reloaded for just one GtkSettings
1962         (not sure how useful this really is.)
1963
1964         * gtk/gtkrc.h: Deprecate
1965         gtk_rc_add_widget_name/widget_class/class_style
1966
1967 2001-06-30  Alex Larsson  <alexl@redhat.com>
1968
1969         * gdk/linux-fb/gdkinput-none.c:
1970         * gdk/linux-fb/gdkinput.c:
1971         * gdk/linux-fb/gdkinputprivate.h:
1972         Convert GdkDevice to a GObject.
1973
1974         * linux-fb/gdkprivate-fb.h:
1975         * linux-fb/gdkvisual-fb.c:
1976         Convert GdkVisual to a GObject.
1977
1978 2001-06-29  Alex Larsson  <alexl@redhat.com>
1979
1980         * gdk/gdkvisual.h:
1981         * gdk/gdkcolor.c:
1982         * gdk/x11/gdkx.h:
1983         * gdk/x11/gdkvisual-x11.c:
1984         Convert GdkVisual to a GObject.
1985
1986         * gdk/gdkinput.h:
1987         * gdk/gdkevents.c:
1988         * gdk/x11/gdkinputprivate.h:
1989         * gdk/x11/gdkinput-gxi.c:
1990         * gdk/x11/gdkinput-none.c:
1991         * gdk/x11/gdkinput-x11.c:
1992         * gdk/x11/gdkinput-xfree.c:
1993         * gdk/x11/gdkinput.c:
1994         Convert GdkDevice to a GObject.
1995
1996 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
1997
1998         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
1999         to just plain new, fixing the number of columns, and column types
2000         at creation time.
2001
2002         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
2003
2004         * gtk/gtkcellrenderertext.c
2005         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
2006         height to a specific font.
2007
2008         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
2009
2010         * tests/*c: change to work with new store models.
2011
2012 2001-06-29  Havoc Pennington  <hp@redhat.com>
2013
2014        * Throughout: fixes to compile with G_DISABLE_COMPAT
2015         (s/g_signal_connectc/g_signal_connect/,
2016         s/g_signal_newc/g_signal_new/,
2017         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
2018
2019 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
2020
2021         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
2022         add path argument to selection callbacks.
2023
2024 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
2025
2026         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
2027         walk through a model in a depth first manner, with the option to
2028         break out.
2029
2030 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
2031
2032         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
2033         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
2034         column and follow it when draged, rather than a location in the
2035         view. "expander_column" property and drawing functions changed
2036         accordingly.  Fixes bug #55942.
2037
2038         (gtk_tree_view_{set,get}_expander_column): Now works with a
2039         GtkTreeViewColumn* instead of int.
2040
2041 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
2042
2043         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
2044
2045 2001-06-28  Havoc Pennington  <hp@pobox.com>
2046
2047         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
2048         image data to the screen, using a server grab to avoid race
2049         conditions.
2050
2051         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
2052         check for NULL return from gtk_image_new_from_stock(), it never
2053         returns NULL.
2054         (gtk_item_factory_create_item): fix bug where we parsed the stock
2055         ID as an inline pixbuf
2056
2057         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
2058
2059         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
2060         support (should be using binding set here)
2061
2062         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
2063         support (should be using binding set here)
2064
2065         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
2066         support
2067
2068         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
2069
2070         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
2071
2072         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
2073
2074         * gtk/gtkimcontextsimple.c
2075         (gtk_im_context_simple_filter_keypress): keypad
2076
2077         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
2078
2079         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
2080
2081         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
2082
2083         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
2084         should be binding-setted)
2085
2086         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
2087
2088         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
2089
2090         * gtk/gtkcalendar.c: numeric keypad fixes
2091
2092         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
2093         support
2094
2095         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
2096         screwup
2097
2098         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
2099         clip the render area to the drawable's clip region in advance,
2100         so we don't get data from the server that we don't need.
2101
2102         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
2103         check return value of gdk_pixbuf_get_from_drawable(), fall back 
2104         to bilevel alpha if we can't get the pixbuf to composite against.
2105
2106         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
2107
2108         * gdk/gdkimage.c (gdk_image_get_colormap): add
2109         gdk_image_set_colormap, gdk_image_get_colormap
2110
2111         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
2112         take a region of the image, instead of converting the entire
2113         image.
2114
2115         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
2116         keybinding signal. Add default bindings for it. Add default
2117         handler for show_help that shows the tooltip for the widget.
2118
2119         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
2120         "close" keybinding signal, remove key press handler.
2121
2122         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
2123         it's not our usual practice to leave a deprecated function around
2124         with a runtime warning, plus we don't want it to appear in docs,
2125         plus if we make them yellow no one will want to change them
2126         anyhow.
2127
2128 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
2129
2130         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
2131         GTK_WIDGET_REALIZE() for resize queueing.
2132
2133         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
2134         GTK_WIDGET_REALIZE() for post event delivery destruction upon
2135         GDK_DESTROY.
2136         
2137         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
2138         sompensate for former (pre-2.0) connect_after() facility.
2139         (gtk_widget_send_expose): 
2140         (gtk_widget_event): assert the widget is realized, since event delivery
2141         to non-realized widgets is essentially a bug. event handlers should
2142         be able to unconditionally rely on widget->window (unless they
2143         emit events on their own which can trigger widget destruction).
2144         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
2145         logic. event delivery happens as follows:
2146         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
2147         b) if !was_handled in (a) and the widget is still realized, emit event-
2148            specific signal (RUN_LAST handler). returns was_handled.
2149         c) emission of GtkWidget::event-after for notification if the widget is
2150            still realized (regardless of was_handled from previous stages, no
2151            class handler). no return value.
2152         d) was_handled gets passed on to caller, to determine further
2153            propagation. if the widget got unrealized meanwhile, was_handled
2154            is returned as TRUE.
2155
2156         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
2157         gdk_event_get_coords().
2158
2159 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
2160
2161         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
2162         age 0, binary age 0. depend on glib 1.3.7.
2163
2164         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
2165
2166         * gtk/gtkmenubar.c: same here.
2167         
2168         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
2169
2170         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
2171
2172         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
2173         
2174         * gtk/gtkmenubar.c (add_to_window): likewise.
2175         
2176         * gtk/gtktextbtree.c: and here...
2177         
2178         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
2179         
2180         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
2181         
2182         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
2183         
2184         * gtk/gtktreeviewcolumn.c:
2185         (_gtk_tree_view_column_set_tree_view): yet again.
2186
2187         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
2188         signal connections without g_signal_connect_data().
2189         
2190         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
2191         demo of the matter.
2192         
2193         * demos/testpixbuf.c (main): running out of equality phrases for the
2194         ChangeLog, but had to adapt connections here as well.
2195         
2196         * demos/testanimation.c (progressive_timeout): and for the fun of it,
2197         tackled this the same way.
2198         
2199         * tests/testtext.c (create_view): ok, it's becoming a pain at this
2200         point, but had enough enery for one more fix.
2201
2202         * tests/testtreecolumns.c (main): stand up man, do your work!
2203
2204         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
2205         fix, either that's been all of it or CVS gtk is broken yet again.
2206         
2207 2001-06-29  James Henstridge  <james@daa.com.au>
2208
2209         The following changes correspond to bug #56812
2210
2211         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
2212         code for GdkDevice.
2213
2214         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
2215         GdkCursor.
2216
2217 2001-06-19  Havoc Pennington  <hp@pobox.com>
2218
2219         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
2220         for mapping a window without fooling with stacking order, but
2221         updating the "withdrawn" flag
2222
2223         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
2224         filtering as soon as possible, moving move resize and wmspec_check
2225         handling after the event filter.  Make default filter apply to all
2226         events, not just those with no GdkWindow wrapped around the X
2227         window. Fix a FIXME about how the window could be a pixmap using 
2228         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
2229
2230         Also, be robust against events not on a known GdkWindow.
2231
2232         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
2233         gdk_x11_ungrab_server): export reference-counted server grabs, so
2234         other people can grab server over a GDK function that also does
2235         so.
2236
2237 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
2238
2239         * gtk/gtktreeviewcolumn.c
2240         (gtk_tree_view_column_pack_start_cell_renderer): New function to
2241         reflect that you can (hypothetically) pack cell renderers into a
2242         column.
2243         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
2244         (gtk_tree_view_column_cell_is_visible): Move more functionality to
2245         the column.
2246         (gtk_tree_view_column_cell_can_focus): Move more functionality to
2247         the column.
2248
2249         * gtk/gtktreeview.c: Move to use new column-packing code.
2250         (gtk_tree_view_real_expand_row): remove totally braindead code.
2251         (gtk_tree_view_real_collapse_row): ditto.
2252
2253 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
2254
2255         * gtk/gtktreeviewcolumn.c: Fix a typo.
2256         
2257 2001-06-26  Joel Becker  <jlbec@evilplan.org>
2258
2259         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
2260           at the end of the file
2261
2262 2001-06-26  Havoc Pennington  <hp@redhat.com>
2263
2264         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
2265
2266 2001-06-26  Havoc Pennington  <hp@redhat.com>
2267
2268         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
2269         property
2270
2271 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
2272
2273         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
2274         stupid missing statement
2275
2276         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
2277         private function for ATK.  It notifies you of how many _visible_
2278         children are deleted when a node is deleted.  Should be used by
2279         atk only.
2280
2281 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
2282
2283         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
2284         Use new pango_context_get_metrics() to fix problems
2285         with font lists in descriptions. (#56184, reported by
2286         Jonas Borgström)
2287
2288 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
2289
2290         * gtk/gtkiconfactory.c:
2291         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
2292         item factory so inlined pixbufs actually work.
2293
2294 2001-06-25  Havoc Pennington  <hp@redhat.com>
2295
2296         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
2297         s/RESIZEABLE/RESIZABLE/
2298
2299         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
2300
2301 2001-06-25  Alexander Larsson  <alexl@redhat.com>
2302
2303         * configure.in:
2304         Added --enable-fbmanager. This is some experimental code
2305         that lets several GtkFB apps coordinate their access to the
2306         framebuffer.
2307         
2308         * acconfig.h:
2309         Added ENABLE_FB_MANAGER.
2310
2311         * gdk/linux-fb/Makefile.am:
2312         Added gdkfbmanager and gdkfbswitch.
2313
2314         * gdk/linux-fb/gdkkeyboard-fb.c:
2315         * gdk/linux-fb/gdkmouse-fb.c:
2316         * gdk/linux-fb/gdkprivate-fb.h:
2317         Split device init and open so that
2318         they can be opened and closed while switched
2319         away.
2320
2321         * gdk/linux-fb/gdkmain-fb.c:
2322         Add the basic manager communication.
2323
2324         * gdk/linux-fb/gdkrender-fb.c:
2325         Don't update to the shadow fb if we're
2326         blocked by the fb manager.
2327
2328 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2329
2330         * docs/Changes-2.0.txt: Add note about child property
2331         changes.
2332
2333 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
2334
2335         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
2336         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
2337
2338         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
2339         with un'reffing wrong list reported by Jeff Franks.
2340
2341         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
2342
2343         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
2344         for the default icon. Remove inline XPM.
2345
2346         * gtk/gtkstock.h gtk/gtkiconfactory.c:
2347         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
2348         is used for GTK_STOCK_DND, but it is a bit too small.)
2349
2350         * gtk/stock-icons/stock_dnd_multiple.png
2351         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
2352
2353         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
2354         TRUE when starting a drag. In other cases, we are
2355         just observing. (#52995)
2356
2357         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
2358         function to set the icon for a drag from a GdkPixbuf
2359         or stock ID.
2360
2361         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
2362         Likewise, for drag sources.
2363
2364         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
2365         (Now should be done using the stock system.)
2366
2367 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
2368
2369         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
2370         Removed - didn't work and not particularly useful anyways
2371         if it did. 
2372
2373 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
2374
2375         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
2376         introduced last night that was making things decidedly not work.
2377
2378         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
2379         so that we have getter/setter pairing everywhere it makes
2380         sense. (#55767)
2381
2382         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
2383         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
2384         deprecated compat macro. (#55516)
2385
2386         * gtk/gtklabel.[ch]: Add functions
2387         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
2388         gtk_label_set_label(), which mirror the property API for GtkLabel.
2389         Make gtk_label_get_attributes() only reflect the attributes
2390         set by gtk_label_set_attributes.
2391
2392         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
2393         from gtk_notebook_set_page().
2394
2395 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
2396
2397         * configure.in: Fix tests for XShm.h.
2398
2399         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
2400         gdk_image_new() by use of goto, properly use g_object_unref().
2401
2402 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
2403
2404         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
2405         calls, as GdkImage is an object. these should be g_obejct_unref()
2406         instead but that won't work because of the g_error() statement
2407         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
2408         to spot these places.
2409
2410 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
2411
2412         * modules/input/gtkimcontextxim.c: Fixup some problems with 
2413         text length handling in error cases.
2414
2415         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
2416         a bit to make test actually warn on attempt to allocation
2417         a negative size. (#56101, Matthias Clasen)
2418
2419 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
2420
2421         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2422         noticed by Brian Cameron.
2423         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
2424         Cameron.
2425
2426 2001-06-22  Hans Breuer  <hans@breuer.org>
2427
2428         * gdk/gdk.def : updated externals
2429
2430         * gdk/win32/gdkdrawable-win32.c : corrected some casts
2431         in GDK_NOTEs
2432
2433         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
2434         to translate coordinates to the internal > 16 bit system
2435         Try to handle WM_WINDOWPOSCHANGED to get better performance for
2436         when moving/resizing
2437
2438         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
2439         and gdk_keymap_get_direction (). The latter is untested for
2440         the RTL case
2441
2442         * gtk/gtk.def : updated externals
2443
2444         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
2445         from pango_language_from_string (), not an already freed pointer
2446
2447         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
2448         binary (-kb) to be useable on windoze
2449  
2450 2001-06-21  Alexander Larsson  <alexl@redhat.com>
2451
2452         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
2453         Update to new PangoLanguage changes.
2454         
2455         * gtk/gtkwindow-decorate.c:
2456         * gtk/gtkwindow.[ch]:
2457         Added setting argument to gtk_window_set_has_frame ()
2458         
2459 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
2460
2461         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
2462         the case without XKB properly.
2463
2464         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
2465         unused gtk_rc_auto_parse variable.
2466
2467         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
2468         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
2469         longer needed with GdkPixbuf.
2470
2471         * gtk/gtkrc.c (_gtk_rc_init): Make private.
2472
2473 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
2474
2475         * gtk/gtkentry.h: Mark deprecated functions with
2476         GTK_DISABLE_DEPRECATED.
2477
2478 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2479
2480         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
2481
2482         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
2483
2484         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
2485           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
2486           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
2487           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
2488           to recent changes in Pango.
2489
2490         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
2491           to test whether the basic engine honors them.
2492
2493 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
2494
2495         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
2496         gtk_container_child_get_property().
2497
2498 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
2499
2500         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
2501         (gtk_tree_view_move_cursor_page_up_down): implement.
2502
2503 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
2504
2505         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
2506         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
2507         don't use automatic fixed size buffer for printf-ing floats, doubles
2508         can expand to really _huge_ strings, use g_strdup_printf() instead.
2509
2510 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
2511
2512         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
2513         construct property in 1.2 and still needs to be.
2514
2515         * gtk/gtkwidget.c: "composite_child" is not a settable property.
2516
2517 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
2518
2519         * gtk/gtkliststore.c (gtk_list_store_clear): 
2520         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
2521         clear a model.
2522
2523 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
2524
2525         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
2526
2527         * gtk/Makefile.am:
2528         * gtk/gtk.h: disabled GtkPacker compilation.
2529
2530         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
2531
2532         * gtk/gtknotebook.c:
2533         * gtk/gtktable.c:
2534         * gtk/gtkbox.c: ported this over to child properties.
2535
2536         * gtk/gtksettings.c: fetch class properties via
2537         g_object_class_list_properties().
2538
2539         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
2540         child arg interface. use gobjectnotifyqueue.c for child property
2541         notification.
2542
2543         * gtk/gtkwidget.[hc]: provide necessary means for container child
2544         properties, i.e. ::child_notify signal,
2545         gtk_widget_freeze_child_notify(),
2546         gtk_widget_child_notify(),
2547         gtk_widget_thaw_child_notify().
2548
2549         * tests/testgtk.c: removed inferior property handling code, for
2550         property editing, a generic module should be used, and GLE
2551         coincidentally fullfills that purpose.
2552
2553         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
2554         needs to be adapted to g_object_class_list_properties() before this
2555         builds again.
2556
2557 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
2558
2559         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
2560         test if a node is expanded.
2561
2562 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
2563
2564         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2565         where collapsing a selected row would result in the cursor/anchor
2566         getting screwed up.
2567
2568 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2569
2570         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
2571         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
2572         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
2573         Now I can really reorder/sort all Store widgets.  treesorttest
2574         seems to just work now.
2575         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
2576         testtreesort worked through a big coincidence all this time.
2577         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
2578         code.
2579         * tests/testtreecolumns.c: Big 'ol warning at the top letting
2580         people know that this code should never ever ever be copied.
2581
2582 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
2583
2584         * gtk/gtkwindow.h: Fixed a small typo, it should be
2585         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
2586         on line 134.
2587
2588 2001-06-14  Havoc Pennington  <hp@redhat.com>
2589
2590         Docs fixups, and:
2591         
2592         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
2593         GTK_DISABLE_DEPRECATED
2594
2595 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
2596
2597         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
2598         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
2599         finish it off tonight, though it basically works now when it's a
2600         list.  Also, I have a sinking feeling neither GtkTreeStore or
2601         GtkListStore actually resort when adding a new item.  I'll look
2602         into it.
2603
2604 2001-06-14  Havoc Pennington  <hp@redhat.com>
2605
2606         * demos/gtk-demo/main.c (load_file): fix bug identified by
2607         warnings I just added to gtktextbuffer
2608
2609 2001-06-14  Havoc Pennington  <hp@redhat.com>
2610
2611         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
2612
2613         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
2614
2615         * gtk/gtktextbtree.c: don't leak node data all over the place.
2616
2617         * demos/gtk-demo/main.c (main): create fontify tags for the right
2618         buffer
2619
2620         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
2621         to mention tags in the same table can't have the same name,
2622         suggested by Skip Montanaro
2623
2624 2001-06-11  Havoc Pennington  <hp@redhat.com>
2625
2626         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
2627         for trying to add two tags with same name to the tag table
2628
2629         * demos/gtk-demo/main.c (main): fix colors ;-)
2630
2631 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
2632
2633         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
2634         that allows grouping together multiple windows so that grabs
2635         within that set of windows only affect those windows.
2636
2637         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
2638         signal for notification when a widget becomes shadowed
2639         by a grab or is no longer shadowed by a grab.
2640
2641         * gtk/gtkwidget.c (gtk_widget_propagate_state)
2642           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
2643         insenstive widgets to maintain a grab.
2644
2645 2001-06-14  Alexander Larsson  <alexl@redhat.com>
2646
2647         * docs/README.linux-fb:
2648         Add some example config files that can be used with the URW fonts.
2649         
2650         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
2651         Set up the color ramps for DirectColor mode.
2652
2653 2001-06-11  Havoc Pennington  <hp@redhat.com>
2654
2655         * Release 1.3.6
2656          
2657 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2658
2659         * gdk/linux-fb/gdkwindow-fb.c:
2660         Unify shaped window code and make it repaint the area that used
2661         to be part of the shape, but isn't anymore.
2662
2663 2001-06-11  Havoc Pennington  <hp@redhat.com>
2664
2665         * NEWS: Updates
2666
2667         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
2668
2669         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
2670         
2671 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2672
2673         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
2674         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
2675         passes zero instead, so do we.
2676         
2677 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2678
2679         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2680         Deep copy dash_list too.
2681         (_gdk_fb_gc_new): Set default cap_style before
2682         setting values.
2683
2684 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
2685
2686         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
2687         gdk_keymap_get_direction): New functions.
2688
2689 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
2690
2691         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
2692         gtk_tree_model_get_flags by adding a second flag for atk.
2693
2694         * gtk/gtktreemodel.c: make cursor behavior interact better with
2695         mouse presses.
2696
2697 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
2698
2699         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
2700         expand_row/collapse_row to be 2 signals each -- test_expand_row
2701         and row_expanded as well as test_collapse_row and row_collapsed.
2702
2703 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
2704
2705         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
2706         signal name to be changed instead of selection_changed.
2707
2708 2001-06-08  Havoc Pennington  <hp@redhat.com>
2709
2710         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
2711         "scroll_offset" property for notification when the layout offsets
2712         may have changed
2713         (gtk_entry_adjust_scroll): add notify for scroll_offset
2714         (gtk_entry_layout_index_to_text_index): function to compensate for
2715         preedit string when doing coordinate stuff on the entry's layout
2716         (gtk_entry_text_index_to_layout_index): inverse function
2717         (gtk_entry_get_layout_offsets): hook to get current position of
2718         the layout      
2719         (gtk_entry_get_layout): hook to get the layout itself.
2720
2721         * gtk/gtklabel.c (gtk_label_get_layout): new function
2722
2723 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
2724
2725         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
2726         keybinding.
2727         (gtk_tree_view_focus): Fix merge conflict.
2728
2729 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
2730
2731         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
2732         clean up cursor handling.
2733
2734 2001-06-08  Havoc Pennington  <hp@redhat.com>
2735
2736         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
2737         function
2738
2739         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
2740         this function
2741
2742 2001-06-08  Alex Larsson  <alexl@redhat.com>
2743
2744         * gtk/gtkcompat.h.in:
2745         Added compat macros for all old GTK_TYPE_GDK_xxx types.
2746         Fixes bug #52892
2747
2748 2001-06-08  Havoc Pennington  <hp@redhat.com>
2749         
2750         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
2751         parent still
2752
2753 2001-06-08  Havoc Pennington  <hp@redhat.com>
2754
2755         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
2756         don't call g_list funcs on GSList
2757
2758         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
2759         gtk_container_focus(), since some widgets have focusable locations
2760         which are not other widgets. These widgets should not have to be 
2761         containers just to manage the focus. For example, GtkHSV is
2762         currently a container for no good reason. Also, this cleans
2763         up the "if (is_container && is_sensitive && is_drawable)
2764         container_focus ()" mess in widget implementations.
2765
2766         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
2767         function, and have it just call gtk_widget_child_focus().
2768
2769         * gtk/gtkhsv.c: derive from widget not container
2770         
2771         Throughout: fix to reflect GtkContainer::focus change
2772         
2773 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
2774
2775         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
2776         range.  Fix bug #55921
2777
2778         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
2779         (#55920).
2780
2781 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
2782
2783         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
2784         and gdk_keymap_get_current_direction().
2785
2786         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
2787           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
2788         the current locked group, use it to set the keymap
2789         direction.
2790
2791         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
2792         to determine whether we draw a split cursor or use
2793         a jumping cursor based on the current direction.
2794
2795         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
2796         Obey the split cursor setting. 
2797
2798 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
2799
2800         * gtk/gtkimmulticontext.c (activate_cb): Only activate
2801         when toggling on, not when toggling off... (#55906)
2802
2803 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
2804
2805         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
2806         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
2807         in docs. (#55812, Vitaly Tishkov)
2808
2809 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
2810
2811         * demos/gtk-demo/main.c (create_tree): Changed signal name from
2812         selection_changed to changed in signal connection to GtkTreeSelection,
2813         also used g_signal_connectc since GtkTreeSelection is now a GObject.
2814
2815 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
2816
2817         * gtk/gtktreeselection.c: Now it's a GObject instead of a
2818         GtkObject.  The GtkTreeSelection::selection_changed signal is now
2819         the GtkTreeSelection::changed signal.
2820
2821         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
2822         object.
2823
2824         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
2825         object.
2826
2827 2001-06-07  Havoc Pennington  <hp@redhat.com>
2828
2829         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
2830
2831 2001-06-07  Havoc Pennington  <hp@redhat.com>
2832         
2833         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
2834         (not tested yet because with absolute path to srcdir I can't build
2835         atk, but it was broken anyway so this may help) 
2836
2837 2001-06-07  Havoc Pennington  <hp@redhat.com>
2838
2839         * configure.in: output m4macros/Makefile
2840         
2841 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
2842
2843         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
2844         buttons.  Fixes #55460 reported by matthiasc@poet.de.
2845
2846 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
2847
2848         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
2849         expansion/collapsing so it only happens in one place.
2850         (gtk_tree_view_real_expand_row): ditto.
2851
2852 2001-06-07  Havoc Pennington  <hp@redhat.com>
2853
2854         * tests/Makefile.am: add missing -I flag
2855
2856         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
2857
2858         * configure.in: use pkg-config to see if GModule is
2859         supported; fix to properly turn on included loaders 
2860         when GModule isn't supported; don't use AC_CHECK_LIB 
2861         when libs are not installed yet
2862
2863         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
2864
2865         * Makefile.am (SUBDIRS): add m4macros subdir
2866
2867         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
2868         dependencies also.
2869
2870 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
2871
2872         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
2873         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
2874
2875 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
2876
2877         * gtk/gtktreeview.c
2878         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
2879         bindings to expand and collapse rows.
2880         (gtk_tree_view_real_select_cursor_parent): New key binding.
2881         (gtk_tree_view_real_toggle_cursor_row): New key binding.
2882
2883         * gtk/gtkmarshal.list: new
2884         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
2885
2886 2001-06-06  Havoc Pennington  <hp@redhat.com>
2887
2888         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
2889
2890         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
2891         Down to move visually rather than logically, since it confuses 
2892         people. Add -/+ and Ctrl--/+ bindings for logical movement.
2893
2894 2001-06-06  Alex Larsson  <alexl@redhat.com>
2895
2896         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
2897         Fix up error messages.
2898
2899 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
2900
2901         * gtk/gtktooltips.h: Include gtkwidget.h 
2902         (#55798, Karl Nelson)
2903
2904         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
2905         a valid latin-1 character. (Marc Lehmann, #35467)
2906
2907         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
2908         (Marc Lehmann, #35467)
2909         
2910 2001-06-05  Alex Larsson  <alexl@redhat.com>
2911
2912         * demos/gtk-demo/appwindow.c (do_appwindow):
2913         Don't swap the order of the args to gtk_widget_destroyed.
2914
2915         * tests/testgtk.c (destroy_properties):
2916         Don't crash when the properties window is destroyed.
2917
2918         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
2919         Use with_mnemonics to handle the case of stock items with
2920         underscores in them.
2921
2922 2001-06-05  Havoc Pennington  <hp@redhat.com>
2923
2924         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
2925         gtk_text_iter_reorder
2926
2927 2001-06-05  Havoc Pennington  <hp@redhat.com>
2928
2929         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
2930
2931 2001-06-05  Havoc Pennington  <hp@redhat.com>
2932
2933         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
2934         to the range that was set
2935
2936         * gtk/gtkrange.c: add value_changed signal, primarily 
2937         intended for use with GtkScale
2938         (gtk_range_set_increments): new function
2939         (gtk_range_set_range): new function with weird name
2940         (gtk_range_set_value): new function
2941         (gtk_range_get_value): new function
2942
2943         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
2944         from gtk_spin_button_get_value_as_float(). Compat #define
2945         added for get_value_as_float.
2946
2947         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
2948
2949         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
2950
2951 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
2952
2953         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
2954
2955 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
2956
2957         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
2958
2959         * tests/testgtk.c (create_tooltips): Remove usage of
2960         gtk_widget_set().
2961
2962 2001-06-05  Havoc Pennington  <hp@redhat.com>
2963
2964         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
2965
2966         Applying patch from Jeff Franks, with function docs added.
2967         
2968         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
2969         remove call to set_mnemonic_widget, change docs a bit.  
2970
2971         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
2972         new function
2973
2974         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
2975         new function
2976
2977         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
2978
2979         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
2980         function
2981         (gtk_radio_button_new_with_mnemonic_from_widget): new function
2982
2983         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
2984         new function
2985
2986         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
2987         function        
2988
2989         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
2990         auto-selection of mnemonic widget.
2991
2992 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
2993
2994         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
2995         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
2996         (gtk_tree_view_column_set_min_width): ditto.
2997
2998 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
2999
3000         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
3001         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
3002
3003 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
3004
3005         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
3006         gtk_clist_thaw().
3007
3008 2001-06-04  Havoc Pennington  <hp@pobox.com>
3009
3010         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
3011         releases for buttons 6, 7
3012
3013 2001-06-04  Havoc Pennington  <hp@redhat.com>
3014
3015         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
3016         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
3017         #55562
3018
3019 2001-06-04  Havoc Pennington  <hp@redhat.com>
3020
3021         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
3022         where text_view->layout == NULL by assuming its size is 0, 
3023         i.e. same as if we haven't done any reflow. Reported by 
3024         Hidetoshi Tajima #55448 
3025
3026 2001-06-04  Havoc Pennington  <hp@redhat.com>
3027
3028         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
3029         and 7 for scroll left/right, from Thomas Broyer
3030
3031 2001-05-10  Havoc Pennington  <hp@redhat.com>
3032
3033         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
3034         we need to parse the xsetting as if it were an RC file string.
3035
3036         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
3037         value of palette from settings, not from static variable
3038
3039         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
3040         xsettings translation table
3041
3042         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
3043         hardcoding the toolbar style conflicts with new customizable 
3044         toolbar style philosophy
3045         (gtk_toolbar_class_init): add settings for default toolbar style;
3046         these are used unless the app specifically forces a toolbar style
3047
3048         * gtk/gtksettings.c (settings_install_property_parser): only
3049         return at the start if we warn and parser == NULL
3050
3051         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
3052         palette changed handler so we don't notify dead color selections
3053
3054         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
3055         xthickness/ythickness of 0 or 1 properly 
3056         (gtk_default_draw_resize_grip): clear the background behind the
3057         resize grips, and align to bottom right if we square the 
3058         area to be drawn.
3059
3060         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
3061         statusbar label to 1, so it doesn't make toplevels resize oddly
3062         (gtk_statusbar_size_request): add grip size to request
3063         (gtk_statusbar_size_allocate): hack so the hbox still works with 
3064         the grip size in the request
3065
3066         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
3067         bug where showing all on a toplevel makes the toolbar 
3068         button text appear despite the toolbar mode
3069
3070         * gtk/gtkmenubar.c: add internal padding style property
3071
3072         * gtk/gtktoolbar.c: Add internal padding style property; add
3073         shadow type style property
3074
3075         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
3076         state; and put Container::border_width outside the frame
3077
3078         * gtk/gtktextview.c: don't draw focus rectangle if we're in
3079         interior focus mode, we just use blinking cursor
3080
3081 2001-06-04  Havoc Pennington  <hp@redhat.com>
3082
3083         * configure.in: Make gdk-pixbuf have same version number as GTK
3084
3085 2001-06-04  Havoc Pennington  <hp@redhat.com>
3086
3087         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
3088         digits greater than 6. If there actually are limits (which there
3089         likely aren't), should clamp to them not warn.
3090         (gtk_spin_button_new_with_range): don't take log of 0
3091         (gtk_spin_button_size_request): use digits to compute size
3092         request, rather than step increment.
3093
3094         * tests/testgtk.c (create_spins): test larger values of digits
3095         
3096         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
3097         font on map not expose, so we don't get weirdness during scrolling
3098
3099 2001-06-04  Havoc Pennington  <hp@redhat.com>
3100
3101         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
3102         Sam Solon, bug #54577, update value even if not drawable.
3103
3104 2001-06-04  Havoc Pennington  <hp@redhat.com>
3105
3106         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
3107         SCROLL_LEFT, reported by Thomas Broyer.
3108
3109 2001-06-04  Havoc Pennington  <hp@redhat.com>
3110
3111         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
3112         Process updates immediately, to prevent funny lag effect
3113         when scrolling, at some mild potential efficiency cost.
3114
3115 2001-06-04  Havoc Pennington  <hp@redhat.com>
3116
3117         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
3118         slider on the click.
3119
3120 2001-06-03  Havoc Pennington  <hp@pobox.com>
3121
3122         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
3123         hscale/vscale details, so we can use it for scrollbar as well.
3124
3125         * tests/testgtk.c (reformat_value): honor digits from GtkScale
3126
3127         * gtk/gtkenums.h (GtkTroughType): Remove this enum
3128         (GtkScrollType): add START and END from GtkTroughType
3129
3130         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
3131         its x/y arguments
3132
3133         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
3134         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
3135         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
3136         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
3137         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
3138
3139         Notable changes in the process:
3140          
3141         - stepper_size style property is the height for vertical 
3142           ranges, width for horizontal; the other dimension matches
3143           the trough size
3144         - add ability to do NeXT-style steppers (and several other styles
3145           that don't make any sense)
3146         - added min_slider_length, fixed_slider_length properties to
3147           GtkScrollbar
3148         - cleaned some private (or at least useless) functions out of
3149           gtkscale.h    
3150         - moved bindings to GtkScale from subclasses, even arrow keys,
3151           since blind users don't know scale orientation.
3152         - change move_slider action signal to use new GtkScrollType,
3153           remove GtkTroughType argument
3154         - digits rounds the values a range will input to the given 
3155           number of decimals, but will not try to force adjustment 
3156           values set by other controllers. That is, we no longer
3157           modify adjustment->value inside a value_changed handler.
3158         - added getters for GtkScale setters
3159         - middle-click begins a slider drag
3160         
3161 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
3162
3163         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
3164         getting the focus code to work.
3165         (gtk_tree_view_class_init): Add a bunch of keybindings.
3166
3167         * gtk/gtktreeviewcolumn.c
3168         (gtk_tree_view_column_set_cell_data_func):
3169         s/GtkCellDataFunc/GtkTreeCellDataFunc.
3170         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
3171         of "properties_changed" to help justify the death of the latter
3172         signal. (-:
3173
3174         * tests/testtreefocus.c (main): Let some columns be focussable to
3175         test focus better.
3176
3177 2001-06-01  Havoc Pennington  <hp@redhat.com>
3178
3179         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
3180         
3181         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
3182         overwrite in overwrite mode if we already deleted the selection
3183         and replaced it with new text.  
3184
3185         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
3186         selection to an empty range, clear the clipboard if we owned it.
3187         (gtk_label_set_selectable): give up selection if we become
3188         unselectable.
3189         (gtk_label_state_changed): override state changed to unselect text
3190         when insensitive
3191         (get_text_callback): add paranoia check that indexes aren't
3192         outside of label->text
3193         (gtk_label_select_region): make -1 for start_offset mean "end of
3194         label," for consistency with GtkEditable
3195
3196         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
3197         GTK_DIALOG_NO_SEPARATOR flag
3198
3199 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
3200
3201         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
3202         notifications on non-existant "enable_arrow_keys".
3203         (#53753, Skip Montanaro)
3204
3205 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
3206
3207         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
3208         GDK_TYPE_RECTANGLE.
3209
3210         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
3211         of allocation argument be GDK_TYPE_RECTANGLE.
3212
3213 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
3214
3215         * gtk/gtkoptionmenu.c: Account for the fact that the border
3216         width is _outside_ the window. (Fixes #54585, bug found
3217         by Bastien Nocera.)
3218
3219 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
3220
3221         * gtk/gtksettings.c (gtk_settings_get_property): Validate
3222         value from GDK settings against parameter spec.
3223
3224         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
3225         to temporary values and use g_value_transform(), since
3226         thinking that GValue was going to be easy or efficient
3227         to use was, of course, a mistake.
3228
3229         * gtk/gtksettings.c: Add cursor blink setting.
3230         
3231         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
3232
3233         * gtk/gtkentry.c: Add cursor blinking.
3234
3235         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
3236         cursor blink global settings.
3237
3238         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
3239         for :text_position in places where it is missing.
3240
3241 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
3242
3243         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
3244
3245 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
3246
3247         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
3248         not pkg-config. (#51032)
3249
3250         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
3251         (fixes #51952, James Henstridge)
3252         
3253 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
3254
3255         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
3256         Rename to the more correct gtk-go-up.
3257
3258         * gtk/stock-icons/stock_menu_sort_ascending.png:
3259         Added new file.
3260         
3261         * gtk/stock-icons/stock_menu_sort_descending.png:
3262         Changed to show descending instead of ascending.
3263
3264         * gtk/gtkiconfactory.c:
3265         Added menu size icon to sort ascending.
3266
3267         * gtk/stock-icons/Makefile.am:
3268         Added stock_menu_sort_ascending.png.
3269         
3270         * gtk/gtkseparatormenuitem.c:
3271         Use correct typenames.
3272
3273 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
3274
3275         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
3276         gulong as in GSignal.
3277
3278 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
3279
3280         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
3281         instances of GtkCellRenderer in code (all but dnd icon code).
3282         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
3283         there, and I can do multiple Cells per column.
3284
3285         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
3286
3287         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
3288         when model was unreffed prior to removing the row reference.
3289
3290 2001-05-25  Havoc Pennington  <hp@redhat.com>
3291
3292         * gtk/gtkiconfactory.c: fix so that default icons are created if 
3293         you call gtk_stock_list_ids()
3294
3295         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
3296         in list
3297
3298 2001-05-25  Havoc Pennington  <hp@redhat.com>
3299
3300         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
3301         set can render without falling back to missing image icon
3302
3303         * gtk/gtktextview.c (gtk_text_view_size_request): request full
3304         size of text, instead of random values
3305
3306         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
3307         size of tree view, instead of random values
3308
3309         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
3310         image in an appropriate size
3311
3312         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
3313         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
3314
3315         Throughout: fix GTK_STOCK_BUTTON_ instances
3316         
3317         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
3318         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
3319         Add a bunch of new stock items/icons
3320
3321         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
3322         new function, convenience for inserting columns with a data func
3323
3324         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
3325         (_gtk_icon_factory_list_ids): use list of all factories to
3326         generate a list of all known IDs
3327
3328         * gtk/gtkstock.c (gtk_stock_list_ids): replace
3329         gtk_stock_list_items() with a function that returns all IDs known
3330         including those for GtkIconFactory.
3331
3332 2001-05-25  Hans Breuer  <hans@breuer.org>
3333
3334         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
3335         work -> check boxes and radio buttons are drawn now, even on win9x.
3336         Improved line settings a bit, still no clue how to get really dotted
3337         lines on win9x, on NT it's PS_ALTERNATE.
3338
3339         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
3340         GDK_HINT_MIN_SIZE as well
3341
3342         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
3343
3344         * gtk/gtk.def : updated
3345
3346         * gtk/gtktreeprivate.h : change column_drop_func to be a function
3347         pointer not a function pointer pointer
3348
3349         * tests/testdnd.c : include <stdlib.h> for putenv prototype
3350
3351         * tests/testsocket.c : made it compile on win32 again
3352
3353         * tests/makefile.msc : one more test-app uses prop-editor.obj
3354
3355 2001-05-22  Havoc Pennington  <hp@pobox.com>
3356
3357         * gtk/gtkbin.c (gtk_bin_get_child): New function
3358
3359 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
3360
3361         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
3362         to ignore when doing compose processing.
3363
3364 2001-05-22  Joe Shaw  <joe@ximian.com>
3365
3366         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
3367         Simplify as suggested by Havoc. Just get the last iter and work
3368         backward to the tag instead of getting a line and working back from
3369         there. Fixes passing in an invalid offset to
3370         iter_init_from_byte_offset().
3371
3372 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
3373
3374         * gtk/gtktreeview*.h: 
3375         * gtk/gtkcell*.h:
3376         * gtk/gtk*store.h:
3377         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
3378         macros to all objects.
3379
3380 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
3381
3382         * gtk/gtkcellrenderertext.c
3383         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
3384         with very large (TM) amounts of text.  May be moved to
3385         GtkCellRenderer in the future, though I'm not sure it wants to be
3386         this accessible.
3387
3388         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3389         More sanity brought to this class.  I like it.
3390
3391         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
3392         case.  Kids, don't try this at home.
3393
3394         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
3395         convenience function.
3396
3397         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
3398
3399 2001-05-21  Alexander Larsson  <alexl@redhat.com>
3400
3401         * gtk/gtkfontsel.c:
3402         Added properties. Based on patch by Lee Mallabone.
3403
3404         * gtk/gtkruler.c:
3405         * gtk/gtkhruler.c:
3406         * gtk/gtkvruler.c:
3407         * gtk/gtktext.c:
3408         * gtk/gtktextview.c:
3409         Converted GtkArg to GParam. Based on patches by John Margaglione.
3410
3411         * tests/Makefile.am:
3412         * tests/testtext.c:
3413         Add a property editor to testtext.
3414         
3415 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
3416
3417         * gtk/gtk{h,v,}paned.c: Only show the separator if 
3418
3419         * configure.in: Fixed reversed conditional causing all image
3420         libraries to be linked in.
3421
3422 2001-05-21  Joe Shaw  <joe@ximian.com>
3423
3424         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
3425         that top_y needs to be >= 0.
3426
3427 2001-05-11  Havoc Pennington  <hp@pobox.com>
3428         
3429         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
3430         losing connection to the X server.
3431
3432 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
3433
3434         * configure.in: Start checks for X from pangox/pangoxft
3435         CFLAGS to avoid duplicate libraries.
3436
3437         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
3438
3439         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
3440         to include gobject.
3441         
3442 2001-05-18  Alexander Larsson  <alexl@redhat.com>
3443
3444         * gtk/gtkspinbutton.c:
3445         Convert GtkArgs to GParams. Based on patch by John Margaglione.
3446         Also do size request reasonable for MAXDOUBLE. Previously it printed
3447         the limits to a buffer and overran it. Instead do it using log10() and
3448         limit the width to 10 digits.
3449         
3450         * gtk/gtkwidget.c (gtk_widget_get_property):
3451         Correctly handle setting the parent property to NULL.
3452
3453 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
3454
3455         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
3456         style attributes even if the widget isn't realized.
3457
3458         * demos/gtk-demo/main.c: Use a slightly smaller font.
3459
3460 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
3461
3462         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
3463         This is something that only a widget writer would ever want
3464         to change.
3465
3466         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
3467         gtk_signal_emit_by_name().
3468
3469         * gtk/gtkviewport.c: Fix some warnings.
3470
3471         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
3472         allowing the requisitions of multiple widgets to be grouped
3473         together.
3474
3475         * tests/testgtk.c: Add GtkSizeGroup test
3476
3477         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
3478
3479         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
3480         warnings.
3481
3482         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
3483
3484 2001-04-28  Martin Baulig  <baulig@suse.de>
3485
3486         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
3487         to gtk_image_menu_item_set_icon() and made it work if there's already
3488         an image.
3489         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
3490         (gtk_image_menu_item_new_with_label): New function.
3491
3492 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
3493
3494         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
3495         highlighting code!!!!  The result is okay so long as you don't try
3496         to stress it.  It also highlights a bug in the TextView so it's in
3497         an unproportional font right now until it's fixed.
3498
3499         *demos/gtk-demo/*.c: Clean up code a bit to make it
3500         ugly-parser(TM) friendly. (-:
3501
3502 2001-05-17  Joe Shaw  <joe@ximian.com>
3503
3504         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
3505         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
3506         if it is only partially onscreen.
3507
3508 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
3509
3510         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
3511         not by characters.
3512
3513         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
3514         are not zero or one; that is, when graphemes of multiple characters
3515         are involved.
3516
3517         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
3518         FIXME.
3519
3520 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
3521         
3522         * gtk/gtkbbox.c:
3523         Add properties, based on patch by Lee Mallabone.
3524
3525         * gtk/gtknotebook.c:
3526         * gtk/gtktoolbar.c:
3527         Convert from GtkArg to GParam, based on patch by John Margaglione.
3528         
3529         * gtk/gtkhscale.c:
3530         * gtk/gtkvscale.c:
3531         * gtk/gtkhscrollbar.c:
3532         * gtk/gtkvscrollbar.c:
3533         * gtk/gtkrange.c:
3534         Move adjustment property to GtkRange.
3535
3536         * gtk/gtklabel.c:
3537         Setup mnemonics on property changes
3538
3539         * gtk/gtkwidget.c (gtk_widget_get_property):
3540         GdkExtensionMode is an enum, not a flag. Set it with
3541         g_value_set_enum ().
3542
3543         * tests/prop-editor.c:
3544         Better propery editor.
3545
3546         * tests/testgtk.c:
3547         Add new property test. Pass zero to the property editor to
3548         get properties from all derived types.
3549         
3550 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
3551
3552         * autogen.sh (have_automake): Require libtool-1.4,
3553         automake-1.4p1.
3554
3555         * acinclude.m4: Remove libtool macros.
3556
3557         * gdk-pixbuf/Makefile.am: Add dependencies to loade
3558         modules.
3559
3560         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
3561         for libgdk.
3562
3563         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
3564         libgdk.la for libgtk.
3565
3566         * modules/input/Makefile.am: Make modules have full
3567         dependencies.
3568
3569 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
3570
3571         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
3572         #54699 where paths weren't being checked for correctness.
3573
3574 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
3575
3576         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
3577         in any order you wan, whether or not the column is added to the
3578         tree, or the tree is realized.  Yay!
3579
3580         * gtk/gtktreeviewcolumn.c
3581         (gtk_tree_view_column_setup_sort_column_id_callback): handle
3582         sorting columns a lot saner
3583
3584         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
3585         new function to actually set wether or not a column is
3586         reorderable.
3587
3588         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
3589         if we have 'em.
3590
3591         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
3592         Fix nasty bug where we were showing the button just before
3593         realizing it.  As a result, the parent window was
3594         tree_view->window instead of tree_view->priv->header_window.
3595
3596         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
3597         to let you easily reorder a list or tree.
3598
3599 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
3600
3601         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
3602         from args to properties.
3603
3604 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
3605
3606         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
3607         from args to properties. (#51957)
3608
3609         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
3610         calls to after ->set_property call.
3611
3612 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
3613
3614         * tests/prop-editor.c: Block against redundant changes.
3615
3616         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
3617         properties.
3618
3619 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
3620
3621         * gdk/gdkpixmap.h: Remove creative formatting.
3622
3623 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
3624
3625         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
3626         property API. (#51669)
3627
3628         * gtk/gtkscale.c: Patch from John Margaglione converting to
3629         property API. (#51891)
3630
3631         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
3632         to property API. (#50985)
3633
3634 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
3635
3636         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
3637         buffering state across expose event, so we still call end_paint().
3638
3639 2001-05-11  Alexander Larsson  <alexl@redhat.com>
3640
3641         * gtk/gtkhsv.c (paint_triangle):
3642         Expose the ring in the triangle at the correct place when
3643         exposing just a part of the triangle.
3644
3645         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
3646         Return FALSE, or window focusing will not work.
3647
3648 2001-05-11  Havoc Pennington  <hp@pobox.com>
3649
3650         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
3651         #54144
3652
3653         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
3654         bug #54330
3655
3656 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
3657
3658         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
3659         propagate exposes to NULL child.
3660
3661         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
3662         against not having one of the scrollbars.
3663
3664         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
3665         we don't keep a mnemonic window if we have no mnemonic installed.
3666
3667 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
3668
3669         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
3670         it has the _important_ side effect of initializing a class.
3671
3672 2001-05-10  Alexander Larsson  <alexl@redhat.com>
3673
3674         * gdk/linux-fb/gdkprivate-fb.h:
3675         Make sure you can compile out the implementation/wrapper assert
3676         macros.
3677
3678         * gdk/linux-fb/gdkdrawable-fb2.c:
3679         Check implementation/wrappers, initialize type for pixmap dummys.
3680
3681         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
3682         Hide the cursor if reading from the screen.
3683
3684         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
3685         Fix sign bug in tiling code.
3686
3687         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
3688         Handle background pixmaps.
3689
3690 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
3691
3692         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
3693         function to let user control where columns are dragged.
3694
3695         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
3696         Escape is pressed.
3697
3698 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
3699
3700         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
3701         "columns_changed" signal.
3702         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
3703         motion code to draw arrows to the side if indicator is outside the
3704         widget.
3705         (gtk_tree_view_map_expanded_rows): Implement.
3706
3707 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3708
3709         * demos/testpixbuf-save.c: 
3710         * demos/testpixbuf-drawable.c:
3711         Include gdkfb.h on linux-fb.
3712
3713 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3714
3715         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
3716         New function for getting toplevel window at position.
3717         (gdk_drag_find_window): Use get_toplevel_window () instead
3718         of gdk_window_get_pointer(). (gdk_drag_status): Use
3719         correct context for getting window.
3720
3721         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
3722         g_strdup the atom name.
3723
3724         * gdk/linux-fb/gdkwindow-fb.c:
3725         Costmetic fix.
3726
3727         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
3728         Add code for changing cursor on linux-fb backend (same as
3729         win32).
3730
3731 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
3732
3733         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
3734         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
3735         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
3736         report was not for the development branch of GTK+, but it applies
3737         anyways).
3738
3739 2001-05-04  Havoc Pennington  <hp@redhat.com>
3740
3741         * configure.in: fix some shell typos
3742
3743         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
3744
3745         * gtk/gtkimage.c: handle animations
3746
3747         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
3748         border_width * 2, not just border_width
3749
3750         * gtk/gtkscale.c: add "format_value" signal to allow people
3751         to override the way values are drawn.
3752         (gtk_scale_get_value_size): fix width/height mistake,
3753         and compute size from actual displayed text, not 
3754         from made-up text.
3755
3756         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
3757         signal registration
3758
3759         * tests/testtext.c: Add "Remove all tags" menu item for testing
3760
3761         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
3762
3763         * demos/gtk-demo/main.c (main): add hack so we can find modules
3764         without installing gtk
3765
3766         * demos/gtk-demo/textview.c (insert_text): demo font scaling
3767
3768         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
3769         factor)
3770         (gtk_cell_renderer_text_set_property): remove some bogus
3771         g_object_notify
3772
3773         * gtk/gtktexttag.c: add "scale" property which is a font scaling
3774         factor
3775
3776         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
3777         to layout
3778
3779         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
3780         gtk_text_iter_is_first
3781
3782 2001-01-06  Hans Breuer  <hans@breuer.org>
3783
3784         * gdk/gdk.def : updated exports
3785
3786         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
3787         gdk won't compile anymore
3788  
3789         * gdk/win32/gdkevents-win32.c : initialize ret_val when
3790         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
3791         Improved gdk_flush () to not only do pending drawing operations
3792         but also process all currently pending events. This should make
3793         the behaviour more similar to the X11 version.  
3794
3795         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
3796         option needs to be set even if there is no GDK_GC_BACKGROUND.
3797         (gdk_win32_hdc_get) : use predraw_set_background () independent
3798         of value_mask. This allows to draw dashed lines leaving the original
3799         background intact.
3800
3801         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
3802         after processing, because we can't reuse it as the X11 version does.
3803
3804         * gtk/gtk.def : updated exports
3805
3806         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
3807         would like to get rid of this file again, and use straight
3808         makefile.msc again, as the other Gtk+ subdirs do)
3809
3810         * test/makefile.msc (new file) : build the test apps here
3811
3812 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
3813
3814         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
3815         strike-through setting
3816         (gdk_draw_layout_line_with_colors): Render strike-through
3817
3818 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
3819
3820         * Release 1.3.5
3821
3822         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
3823
3824         * NEWS: Updated
3825
3826         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
3827         Makefile breakage.
3828
3829 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
3830
3831         * demos/gtk-demo/images.c (progressive_timeout): Fix
3832         typo in filename.
3833
3834         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
3835         out FIXME warning; just too annoying.
3836
3837 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
3838
3839         * gdk/linux-fb/gdkcolor-fb.c:
3840         Better error messages.
3841
3842         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
3843         Initialize abs_x and abs_y.
3844         
3845         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
3846         Correct handling of stipple offset.
3847
3848         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
3849         Treat directcolor framebuffers as truecolor.
3850         
3851 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
3852
3853         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
3854         dependency on Atk for accessibility support.
3855
3856         * configure.in **/Makefile.am: Major reworking of substituted
3857         variables for CFLAGS/LIBS to make a lot more sane and 
3858         keep the the compile/link lines a bit shorter.
3859
3860         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
3861
3862 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
3863
3864         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
3865         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
3866         use _gtk_boolean_handled_accumulator.
3867
3868 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
3869
3870         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
3871         to fix things so clicking inside selection leaves cursor
3872         at point where clicked. (#50324)
3873
3874         * gtk/gtksettings.c (gtk_settings_class_init): Restore
3875         sane value for default double click time.
3876
3877         * tests/testtext.c (test_init): Really path to input modules.
3878
3879 2001-05-03  Sven Neumann  <sven@convergence.de>
3880
3881         * demos/testpixbuf-save.c: include target-specific headers as
3882         done in testpixbuf-drawable.c
3883
3884 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
3885
3886         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
3887         new_text_length appropriately when we run into the 
3888         size limit for the entry. (#53445, reported by Jeff Franks)
3889
3890         * tests/testgtk.c (create_entry): Remove most of the
3891         property toggle buttons. Replace with a "Props" button
3892         that brings up a property editor.
3893
3894         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
3895         Split the property editor code out for reuse, improve.
3896
3897 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
3898
3899         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
3900         trap errors around calls to XSetInputFocus since we have
3901         no way of knowing reliably whether we are viewable or
3902         not. (#53947)
3903
3904 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
3905
3906         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
3907         fix bug in dropping columns.  Moving columns now basically works
3908         modula some fine tuning.
3909
3910 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
3911
3912         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
3913         autoscroll support.  It mostly works, but could use some fine
3914         tuning.
3915         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
3916         Actually move the column.
3917
3918 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
3919
3920         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
3921           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
3922           New default theme! A slighly improved version of the 2.0 Raleigh
3923           theme, with Windows-esque focus/drawing default. 
3924           (GtkWidget::interior_focus defaults to TRUE.)
3925
3926         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
3927
3928 2001-04-30  Havoc Pennington  <hp@pobox.com>
3929
3930         * tests/testtext.c (line_numbers_expose): fix to work with
3931         gtk_paint_layout change
3932
3933 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
3934
3935         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
3936           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
3937           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
3938           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
3939
3940         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
3941           with GtkWidget::interior_focus = TRUE better.
3942
3943         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
3944         ::default_outside_border for more flexibility.
3945
3946         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
3947         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
3948         change that had to be made with g_object_get.
3949
3950 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
3951
3952         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
3953         (gtk_tree_view_move_column_after): Clean up interface. 
3954
3955 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
3956
3957         * gtk/gtkpacker.h:
3958         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
3959          to gtkenum.h.
3960
3961         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
3962         handled in switch).
3963
3964         * gtk/Makefile.am:
3965         (gtk.defs): generate enum portions with  glib-mkenums.
3966         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
3967         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
3968         
3969         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
3970         addition.
3971
3972         * docs/Changes-2.0.txt: keep a note on signal handlers now
3973         not getting emitted during the emission they were connected within.
3974
3975 2001-04-28  Havoc Pennington  <hp@pobox.com>
3976
3977         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
3978
3979 2001-04-24  Havoc Pennington  <hp@redhat.com>
3980
3981         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
3982         (gtk_text_layout_move_iter_to_next_line): fix these two for
3983         invisible text, lots of other stuff still hosed.
3984
3985         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
3986         new function, replaces the get/set palette stuff. This function 
3987         is intended for use by libgnomeui which should set the hook to a
3988         thing which sets the palette in GConf, and we need the
3989         GConf-to-xsettings proxy which will result in the change being
3990         propagated back to the GTK app.
3991
3992         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
3993         about unusable signals that it may be because the signal has 
3994         parameters.
3995
3996         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
3997         style, otherwise gtkrc.c won't know to create a new GtkStyle for
3998         it.
3999         (gtk_widget_modify_color_component): call
4000         gtk_widget_modify_style() so the rc style will get copied.
4001         (gtk_widget_modify_font): ditto
4002
4003         * gtk/gtkrc.c: make a couple variables static
4004
4005         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
4006         help button by default, since it does nothing
4007
4008         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
4009         around with UI
4010
4011         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
4012         so we can have tooltips
4013
4014         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
4015         can have tooltips
4016
4017         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
4018         GDK_ENABLE_BROKEN, because its memory behavior is completely
4019         hosed.
4020
4021         * gtk/gtknotebook.c: remove key press handler, replace with
4022         binding set, add numeric keypad support
4023
4024         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
4025
4026         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
4027
4028         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
4029         addition to plain Delete
4030
4031         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
4032         GDK_KP_Enter in addition to GDK_Return
4033
4034         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
4035         activate on entry instead of key press
4036         (gtk_font_selection_on_clist_key_press): get
4037         rid of this signal handler, not needed with new font sel.
4038
4039         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
4040         no-longer-needed emit_stop_by_name(), just return TRUE
4041
4042         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
4043         cruft, this widget is no longer focusable.
4044
4045         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
4046         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
4047         move_slider action signal, add binding set for vscale/hscale, in
4048         the process support numeric keypad
4049
4050         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
4051         make GDK_Return and GDK_KP_Enter activate the entry via 
4052         binding set, instead of hardcoded.
4053
4054 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
4055
4056         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
4057         code.  Some documentation added.
4058
4059 2001-04-27  Havoc Pennington  <hp@redhat.com>
4060
4061         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
4062
4063         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
4064
4065         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
4066         line/para separators
4067         (gtk_entry_create_layout): set single paragraph mode on the layout
4068
4069         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
4070         spacing between the image and label; instead, inside a button box 
4071         the button will get extra space that will go there, but if people 
4072         configure button box for 0 chubbiness, then there's no spacing.
4073
4074         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
4075         and min/max size style properties, so people can tune their
4076         chubbiness.
4077
4078         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
4079         functions
4080
4081         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
4082         space_style, and button_relief into style properties, remove
4083         functions for setting them
4084         
4085         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
4086         it back down
4087
4088         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
4089         types from gtk_widget_style_get
4090
4091         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
4092         with a style property.
4093
4094         * gdk/x11/gdkevents-x11.c: namespace the settings
4095
4096         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
4097
4098         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
4099         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
4100         be used. Also, translate doc strings for settings. Also, namespace
4101         the double-click-time property. Also, remove bell properties crap.
4102
4103 2001-04-27  Sven Neumann  <sven@gimp.org>
4104
4105         * Makefile.am: before creating links, check if pkg-config files
4106         exist for the default target. Otherwise link to the pkg-config files
4107         that got installed with this build.
4108
4109 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
4110
4111         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
4112         dragging code.  Revealed some (potential) GdkWindow bugs.
4113
4114         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
4115         _gdk_window_init_position to the end of reparent to fix the case
4116         of reparenting when new_x != old_x and new_y != old_y.
4117
4118 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
4119
4120         * gtk/gtkentry.c (strstr_len): Fix optimization that
4121         was correct for the use here, but completely incorrect
4122         in general.
4123
4124 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
4125
4126         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
4127         until patch adding gtk_window_set_size() is recommitted. 
4128
4129         * **Makefile.am configure.in gdk/x11/gdkim-11.c
4130           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
4131           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
4132           (#10784)
4133
4134 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
4135
4136         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
4137         window == NULL in a number of cases.
4138
4139         * tests/testdnd.c: Set module path for gdk-pixbuf.
4140
4141 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
4142
4143         * gtk/Makefile.am xembed.h: File containing #defines
4144         for XEMBED protocol.
4145
4146         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
4147
4148         - Change protocol from old plug/socket specific protocol
4149           to XEMBED draft
4150         - Various fixes to work with GTK+-2.0
4151
4152         Still quite a bit of work to do here to handle initiation
4153         from the socket side (as specified by XEMBED), to handle
4154         the more advanced features of XEMBED, and to figure out
4155         a good way to handle same-app embedding with less overhead
4156         than using full XEMBED.
4157
4158 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
4159
4160         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
4161         track of whether the toplevel has the focus; only send
4162         focus-in events to the focus widget when the window
4163         actually has the focus.
4164
4165 2001-04-25  Havoc Pennington  <hp@pobox.com>
4166
4167         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
4168         were still in the header
4169
4170 2001-04-24  Alexander Larsson  <alexl@redhat.com>
4171
4172         * gtk/gtkclist.[ch]:
4173         * gtk/gtkctree.c:
4174         When there is a row highlighted for D'n'D it must alse
4175         be painted hightlighted on exposes. Otherwise exposes from
4176         the icon being dragged will mess up the hightlight.
4177
4178         * gtk/gtkfontsel.c:
4179         Don't recenter selected font when exposing the font family
4180         clist. This means you can now actually scroll the font family
4181         list.
4182
4183         * gtk/gtknotebook.c:
4184         Fix focus movement on scrolling tabs that are placed on the left
4185         and right.
4186
4187 2001-04-21  Havoc Pennington  <hp@pobox.com>
4188
4189         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
4190         empty/invisible lines.
4191
4192         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
4193         (gtk_text_iter_set_visible_line_index): new functions to set
4194         indexes excluding invisible text
4195
4196         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
4197         index
4198
4199         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
4200         (gtk_text_iter_get_visible_line_offset): new functions to 
4201         get indexes excluding invisible text
4202
4203         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
4204         bunch of extra padding that served no purpose
4205
4206         * gtk/gtkdialog.c: Make all the spacings configurable via style
4207         properties, for chubbiness configuration in themes
4208
4209         * tests/testtext.c: fix path to the immodules.
4210         
4211 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
4212
4213         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
4214         got munched by #endif.
4215
4216         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
4217
4218         * gtk/gtktreeview.c: Refactored code to clean up a number of
4219         events.
4220
4221         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
4222         values to make consistent with other functions.  Spotted by Jeff
4223         Franks <jcf@tpg.com.au>.
4224
4225         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
4226         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
4227
4228 2001-04-23  Sven Neumann  <sven@gimp.org>
4229
4230         * gtk/Makefile.am
4231         * gtk/gtkplug.c
4232         * gtk/gtksocket.c: on request of Owen, reverted my last change 
4233         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
4234
4235 2001-04-23  Sven Neumann  <sven@gimp.org>
4236
4237         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
4238         compile for non-X11 targets again
4239
4240 2001-04-20  Alexander Larsson  <alexl@redhat.com>
4241
4242         * gtk/gtkcolorsel.[ch]:
4243         API Change. Take GdkColor arguments instead of gdouble *.
4244         Leave the old gtk_color_selection_set_color for compatibility,
4245         but marked deprecated.
4246         Do correct rounding when converting RGB <-> HSV.
4247         
4248         * gtk/gtkcolorseldialog.c:
4249         * tests/testgtk.c:
4250         Use new GtkColorSelection API.
4251
4252         * gtk/gtkhsv.c:
4253         Fix problem selecting colors in triangle when Hue is 330.
4254         Fix some black dots around the HSB triangle.
4255         
4256         * gtk/gtkfilesel.c:
4257         return FALSE from the focus_in_event handler to fix focus problems.
4258
4259 2001-04-18  Havoc Pennington  <hp@redhat.com>
4260
4261         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
4262         set, so keybindings are configurable    
4263         (gtk_window_activate_default): Change to activate the focus widget
4264         instead if there's a focus widget, to be consistent with the
4265         behavior that previously existed in key_press_event
4266
4267 2001-04-18  Havoc Pennington  <hp@redhat.com>
4268
4269         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
4270
4271 2001-04-18  Havoc Pennington  <hp@redhat.com>
4272
4273         Close bug #50615:
4274         
4275         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
4276         the layout
4277
4278         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
4279
4280         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
4281
4282         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
4283         
4284         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
4285         to blue for base, in addition to bg
4286         
4287 2001-04-18  Havoc Pennington  <hp@redhat.com>
4288
4289         * tests/testgtk.c (create_image): allow shrinking the image window
4290         to test that we clip to allocation.
4291
4292         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
4293         #9845
4294
4295         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
4296
4297 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
4298
4299         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
4300         mode on shm segments to 0600. We'll see who complains.
4301
4302         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
4303         _gdk_windowing_window_destroy() AFTER recursing through
4304         children.
4305
4306         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
4307         testsocket_child on X.
4308
4309         * tests/testsocket[_child].c: Fix uses of
4310         gtk_window_get_default_accel_group().
4311
4312         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
4313
4314         * gdk/gdkimage.c: (gdk_image_get):
4315         Deal with the possibility that XGetImage() might return NULL.
4316         Allocate the GdkImagePrivate structure only after XGetImage()
4317         succeeds in order not to dereference a NULL ximage pointer.  This
4318         prevents a core dump when XGetImage() fails - which is unlikely,
4319         but can happen due to race conditions accessing the geometries of
4320         drawables.  An x error will still be triggered, but the gdk image
4321         wrapper at least wont seg fault.
4322         
4323 2001-04-18  Havoc Pennington  <hp@redhat.com>
4324
4325         * gtk/gtkimage.c: fix to properly queue resizes when the image is
4326         set
4327
4328         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
4329         if the insertion point isn't editable
4330
4331         * demos/gtk-demo/images.c: Added a GtkImage demo
4332
4333         * demos/gtk-demo/drawingarea.c: drawing area demo
4334         
4335         * demos/gtk-demo/menus.c (create_menu): cleanups
4336
4337 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
4338
4339         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
4340           gdk/x11/gdkevents-x11.c: Introduce an extra child
4341         of toplevel windows that serves to hold the focus to
4342         avoid events being delivered to embedded windows.
4343
4344         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
4345         some extra variables to clean up code and reduce the
4346         number of casts.
4347
4348         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
4349         guint for 1 bit bit fields, not gboolean.
4350
4351 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
4352
4353         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
4354         not TRUE. (Fixes #52925)
4355
4356 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
4357
4358         * Released 1.3.4
4359
4360         * NEWS: Updated
4361
4362         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
4363         use GTK_TYPE_ENUM.
4364
4365 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
4366
4367         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4368
4369         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
4370         names to compatibility #defines so docs work.
4371
4372         * gtk/gtkenums.h: Remove GtkMenuFactoryType
4373
4374         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
4375
4376         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4377
4378         * tests/testgtkrc: No magenta cursors, please.
4379
4380         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
4381
4382         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
4383         
4384 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
4385
4386         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
4387         grabs, since they are no longer necessary.
4388
4389         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
4390         by signal_connect() and call gtk_button_pressed() rather
4391         than signal_connect_after().
4392
4393         * tests/testgtk.c: Restore radio menu items to combos 
4394         since they'll look OK with Raleigh, and it is easier
4395         than finishing the process of removing them that was
4396         started earlier.
4397
4398 2001-04-16  Hans Breuer  <hans@breuer.org>
4399
4400         * gdk/gdk.def :
4401         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
4402
4403         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
4404         we are interested in the functions return value not the function address
4405         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
4406
4407         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
4408
4409 2001-04-14  Hans Breuer  <hans@breuer.org>
4410
4411         * gdk/gdk.def :
4412         * gdk/makefile.msc : updated
4413
4414         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
4415         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
4416         (the testgtk::text backgound pixmap is drawn again)
4417         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
4418         Win32 Pango change
4419         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
4420
4421         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
4422         Not sure if the returned settings have the right unit, because I couldn't
4423         find any docs for the X version ...
4424
4425         * gtk/gtk.def :
4426         * gtk/makefile.msc.in : updated
4427
4428 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4429
4430         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
4431         wording problems. (Compared to version from Johannes Stezenbach to
4432         check correctness.)
4433
4434 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
4435
4436         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
4437         this to compile.
4438
4439 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
4440
4441         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
4442         not pixbufpos.
4443
4444         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
4445
4446         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
4447         are unsigned insts, therefore use g_value_set_uint.
4448         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
4449
4450 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
4451
4452         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
4453
4454         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
4455         GTK_TYPE_STRING.
4456
4457         * gtk/gtktreeview.c: New functions to allow initial column
4458         dragging work.
4459
4460         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
4461
4462         * tests/testtreefocus.c: give dave some love.
4463
4464         * tests/testtreesort.c: Modify test to check really long samples.
4465
4466 2001-04-11  Alexander Larsson  <alexl@redhat.com>
4467
4468         * gtk-2.0.m4: Pass pkg-config options
4469         before the other args so it works even if
4470         POSIXLY_CORRECT is set.
4471
4472 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
4473
4474         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
4475         0, interface 0).
4476
4477 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
4478
4479         * gtk/gtkcalendar.c (gtk_calendar_button_press):
4480         check for action_func != NULL
4481
4482 2001-04-04  Sven Neumann  <sven@gimp.org>
4483
4484         * tests/testgtk.c (test_init): corrected path to gtk.immodules
4485
4486 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
4487
4488         * Released Gtk+-1.3.3.
4489
4490 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
4491
4492         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
4493
4494 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
4495
4496         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
4497         files to/from source dir. (if we don't stay in builddir, we
4498         can't reach make-inline-pixbuf.
4499
4500         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
4501         deps.
4502
4503         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
4504         ages 0).
4505
4506 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
4507
4508         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
4509         moved to the GtkTreeSortable interface.
4510
4511         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4512         Make more efficient (fixes #50262).
4513
4514 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
4515
4516         * NEWS: Updated.
4517
4518         * configure.in: Remove support for uninstalled glib.
4519
4520         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
4521         so as not to stop emission.
4522
4523         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
4524         is no longer supported.
4525
4526         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
4527         into tests, change build order to build modules before
4528         gtk/.
4529
4530         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
4531         to here.
4532
4533 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
4534
4535         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
4536         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
4537         GPatternSpec. this is actually unlikely to cause breakage in
4538         third-party apps since except for gle, pretty much ever caller
4539         passes NULL here.
4540
4541         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
4542
4543         * *.c: use g_pattern_*() API.
4544
4545         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
4546
4547         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
4548         directions aren't passed in.
4549
4550         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
4551         functionality to be usable from gtkstyle.c as well, give precedence
4552         for conversion to user-supplied parsers.
4553         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
4554
4555         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
4556         _gtk_settings_parse_convert() for rcporperty value conversion.
4557
4558 2001-04-03  Alexander Larsson  <alexl@redhat.com>
4559
4560         * gdk/linux-fb/gdkevents-fb.c:
4561         Add empty gdk_setting_get().
4562
4563 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
4564
4565         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
4566         variable names.
4567         
4568         * gtk/makeenums.pl: touch this so enum files get remade.
4569
4570 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
4571
4572         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
4573         work again when not sorted.
4574
4575         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
4576         and "expand_row" signal, closing bug 52578.
4577
4578         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
4579         support.
4580
4581         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
4582         support.
4583
4584 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4585
4586         * gdk/gdkevents.h: Add GdkEventSetting event for notification
4587         of changes to system settings, gdk_setting_get() to retrieve
4588         a single system setting.
4589
4590         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
4591         to the draft XSETTINGS mechanism.
4592
4593         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
4594         XSETTINGS.
4595
4596         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
4597         of GDK settings changes to the GtkSettings object.
4598
4599         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
4600         double-click-timeout property to GDK.
4601
4602         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
4603         Define GDK boxed types here.
4604
4605         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
4606         gdk/gdkenumtypes.[ch] for enum definitions.
4607
4608         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
4609         * gtk/gtk-boxed.defs: Comment out GDK types
4610         * gtk/gtktypeutils.h: Remove GDK types
4611         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
4612
4613 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
4614
4615         * Applied patch from Ron Steinke to add signal accumulators
4616         so that signals with the convention 'TRUE return means
4617         handled' stop emission on a TRUE return.
4618
4619         * gtk/gtkmain.[ch]: Add private accumulator 
4620         _gtk_boolean_handled_accumulator, used throughout GTK+.
4621         
4622         * gtk/gtkspinbutton.c: Add accumulator for ::output.
4623
4624         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
4625         
4626         * gtk/gtkwidget.c: Add accumulators for event signals,
4627         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
4628         for ::mnemonic-activate.
4629
4630         * gtk/gtkwindow.c: Add accumulator for ::frame_event
4631
4632 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
4633
4634         * gtk/gtkwidget.c: Add missing include.
4635
4636 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
4637
4638         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
4639         marshaller.
4640
4641         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
4642         "changed" signal to "range_changed".
4643
4644         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
4645         removing a tree from one model would remove all trees from that
4646         model.
4647         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
4648         changed signal instead.
4649
4650 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
4651
4652         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
4653         chaining up to parent impl, since we have a INPUT_ONLY
4654         window.
4655
4656         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
4657         foreground color for the cursor.
4658
4659 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
4660
4661         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
4662         param spec when caching property values, since we unref it
4663         later when we free the style.
4664
4665         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
4666         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
4667
4668 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
4669
4670         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
4671         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
4672         stupidity.
4673
4674 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
4675
4676         [ First pass at adding style properties. Still needs some definite
4677         fine-tuning. ]
4678
4679         * gtk/gtkbutton.c: Add ::default_spacing style property.
4680          
4681         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
4682         ::indicator_spacing style properties.
4683
4684         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
4685         style properties.
4686
4687         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
4688         rather than a normal property.
4689
4690         * gtk/gtkwidget.c: Add an ::interior_focus style property to
4691         draw focus inside buttons, in the Windows/Java Metal/etc. style.
4692
4693         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
4694         Honor ::interior_focus.
4695         
4696         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
4697         TRUE.
4698
4699         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
4700         Add ::slider_width, ::trough_border, ::stepper_size,
4701         ::stepper_spacing style properties.
4702
4703         * gtk/gtkscale.[ch] Add ::slider-length style property.
4704
4705 2001-04-02 Alexander Larsson   <alexl@redhat.com>
4706
4707         * gdk/linux-fb/gdkwindow-fb.c:
4708         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
4709         warnings that were spewed on startup.
4710
4711         * gtk/gtkwindow-decorate.c:
4712         gtk_window_reposition -> _gtk_window_reposition
4713
4714 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
4715
4716         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4717         Add boxed type for GtkRequistion. Use it for ::size-request.
4718
4719         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4720         Add a new GtkBorder structure useful for geometry properties
4721         for widgets. Add corresponding GTK_TYPE_BORDER.
4722         
4723         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
4724         Support automatic parser selection like
4725         gtk_settings_install_property_parser().
4726
4727         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
4728         functionality for use by gtk_widget_class_install_style_property.
4729         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
4730
4731 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
4732
4733         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
4734         g_param_spec_unichar(). 
4735
4736 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
4737
4738         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
4739         _NET window managers.
4740
4741         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
4742
4743 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
4744
4745         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
4746         bad needs to be nuked, not just deprecated.
4747
4748         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
4749         gtk_widget_popup().
4750
4751         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
4752         
4753         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
4754         widget.
4755         
4756         * docs/Changes-2.0.txt: updates.
4757         
4758 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
4759
4760         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
4761         for (i = 0; i < 100; i ++)
4762           g_print ("I will confirm it compile before committing\n");
4763
4764 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
4765
4766         * gtk/gtktreestore.c: Initial work on implementing the
4767         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
4768
4769 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
4770
4771         * gtk/gtkwidget.c: fixed a bunch of notifications, added
4772         reference counts around emissions where the widget is used afterwards.
4773         added freeze/thaws around multiple properties being notified.
4774         (_gtk_widget_get_aux_info): cleanups.
4775         
4776         * gtk/gtksettings.c (gtk_settings_install_property): provide
4777         default parsing functions for gdkcolor, enums and flags.
4778
4779         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
4780         applied by owen.
4781         backed out gtk_window_get_location(), gtk_window_set_location(),
4782         gtk_window_get_size() and gtk_window_set_size(), these
4783         have to be sorted out wrg x/y/width/height/default_with/default_height
4784         properties.
4785         kept a flag in GtkWindowGeometryInfo to handle user
4786         resetting default sizes.
4787         cleaned up ZVT comments.
4788         bunch of assorted bug fixes, notification fixes.
4789         (_gtk_window_reposition): make this a really internal function.
4790         
4791         * gtk/testgtk.c: fixups.
4792         
4793 2001-03-31  Hans Breuer  <hans@breuer.org>
4794
4795         * config.h.win32.in : disable USE_MMX for msvc build cause
4796         the assembler doesn't fit and is out of my scope. Disable
4797         USE_GMODULE for msvc build as wel. The right way to share
4798         binaries on win32 would be to use libtiff.dll etc. To reduce
4799         installation hassles IMO it's better to include all fileformats
4800         builtin to gdk-pixbuf
4801
4802         * gdk-pixbuf/makefile.msc : new file
4803
4804         * gdk/gdk.def : updated
4805
4806         * gdk/win32/gdkevents-win32.c : don't erase the background if
4807         .no_bg is set. It improves the scrolling (e.g. of testgtk main
4808         buttons
4809         * gdk/win32/gdkgeometry-win32.c : added comment about the above
4810
4811         * gdk/win32/gdkwindow-win32.c : added three new functions like
4812         the X version. Only one is implemented, because the other two
4813         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
4814         be default behaviour on win32 anyway ...
4815
4816         * gtk/gtk.def : updated
4817
4818         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
4819         from where it was built and add an additional rule to automagically
4820         build gtkmarshal.[hc]
4821
4822         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
4823         before array access for the current entry isn't finished
4824
4825         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
4826         use g_return_val_if_fail
4827
4828         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
4829         for the static array, but let the compiler calculate it. It
4830         makes me wonder if gcc isn't capable to catch bugs like this ...
4831
4832 2001-03-31  James Henstridge  <james@daa.com.au>
4833
4834         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
4835         constant "-1" in the aux info structure.
4836
4837 2001-03-30  Alexander Larsson  <alexl@redhat.com>
4838
4839         * gtk/gtkbutton.c (gtk_button_get_property):
4840         * gtk/gtklabel.c:
4841         Remove leaks.
4842         
4843         * gtk/gtkcontainer.c:
4844         * gtk/gtkhscale.c:
4845         * gtk/gtkhscrollbar.c:
4846         * gtk/gtklayout.c:
4847         * gtk/gtkmisc.c:
4848         * gtk/gtkprogress.c:
4849         * gtk/gtkprogressbar.c:
4850         * gtk/gtkrange.c:
4851         * gtk/gtktable.c:
4852         * gtk/gtkviewport.c:
4853         * gtk/gtkvscale.c:
4854         * gtk/gtkvscrollbar.c:
4855         * gtk/gtkwidget.c:
4856         Property patches, based on patches from John Margaglione and Lee Mallabone.
4857
4858 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
4859
4860         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
4861         adjustment. Cleaned redundant preconditions (spin != NULL). Added
4862         inline API function docs.
4863         (gtk_spin_button_new_with_range): New convenience constructor.
4864         (gtk_spin_button_set_increments): New adjustment helper.
4865         (gtk_spin_button_set_range): New adjustment helper.
4866
4867         * gtk/testgtk.c : added test of the new convenince constructor and
4868         value_changed signals.
4869
4870 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
4871
4872         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
4873         listen to the reorder signal.
4874
4875 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
4876
4877         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
4878         to get the aux info structure fo the widget.
4879
4880         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
4881         above function.
4882
4883         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
4884
4885         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
4886         to get the size of the window manager frame, basically the same
4887         code that gdk_window_get_root_origin() had
4888         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
4889
4890         * gtk/gtkwindow.c (gtk_window_set_default_size): use
4891         gdk_window_resize() if the window is realized and resizeable
4892
4893         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
4894         typo so that setting gravity works
4895
4896         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
4897         allocation if auto_shrink is on, even if the default size
4898         has not changed.
4899
4900         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
4901         g_return_if_fail
4902
4903 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
4904
4905         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
4906         reordering/sorting work.  Now pretty much works.
4907
4908         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
4909         reorder mostly work.  Still need to get the parity correct.
4910
4911         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
4912         signal, so I can listen for the sort_column_changed signal so I
4913         can change my "sort_indicator" property.  Cool.
4914
4915 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
4916
4917         [ Patch from Havoc Pennington, hp@redhat.com ]
4918
4919         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
4920         Add functions gdk_window_begin_resize_drag/begin_move_drag
4921         to start resizing or moving a toplevel window. This
4922         is done either using the _NET_WM_MOVERESIZE protocol,
4923         or, if that isn't present, by emulation.
4924
4925         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
4926         to export the above to GTK+-land.
4927
4928         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
4929         
4930         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
4931         Move this function into gdkwindow, since we need it
4932         when implementing fallback resizing.
4933
4934         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
4935         Fix typo when setting gravity.
4936
4937         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
4938         Add an optional (but on by default) resize grip for resizing 
4939         the parent window.
4940
4941 01-03-29  Alexander Larsson  <alexl@redhat.com>
4942
4943         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
4944         Don't return TRUE from the event handler, that blocks all
4945         event signals on the tooltip widget. Now you can press buttons
4946         in toolbars again.
4947
4948 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
4949
4950         * gtk/testtext.c (create_buffer): Add missing NULL on
4951         valist.
4952
4953         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
4954         c-n-p problem with INCONSISTENT property.
4955
4956         [ Patch from Havoc Pennington  <hp@redhat.com> ]
4957
4958         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
4959         hook.
4960
4961         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
4962         signal as a hook for extending the default popup menu
4963
4964         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
4965         use radio menu items for the input method menuitems
4966
4967         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
4968         inserted unicode from Ctrl-Shift-hex input method
4969
4970         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
4971         validatation here, already done at GtkTextBuffer level.
4972
4973         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
4974         popup_menu run action signal and Shift+F10 and Menu keybindings.
4975
4976         * gtk/gtkentry.c: implement a default handler for popup_menu
4977
4978         * gtk/gtktextview.c: implement a default handler for popup_menu
4979
4980         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
4981         from a key event
4982         
4983         * gtk/gtklabel.c: remove "trailer" cruft
4984
4985 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
4986
4987         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
4988         handle reordering of trees.  Seems to mostly work w/ the exception
4989         of the parity flag.
4990
4991         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
4992         signal.
4993
4994 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
4995
4996         * gtk/gtkwidget.h: c++ fixes.
4997
4998 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
4999
5000         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
5001         memory.
5002
5003 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
5004
5005         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
5006         Nils Barth fixing event return values. (#51041)
5007
5008         * gtk/gtkwidget.c: Fix some return values for default
5009         functions.
5010
5011         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
5012         return values for trough_keys functions.
5013
5014         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
5015         value for add_accelerator (shoudl have been a void
5016         return.)
5017
5018         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
5019         Fix return type of EVENT.
5020
5021         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
5022         signal return a boolean.
5023
5024 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
5025
5026         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
5027         reordered signal.
5028
5029         * tests/testtreesort.c (main): fix spelling.
5030
5031 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
5032
5033         * gtk/gtkliststore.c: More work on implementing sortable
5034         interface.
5035
5036 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
5037
5038         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
5039         reference the widgets in the resulting list. (#11821)
5040         This makes this consistent with gtk_container_children.
5041
5042         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
5043         uses of gtk_window_list_toplevels.
5044
5045 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
5046
5047         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
5048         a virtual function to set whether the IM context should use 
5049         the preedit string. (#51922)
5050         
5051 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
5052
5053         * gdk/gdkpango.h: Remove stale FIXME comment.
5054
5055 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
5056
5057         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
5058         Fixed bug that returned NULL if a filename was selected.
5059
5060 2001-03-24  Havoc Pennington  <hp@pobox.com>
5061
5062         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
5063         to contain the word "theme"
5064
5065 2001-03-24  Havoc Pennington  <hp@pobox.com>
5066
5067         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
5068         slower but finer-grained
5069         (gtk_hsv_focus): get initial focus on the ring or triangle 
5070         according to tab direction
5071
5072         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
5073
5074 2001-03-23  Havoc Pennington  <hp@pobox.com>
5075
5076         * gtk/gtkhsv.c: make this somewhat key-navigable
5077
5078         * gtk/gtkfontsel.c: mnemonics
5079
5080         * gtk/gtkgamma.c: mnemonics
5081
5082         * gtk/gtkcolorsel.c: add mnemonics to labels
5083
5084 2001-03-22  Havoc Pennington  <hp@pobox.com>
5085
5086         Applied big patch from Seth Lytle to fix event handler return
5087         values, slightly modified.
5088
5089         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
5090         handled.
5091         (gtk_calendar_key_press): return TRUE for GDK_space triggers
5092         select_day
5093
5094         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
5095         (gtk_clist_button_release): return TRUE if handled
5096
5097         * gtk/gtkcolorsel.c (mouse_release):
5098         (palette_activate): 
5099         (palette_press): 
5100         (palette_new): 
5101         (mouse_press): 
5102         (get_screen_color): 
5103         fixed return type (void to gboolean), return TRUE,
5104         added GTK_SIGNAL_FUNC cast
5105
5106         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
5107         (void to gboolean), and return TRUE
5108         (gtk_combo_button_release): changed return value to TRUE after
5109         gtk_grab_add on combo->popwin
5110
5111         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
5112         collapse or expand
5113
5114         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
5115         button/motion
5116
5117         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
5118         press/release and motion that trigger act
5119
5120         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
5121
5122         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
5123         for GDK_Return
5124         
5125         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
5126         (gtk_list_button_release): return TRUE if selection
5127
5128         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
5129         press
5130
5131         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
5132         (gtk_menu_shell_button_release): chain parent_menu_shell retval
5133
5134         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
5135         nothing triggered
5136         (gtk_notebook_button_release): return TRUE if we do anything
5137
5138         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
5139         (gtk_spin_button_button_release): return TRUE or chained retval
5140
5141         * gtk/gtktext.c (gtk_text_button_press): 
5142         (gtk_text_button_release): return TRUE
5143         (gtk_text_key_press): remove redundant retval code
5144         
5145         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
5146         and sensitive
5147         (gtk_tree_item_subtree_button_click): changed type to gint, and return
5148         TRUE if sensitive
5149
5150         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
5151         return TRUE
5152
5153 2001-03-23  Havoc Pennington  <hp@redhat.com>
5154
5155         * gtk/testgtk.c: fix warnings
5156
5157         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
5158
5159         * gtk/gtktextview.c: fix warnings
5160
5161         * gtk/gtktext.c (find_cursor_at_line): fix warning
5162
5163         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
5164
5165         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
5166         of this function
5167
5168         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5169         fix warning
5170
5171         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
5172
5173         * gtk/gtkfontsel.c: fix warning
5174
5175         * gtk/gtkcolorsel.c: fix warnings
5176
5177 2001-03-23  Havoc Pennington  <hp@redhat.com>
5178
5179         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
5180
5181         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
5182
5183         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
5184         and deprecated gtk_check_menu_item_set_show_toggle().
5185         
5186         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
5187
5188         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
5189
5190         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
5191
5192 2001-03-23  Havoc Pennington  <hp@redhat.com>
5193
5194         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
5195         some docs
5196
5197 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5198
5199         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
5200         this.
5201
5202         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
5203         set_cell to set_value
5204
5205         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
5206         set_cell to set_value
5207
5208 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
5209
5210         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5211         fix braino.
5212         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
5213         support.
5214
5215         * gtk/gtktreeview.c: Addition of initial sortable support.
5216
5217         * gtk/gtktreestore.c: Addition of initial sortable support.
5218
5219         * gtk/gtkliststore.c: Addition of initial sortable support.
5220
5221         * gtk/gtkmarshal.list: yet another marshaller.
5222
5223         * gtk/gtktreedatallist.[ch]: shared code between the store models
5224         for handling sorting headers.
5225
5226 2001-03-22  Havoc Pennington  <hp@redhat.com>
5227
5228         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
5229         (gtk_container_unset_focus_chain): Add ability to override the 
5230         focus chain for a container explicitly
5231
5232 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
5233
5234         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
5235         added PROP_MNEMONIC_WIDGET.
5236
5237         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
5238         (gtk_window_remove_mnemonic): 
5239         (gtk_window_add_mnemonic): fixed assertions.
5240         (gtk_window_activate_mnemonic): constrain modifier checks to those
5241         permitted by gtk_accelerator_get_default_mod_mask().
5242         got rid of gtk_window_get_default_accel_group().
5243
5244         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
5245         activatable widgets either by focussing or a warning.
5246         added a signal accumulator to ::activate_mnemonic which stops the
5247         emission once a handler returned TRUE.
5248
5249 2001-03-22  Havoc Pennington  <hp@pobox.com>
5250
5251         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
5252         the stock item label
5253
5254         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
5255
5256         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
5257
5258         * demos/gtk-demo/*.c: Add mnemonics all over the place
5259
5260         * gtk/gtklabel.h: mark parse_uline deprecated
5261
5262 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5263
5264         * gtk/gtkitemfactory.[ch]:
5265         Add support for stock and normal imagemenuitems.
5266         
5267         * gtk/testgtk.c:
5268         Add some tests for mnemonics, stock toolbars, stock
5269         and image menuitems in itemfactory and gdk_window_scroll.
5270
5271 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5272
5273         * gtk/gtkbutton.[ch]:
5274         * gtk/gtkdialog.c:
5275         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
5276         removed accel_group argument. Renamed gtk_button_new_accel() to
5277         gtk_button_new_with_mnemonic() and removed accel_group argument.
5278
5279         * gtk/gtkcheckbutton.[ch]:
5280         New function gtk_check_button_new_with_mnemonic().
5281
5282         * gtk/gtkentry.c:
5283         Override activate_mnemonic and just grab focus.
5284
5285         * gtk/gtkitemfactory.c:
5286         Don't add menu uline accel group, instead use mnemonics support.
5287
5288         * gtk/gtklabel.[ch]:
5289         New support for mnemonics.
5290
5291         * gtk/gtkmarshal.list:
5292         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
5293
5294         * gtk/gtkmenu.[c]:
5295         * gtkmenushell.c:
5296         Use mnemonics instead of accel groups for uline
5297         support in menu items.
5298         Removed gtk_menu_get_uline_accel_group() and
5299         gtk_menu_ensure_uline_accel_group().
5300
5301         * gtk/gtkmenuitem.c:
5302         Override activate_mnemonic to handle switching between
5303         menu items if there are collisions.
5304         
5305         * gtk/gtknotebook.c:
5306         Connect to activate_mnemonic on the tab_label, so that
5307         activating it switches to that notebook page.
5308
5309         * gtk/gtkwidget.[ch]:
5310         Add activate_mnemonic signal. New function
5311         gtk_widget_activate_mnemonic() to emit it.
5312         Default implementation does activate/grab_focus.
5313
5314         * gtk/gtkwindow.[ch]:
5315         Add support for mnemonics in windows.
5316         New functions:
5317         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
5318         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
5319
5320         * gtk/testgtk.c:
5321         Update to function name changes.
5322         
5323 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5324
5325         * gtk/gtkimagemenuitem.[c]:
5326         Add gtk_image_menu_item_new_from_stock()
5327
5328 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
5329
5330         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5331         Fix buglet in meeting.
5332
5333 2001-03-19  Havoc Pennington  <hp@redhat.com>
5334
5335         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
5336         add a bunch of accessor functions. This is because we have
5337         reasonable expectations of extending what fields it contains in
5338         the future.
5339
5340         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
5341         changes
5342
5343         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
5344         GtkIconSource   
5345
5346 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
5347
5348         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
5349         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
5350
5351         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
5352           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
5353           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
5354           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
5355         Change float to double everywhere with the exception of 0<->1.0 alignment
5356         and GtkCurve.
5357
5358 2001-03-19  Tor Lillqvist  <tml@iki.fi>
5359
5360         * gdk/win32/gdkdrawable-win32.c
5361         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
5362         output.
5363
5364         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
5365         gdkwin32.h.
5366
5367 2001-03-18  Tor Lillqvist  <tml@iki.fi>
5368
5369         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
5370         print_event_state, print_event): Use preprocessor macro to make
5371         code more compact. Print also GDK_WINDOW_STATE events.
5372         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
5373         
5374         * gtk/gtk.def
5375         * gtk/makefile.mingw.in: Update.
5376
5377         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
5378         to catch also Cygwin.
5379
5380 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
5381
5382         * gtk/gtkspinbutton.[hc]: added rc-style argument
5383         GtkSpinButton::shadow_type.
5384         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
5385         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
5386         rc-style settings.
5387
5388         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
5389
5390         * gtk/gtkwidget.c: quark cleanups.
5391
5392         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
5393         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
5394         to create_rc_style() (we don't do cloning in standard OO sense).
5395         added per rc style properties.
5396         
5397         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
5398         property values and for caching those. some cleanups.
5399         
5400         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
5401         
5402         * gtk/gtksettings.[hc]: new file for global rc-file properties
5403         (at least currently, should get extended to support X properties
5404         and other communication mechanisms).
5405         
5406         * gtk/gtkwidget.[hc]: added style property support:
5407         (gtk_widget_class_install_style_property_parser): install style
5408         property pspec with parser function for rc-file values other
5409         than LONG, DOUBLE or STRING.
5410         (gtk_widget_class_install_style_property): same as above without
5411         parser (parsers are going to be needed quite infrequently).
5412         (gtk_widget_style_get_property): retrive style property value.
5413         (gtk_widget_style_get_valist): same as above with varargs support,
5414         has NOCOPY semantics.
5415         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
5416
5417 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
5418
5419         * demos/gtk-demo/main.c (row_activated_cb): modified to use
5420         "row_activated" signal.
5421
5422         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
5423         stupidity.  Lets actually pass in the row with this signal...
5424
5425 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
5426
5427         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
5428
5429         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
5430
5431         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
5432         everything into the ::destroy function, and freed a lot more.
5433
5434 2001-03-16  Havoc Pennington  <hp@redhat.com>
5435
5436         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
5437         instead of gint16, to avoid overflow issues, since sizes > 16-bit
5438         are now allowed.
5439
5440 2001-03-16  Havoc Pennington  <hp@redhat.com>
5441
5442         * Applied patch from Nils Barth (bug # 51041) to 
5443         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
5444         in various places.
5445
5446 2001-03-15  Havoc Pennington  <hp@redhat.com>
5447         
5448         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
5449         for properties to set on the tag.
5450
5451         * gtk/testtext.c: fixups to reflect create_tag change
5452         
5453         * gtk/gtktexttag.c (gtk_text_tag_set_property):
5454         background/foreground stipple are objects, not boxed.
5455
5456         * demos/gtk-demo/textview.c: intellihancing
5457
5458 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5459
5460         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
5461         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
5462
5463 2001-03-16  Alexander Larsson  <alexl@redhat.com>
5464
5465         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
5466         Fix sign error with queued region translations.
5467
5468 2001-03-15  HideToshi Tajima  <tajima@happy>
5469
5470         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
5471         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
5472         * gtk/gtkentry.c (update_im_cursor_location): 
5473         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
5474         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
5475         set_cursor_pos to set_cursor_location in GtkInputContext class
5476
5477 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
5478
5479         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
5480         the location of the cell relative to its area.
5481         * gtk/gtkcell*: modified for above change
5482         * gtk/gtktreeview.c: modified for above change.
5483
5484 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
5485
5486         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
5487          (gtk_tree_view_finalize): actually unref the model.  Thanks to
5488         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
5489
5490 2001-03-14  Havoc Pennington  <hp@redhat.com>
5491
5492         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
5493         
5494         * gtk/gtk.h: remove gtkdata.h
5495
5496         * gtk/Makefile.am: remove gtkdata
5497         
5498         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
5499         not "disconnect" on the adjustments.
5500         
5501         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
5502         GtkData
5503
5504         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
5505         not GtkData
5506
5507         * configure.in: handle case where X render exists, but Pango lacks
5508         Xft support.
5509
5510 2001-03-15 Alexander Larsson  <alexl@redhat.com>
5511
5512         * gtk/gtktoolbar.[ch]:
5513         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
5514         to add stock items to toolbars.
5515
5516         * gtk/Makefile.am:
5517         Remove ../gdk/gdkim.h from gdk_headers.
5518
5519 2001-03-15  Sven Neumann  <sven@gimp.org>
5520
5521         * gdk/gdkim.h: removed
5522         
5523         * gdk/gdkprivate.h
5524         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
5525
5526 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
5527
5528         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
5529         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
5530         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
5531         set_cursor_pos() virtual method
5532
5533         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
5534         (gtk_im_context_xim_set_cursor_pos): add implementation for
5535         set_cursor_pos() method
5536
5537         * gtk/gtkentry.c (recompute_idle_func): set current cursor
5538         position to input methods
5539
5540 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
5541
5542         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
5543         code a lot.
5544
5545         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
5546         g_mem_chunk.
5547         (_gtk_tree_data_list_alloc): use g_mem_chunk.
5548         (_gtk_tree_data_list_node_to_value): Fix to switch on
5549         G_TYPE_FUNDAMENTAL.
5550         (_gtk_tree_data_list_value_to_node): Fix to switch on
5551         G_TYPE_FUNDAMENTAL.
5552         (_gtk_tree_data_list_node_copy): Fix to switch on
5553         G_TYPE_FUNDAMENTAL.
5554
5555 2001-03-12  Havoc Pennington  <hp@redhat.com>
5556
5557         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
5558         to convert to new property API. Also, change default_width and
5559         default_height get_property to return 0 as the flag value for
5560         "unset"; -1 is not a valid value for these fields.
5561
5562 2001-03-12  Havoc Pennington  <hp@redhat.com>
5563
5564         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
5565         enum with registration for icon sizes, instead of strings.
5566
5567         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
5568         gtkwidget.c: Fix to reflect GtkIconSize
5569         
5570 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5571
5572         Make GtkFB compile and link.
5573         
5574         * gdk/linux-fb/gdkdrawable-fb2.c:
5575         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5576         
5577         * gdk/linux-fb/gdkwindow-fb.c:
5578         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5579         Added gdk_window_shape_combine_region.
5580         Added assorted placeholders for unimplemented new GdkWindow API calls.
5581
5582 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5583
5584         * gtk/gtkfilesel.c:
5585         Add more test when converting filenames from/to utf-8.
5586         Don't allow entering text in the filename entry which isn't allowed in
5587         a filename. Just beep instead.
5588
5589 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5590
5591         * gtk/gtkclist.c:
5592         Scroll using gdk_window_scroll(). Don't wait for exposes.
5593         Move the column headers in an order that makes them flash less.
5594
5595 2001-03-10  Hans Breuer  <hans@breuer.org>
5596
5597         * gdk/gdk.def : updated
5598
5599         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
5600         to offseting the clip_mask at the right place
5601
5602         * gdk/win32/gdkwindow-win32.c : don't create background brushes
5603         for all the gdkClasses, especially not for the input_only case.
5604         Otherwise flickering wont be avoidable, because we don't get
5605         WM_ERASEBKGND message for these windows.
5606
5607         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
5608         and fixed massive redraw problems apparently triggered by Alexanders 
5609         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
5610         but it seems to work quite well :-)
5611
5612         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
5613         prototype
5614
5615 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
5616
5617         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
5618         (gtk_list_store_set_cell): Fix a stupid typo.
5619
5620 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
5621
5622         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
5623         select_all not work if you're in SINGLE mode (it doesn't make that
5624         much sense, anyway.)
5625
5626         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
5627         handle types more sanely.
5628         (_gtk_tree_data_list_value_to_node): handle types more sanely.
5629         (_gtk_tree_data_list_node_copy): handle types more sanely.
5630
5631         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
5632         GValue better. Converts the type as well.
5633
5634         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
5635         GValue better. Converts the type as well.
5636
5637 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
5638
5639         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
5640         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
5641         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
5642         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
5643
5644         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
5645         gdk_im/gdk_ic.
5646
5647 2001-03-09  Hans Breuer  <hans@breuer.org>
5648
5649         * gdk/gdk.def : updated
5650
5651         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
5652         for their palette
5653
5654         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
5655         removing
5656
5657         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
5658         removing and implemented Havoc's GdkWindow state functions; 
5659         stick/unstick only as no-op, cause I don't know how to emulate 
5660         on win32 ...
5661
5662         * gtk/gtk.def : updated
5663
5664         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
5665
5666         * gtk/gtktypeutils.c : #include <string.h>
5667
5668         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
5669
5670 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
5671
5672         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
5673         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
5674         not a boxed.
5675
5676 2001-03-09  Alexander Larsson  <alexl@redhat.com>
5677
5678         * docs/Changes-2.0.txt:
5679         Document expose event->region change and that gtk_widget_event
5680         doesn't allow passing expose events.
5681
5682         * gdk/gdkevents.h:
5683         Add region to expose event.
5684         
5685         * gdk/gdkevents.c:
5686         Handle event->region in gdk_event_copy() and gdk_event_free().
5687
5688         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
5689         Generate expose_event->region when creating expose events.
5690
5691         * gdk/x11/gdkevents-x11.c:
5692         Generate expose events with regions when translating X events.
5693
5694         * gtk/gtkcontainer.[ch]:
5695         Default expose handler that propagates expose events to NO_WINDOW
5696         children. New function gtk_container_propagate_expose()
5697
5698         * gtk/gtkwidget.[ch]:
5699         Moved gtk_widget_event implementation to gtk_widget_event_internal.
5700         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
5701         expose events. New function gtk_widget_send_expose() to send expose
5702         events. New function gtk_widget_region_intersect() to calculate
5703         window/region intersections.
5704         
5705         * gtk/gtkmain.c (gtk_main_do_event):
5706         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
5707         Use gtk_widget_send_expose() to send expose events.
5708         
5709         * gtk/gtkbin.c:
5710         * gtk/gtkbox.c:
5711         * gtk/gtkfixed.c:
5712         * gtk/gtkimagemenuitem.c:
5713         * gtk/gtklist.c:
5714         * gtk/gtkpacker.c:
5715         * gtk/gtktable.c:
5716         * gtk/gtktree.c:
5717         Remove expose handler, using the default container implementation
5718         instead.
5719         
5720         * gtk/gtkbutton.c:
5721         * gtk/gtkcheckbutton.c:
5722         * gtk/gtkeventbox.c:
5723         * gtk/gtkfixed.c:
5724         * gtk/gtkhandlebox.c:
5725         * gtk/gtklayout.c:
5726         * gtk/gtklistitem.c:
5727         * gtk/gtkmenu.c:
5728         * gtk/gtkmenubar.c:
5729         * gtk/gtkmenuitem.c:
5730         * gtk/gtknotebook.c:
5731         * gtk/gtkoptionmenu.c:
5732         * gtk/gtkpaned.c:
5733         * gtk/gtkscrolledwindow.c:
5734         * gtk/gtktogglebutton.c:
5735         * gtk/gtktoolbar.c:
5736         * gtk/gtktreeitem.c:
5737         * gtk/gtkviewport.c:
5738         Chain expose handler to parent class handler. Use
5739         gtk_container_propagate_expose() to propagate exposes.
5740
5741         * gtk/gtkclist.c (check_exposures):
5742         * gtk/gtktext.c (process_exposes):
5743         Use gtk_widget_send_expose instead of gtk_widget_event.
5744
5745 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
5746
5747         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
5748
5749 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
5750
5751         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
5752         unref the nodes.   Fixes bug #50058.
5753
5754         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
5755         "::ref_iter" to "::ref_node".
5756         (gtk_tree_model_unref_node): change "::unref_iter" to
5757         "::unref_node". Fixes bug #50064.
5758
5759 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
5760
5761         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
5762         support for invisible cells.
5763          (gtk_tree_view_bin_expose): ditto
5764
5765 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
5766
5767         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
5768         on gobjects.
5769
5770         * tests/testtreefocus.c (main): New test file.
5771
5772         * tests/testtreeview.c: update to latest glib changes.
5773
5774         * tests/testtreecolumns.c: update to latest glib changes.
5775
5776 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
5777
5778         * gtk/testgtk.c: re-enabled event watcher emission hooks.
5779
5780 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
5781
5782         * *.c: added accumulator data argument to g_signal_newc()
5783         functions.
5784
5785         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
5786         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
5787         * gtk/treestoretest.c (make_window):
5788         s/g_signal_connect/g_signal_connectc/.
5789
5790         * gtk/gtktextbuffer.c: completed signal arg fixups,
5791         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
5792
5793 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
5794
5795         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
5796         G_CONST_RETURN.
5797
5798         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
5799         ::hierarchy-changed signal when a widget changes
5800         from anchored to unanchored or vice versa.
5801         (anchored means 
5802          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
5803         Use a private flag to keep track of this efficiently.
5804
5805 2001-03-07  Havoc Pennington  <hp@redhat.com>
5806
5807         * gtk/testgtk.c (create_spins): uglify so that size request gets
5808         tested.
5809
5810         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
5811         request on values for upper/lower, completes #6152
5812
5813 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
5814
5815         * Makefile.am: Remove gtk-config-2.0 again.
5816         (Grrrr, pkg-config. And stops make loops.)
5817
5818 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
5819
5820         * gtk/gtksignal.[hc]: removed old emission hook API.
5821         
5822         * docs/Changes-2.0.txt: fixed sections.
5823         
5824         * gtk/gtktextbuffer.c: signal arg fixups.
5825
5826 2001-03-07  Havoc Pennington  <hp@redhat.com>
5827
5828         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
5829
5830         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
5831         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
5832         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
5833         validation and the redraw which is higher priority than the
5834         validation.
5835
5836 2001-03-07  Havoc Pennington  <hp@redhat.com>
5837
5838         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
5839         (gtk_entry_set_property): remove trailer
5840
5841         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
5842         (gtk_entry_get_width_chars): new functions, to set size request to 
5843         a given number of characters
5844
5845         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
5846
5847         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
5848         (gtk_dialog_get_has_separator): new function
5849         (run_delete_handler): fix to not emit "response" signal
5850         because we already did in the delete event handler installed
5851         at dialog creation time.
5852         
5853         * gtk/gtkdialog.h: add a has_separator property,
5854         add GTK_DIALOG_NO_SEPARATOR flag
5855
5856 2001-03-07  Havoc Pennington  <hp@redhat.com>
5857
5858         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
5859         off decorations for a window.
5860
5861         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
5862         changes
5863
5864         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
5865         to get location of PangoLayout inside the label, closes #51198
5866
5867         * gtk/testgtk.c (create_bbox): fix up button box usage
5868
5869         * gtk/testcalendar.c (create_calendar): fix up button box usage
5870
5871         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
5872
5873         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
5874
5875         * gtk/gtkhbbox.h: deprecations
5876
5877         * gtk/gtkvbbox.h: deprecations
5878
5879         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
5880         emulate deprecated gtk_button_box_get_spacing
5881
5882         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
5883         the "set global default" functions
5884         (struct _GtkButtonBox): remove "spacing" field, use the one from 
5885         GtkBox base class
5886
5887         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
5888
5889         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
5890         render the icon, return the missing image icon.
5891
5892         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
5893         image icon if the load fails.   
5894
5895         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
5896         when no image is found; should be the Netscape "missing image"
5897         icon eventually but for now is a random image
5898
5899         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
5900         role for the session manager
5901
5902         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
5903
5904         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
5905         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
5906
5907         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
5908
5909 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
5910
5911         * gtk/*.c: marshaller fixes.
5912         
5913         * gtk/gtkmarshal.list: extreme cleanup.
5914
5915         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
5916         param spec for now.
5917
5918         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
5919         where appliable.
5920
5921         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
5922         special cased autogenerated boxed types from gtktypebuiltins_ids.c
5923         which are not reference counted:
5924         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
5925         PangoFontDescription, GtkTreeIter and GtkTreePath.
5926
5927 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
5928
5929         * gtk/gtktreeselection.h: 
5930         * gtk/gtktreemodel.c:
5931         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
5932         file should be included directly, and gobject/gmarshal.h
5933         as well as gtk/gtkmarshal.h even can't be included directly.
5934
5935         * Makefile.am: grr, install gtk-config-2.0.
5936
5937         * gtk/testgtk.c:
5938         * gtk/simple.c:
5939         * gtk/gtkmenu.c:
5940         * gtk/gtkitemfactory.c: use g_object_connect() instead of
5941         passing "*signal*::*" args to gtk_widget_set().
5942         
5943         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
5944         
5945         * gtk/*.c: removed trailer arg from property setters and getters.
5946         macro fixups.
5947
5948 2001-03-07  Alexander Larsson  <alexl@redhat.com>
5949
5950         * gtk/gtklabel.c (set_markup): Removed warning
5951
5952 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
5953
5954         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
5955         field to allow you to hide cell renderers.
5956
5957         * gtk/gtkcellrenderer.c: Add support for invisible cells.
5958
5959         * gtk/gtktreeview.c: Add support for invisible cells.
5960
5961 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
5962
5963         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
5964         Add "clicked" signal back to columns.
5965
5966         * ChangeLog: remove conflict markers.
5967
5968 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
5969
5970         * gtk/gtkbutton.c: Add animation of activation by, on 
5971         activate, pressing the button, and adding a timeout that 
5972         releases the button after 250ms or on key release and
5973         emits ::clicked. (#51501)
5974
5975         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
5976         action area, we connect to ::clicked instead of ::activate
5977         so the dialog stays up through the animation.
5978
5979 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
5980
5981         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
5982         check the ignore_enter flag for the menu shell that
5983         the item is actually a child of, not for attached
5984         submenus. (#51536)
5985
5986 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
5987
5988         * gtk/gtkmain.c (gtk_propagate_event): Only do special
5989         special key-press grab handling for widgets within
5990         GtkWindows. Otherwise, fall through to normal case.
5991
5992         This prevents key events being sent twice to GtkInvisible
5993         widgets, which can cause all sorts of mischief.
5994
5995 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
5996
5997         * gtk/gtkmain.c (gtk_propagate_event): When a grab
5998         widget is in effect, give the grab widget a first
5999         crack at KEY_PRESS/RELEASE events. (#424)
6000
6001 2001-03-06  James Henstridge  <james@daa.com.au>
6002
6003         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
6004         offset for the window_state_event to point at window_state_event
6005         rather than no_expose_event.
6006
6007 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
6008
6009         * gtk/gtkimmodule.h: fix busted /* comment */
6010
6011 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
6012
6013         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
6014         object properties.
6015
6016 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
6017
6018         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
6019         add object properties.
6020
6021         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
6022         to add object properties.
6023
6024         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
6025         object properties.
6026
6027         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
6028         add object properties.
6029
6030         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
6031         object properties.
6032
6033 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
6034
6035         * gtk/gtktreemodel.c: renamed "child_toggled" to
6036         "has_child_toggled".
6037
6038         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
6039         handle new signal name.
6040
6041         * gtk/gtktreestore.c: Updated to handle new signal name.
6042         * gtk/gtklisttore.c: Updated to handle new signal name.
6043         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
6044
6045 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6046
6047         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
6048         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
6049
6050 2001-03-05  Michael Natterer  <mitch@gimp.org>
6051
6052         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
6053         pixbuf-engine coincidentially also failed to make one of it's
6054         parent_class pointers static, causing overwriting of GtkLabel's
6055         parent_class pointer in pixbuf_style_class_init().
6056         (Will commit the fix to the pixbuf-engine too).
6057
6058 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6059
6060         * gdk/gdkwindow.h:
6061         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
6062         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
6063         gdk_window_set_icon_list for net wmspec functionality.
6064
6065         * gdk/x11/gdkwindow-x11.c:
6066         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
6067         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
6068         gdk_window_set_icon_list.
6069         Added gdk_wmspec_change_state helper function and used it in the code.
6070         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
6071
6072         * gtk/gtkdialog.c (gtk_dialog_init):
6073         Set GDK_WINDOW_TYPE_HINT_DIALOG.
6074
6075         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
6076         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
6077
6078         * gtk/gtkwindow.c:
6079         new function gtk_window_set_type_hint.
6080         On realize, set type hint and modal hint.
6081
6082         * gtk/gtkwindow.h:
6083         Added type_hint field and gtk_window_set_type_hint.
6084
6085 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6086
6087         * gtk/gtklabel.[ch]:
6088         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
6089         New function gtk_label_get_accel_keyval () to get the underline accelerator
6090         of the label. Setting the label pattern overrides other attributes.
6091
6092 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
6093
6094         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
6095         Added missing initializers to gtk_rc_style_init().
6096
6097 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
6098
6099         * gtk/gtktextview.c: fixed bug #51097 about setting 
6100         gtk_text_view_set_border_window_size() if the widget is 
6101         already realized.
6102
6103 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
6104
6105         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
6106
6107         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
6108         comment. Won't do to have duplicated doc comments between
6109         the platform subdirs.
6110
6111 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
6112
6113         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
6114           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
6115
6116         Detectable auto-repeat - make a repeating key generate
6117         press/press/press/release instead of press/release pairs.
6118
6119         If we have Xkb and XkbSetDectableAutoRepeat supports
6120         that, we do it that way. Otherwise, when we get
6121         a release event, we check ahead with XPending to see
6122         if the next key is a KeyPress with the same keycode
6123         and timestamp. (Not 100% reliable, but pretty close.)
6124           
6125 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6126         
6127         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6128         special key-press grab handling for widgets within
6129         GtkWindows. Otherwise, fall through to normal case.
6130  
6131         This prevents key events being sent twice to GtkInvisible
6132         widgets, which can cause all sorts of mischief.
6133  
6134 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6135  
6136         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6137         widget is in effect, give the grab widget a first
6138         crack at KEY_PRESS/RELEASE events. (#424)
6139  
6140 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
6141
6142         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
6143         to extend the selection. (Roughly based on patch
6144         from Jay Cox, #50939)
6145
6146         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
6147         to properly handle previous GDK_BUTTON_PRESS. 
6148         (Patch from Jay Cox, #50938)
6149
6150         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
6151         '\0' back along with the deleted text. (#51148)
6152
6153 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
6154
6155         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
6156         the group when extracting it from the X keyboard event.
6157
6158         * modules/input/Makefile.am modules/input/imipa.c: 
6159         Simple module for entering IPA. (Do we need a 
6160         gtk-stupid-input-tricks CVS module?)
6161
6162 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
6163
6164         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
6165         const.
6166
6167         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
6168
6169         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
6170         is no focus widget for the dialog currently, grab the focus as well
6171         as the default.
6172
6173         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
6174         the action area's children to iterate through, not the
6175         dialog's children.
6176
6177 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
6178
6179         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
6180         Add plug-socket tests. (Won't work worth a darn until I commit
6181         the rest of the plug-socket changes, but no reason these
6182         can't go into CVS now.)
6183
6184 2001-03-02  Havoc Pennington  <hp@redhat.com>
6185
6186         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
6187         _gdk_region_get_xrectangles()
6188
6189         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
6190
6191         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
6192
6193         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
6194         function, contributed by Ron Steinke    
6195
6196         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
6197         gdk_net_wm_supports
6198
6199         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
6200         New function, contributed by Ron Steinke
6201
6202         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
6203         used to line up the text in the entry when using the entry for
6204         editable sheet cell hacks
6205
6206         * gtk/testgtk.c (create_entry): test the activate_default setting
6207         on GtkEntry
6208
6209         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
6210         cause the entry to activate the default button for a dialog when 
6211         activated
6212         (gtk_entry_get_activates_default): new function
6213
6214 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
6215
6216         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
6217         Hwang to move call to sync_selection() up a few lines
6218         to before the row list is modified, to fix crash when
6219         removing rows in the undo_selection list.
6220
6221         (Test case provided by Daniel Elstner:
6222
6223         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
6224
6225 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
6226
6227         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
6228         of tree->root_tree in parent_set rather than _map(), 
6229         fixing #50892 in a bit better manner.
6230
6231 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
6232
6233         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
6234
6235 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
6236
6237         * gtk/gtkstyle.c : Remove duplicate fwd decl for
6238         gtk_default_draw_shadow.
6239
6240 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
6241
6242         * gdk/gdkimage.c (gdk_image_new): Remove excess 
6243         warning, make warnings more verbose, treat a error
6244         in shmat as permanent, and don't try again.
6245         (#51163, Ed Randall.)
6246
6247 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
6248
6249         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
6250         delay for the first click before starting to scroll.
6251         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
6252
6253         * gtk/gtktext.c: GtkText should have I-beam cursor. 
6254         (based on gtk-enf-990513-1.patch, Eric Fisher.)
6255
6256 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
6257
6258         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
6259         cleanup to remove some references to unused
6260         ->xoffset, ->yoffset.
6261
6262 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
6263
6264         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
6265         mask. (#51039, fix from Martin Maierhofer)
6266
6267 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
6268
6269         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
6270         for unshifted + and shifted = for non-us keyboards.
6271         Make <Control>+ and <Control>- work as well as 
6272         <Control>KP_Plus, <Control>KP_Minus for recursive
6273         open/close.  (#2682, René Seindal)
6274
6275 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6276
6277         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
6278         the active menu item before deactivating the menu,
6279         so gtk_menu_popdown doesn't change the history. (#50964)
6280         
6281 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
6282
6283         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
6284         draw lines with text_gc rather than black_gc.
6285         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
6286
6287 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
6288
6289         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
6290         Move handling of buttons fully in gtktreeviewcolumn.  This code is
6291         less interrelated then it was, but it still requires the
6292         GtkTreeView to map it.
6293
6294         * test/testtreecolumn.c: Now I can add a column to one view,
6295         remove it, add it to the another view, remove it, then re-add it
6296         to the first.  Nifty.
6297
6298 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
6299
6300         * docs/tutorial/gtk-tut.sgml: Minor corrections
6301
6302 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
6303
6304         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
6305         GtkRowReference.
6306
6307 2001-02-28  Havoc Pennington  <hp@redhat.com>
6308
6309         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
6310         draw_default
6311         (gtk_widget_draw_focus): remove this function; we could instead
6312         make it just gtk_widget_draw(), but in most cases I think the
6313         result would be broken user code, so think it's better to have
6314         that code not compile and get fixed
6315         (gtk_widget_draw_default): ditto
6316
6317         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
6318         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
6319         
6320         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
6321         widgets lose/get the default, instead of calling draw_default
6322         
6323         * docs/Changes-2.0.txt: note about all this
6324
6325         Then fixed every widget in GTK, I won't list all the filenames.
6326
6327 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
6328
6329         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
6330         _gtk_tree_row_reference_deleted.
6331         (inserted_callback): Proxy out to
6332         _gtk_tree_row_reference_inserted.
6333         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
6334         get around signal emission ordering problem.
6335
6336         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6337         fix to work with SINGLE 
6338         (_gtk_tree_selection_internal_select_node): Major sanitization on
6339         selections.  SINGLE now seems to work.
6340
6341         * tests/Makefile.am: add testtreecolumn.c:
6342
6343         * tests/testtreecolumn.c: New test.  Mostly points out selection
6344         bugs currently, but will test columns later.
6345
6346         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
6347         selection bug.  I hate touching this code -- it's scary.
6348
6349 2001-02-26  Havoc Pennington  <hp@redhat.com>
6350
6351         * gtk/testgtk.c: test the window state stuff
6352
6353         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
6354         window come to the user's attention as if it were just created
6355         (gtk_window_iconify): new function
6356         (gtk_window_deiconify): new function
6357         (gtk_window_stick): new function
6358         (gtk_window_unstick): new function
6359         (gtk_window_maximize): new function
6360         (gtk_window_unmaximize): new function
6361
6362         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
6363
6364         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
6365
6366         * gdk/x11/gdkevents-x11.c: create window state events when
6367         appropriate
6368         (gdk_wmspec_supported): new function
6369
6370         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
6371         iconification before showing the window
6372         (gdk_window_deiconify): new function
6373         (gdk_window_stick): new function
6374         (gdk_window_unstick): new function
6375         (gdk_window_maximize): new function
6376         (gdk_window_unmaximize): new function
6377
6378         * gdk/gdkwindow.c: store the window state in the window; 
6379         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
6380         window->mapped.
6381         (gdk_window_get_state): return the current window state
6382
6383         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
6384         (gdk_event_get_state): handle GDK_WINDOW_STATE
6385         (gdk_synthesize_window_state): function to create the window state
6386         events
6387
6388         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
6389         event, for changes to "window state" such as maximized, sticky, 
6390         etc.
6391         
6392         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
6393         focuses a window
6394
6395         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
6396         finds out if we support a given WM spec hint
6397
6398 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
6399
6400         * docs/faq/gtk-faq.sgml: New question re memory leaks.
6401
6402 2001-02-25  Hans Breuer  <hans@breuer.org>
6403
6404         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
6405         cause we want to loose those prototypes only in the latter case
6406
6407         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
6408         GdkPixmapImplWin32 because it itsn't derived from it. Use the
6409         impl member variable instead
6410
6411         * gtk/gtk.def : updated
6412
6413         * gtk/gtklist.c : 
6414         * gtk/gtkmenus.c : include <string.h> for memset ()
6415
6416         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
6417         for everthing built here, but for gtk-x.x.dll only. This solves
6418         problem of indifferent gtk type definitions
6419
6420 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
6421
6422         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
6423
6424 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
6425
6426         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
6427         column that is exposed.
6428
6429         (_gtk_tree_view_update_size): Changed name from set_size, and
6430         changed function to do more work, and not force people calling it
6431         to figure out the size.  Simplifies a lot of code elsewhere.
6432
6433 2001-02-23  Alexander Larsson  <alexl@redhat.com>
6434
6435         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
6436         return solid masks for xpms that have no transparent color.
6437         This makes the ..._create_from_xpm... API backwards
6438         compatible.
6439
6440 2001-02-23  Tor Lillqvist  <tml@iki.fi>
6441
6442         * README.win32: Update. Mention the gtk-1-3-win32-production
6443         branch.
6444
6445         * gdk/win32/bdfcursor.c: New file. A program that generates
6446         xcursors.h. Thanks to Stefan Ondrejicka.
6447
6448         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
6449         compact format.
6450
6451         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
6452
6453         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
6454         function, uses xcursors.h.
6455         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
6456         cursor from inline data instead of using LoadCursor() to generate
6457         it from a resource.
6458
6459         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
6460         event, must check the Windows message for mouse button state, as
6461         the GDK event state might not have been built if it is
6462         undelivered. Remove one goto.
6463
6464         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
6465         SetCursor() if the current cursor as returned by GetCursor() is
6466         the window's previous cursor. The ChildWindowFromPoint() test
6467         apparently didn't work correctly.
6468
6469         * gdk/win32/rc/*.cur: Remove.
6470
6471         * gdk/win32/rc/gdk.rc.in: Remove cursors.
6472
6473         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
6474
6475         * gtk/makefile.{mingw,msc}.in: Updates.
6476
6477 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
6478
6479         * gtk/gtktreemodel.h: add functions for signal emission.
6480
6481         * gtk/gtktreestore.c: move to use above functions instead of
6482         g_signal_emit.
6483
6484         * gtk/gtkliststore.c: ditto
6485
6486 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
6487
6488         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
6489         GObject instead of GtkObject.
6490
6491         * gtk/gtkliststore.c: ditto.
6492
6493         * gtk/gtktreemodelsort.c: ditto.
6494
6495         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
6496         GtkTreeModelIface, instead of in each model.
6497
6498 2001-02-21  Havoc Pennington  <hp@redhat.com>
6499
6500         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
6501         unbreak this function
6502
6503         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
6504         properties
6505
6506         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
6507         properties
6508
6509         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
6510         properties
6511
6512         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
6513         mean unset the max length
6514
6515 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
6516
6517         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
6518         Changed name to be set_cell_data_func to make it clear what
6519         the functino does.  Close bug #51069.
6520
6521 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
6522
6523         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
6524         have memory actually freed.  Keeps box running longer.
6525
6526 2001-02-21  Alexander Larsson  <alexl@redhat.com>
6527         
6528         * gtk/gtkseparatormenuitem.[ch]:
6529         Added new menu separator item. The drawing and size handling
6530         is still done in GtkMenuItem, but the API is a bit more sane.
6531         
6532         * gtk/Makefile.am:
6533         Add gtkseparatormenuitem.[ch].
6534
6535         * gtk/gtk.h:
6536         Add gtkseparatormenuitem.h.
6537         
6538         * gtk/gtkentry.c:
6539         * gtk/gtkmenufactory.c:
6540         * gtk/gtktextview.c:
6541         Use the new API for menu separators.
6542         
6543         * demos/gtk-demo/menus.c (create_menu):
6544         Add some GtkSeparatorMenuItem demo code.
6545
6546 2001-02-20  Havoc Pennington  <hp@redhat.com>
6547
6548         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
6549         Lee Mallabone
6550
6551         * gtk/gtkarrow.c: Convert to new property API, patch from 
6552         Lee Mallabone
6553
6554 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
6555
6556         * tests/testtreeview.c (toggled_callback): fix to reflect change
6557         in GtkTreeModelStore.
6558
6559 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
6560
6561         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
6562         function to create an icon set from a pixbuf.
6563
6564 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6565
6566         * gtk/gtkcellrenderertext.[ch]:
6567         Add a "markup" property.
6568
6569         * gtk/treestoretest.c:
6570         Use the markup property, remove some leftover stuff from
6571         GtkTreeModelMapping.
6572
6573 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6574
6575         * gtk/gtklabel.c (gtk_label_set_selectable):
6576         Queue a redraw if the selectable setting was changed.
6577
6578 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6579
6580         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6581         Actually copy the whole gc, not just the public parts.
6582         
6583         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
6584         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
6585         labels.
6586
6587 2001-02-19  Havoc Pennington  <hp@pobox.com>
6588
6589         * gdk/gdkwindow.c: docs
6590
6591         * gdk/gdkrgb.c: docs
6592
6593         * gdk/gdkregion-generic.c: docs
6594
6595         * gdk/gdkgc.c (gdk_gc_set_values): docs
6596
6597         * gdk/gdkdraw.c: docs
6598
6599         * gdk/gdkdrawable.h: deprecate drawable get/set data
6600
6601 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
6602
6603         * demos/gtk-demo/dialog.c: Add simple new demo.
6604
6605 2001-02-19  Havoc Pennington  <hp@redhat.com>
6606
6607         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
6608         insert_child_anchor signal, bug #50245
6609
6610         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
6611         from create_child_anchor, so the anchor is passed in
6612
6613         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
6614         (_gtk_widget_segment_new): have the child anchor object passed in, 
6615         instead of creating it.
6616
6617         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
6618         to gtk_text_buffer_get_modified
6619
6620 2001-02-19  Havoc Pennington  <hp@redhat.com>
6621
6622         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
6623         changed GLib without fixing GTK
6624
6625         * gtk/gtkrange.h: Rename all the stupid implementation detail 
6626         functions to have an underscore in front. Most of them should 
6627         probably just go away, but for starters don't export them.
6628         Bug #50482
6629
6630 2001-02-19  Havoc Pennington  <hp@redhat.com>
6631
6632         * gdk/gdkcolor.h: test was backward, so deprecated functions were
6633         excluded by default
6634
6635         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
6636         clean up the old code a bit
6637
6638         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
6639         inconsistent state
6640
6641         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
6642         draw inconsistent state
6643
6644         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
6645         (create_menu): add inconsistent test
6646
6647         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
6648         new function
6649         (gtk_check_menu_item_get_inconsistent): new function
6650         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
6651         state (using etched in for now)
6652
6653         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
6654         draw inconsistent state
6655
6656         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
6657         function, used when the user has selected a range of stuff in
6658         different states
6659         (gtk_toggle_button_get_inconsistent): accessor for that
6660         (gtk_toggle_button_paint): draw inconsistent state (etched in?
6661         don't know what else to do)
6662
6663 2001-02-19  Hans Breuer <hans@breuer.org>
6664
6665         * gtk/gtk.def : updated exported symbols
6666
6667         * gtk/makefile.msc.in : updated
6668
6669         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
6670         a colormap, when invoked from testgtk::entry. I'm not sure where
6671         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
6672         avoids immediate crashing ...
6673
6674         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
6675         any objections ?
6676
6677         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
6678         0 parameter. At least msvc doesn't like macros with var args. 
6679         I simply removed the extra 0, was it a feature or a typo ?
6680
6681         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
6682         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
6683         because the value assignment to the internal struct wasn't working.
6684         I'm not absolutely sure. The problem could have been resolved by
6685         changing the "func" declartion in the struct, but was the pointer
6686         to the function pointer intended ?
6687
6688         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
6689
6690         * gdk/gdk.def : updated exported symbols
6691
6692         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
6693         only use SetDIBitsToDevice if there is a palette at the drawable
6694         and the image is GDK_VISUAL_PSEUDO_COLOR
6695
6696         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
6697
6698         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
6699
6700         * gdk/*/makefile.msc : updated
6701
6702 2001-02-19  Havoc Pennington  <hp@redhat.com>
6703
6704         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
6705         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
6706
6707         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
6708         (gdk_key_repeat_restore): nuke
6709
6710         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
6711         (gdk_init_check): no atexit func
6712
6713         * gdk/gdkrgb.h: mark some stuff deprecated
6714
6715         * gdk/gdkcolor.h: mark some stuff deprecated
6716         
6717         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
6718
6719         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
6720
6721 2001-02-16  Havoc Pennington  <hp@redhat.com>
6722
6723         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
6724         scroll steps.
6725
6726         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
6727         steps, and add Ctrl-arrow shortcuts for paging visually as with
6728         HScale, since Page Up and Page Down move logically.
6729
6730         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
6731         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
6732         
6733         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
6734         steps
6735         (gtk_range_scroll): handle the visual steps
6736
6737         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
6738         scroll steps
6739
6740         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
6741         steps, not the logical ones.
6742
6743         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
6744         (scroll_vertical): handle up/down steps
6745
6746 2001-02-19 Alexander Larsson  <alexl@redhat.com>
6747
6748         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
6749         Copy data and free data with free().
6750
6751         * gdk-pixbuf/gdk-pixbuf.c:
6752         * gdk-pixbuf/io-jpeg.c:
6753         * gdk-pixbuf/io-png.c:
6754         Use g_try_malloc/g_free instead malloc/free.
6755         
6756         * gdk-pixbuf/test-gdk-pixbuf.c:
6757         Must... initialize... gobject...
6758         
6759         * gdk-pixbuf/pixops/timescale.c:
6760         * gtk/gtkcalendar.c:
6761         Use g_malloc instead of malloc.
6762         
6763 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
6764
6765         * gtk/testgtkrc:
6766         Comment out property assignments, these don't work yet.
6767
6768 2001-02-17  Havoc Pennington  <hp@pobox.com>
6769
6770         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
6771         bit.
6772
6773 2001-02-17  Havoc Pennington  <hp@pobox.com>
6774
6775         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
6776         shadowed variables that had broken size request in some cases,
6777         leading to bogus tooltips (#50996)
6778
6779 2001-02-06  Jon K Hellan  <hellan@acm.org>
6780
6781         Implement fast browsing of tooltips, bug #50619
6782         
6783         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
6784         and last_popdown
6785         
6786         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
6787         use_sticky_delay and last_popdown.
6788         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
6789         time of popdown.
6790         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
6791         is NULL.
6792         (gtk_tooltips_recently_shown): New static function.  Return true
6793         if < sticky_delay has elapsed since last popdown.
6794         (gtk_tooltips_event_handler): Display window after sticky_delay
6795         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
6796         since last popdown.
6797         
6798 2001-02-17  Havoc Pennington  <hp@pobox.com>
6799
6800         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
6801         instead of (). #6394
6802
6803         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
6804         G_CONST_RETURN, make it return by reference, #50473
6805         
6806 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
6807
6808         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
6809         generated ENTER_NOTIFY event with 0, otherwise not explicitely
6810         setup fields contain garbage (e.g. subwindow, breaking
6811         gdk_drawable_ref() upon event copy).
6812         (gtk_menu_stop_navigating_submenu_cb): same here.
6813
6814         * gtk/gtklist.c (gtk_list_vertical_timeout): 
6815         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
6816         * gtk/gtkclist.c (vertical_timeout): 
6817         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
6818         default-zero-intialization for unions to memset(,0,), as unions are
6819         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
6820         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
6821
6822         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
6823         g_closure_sink() warning.
6824
6825         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
6826         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
6827         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
6828         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
6829         
6830 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
6831
6832         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
6833         gtk_*_store_get, and moved to GtkTreeModel.
6834
6835         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
6836
6837         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
6838
6839         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
6840
6841         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
6842         set the func.
6843
6844         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
6845         freeze/thaw notify between setting all the properties for a cell.
6846
6847         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
6848
6849 2001-02-15  Havoc Pennington  <hp@redhat.com>
6850
6851         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
6852         the X coordinates so they're with respect to the line, rather than 
6853         with respect to the layout.
6854
6855         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
6856         Mallabone
6857
6858         * gtk/testgtk.c (create_range_controls): add vscale tests, 
6859         and inverted test
6860
6861         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
6862         #50806
6863
6864         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
6865
6866         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
6867         gtk_text_iter_is_end
6868
6869         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
6870         rename gtk_text_buffer_get_end_iter
6871
6872         * gtk/testgtk.c (create_labels): Add test for selectable
6873
6874         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
6875         the selection stuff. This code is kind of broken since it doesn't 
6876         use the theme engine.
6877
6878         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
6879         fix infinite loop and y offset problem
6880         (gdk_draw_layout_line_with_colors): fix foreground color handling
6881
6882         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
6883         that makes the label selectable.
6884         
6885         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
6886         layout when the style is set, since fonts etc. could have changed.      
6887
6888 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
6889
6890         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
6891
6892         * gtk/gtktreemodelsimple.[ch]: removed.
6893
6894 2001-02-16  Alexander Larsson  <alexl@redhat.com>
6895
6896         * gtk/gtktreemodelmapping.[ch]:
6897         New files. Implement GtkTreeModelMapping.
6898         
6899         * gtk/Makefile.am:
6900         Add gtktreemodelmapping.[ch].
6901         
6902         * gtk/gtk.h:
6903         Add gtktreemodelmapping.h
6904
6905         * gtk/treestoretest.c:
6906         Test the GtkTreeModelMapping
6907
6908 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
6909
6910         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
6911         have a demo, we might as well pass in real values.  Thanks to
6912         clahey for pointing this out.
6913
6914 2001-02-14  Havoc Pennington  <hp@pobox.com>
6915
6916         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
6917         "static" to a private function
6918         (gtk_image_menu_item_class_init): remove destroy handler,
6919         add "image" object property
6920
6921 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
6922
6923         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
6924         Add a shortcut if the window and the current clip_region doesn't
6925         overlap. This is needed when there are a lot of windows in a
6926         window. The layout test in testgtk is a good test.
6927
6928         * gdk/linux-fb/gdkwindow-fb.c:
6929         Whitespace fix.
6930
6931 2001-02-13  Sven Neumann  <sven@convergence.de>
6932
6933         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
6934
6935 2001-02-13  Alexander Larsson  <alexl@redhat.com>
6936
6937         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
6938         Don't reference last_cursor if it is null. Fixes crash when rotating
6939         the screen before having moved the mouse.
6940
6941         * gdk/linux-fb/gdkcc-fb.c: Zapp!
6942
6943         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
6944
6945         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
6946         when using 90 or 270 degrees rotation.
6947
6948 2001-02-12  Havoc Pennington  <hp@pobox.com>
6949
6950         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
6951         it always set the foreground, even if we were only using
6952         a stipple.
6953         (gdk_draw_layout_line_with_colors): new function, allow
6954         override colors
6955         (gdk_draw_layout_with_colors): new function, allow override
6956         colors
6957         (gdk_pango_layout_line_get_clip_region): function to get the clip
6958         region for a logical text range
6959         (gdk_pango_layout_get_clip_region): get the clip region for a
6960         logical text range
6961
6962         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
6963         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
6964         the right number of arguments.
6965
6966         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
6967         enhance the function to check that node data corresponds to a 
6968         view still belonging to the tree.
6969
6970         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
6971         GtkTreePath
6972         (gtk_tree_view_inserted): ditto
6973         (gtk_tree_view_child_toggled): ditto
6974
6975         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
6976         simplify this code.
6977
6978         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
6979         a PangoAttrList
6980
6981         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
6982
6983         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
6984
6985         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
6986         size in the size request 
6987         (gtk_menu_bar_size_allocate): consider toggle size here
6988
6989         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
6990         that displays a widget in the toggle slot
6991
6992         * gtk/testgtk.c: test GtkImageMenuItem
6993
6994         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
6995         
6996         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
6997         request and allocation
6998
6999         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
7000
7001         * gtk/gtkcheckmenuitem.c
7002         (gtk_check_menu_item_toggle_size_request): ditto
7003         
7004 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
7005
7006         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
7007         reference.
7008
7009         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
7010         and refuse to initialize GTK+ if they fail.
7011
7012 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
7013
7014         * configure.in: Add check for gtk-doc version.
7015
7016 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
7017
7018         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
7019         where the xpad/ypad was only being used on one side!
7020
7021 2001-02-11  Tor Lillqvist  <tml@iki.fi>
7022
7023         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
7024         function, copied from X11 version.
7025
7026         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
7027         DestroyCursor failures. The reason for the problem (despite the
7028         inconsistent messages from GetLastError()) was that
7029         DestroyCursor() cannot be called while a cursor is set in a
7030         window. Set the new cursor first and then destroy the old one.
7031         Thanks to jpe@archaeopteryx.com.
7032
7033         * gdk/win32/gdkcc-win32.c: Remove.
7034
7035         * gdk/win32/Makefile.am: Remove from here, too.
7036         
7037         * gdk/gdk.def
7038         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
7039
7040         * gtk/gtk.def
7041         * gtk/makefile.mingw.in: Updates.
7042
7043 2001-02-08  Havoc Pennington  <hp@redhat.com>
7044
7045         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
7046         add a widget to a bin that already has a child.
7047
7048         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
7049
7050         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
7051         
7052         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
7053
7054         * gdk/gdk.h: remove gdkcc.h
7055
7056         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
7057
7058         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
7059         GdkPixbuf, since the previous implementation was GdkColorContext
7060         dependent.
7061
7062         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
7063         
7064 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
7065
7066         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
7067         a sane value!
7068
7069 2001-02-08  Havoc Pennington  <hp@redhat.com>
7070
7071         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
7072         lighten them.
7073
7074 2001-02-08  Havoc Pennington  <hp@redhat.com>
7075
7076         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
7077         validation idle
7078
7079         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
7080         cell renderer
7081
7082         * demos/pixbuf-demo.c (timeout): remove deprecated
7083         gtk_widget_draw
7084
7085         * demos/testpixbuf-save.c (main): remove deprecated
7086         gtk_drawing_area_size
7087
7088         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
7089         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
7090         at the start of the allocation.
7091         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
7092         unsetup or NULL model.
7093
7094         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
7095         even/odd/sorted cells in the tree view.
7096
7097         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
7098         bugfixes
7099
7100         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
7101         backgrounds with draw_flat_box using different detail for even/odd
7102         rows.
7103
7104         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
7105         row, so we can draw the alternating colors thing
7106
7107         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
7108         property from a synonym property, notify for the synonym.
7109         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
7110         (gtk_text_tag_get_property): Always return the font, even if
7111         all its fields aren't set
7112
7113         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
7114         store the attr list; it leaves us with no way to change attributes
7115         in _render according to the render flags, and no way to implement
7116         get_property. Instead store all the specific text attributes. 
7117         Separate whether an attribute is enabled from its value. Sync all
7118         properties with GtkTextTag, make them all consistent, etc.
7119
7120         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
7121         renderers can highlight the sort row/column     
7122
7123         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
7124         accessor functions to get values; this has the side effect of
7125         showing up which accessor functions were missing. Added those.
7126
7127         * gtk/gtktreeviewcolumn.h: Replace set_justification with
7128         set_alignment, to be consistent with GtkLabel, GtkMisc
7129
7130         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
7131         arrow.
7132
7133         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
7134
7135         * gtk/gtktreesortable.h: updates in here
7136
7137 2001-02-07  Sven Neumann  <sven@convergence.de>
7138
7139         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
7140         pango dimensions after painting the background. We used to draw
7141         gigantic flat boxes here.
7142
7143 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
7144
7145         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
7146         error introduced with earlier commit) (pointed out by
7147         Ollie Lho)
7148
7149 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
7150
7151         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
7152         which are no longer necessary.
7153
7154 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
7155
7156         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
7157
7158 2001-02-04  Tor Lillqvist  <tml@iki.fi>
7159
7160         * gdk/gdk.def
7161         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
7162         Provide dummy implementations.
7163
7164 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
7165
7166         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
7167
7168         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
7169         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
7170         deprecated this function.
7171
7172         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
7173         argument.
7174
7175 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
7176
7177         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
7178
7179 2001-02-03  Havoc Pennington  <hp@pobox.com>
7180
7181         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
7182         Mikael Hermansson with patch from Mikael (if there was a toggle
7183         start one after the first character in the range, this function
7184         was broken). Bug #50380
7185
7186 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
7187
7188         * configure.in: Remove confusing comment about X11.
7189
7190 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
7191
7192         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
7193         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
7194         
7195 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
7196
7197         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
7198         it breaks things on BSD. If you want to compile GTK+ with
7199         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
7200         when configuring, since GTK+ simply can't be "pure ANSI" 
7201         in the header files it uses. (#8170, Greg Hudson)
7202
7203 2001-02-02  Havoc Pennington  <hp@redhat.com>
7204
7205         * gtk/gtkwindow.c: docs
7206
7207         * gtk/gtkwidget.c: docs
7208         (gtk_widget_set_colormap): add a reference to the colormap
7209         (gtk_widget_get_default_colormap): add a reference to the colormap
7210
7211         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
7212
7213         * gtk/gtktextiter.c: docs
7214
7215         * gtk/gtkmain.c (gtk_propagate_event): docs
7216
7217         * gtk/gtkpaned.c (gtk_paned_get_position): docs
7218         (gtk_paned_set_position): docs
7219
7220         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
7221         sort interface, no implementation yet.
7222
7223         * demos/testpixbuf.c (new_testrgb_window): replace
7224         gtk_drawing_area_size() with gtk_widget_set_usize()
7225
7226         * demos/testpixbuf-drawable.c (main): ditto
7227         
7228         * gtk/testgtk.c: remove use of GtkStatusbarMsg
7229
7230         * gtk/gtktextbuffer.c: docs
7231
7232         * gtk/gtkstock.c: docs
7233
7234         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
7235
7236         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
7237
7238         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
7239         
7240         * gtk/gtkimage.c: add some docs in here
7241         (gtk_image_size_request): change name of
7242         gtk_widget_render_stock_icon
7243         (gtk_image_get_icon_set): don't dup returned string
7244         (gtk_image_get_icon_set): don't dup returned string
7245
7246         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
7247         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
7248         and gtkiconfactory.h functions
7249
7250         * gtk/gtkiconfactory.c: add some docs in here
7251
7252         * gtk/gtkmain.c (gtk_get_default_language): document
7253         (gtk_get_current_event): document
7254         (gtk_get_current_event_state): document
7255         (gtk_get_event_widget): document
7256
7257         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
7258
7259         * gtk/gtkcontainer.c: Add some documentation
7260         (gtk_container_add): give a more explanatory warning on adding an
7261         already-parented widget, this is kind of a FAQ and also a common
7262         typo that's easier to debug with a nice warning 
7263
7264         * gtk/gtkcellrenderertoggle.c
7265         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
7266         adding this, it's useless
7267         (gtk_cell_renderer_toggle_set_active): remove
7268         (gtk_cell_renderer_toggle_get_radio): add
7269
7270         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
7271         the NULL cell renderer, that doesn't make any sense to me. 
7272
7273         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
7274         demo code should never use deprecated features.
7275
7276         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
7277         code should never use deprecated features.
7278
7279         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
7280         gtk_widget_queue_clear_area deprecated
7281
7282         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
7283         deprecated
7284
7285         * gtk/gtklabel.h: mark gtk_label_get() deprecated
7286
7287         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
7288         a GdkImage deprecated, replaced by new consistently-named
7289         functions       
7290
7291         * gtk/gtkmain.h: Mark gtk_exit() deprecated
7292
7293         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
7294
7295         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
7296         deprecated
7297
7298         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
7299         so it won't appear in docs and confuse people.
7300
7301         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
7302
7303         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
7304         macros deprecated. (can't mark the type itself deprecated, since
7305         GtkProgressBar is not deprecated and we need the type decl to use
7306         GtkProgressBar)
7307
7308         * gtk/gtkpixmap.h: Mark deprecated
7309
7310         * gtk/gtkoldeditable.h: Mark deprecated
7311
7312         * gtk/gtklist.h: Mark deprecated
7313
7314         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
7315         for anything anymore.
7316
7317         * gtk/gtkctree.h: Mark deprecated
7318
7319         * gtk/gtkclist.h: Mark deprecated
7320
7321         * gtk/gtkpreview.h: Mark deprecated
7322
7323         * gtk/gtkpacker.h: Mark deprecated
7324
7325         * gtk/gtktipsquery.h: Mark deprecated
7326
7327         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
7328
7329         * gtk/gtkvruler.h: Add comment that it will move out of GTK
7330
7331         * gtk/gtkhruler.h: Add comment that it will move out of GTK
7332
7333         * gtk/gtkruler.h: Add comment that it will move out of GTK
7334
7335         * gtk/gtkgamma.h: Add comment that it will move out of GTK
7336
7337         * gtk/gtkcurve.h: Add comment that it will move out of GTK
7338
7339 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
7340
7341         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
7342         gdk_colormap_sync private since it was never exported
7343         in a header file.
7344
7345         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
7346         colormap->colors[] for StaticGray, StaticColor colormaps.
7347
7348         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
7349         was being used as if it was image->bits_per_pixel.
7350
7351         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
7352         for the image in the GdkImage structure since it isn't
7353         reconstructable, and we need it to handle packed types
7354
7355         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
7356         the assumption that on Win32 image->bits_per_pixel == image->depth,
7357         always.
7358
7359         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
7360
7361         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
7362         warning message if no converter can be found. 
7363
7364 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
7365
7366         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
7367         chars to isupper() / tolower(). (#567)
7368
7369         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
7370         to clear up 64-bit warnings. (#567)
7371
7372 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
7373
7374         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
7375         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
7376
7377         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
7378         since some people set $(libdir) separately. (#1290, David Kaelbling)
7379
7380 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
7381
7382         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
7383         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
7384         MAXPATHLEN, but the code here depends on a fixed value.)
7385         (#4524)
7386
7387 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
7388
7389         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
7390         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
7391
7392 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
7393
7394         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
7395         viewable there is no way that moving the node will cause the 
7396         focus row to become not viewable, so omit check on the visibility
7397         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
7398
7399 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
7400
7401         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
7402         selection before inserting new text.
7403
7404 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
7405
7406         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
7407         Make the sensitivity of the reparented child track that of
7408         the original parent menu item. (#34218, David Hodson)
7409
7410         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
7411         the case where the current item is destroyed properly.
7412
7413         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
7414         some edge cases with child-less menuitems.
7415         
7416 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
7417
7418         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
7419         key pop down window. (#12074, Jon K Hellan)
7420
7421 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
7422
7423         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
7424         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
7425         The solution here isn't perfect - you get an extraneous
7426         emission of "toggle", which could conceivably confuse an app,
7427         but better than the current situation. LXR search seems to
7428         indicate that no apps in GNOME CVS connect to "toggle".
7429
7430 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
7431
7432         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
7433         gtk_public_h_sources to directly here to avoid warning when
7434         building srcdir != builddir. (#9656)
7435
7436 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
7437
7438         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
7439         handlers in gtkrange.c return the proper values (TRUE == handled)
7440         (#10316).
7441
7442         This is just the tip of the iceberg, but gtkrange.c is the
7443         most common place where the propagation is problematical,
7444         and also a place where it is almost certainly safe to change
7445         this in the stable branch.
7446
7447         (You don't want right click popups on a range control or anything...)
7448
7449 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
7450
7451         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
7452         area on focus out, even if a background pixmap isn't set.
7453         (#13941)
7454         
7455 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
7456
7457         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
7458         to deal with setting the shape properly when scrolling arrows are
7459         turned on, but not visible because there is sufficient space.
7460         (#13432)
7461
7462 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
7463
7464         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
7465         items with submenus, destroy the item along with the submenu.
7466         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
7467         properly.
7468
7469         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
7470         later.
7471
7472 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
7473
7474         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
7475         the focus widget sometimes wasn't drawn with the default if there
7476         was no default widget.
7477
7478         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
7479         unreference pixmaps. 
7480
7481         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
7482         for some extra safety.
7483
7484 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
7485
7486         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
7487         the text of a cell to the old pointer value better, by
7488         copying the new text before freeing the old text. Some code
7489         cleanup. (#8079, Karl Nelson)
7490
7491 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
7492
7493         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
7494         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
7495
7496 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
7497
7498         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
7499         item from a menu, check to see if it matches 
7500         menu->old_active_menu_item, and if so, unref and clear
7501         old_active_menu_item (Patch from Pavel Cisler)
7502
7503         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
7504         menu_shell->active_menu_item, if it is the child being
7505         removed. (Patch based on that of Gene Ragan, #50337)
7506
7507 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
7508
7509         * gdk/linux-fb/gdkselection-fb.c: 
7510         * gdk/linux-fb/gdkcolor-fb.c: 
7511         * gdk/linux-fb/gdkdrawable-fb2.c: 
7512         * gdk/linux-fb/gdkfont-fb.c: 
7513         * gdk/linux-fb/gdkim-fb.c: 
7514         * gdk/linux-fb/gdkinput.c: 
7515         * gdk/linux-fb/gdkkeyboard-fb.c: 
7516         * gdk/linux-fb/gdkmain-fb.c: 
7517         * gdk/linux-fb/gdkrender-fb.c: 
7518         A bunch of whitespace cleanup.
7519         
7520 2001-01-30  Havoc Pennington  <hp@pobox.com>
7521
7522         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
7523         #ifdef GTK_ENABLE_BROKEN.
7524
7525         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
7526         GTK_ENABLE_BROKEN just before including the broken headers.
7527         
7528         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
7529         deprecated types registered.
7530
7531         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
7532         we have to test the broken stuff.
7533
7534         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
7535         
7536 2001-01-30  Havoc Pennington  <hp@redhat.com>
7537
7538         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
7539         here where prev pointer was set to the wrong thing
7540
7541         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
7542         (gtk_tree_path_is_descendant): new function
7543
7544         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
7545         cached length
7546         (gtk_list_store_get_iter): don't modify iter if we can't get the
7547         path.
7548
7549         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
7550         
7551         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
7552         GtkTreeDragDest
7553
7554         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
7555         was causing segfault
7556
7557         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
7558         pointer to NULL
7559
7560         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
7561
7562         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
7563         on returning FALSE
7564         (gtk_list_store_iter_children): ditto
7565         (gtk_list_store_iter_nth_child): ditto
7566         (gtk_list_store_iter_nth_child): ditto
7567         (gtk_list_store_iter_parent): ditto
7568
7569         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
7570         on iter->user_data != NULL instead of silently accepting it.
7571         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
7572         we are returning TRUE.
7573         (gtk_tree_store_iter_children): ditto
7574         (gtk_tree_store_iter_nth_child): ditto
7575         (gtk_tree_store_iter_parent): ditto
7576         (gtk_tree_store_insert): remove handling of parent->user_data ==
7577         NULL, replace with parent == NULL       
7578
7579         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
7580         and a comment explaining things
7581
7582         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
7583         interface support to GtkTreeStore.
7584
7585         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
7586         FALSE if no prev, fix
7587
7588         * gtk/gtktreeview.c (set_source_row): use a row reference
7589         (set_dest_row): use a row reference
7590
7591 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
7592
7593         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
7594         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
7595         (gtk_tree_selection_select_iter): The same as above.
7596
7597 2001-01-26  Havoc Pennington  <hp@redhat.com>
7598
7599         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
7600         which holds a handle to a specific row (particular set of values
7601         in the model, i.e. pointer-identity row).
7602
7603         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
7604         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
7605         Still need to use it for the src/dest row saved on the drag context.
7606
7607 2001-01-26  Havoc Pennington  <hp@redhat.com>
7608
7609         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
7610
7611         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
7612         not offset by TREE_VIEW_HEADER_HEIGHT
7613         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
7614         TREE_VIEW_HEADER_HEIGHT
7615
7616         * configure.in (included_loaders): for me, --with-included-loaders
7617         generates the error "the specified loader yes does not exist",
7618         i.e. the arg defaults to "yes", so change test for value ""
7619         to test for value "yes", and include all loaders in that case.
7620
7621         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
7622
7623         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
7624         handle TREE_VIEW_VERTICAL_SEPARATOR
7625         (gtk_tree_view_bin_expose): fix to consider the row offset as
7626         pointing halfway into vertical separator.       
7627         (gtk_tree_view_draw_node_focus_rect): ditto
7628
7629         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
7630         --gtk-debug=updates, which causes gdk_window_set_debug_updates
7631         (TRUE) to be called.
7632
7633         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
7634         debug mode where the invalid region is colored in on invalidate,
7635         so you can see the flicker and know whether your redraw code is 
7636         doing a good job.
7637
7638         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
7639         tree window coordinates (clip rect is in tree window coords)
7640
7641         * gtk/Makefile.am: add gtktreednd.[hc]
7642
7643         * gtk/gtkliststore.c: implement gtktreednd interfaces.
7644
7645         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
7646         drag-and-drop data operations on a model (so we can set up tree
7647         drag-and-drop automatically)
7648
7649         * gtk/testgtk.c: Add a window to change sensitivity in the
7650         GtkLabel test; add a way to change the entry frame in GtkEntry
7651         test
7652
7653         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
7654         (gtk_entry_get_has_frame): new functions to remove the frame
7655         around an entry
7656         (gtk_entry_size_request): shrink requisition if no frame
7657         (gtk_entry_draw_focus): don't draw frame if no frame
7658
7659         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
7660         checks inside a cell renderer
7661         (gtk_default_draw_option): ditto for options
7662
7663         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
7664         children from the alignment, not the button
7665         (gtk_tree_view_column_init): ref/sink the column, to emulate
7666         GObject refcounting.
7667
7668         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
7669         
7670         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7671         Use theme functions to draw the toggles 
7672
7673         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
7674
7675         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
7676         GdkPangoAttrEmbossed to use in rendering insensitive text
7677
7678         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
7679
7680         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
7681         using new GDK features
7682         
7683 2001-01-24  Alexander Larsson  <alexl@redhat.com>
7684
7685         * gtk/gtkimage.c:
7686         Splitted gtk_image_clear into gtk_image_clear() and
7687         gtk_image_reset(). Call gtk_image_clear() in ::destroy
7688         to avoid leaks.
7689
7690         * gtk/gtklabel.c (set_markup):
7691         Don't leak text.
7692
7693         * gtk/gtktextlayout.c:
7694         Always free display->shaped_objects.
7695
7696         * gtk/testgtk.c (create_clist):
7697         Don't leak custom style.
7698
7699 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7700
7701         * gtk/gtkcolorsel.c (grab_color_at_mouse):
7702         Don't leak image. Simplify using gdk_colormap_query_color().
7703         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
7704
7705         * linux-fb/gdkcolor-fb.c:
7706         Implemented gdk_colormap_query_color.
7707
7708 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7709
7710         * linux-fb/gdkcursor-fb.c:
7711         Don't leak built-in cursors.
7712
7713         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
7714         Don't leak tmp_points.
7715
7716         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
7717         Don't modify desc. Don't leak font if the PangoFont
7718         isn't found.
7719         
7720         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
7721         Free dash_list.
7722
7723         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
7724         Don't leak string.
7725         
7726 2001-01-20  Havoc Pennington  <hp@pobox.com>
7727
7728         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
7729         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
7730         me, matches Pango
7731
7732 2001-01-22  Havoc Pennington  <hp@redhat.com>
7733
7734         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
7735
7736         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
7737
7738         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
7739         Remove, move back to gdk-pixbuf
7740
7741         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
7742         to all the word functions
7743
7744         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
7745         before doing anything on NULL layout or if we don't have the focus
7746
7747         * gtk/testtext.c (fill_example_buffer): "justification"
7748
7749         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
7750         to be called "justification" not "justify"
7751
7752         * demos/gtk-demo/textview.c (create_tags): "justification"
7753         
7754         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
7755
7756 2001-01-22  Alexander Larsson  <alexl@redhat.com>
7757
7758         * gdk/gdkwindow.c (gdk_window_invalidate_region):
7759         Don't leak visible_region. Use visible_region instead of region.
7760         
7761         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
7762         Don't do extra gdk_drawable_ref(). This is not X.
7763         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
7764         gdk_fb_focused_window is ref:ed.
7765         (gdk_fb_window_send_crossing_events): Watch out for destroyed
7766         windows.
7767
7768 2001-01-22  Alexander Larsson  <alexl@redhat.com>
7769
7770         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
7771         Don't leak the PangoFontDescriptor.
7772
7773 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
7774
7775         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
7776         when not realized.
7777         (gtk_tree_view_scroll_to_cell): Make work when not realized.
7778         (gtk_tree_view_realize): add scroll_to support
7779         (gtk_tree_view_finalize): add a finalize method.  Populate.
7780         (gtk_tree_view_insert_column): ref and sink the column.
7781         (gtk_tree_view_append_column): ref and sink the column.
7782         (gtk_tree_view_queue_draw_node): New function to handle redrawing
7783         individual nodes.  Should make the code much more efficient, if
7784         actually used.
7785
7786 2001-01-19  Havoc Pennington  <hp@redhat.com>
7787
7788         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
7789         byte_offset variable was being used to mean both "offset into
7790         layout" and "offset into buffer line" which was no longer true
7791         with addition of preedit string; fix
7792
7793 2001-01-19  Havoc Pennington  <hp@redhat.com>
7794
7795         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
7796
7797         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
7798         function
7799
7800         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
7801         implement
7802
7803         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
7804         scroll_to_cell, matches TextView scroll functions better
7805         (gtk_tree_view_tree_to_widget_coords): new function
7806         (gtk_tree_view_widget_to_tree_coords): new function
7807         (gtk_tree_view_get_visible_rect): new function
7808         (gtk_tree_view_get_path_at_pos): accept negative coordinates
7809         (gtk_tree_view_draw_node_focus_rect): new function moved from
7810         draw_focus, also, use width of bin_window as width of the focus
7811         rect
7812         (gtk_tree_view_expand_row): fix bug where it didn't recognize
7813         already-expanded rows
7814         (gtk_tree_view_get_cell_rect): new function
7815         (gtk_tree_view_get_path_at_pos): return the click position
7816         relative to the passed-in cell
7817         (gtk_tree_view_set_expander_column): new function
7818
7819         * configure.in: remove gtk-config-2.0 chmod
7820
7821         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
7822         and properly handle drags with targets we don't understand
7823         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
7824         scrolling anyway
7825         (gtk_text_view_drag_drop): stop scrolling here though, and set the
7826         mark invisible
7827
7828         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
7829         function
7830         (gtk_drag_dest_get_target_list): new function
7831         (gtk_drag_dest_set_target_list): new function
7832         
7833         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
7834
7835         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
7836         related to drag-and-drop
7837
7838 2001-01-19  Alexander Larsson  <alexl@redhat.com>
7839
7840         * gdk/linux-fb/gdkprivate-fb.h:
7841         Define EMULATE_GDKFONT.
7842         Add extra pango_font stuff to GfkFontPrivate.
7843         
7844         * gdk/linux-fb/gdkdrawable-fb2.c:
7845         * gdk/linux-fb/gdkfont-fb.c:
7846         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
7847         emulation using PangoFont.
7848
7849 2001-01-17  Havoc Pennington  <hp@pobox.com>
7850
7851         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
7852         all the non-deprecated set_foo functions. Added missing object
7853         properties, and added g_object_notify() to setters. 
7854         Wrote docs.
7855         
7856 2001-01-18  Tor Lillqvist  <tml@iki.fi>
7857
7858         * gtk/gtkmain.c
7859         * gtk/gtkrc.c: (Win32) Use the new
7860         g_win32_get_package_installation_(sub)directory() functions.
7861
7862         * config.h.win32.in: New file.
7863         
7864         * config.h.win32: Removed.
7865
7866         * configure.in: Output config.h.win32.
7867
7868         * Makefile.am: Add it to EXTRA_DIST.
7869
7870         * gtk/gtk.def: Update.
7871
7872 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
7873
7874         * gtk/gtklabel.c (gtk_label_size_request): Set the
7875         attributes onto the PangoLayout even if they are newly
7876         created from label->pattern.
7877
7878 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
7879
7880         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
7881
7882         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
7883         structures in functions. Fixes bug where gtk_dataset_*
7884         was accidentally still being used in one place, causing
7885         every dest side event to be treated independently.
7886
7887         * gtk/gtkdnd.c: Remove last vestages of handling
7888         ::draw (fixes warning)
7889         
7890         * gtk/gtkentry.[ch]: Add drag and drop support.
7891
7892         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
7893         new function gtk_check_drag_threshhold() for checking
7894         to check if (dx,dy) has exceeded the threshhold for starting
7895         a drag and use it everywhere.
7896
7897 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
7898
7899         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
7900         add -I{includedir}/gtk-2.0.
7901
7902         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
7903         gdk/gdk-pixbuf.h: Doc fixups.
7904         
7905         * gtk/gtkobject.h: Remove trailing , from enum
7906
7907 2001-01-17 Alexander Larsson <alexl@redhat.com> 
7908
7909         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
7910         Doh! Mixed up x and y.
7911
7912         * gdk/linux-fb/gdkglobals-fb.c:
7913         Removed gdk_fb_pointer_grab_window_events,
7914         added _gdk_fb_pointer_grab_owner_events and
7915         _gdk_fb_keyboard_grab_owner_events.
7916
7917         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
7918         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
7919         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
7920         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
7921         Send crossing events after ungrab finished.
7922         (gdk_keyboard_grab): Set ..._owner_events
7923         (type_masks): Move out of function.
7924         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
7925         gdk_fb_keyboard_event_window): New functions, return the
7926         window an event should be targeted at. Handles grabs and
7927         event propagation. Can return NULL.
7928         (gdk_event_make): Remove event_mask checking. Now always
7929         returns an event.
7930                 
7931         * gdk/linux-fb/gdkkeyboard-fb.c:
7932         * gdk/linux-fb/gdkproperty-fb.c:
7933         * gdk/linux-fb/gdkselection-fb.c:
7934         Use new event_window/gdk_event_make() behaviour.
7935         
7936         * gdk/linux-fb/gdkmouse-fb.c:
7937         Use new event_window/gdk_event_make() behaviour.
7938         Only send motion events if in the same window.
7939         If grabbed, use cursor from window if sibling of grabbed
7940         window, and cursor from grabbed window otherwise.
7941
7942         * gdk/linux-fb/gdkprivate-fb.h:
7943         Update gdk_fb_window_send_crossing_events, gdk_event_make
7944         and grab varaible declarations. Add gdk_fb_*_event_window().
7945
7946         * gdk/linux-fb/gdkwindow-fb.c:
7947         Use new event_window/gdk_event_make() behaviour.
7948         Keep correct track of focus window.
7949         (gdk_window_set_events): Set all specific button motion masks
7950         if GDK_BUTTON_MOTION_MASK set.
7951
7952         * gtk/gtkdnd.c (gtk_drag_update):
7953         Free info->last_event if gdk_drag_motion returned FALSE.
7954
7955 2001-01-16  Tor Lillqvist  <tml@iki.fi>
7956
7957         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
7958         Eliminate redraws when input-only windows are shown or
7959         hidden. Thanks to jpe@archaeopteryx.com.
7960
7961 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
7962
7963         * docs/faq/gtk-faq.sgml: FAQ update:
7964           - Update to bugzilla
7965           - Add GTK+ and security/SUID/SGID
7966           - Add DnD question
7967
7968 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
7969
7970         * gdk/linux-fb/gdkdnd-fb.c:
7971         Some cleanups.
7972         
7973 2001-01-15  Havoc Pennington  <hp@pobox.com>
7974
7975         * tests/testtreeview.c: add test stuff for CellRendererToggle
7976
7977         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
7978         accessor
7979
7980         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
7981         only toggle on button press (would do release like GtkButton, but
7982         we'd need implicit grab code for treeview cells)
7983
7984 2001-01-16  Tor Lillqvist  <tml@iki.fi>
7985
7986         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
7987
7988         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
7989         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
7990
7991         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
7992         to g_{locale,filename}_{to,from}_utf8 to match current API.
7993
7994         * gtk/makefile.msc.in (gtk_OBJECTS)
7995         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
7996
7997         * gtk/gtk.def: Update.
7998
7999 2001-01-15  Tor Lillqvist  <tml@iki.fi>
8000
8001         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
8002         implementaion that more closely mimics the events that an X server
8003         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
8004         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
8005         with nested preview widgets, for instance, more responsive when
8006         you move the mouse quickly into them.
8007         (find_window_for_pointer_event): Make it actually compile.
8008         (gdk_event_translate): Set send_event to the value of
8009         InSendMessage (). This doesn't really mean the same as X11's
8010         send_event flag, but is close enough, says jpe@archaeopteryx.com
8011
8012 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8013
8014         * gdk/linux-fb/gdkdnd-fb.c:
8015         Implemented drag and drop.
8016         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
8017         when it tries to free and then copy the same event (info->last_event).
8018         I am not sure about why this happens, but will continue looking.
8019
8020 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8021
8022         * gdk/linux-fb/gdkwindow-fb.c:
8023         Use gdk_window_invalidate_rect instead of
8024         gdk_window_invalidate_rect_clear to minimise flashing.
8025         When hiding windows you need to clear the root window though.
8026
8027 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8028
8029         * gdk/linux-fb/gdkdrawable-fb2.c:
8030         For optization, add an full_shapes argument to gdk_fb_clip_region.
8031         If this is false, only the cliprects of the shapes are used.
8032
8033         * gdk/linux-fb/gdkprivate-fb.h:
8034         Export gdk_fb_window_peek_shape.
8035         Add full_shapes to gdk_fb_clip_region.
8036
8037         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
8038         When moving a window, don't clear everything under the it, just the
8039         root window. Makes stuff faster and flash less.
8040         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
8041         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
8042         offset of the shape.
8043         
8044
8045 2001-01-12  Havoc Pennington  <hp@redhat.com>
8046
8047         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
8048         current invalid region, fixes redraw bug while scrolling the 
8049         text widget
8050
8051         * gtk/gtktextview.c, gtk/gtktextview.h:
8052         Rearrange the scrolling/validation/etc. code in a major way, 
8053         so it seems to make sense to me. Probably isn't genuinely that
8054         much better, but...
8055
8056         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
8057         notifies
8058
8059         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
8060
8061 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
8062
8063         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
8064         Hide mouse pointer while rotation. Show it afterwards.
8065
8066 2001-01-12  Alexander Larsson  <alexl@redhat.com>
8067
8068         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
8069         windows in consideration when generating clip region.
8070
8071         * gdk/linux-fb/gdkfb.h:
8072         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
8073
8074         * gdk/linux-fb/gdkprivate-fb.h:
8075         Add shape to GdkWindowFBDatat.
8076         exported gdk_fb_window_get_abs_shape().
8077         removed gdk_fb_draw_lines declaration.
8078
8079         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
8080         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
8081         send focus changes when there is a grabbed window.
8082         (gdk_window_get_pointer): Handle shaped windows.
8083         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
8084         (gdk_fb_window_peek_shape): Returns the shape for a window,
8085         handles GDK_FB_USE_CHILD_SHAPE.
8086         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
8087         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
8088         (gdk_window_shape_combine_mask): Implement.
8089
8090         * gtk/gtkwindow-decorate.c:
8091         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
8092         setting the shape of a window makes the window transparent.
8093
8094 2001-01-11  Havoc Pennington  <hp@redhat.com>
8095
8096         * gtk/gtktreemodelsimple.h: Oops, broke some macros
8097
8098 2001-01-10  Havoc Pennington  <hp@redhat.com>
8099
8100         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
8101         add this function, bug 40251
8102
8103         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
8104         of type macro   
8105
8106 2001-01-11  Alexander Larsson  <alexl@redhat.com>
8107
8108         * acconfig.h:
8109         Added ENABLE_SHADOW_FB
8110
8111         * configure.in:
8112         Added --disable-shadowfb
8113
8114         * gdk/linux-fb/gdkcursor-fb.c:
8115         Update shadowfb when updating cursor
8116
8117         * gdk/linux-fb/gdkdrawable-fb2.c:
8118         Added wrappers for shadowfb that calls  the normal drawable
8119         methods, but calls gdk_shadow_fb_update(bounding box) when
8120         GdkWindows are drawed to.
8121         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
8122         which also returns the bounding box.
8123
8124         * gdk/linux-fb/gdkfb.h:
8125         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
8126
8127         * gdk/linux-fb/gdkgeometry-fb.c:
8128         Update shadowfb when scrolling window.
8129
8130         * gdk/linux-fb/gdkglobals-fb.c:
8131         Add _gdk_fb_screen_angle.
8132         
8133         * gdk/linux-fb/gdkkeyboard-fb.c:
8134         Test code for screen rotation. Shift-F2 in the xlate driver
8135         rotates the screen.
8136
8137         * gdk/linux-fb/gdkmain-fb.c:
8138         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
8139
8140         * gdk/linux-fb/gdkmouse-fb.c:
8141         Use fb_width/height instead of modeinfo.xres/yres.
8142
8143         * gdk/linux-fb/gdkprivate-fb.h:
8144         Added fb_men, fb_width, fb_height & fb_stride. When using
8145         shadow fb these can differ from the framebuffer stuff.
8146         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
8147         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
8148         _gdk_fb_screen_angle. Removed CM, RP.
8149
8150         * gdk/linux-fb/gdkrender-fb.c:
8151         Added code for shadowfb handling and screen rotation using
8152         shadowfb.
8153
8154         * gdk/linux-fb/gdkwindow-fb.c:
8155         Use fb_mem, fb_stride, fb_width, fb_height.
8156         Added recompute_rowstride to reset the rowstride of all windows.
8157         Added gdk_fb_recompute_all() which recomputes rootwindow size,
8158         window abs positions and window rowstrides. Usefull when the
8159         rotation has changed.
8160
8161 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
8162
8163         * docs/faq/gtk-faq.sgml: update to make web site updating easier
8164
8165 2001-01-10  Havoc Pennington  <hp@redhat.com>
8166
8167         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
8168         where sibling == iter
8169         (gtk_tree_store_insert_after): handle sibling == iter
8170         (gtk_tree_store_prepend): remove stamp checks
8171         (gtk_tree_store_insert_before): ditto
8172         (gtk_tree_store_append): ditto
8173         (gtk_tree_store_get_path): ditto
8174         (gtk_tree_store_get_value): ditto
8175         (gtk_tree_store_iter_has_child): ditto
8176         (gtk_tree_store_iter_n_children): ditto
8177         (gtk_tree_store_iter_nth_child): ditto
8178         (gtk_tree_store_insert_after): ditto
8179         (gtk_tree_store_is_ancestor): ditto
8180         (gtk_tree_store_iter_depth): ditto
8181         (gtk_tree_store_insert_before): assert that sibling's parent is
8182         the same as the passed-in parent
8183         (gtk_tree_store_insert_after): assert that sibling's parent is
8184         the same as the passed-in parent
8185
8186         
8187         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
8188         function to get the first iterator in a model
8189         
8190         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
8191         conventionally the "root" in this sense is just NULL afaict.
8192
8193         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
8194         where sibling == iter
8195         (gtk_list_store_insert_after): handle case where sibling == iter
8196
8197         * tests/testtreeview.c (run_automated_tests): fairly lame basic
8198         automated tests for ListStore, TreeStore
8199
8200         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
8201         (gtk_list_store_insert): update tail pointer, and fix it to work
8202         (gtk_list_store_insert_before): update tail pointer, and fix it to work
8203         (gtk_list_store_append): use tail to be faster
8204         (gtk_list_store_prepend): fix it, update tail pointer
8205         (gtk_list_store_insert_after): fix it, update tail pointer
8206
8207         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
8208         the list
8209
8210 2001-01-09  Havoc Pennington  <hp@redhat.com>
8211
8212         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
8213         is NULL due to a pending resize
8214
8215         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
8216         column width to values less than 1
8217
8218         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
8219         width to be between min/max width, and still set the width 
8220         even if autosize is turned on, so the tree view can use this 
8221         function in order to autosize.
8222         (gtk_tree_view_column_init): set initial width to 1 not 0
8223
8224         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
8225         setter function to modify column width, so we get notification
8226         (gtk_tree_view_insert_iter_height): ditto
8227         (gtk_tree_view_calc_size): ditto
8228         (gtk_tree_view_check_dirty): ditto
8229
8230         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
8231         properties to change all the interesting attributes of the tree
8232         view column.
8233         (gtk_tree_view_column_set_header_clickable): rename set_clickable
8234         (gtk_tree_view_column_get_clickable): add
8235         (gtk_tree_view_column_set_cell_renderer): don't unset the current
8236         attributes; assume a cell renderer with equivalent object
8237         properties has been swapped in. Do g_object_notify().
8238         (gtk_tree_view_column_set_visible): g_object_notify
8239         (gtk_tree_view_column_get_sizing): rename from get_col_type
8240         (gtk_tree_view_column_set_sizing): g_object_notify
8241         (gtk_tree_view_column_set_width): add g_object_notify
8242         (gtk_tree_view_column_set_min_width): ditto
8243         (gtk_tree_view_column_set_max_width): ditto
8244         (gtk_tree_view_column_set_title): ditto
8245         (gtk_tree_view_column_set_clickable): ditto
8246         (gtk_tree_view_column_set_widget): ditto
8247         (gtk_tree_view_column_set_justification): ditto
8248
8249 2001-01-09  Havoc Pennington  <hp@redhat.com>
8250
8251         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
8252         there are no rows in the model
8253
8254         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
8255         NULL, then return the start of the list
8256
8257         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
8258         if we can't get any rows from an empty model 
8259
8260         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
8261         extraneous * after function pointer typedef usage
8262
8263         * Makefile.am: don't specify full path to cp and rm
8264
8265         * gtk/gtkcellrenderertextpixbuf.c
8266         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
8267         NULL before dereferencing, fixes a segfault that happened from
8268         time to time
8269
8270         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
8271         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
8272         and reindent the function
8273         (gtk_cell_renderer_pixbuf_get_size): indentation
8274
8275         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
8276         we quit it
8277         (gtk_dialog_add_buttons_valist): add g_return_if_fail
8278         (gtk_dialog_set_default_response): New function, to set default
8279         button
8280         (gtk_dialog_set_response_sensitive): New function, to set 
8281         sensitivity of buttons
8282
8283         * gtk/gtkcellrendererpixbuf.c
8284         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
8285         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
8286
8287         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8288         handle any G_TYPE_OBJECT subclass, not just the base class, and 
8289         also boxed types.
8290         (_gtk_tree_data_list_value_to_node): ditto
8291
8292         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
8293         --gtk-debug=tree
8294
8295         * gtk/gtkmain.c: add GTK_DEBUG_TREE
8296
8297         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
8298
8299 2001-01-09  Tor Lillqvist  <tml@iki.fi>
8300
8301         * gdk/win32/gdkevents-win32.c: Implement better mouse
8302         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
8303         (find_window_for_pointer_event): New function.
8304         (gdk_event_translate): Use it when handling mouse events.
8305
8306 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
8307
8308         * configure.in:
8309         Added --with-included-loaders option
8310
8311         * gdk-pixbuf/Makefile.am:
8312         * gdk-pixbuf/gdk-pixbuf-io.c:
8313         Add support for including selected gdk-pixbuf loaders only.
8314
8315         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
8316         gtk_window_set_has_frame):
8317         Added inline documentation.
8318
8319         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
8320         * docs/reference/gdk/tmpl/windows.sgml:
8321         Added inline documentation.
8322
8323 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
8324
8325         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
8326         realizing buttons that have already been realized.
8327
8328 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
8329
8330         * tests/testtreeview.c (main): Show menu items before adding to
8331         option menu.
8332
8333         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
8334         around if we kill them.
8335
8336         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
8337         Return if we pass in a NULL model.
8338
8339 2001-01-08  Havoc Pennington  <hp@redhat.com>
8340
8341         * tests/testtreeview.c: hack on this some
8342
8343         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
8344         gtk_tree_store_set_valist, v is for arrays, valist for varargs
8345         list
8346         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
8347
8348         * gtk/gtkliststore.h: Add varargs set() and get() convenience
8349         functions
8350
8351 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8352
8353         * gtk/gtkwindow-decorate.[hc]:
8354         * gtk/Makefile.am:
8355         New files. Contains an implementation of a minimal WM for
8356         linux-fb.
8357
8358         * gtk/gtkwindow.h:
8359         Add the possibility for GtkWindows to specify a frame. This
8360         is used for the window decoration code, but could concievably
8361         be used for X programs too (xmms style windows).
8362         GtkWindow->frame is the toplevel window if the window is framed.
8363         The signal frame_event gets all events that are targeted to
8364         GtkWindow->frame.
8365         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
8366         
8367         * gtk/gtkwindow.c:
8368         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
8369         Call out to gtkwindow-decorate.c for WM support in linx-fb.
8370
8371 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8372
8373         * docs/README.linux-fb:
8374         Correct filename ~/.pangoft2_aliases
8375
8376         * gdk/gdkwindow.h:
8377         Added new function gdk_window_get_decorations.
8378
8379         * gdk/linux-fb/gdkfb.h:
8380         Removed _gdk_window_get_decorations declaration.
8381         Renamed _gdk_window_set_child_handler to
8382         gdk_fb_window_set_child_handler.
8383
8384         * gdk/linux-fb/gdkwindow-fb.c:
8385         Renamed _gdk_window_set_child_handler to
8386         gdk_fb_window_set_child_handler.
8387
8388         * gdk/x11/gdkwindow-x11.c:
8389         New function gdk_window_get_mwm_hints().
8390         Implemented gdk_window_get_decorations.
8391
8392         * docs/reference/gdk/tmpl/windows.sgml:
8393         * docs/reference/gdk/gdk-sections.txt:
8394         Added gdk_window_get_decorations docs.
8395         
8396 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
8397
8398         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
8399         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
8400         gdk_fb_window_send_crossing_events):
8401         Possibly send focus events when the mouse moves from one
8402         window to another.
8403
8404 2001-01-07  Tor Lillqvist  <tml@iki.fi>
8405
8406         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
8407         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
8408         to match current API.
8409
8410         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
8411         environment variable is set, don't call g_error when on a
8412         palettized (PseudoColor) display. Some people want to use GTK+ 
8413         in 256-colour mode even though works only partially.
8414
8415         * gdk/gdk.def
8416         * gtk/gtk.def
8417         * gtk/makefile.mingw.in: Update.
8418
8419 2001-01-05  Havoc Pennington  <hp@redhat.com>
8420
8421         * tests/testtreeview.c: hack on this a bit
8422
8423         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
8424         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
8425
8426         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
8427         was spelled incorrectly
8428         (GTK_IS_TREE_MODEL_SIMPLE): ditto
8429
8430         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
8431         from gtk_tree_view_set_headers_active   
8432
8433         * gtk/gtktexttag.c:
8434         (gtk_text_tag_get_property): handle PROP_DIRECTION
8435         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
8436         properties, bug 40235
8437
8438         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
8439         forward_to_line_end
8440
8441 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
8442
8443         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
8444         modules/input/gtkimcontextxim.c: Adapt to new prototypes
8445         for unicode,locale,filename conversion functions.
8446
8447 2001-01-05  Havoc Pennington  <hp@redhat.com>
8448
8449         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
8450         broken if called on the first position in the buffer.
8451
8452         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
8453         forward_to_delimiters to be called only if we aren't already at
8454         the delimiters.
8455
8456 2001-01-05  Havoc Pennington  <hp@redhat.com>
8457
8458         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
8459
8460 2001-01-05  Alexander Larsson  <alexl@redhat.com>
8461
8462         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
8463         colormap in here. Sync from X port.
8464         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
8465         Sync from X port.
8466         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
8467         This happens now and then, and i don't think it is a bug.
8468         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
8469         != endpoint.
8470         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
8471         GDK_LINE_SOLID.
8472
8473         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
8474         some of the fields filled in at least.
8475
8476         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
8477         miLineArcD is no more, remove it from the function definition.
8478
8479 2001-01-04  Havoc Pennington  <hp@redhat.com>
8480
8481         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
8482         this
8483
8484         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
8485         user_data instead of tree_node
8486
8487         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
8488         TREE_VIEW_COLUMN_SIZE
8489
8490         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
8491         "size" field to "width" finishes bug 40061
8492
8493         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
8494         for bitfields, bug 40268
8495
8496 2001-01-04  Havoc Pennington  <hp@redhat.com>
8497
8498         Rename some stuff:
8499         
8500         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
8501
8502         s/GtkModelSimple/GtkTreeModelSimple/g;
8503         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
8504         s/gtk_model_simple/gtk_tree_model_simple/g;
8505         s/gtkmodelsimple/gtktreemodelsimple/g;
8506
8507         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
8508
8509         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
8510         s/column_set_col_type/column_set_sizing/g;
8511
8512         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
8513         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
8514
8515         s/GtkCellRendererType/GtkCellRendererState/g;
8516         
8517         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
8518         (gtk_cell_renderer_toggle_class_init): change "state" property to
8519         "active", to match GtkToggleButton
8520         (gtk_cell_renderer_toggle_get_active): new function, bug
8521         40269
8522         (gtk_cell_renderer_toggle_set_active): new function
8523         (gtk_cell_renderer_toggle_set_property): route changes to toggle
8524         state through gtk_cell_renderer_set_active
8525
8526 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
8527
8528         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
8529         temporarily until they work again.  Brought up to date with
8530         changes in the model.
8531         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
8532         model.
8533
8534 2001-01-04  Havoc Pennington  <hp@redhat.com>
8535
8536         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
8537         equal to the line length, then position iterator before paragraph 
8538         separators. Fixes crash reported by Mikael Hermansson when
8539         pressing left arrow from the start of a line.   
8540
8541         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
8542         about byte indexes off the end
8543         (iter_set_from_char_offset): add g_error about char offsets
8544         off the end
8545
8546 2001-01-03  Havoc Pennington  <hp@redhat.com>
8547
8548         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
8549
8550         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
8551         of private functions; remove inclusion of private headers.
8552
8553         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
8554         function, so we don't need private functions in gtktextdisplay.c
8555
8556         * gtk/gtktextiterprivate.h: underscore-ification
8557
8558         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
8559         to instead say "only useful to implement widgets"
8560
8561         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
8562         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
8563         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
8564
8565         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
8566         This function was completely broken
8567
8568         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
8569
8570         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
8571
8572         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
8573
8574         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
8575
8576         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
8577
8578         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
8579
8580         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
8581         gtk_paint_layout
8582
8583         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
8584         gtk_paint_layout
8585
8586         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
8587         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
8588         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
8589         which were not implemented.     
8590
8591         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
8592         insert_pixbuf signal. Rename delete_text to delete_range since it
8593         also deletes pixbufs and child anchors. This almost closes bug
8594         40245 (still need to deal with child anchors)
8595
8596         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
8597         insert_pixbuf, change signal names as appropriate, change types of
8598         signals taking marks/tags to have the specific type, not just
8599         G_TYPE_OBJECT
8600         
8601         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
8602         closes bug 40051
8603
8604         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
8605         unnecessary remove_contents() call
8606         (gtk_option_menu_class_init): add a "changed" signal, closes
8607         bug 40039
8608         (gtk_option_menu_update_contents): emit "changed" if the 
8609         active menu item changes
8610
8611         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
8612         cast to GtkObject, reported by Jonas Borgstrom
8613         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
8614         we can't do stuff with side effects in finalize. Instead, spew a
8615         warning if the loader isn't closed.
8616
8617         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
8618         colormap in here, non-X ports probably need to sync to this change
8619
8620         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
8621         assertion that colormap != NULL, you can set the colormap to NULL
8622         if you like.
8623         
8624         * Makefile.am: remove gtk-config-2.0
8625
8626         * configure.in: Use pkg-config to locate GLib. Remove
8627         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
8628         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
8629         Use pkg-config to locate Pango. Output correct Pango libs to
8630         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
8631
8632         * Makefile.am (pkgconfig_DATA): install only target-specific pc
8633         files
8634         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
8635         X11 pc files
8636
8637         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
8638         unref from here
8639
8640 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
8641
8642         * configure.in:
8643         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
8644
8645 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8646
8647         * gtk/gtktextlayout.c
8648         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
8649         variable when moving back onto a single line.
8650
8651 2001-01-01  Havoc Pennington  <hp@redhat.com>
8652
8653         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8654
8655         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8656
8657         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
8658         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
8659
8660 2001-01-01  Havoc Pennington  <hp@redhat.com>
8661
8662         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
8663
8664         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
8665         GtkTextAttributes
8666
8667         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
8668         #40246
8669         (gtk_text_attributes_copy_values): rename from 
8670         gtk_text_attributes_copy
8671         (gtk_text_attributes_copy): a more standard GTK copy function, 
8672         which returns a new object
8673
8674 2001-01-01  Havoc Pennington  <hp@redhat.com>
8675
8676         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
8677         
8678         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
8679         don't fill in tree_view->priv->selection, kind of an unexpected
8680         side effect
8681
8682         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
8683         gtkintl.h
8684         
8685         * gtk/gtkcellrenderer.c: Remove definition of _ and include
8686         gtkintl.h
8687         (gtk_cell_renderer_get_property): remove calls to g_value_init
8688
8689         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
8690         gtkintl.h
8691
8692         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
8693         and include gtkintl.h
8694         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
8695         property names
8696
8697         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
8698         GtkTreeSelection
8699         (_gtk_tree_selection_new_from_with_view): rename, return
8700         GtkTreeSelection
8701         (_gtk_tree_selection_set_tree_view): rename with uscore
8702         (gtk_tree_selection_get_selected): fill in the "model" out param
8703         first, so it gets filled in even if we return at the top of the 
8704         function
8705         (gtk_tree_selection_real_select_all): add a comment and an else{}
8706         to clarify this a bit
8707         (gtk_tree_selection_real_unselect_all): add the same else{}
8708
8709         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
8710         set_tree_view to have underscore prefixes, move them to the
8711         private header, fix return type of new_with_tree_view
8712         (struct _GtkTreeSelection): mark struct
8713         fields private  
8714
8715         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
8716         GtkTreeModelFlags, not a guint
8717         (gtk_tree_path_prev): return gboolean not gint
8718         (gtk_tree_path_up): return gboolean not gint
8719
8720         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
8721         return GtkTreeModelFlags, not a guint
8722
8723         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
8724         that child model is non-null before unrefing it
8725         (g_value_int_compare_func): make this a qsort compare func, not 
8726         a boolean predicate
8727
8728         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
8729         (add -umn to the end), and mark it unimplemented
8730         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
8731         I don't see what it's for - doesn't the model always sort itself?
8732         (gtk_tree_model_sort_set_compare): this had the wrong signature
8733
8734         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
8735         Fix the docs to say that it destructively replaces existing
8736         attributes (previously said that it added attributes).
8737         (gtk_tree_view_column_set_visible): canonicalize bool before
8738         equality testing. Also, check for realization before
8739         hiding/showing the tree_column->window; if this window could exist
8740         before realization, then it's busted and needs fixing, we can't 
8741         create GDK resources pre-realization. Also, remove
8742         superfluous queue_resize(), since set_size() does that for us.
8743         (gtk_tree_view_column_set_col_type): check realization before 
8744         using tree_column->window
8745
8746         * gtk/gtktreedatalist.c: fix filename in copyright notice
8747
8748 2000-12-31  Havoc Pennington  <hp@pobox.com>
8749
8750         * gtk/gtktextview.c: Rearrange all the
8751         scroll-while-dragging-or-selecting code to be different, not
8752         necessarily better. ;-)
8753         (gtk_text_view_scroll_to_mark): Change this
8754         function to take within_margin as a fraction instead of a pixel
8755         value, and to take alignment arguments (indicating where to align 
8756         the mark inside the visible area)
8757         
8758         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
8759         to GtkObject
8760
8761         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
8762         behavior so that offsets past the end of the line are not 
8763         allowed, and an offset equal to the line length moves the iterator
8764         to the next line
8765         (gtk_text_iter_set_line_index): make parallel change
8766         (gtk_text_iter_get_bytes_in_line): add this function
8767         
8768         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
8769         of byte indexes off the end of the line; byte index at the end of
8770         the line now returns FALSE and doesn't fill in the requested
8771         values, byte index past the end of the line is an error.  Also,
8772         don't allow -1 offset anymore, since its meaning is unclear.
8773
8774         This change exposes some bug in visual cursor motion, where we
8775         end up with a huge invalid byte index; needs fixing. Symptom of 
8776         bug is a crash when you hit up arrow.
8777         
8778         (_gtk_text_line_char_locate): match the change to byte_locate
8779
8780         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
8781         from start of line properly. fixes bug reported by Mikael
8782         Hermansson where backspace would delete all text before the
8783         cursor.
8784
8785 2000-12-30  Tor Lillqvist  <tml@iki.fi>
8786
8787         * gdk/win32/gdkwindow-win32.c
8788         (gdk_window_impl_win32_get_visible_region): New function, as in
8789         the X11 backend.
8790         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
8791         instead of duplicating the same code here.
8792
8793         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
8794         GDK_COLORMAP macro.
8795
8796         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
8797         destroy function.
8798         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
8799         access that.
8800
8801         * gtk/gtk.def: Update.
8802
8803         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
8804
8805 2000-12-30  Havoc Pennington  <hp@pobox.com>
8806
8807         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
8808         colormap on input only windows, to avoid special cases all over
8809         the code for these windows.
8810
8811 2000-12-26  Tor Lillqvist  <tml@iki.fi>
8812
8813         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
8814         we are on a palettized display ("PseudoColor" in X11), as the code
8815         for that doesn't work anyway, and never has.
8816
8817 2000-12-22  Alexander Larsson  <alexl@redhat.com>
8818
8819         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
8820         Don't use isprint() for chars > 255.
8821
8822 2000-12-21  Havoc Pennington  <hp@redhat.com>
8823
8824         * tests/testtreeview.c: more work
8825
8826 2000-12-21  Alexander Larsson  <alexl@redhat.com>
8827
8828         * docs/README.linux-fb:
8829         Update the docs to the new pangoft2 way.
8830
8831 2000-12-21  Alexander Larsson  <alexl@redhat.com>
8832
8833         * configure.in:
8834         For linux-fb get the pangoft2 cflags and libs. This needs a recent
8835         pango version.
8836         Remove modules/linux-fb/Makefile.
8837
8838         * gdk/linux-fb/gdkdrawable-fb2.c:
8839         Render glyphs using freetype.
8840
8841         * gdk/linux-fb/gdkfb.h:
8842         Add new fb-specific functions needed for managing windows.
8843
8844         * gdk/linux-fb/gdkmain-fb.c:
8845         Remove gdk_font_init/fini() calls.
8846
8847         * gdk/linux-fb/gdkpango-fb.c:
8848         Remove old implementation. Use pangoft2 instead.
8849
8850         * gdk/linux-fb/gdkprivate-fb.h:
8851         Remove PangoFBFont and related stuff.
8852
8853         * gdk/linux-fb/gdkwindow-fb.c:
8854         Implement drawable->get_visible_region.
8855         Implement support for _gdk_window_set_child_handler () and
8856         _gdk_window_get_decorations().
8857
8858         * modules/Makefile.am:
8859         Remove linux-fb subdir.
8860
8861         * modules/linux-fb/*:
8862         Removed all.
8863         
8864 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
8865
8866         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
8867         calls, as they are no longer needed.
8868
8869         * gtk/gtktreemodelsort.c: Fix up the comparison code.
8870         
8871         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
8872         figure out how to emit a signal on an interface.
8873
8874 2000-12-20  Havoc Pennington  <hp@redhat.com>
8875
8876         * tests: new directory to contain tests, gtk/test* should move
8877         here sometime (with appropriate on-cvs-server hackery)
8878
8879         * tests/testtreeview.c, tests/Makefile.am: a test
8880         
8881         * configure.in (AC_OUTPUT): add tests/Makefile
8882
8883         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
8884         and "invisible_set" which were missing
8885
8886         * gtk/gtkrbtree.h: some cheesy indentation fix
8887         
8888 2000-12-20  Alexander Larsson  <alexl@redhat.com>
8889
8890         * gtk/gtkinvisible.c (gtk_invisible_realize):
8891         Attach the style to the window so that the style it is not
8892         leaked when unrealizing the window.
8893
8894 2000-12-18  Havoc Pennington  <hp@redhat.com>
8895
8896         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
8897         begin/end user action where appropriate
8898         (gtk_text_view_commit_handler): add begin/end user action
8899
8900         * gtk/gtktextbuffer.c: add begin/end user action signals, and
8901         bracket interactive operations with begin/end user action pair.
8902         
8903         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
8904         "interactive" arg from insert_text and delete_text signals.
8905         Add begin_user_action, end_user_action signals
8906         (gtk_text_buffer_begin_user_action): 
8907         (gtk_text_buffer_end_user_action): New functions to delimit 
8908         a user-visible action
8909
8910         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
8911         signals.
8912         
8913 2000-12-18  Havoc Pennington  <hp@redhat.com>
8914
8915         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
8916         was pretty non-working.
8917
8918         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
8919         by passing the length to g_utf8_validate().
8920
8921 2000-12-16  Havoc Pennington  <hp@pobox.com>
8922
8923         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
8924         Port to GObject, can go back in gdk-pixbuf after setting up 
8925         a gdk-pixbuf-marshal.h header over there.
8926
8927         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
8928         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
8929         args
8930         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
8931         set
8932         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
8933         here, do it when we create the buttons later
8934         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
8935         (gtk_tree_view_map): paranoia checks that column->button is shown 
8936         and unmapped
8937         (gtk_tree_view_size_request): only request visible children.
8938         Move header size calculation in here, for cleanliness, and 
8939         to maintain invariants for child widgets if we eventually 
8940         let users set different children inside the buttons
8941         (gtk_tree_view_map_buttons): factor out code to map buttons,
8942         since it was being called several times
8943         (gtk_tree_view_size_allocate_buttons): move_resize the drag
8944         windows instead of just moving them; their height may change 
8945         if we allow random widgets in there, or the theme changes.
8946         (gtk_tree_view_size_allocate): move button size allocation 
8947         above emitting the scroll signals, to ensure a sane state when we
8948         hit user code
8949         (gtk_tree_view_button_release): remove queue_resize after
8950         tree_view_set_size(), set_size() will handle any resize queuing
8951         that's needed
8952         (gtk_tree_view_focus_in): just queue a draw, don't fool with
8953         draw_focus goo
8954         (gtk_tree_view_focus): use gtk_get_current_event() and
8955         gdk_event_get_state()
8956         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
8957         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
8958         semicolon
8959         (gtk_tree_view_create_button): show the button here
8960         (gtk_tree_view_button_clicked): actually emit the clicked signal
8961         on the column
8962         (_gtk_tree_view_set_size): return right away if the size is
8963         unchanged, as a cheesy optimization
8964         (gtk_tree_view_setup_model): rename set_model_realized to 
8965         setup_model to match the flag that indicates whether we've 
8966         called it
8967         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
8968         exist, because set_scroll_adjustment does that and it shouldn't
8969         matter what order you call these in
8970         (gtk_tree_view_get_vadjustment): ditto
8971         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
8972         for paranoia
8973         (gtk_tree_view_set_headers_visible): call
8974         gtk_tree_view_map_buttons() instead of using cut-and-paste code
8975         (gtk_tree_view_append_column): clarify whether the return value
8976         is the count of columns before or after, and do the increment 
8977         separately from the return statement so you can tell from the code.
8978         (gtk_tree_view_remove_column): ditto
8979         (gtk_tree_view_insert_column): ditto
8980         (gtk_tree_view_get_column): remove g_return_if_fail for columns
8981         outside the existing range, the docs say that outside-range
8982         columns are allowed, so we handle them as documented. (Presumably
8983         this allows a nice loop with column != NULL as test.)
8984         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
8985         mean (left/right/center etc.).
8986         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
8987         (gtk_tree_view_expand_row): add docs
8988         (gtk_tree_view_collapse_row): add docs
8989
8990         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
8991         function to emit the clicked signal on a column
8992         
8993         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
8994         state of an event
8995         (gdk_event_get_time): don't treat GDK_SCROLL 
8996         as a button event, remove default case from switch so gcc 
8997         will whine if we don't explicitly handle all event types
8998
8999         * gtk/gtktreeselection.h: added some FIXME 
9000         
9001         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
9002         "columns" to "n_columns" and "column" to "columns" for clarity
9003
9004 2000-12-16  Havoc Pennington  <hp@pobox.com>
9005         
9006         * gtk/gtktextiter.c: General cleanup of the log attr iteration
9007         stuff. This should make e.g. the delete key work again in the
9008         text widget...
9009         (gtk_text_iter_forward_cursor_positions): handle negative count
9010         (gtk_text_iter_backward_cursor_positions): handle negative count
9011         (gtk_text_iter_forward_word_ends): handle negative count
9012         (gtk_text_iter_backward_word_starts): handle negative count
9013
9014         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
9015         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
9016         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
9017         GObject. No doubt will cause breakage.
9018
9019         * demos/gtk-demo/textview.c: remove hacks around
9020         non-GObject-ification of the text objects
9021
9022         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
9023         the text tag
9024         
9025 2000-12-14  Havoc Pennington  <hp@pobox.com>
9026
9027         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
9028         that we have Xrender
9029
9030 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
9031
9032         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
9033         Add two virtualized functions gdk_drawable_get_clip_region - to
9034         get the clip region when drawing.
9035         
9036         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
9037         use invalidate_region.
9038
9039         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
9040         region.
9041
9042         * acconfig.h configure.in: Check for Xft. For now, assume
9043         that if Xft is found, Pango was compiled with Xft support
9044         as well.
9045
9046         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
9047         gdk_colormap_query_color().
9048         
9049         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
9050         with Xft if appropriate.
9051
9052         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
9053         a pangoxft context if we have XFT and the environment
9054         variable GD_USE_XFT is set.
9055         
9056         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
9057         and also possibly an XftDraw structure.
9058
9059         * gtk/gtkfontsel.c: Handle the case where the font from the
9060         style doesn't match any of the fonts a bit better.
9061         
9062         * gtk/testgtk.c: Add tabs between directional segments for
9063         hebrew/arabic test. (Not really necessary, just a little
9064         prettier.)
9065
9066 2000-12-14  Havoc Pennington  <hp@redhat.com>
9067
9068         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
9069         reading a file
9070
9071 2000-12-14  Havoc Pennington  <hp@redhat.com>
9072
9073         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
9074         unused call to get_last_line()
9075
9076         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
9077         here until boxed is working (and maybe after that - we should
9078         really not gratuitously break old code)
9079
9080         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
9081         specific types for font_desc and tabs args, move them to
9082         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
9083         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
9084
9085         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
9086         use GTK_TYPE_POINTER for signal signatures as a hack-around
9087
9088         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
9089         PangoTabArray
9090
9091         * gtk/gtktextlayout.c (line_display_iter_to_index): 
9092         make static
9093         (line_display_index_to_iter): make static
9094
9095         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
9096         to marshal a string not a boxed
9097
9098         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
9099
9100         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
9101         since the UTF-8 isn't validated yet
9102
9103         * gtk/gtktextsegment.c (char_segment_check_func): don't require
9104         lines to end in '\n'
9105         
9106         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
9107         forward_to_delimiters, and grapheme boundaries
9108         (gtk_text_view_delete_from_cursor): properly handle non-newline
9109         delimiters, and grapheme boundaries
9110
9111         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
9112         to gtk_text_iter_forward_to_delimiters, and make it work properly
9113         if empty lines end with a character other than '\n'
9114
9115         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
9116         position
9117
9118 2000-12-15  Tor Lillqvist  <tml@iki.fi>
9119
9120         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
9121
9122         * gtk/gtk.def
9123         * gdk/gdk.def: Update.
9124
9125         * gdk/win32/gdkmain-win32.c
9126         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
9127         gdkmain-win32.c here.
9128
9129         * gdk/win32/makefile.mingw.in (all): No need to make
9130         gdk-win32res.o here, the makefile one step up will call us to make
9131         it.
9132
9133         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
9134         gdkkeys-win32.
9135
9136         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
9137
9138         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
9139         call to g_source_add().
9140
9141         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
9142         leak. Thanks to Andreas Kemnade.
9143
9144 2000-12-13  Havoc Pennington  <hp@pobox.com>
9145
9146         * gtk/gtktextbtree.h: Remove double _ in front of some functions
9147
9148         * gtk/gtktext*.[hc]: update accordingly
9149         
9150 2000-12-13  Havoc Pennington  <hp@pobox.com>
9151
9152         * gtk/gtktextbtree.h: Put _ in front of every function in this 
9153         header file
9154
9155         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
9156
9157 2000-12-13  Alex Larsson  <alexl@redhat.com>
9158
9159         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
9160         Add support for ps2 intellimouse.
9161
9162         * gdkkeyboard-fb.c:
9163         Move shift-F1 repaint handling to xlate handler only.
9164         
9165         * docs/README.linux-fb:
9166         Add imps2 to docs.
9167         Document the new refresh keys.
9168         
9169 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
9170
9171         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
9172
9173         * gtk/gtkbox.c: change property types from (u)long to (u)int for
9174         ::position and ::padding.
9175
9176         * gtk/gtkcontainer.c: make ::border_width an INT property.
9177
9178         * gtk/gtkpacker.c: make ::position an INT property.
9179
9180         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
9181         guard against NULL h/v scrollbars, since this is used at construction
9182         time.
9183
9184         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
9185         internal gtk_clist_constructor().
9186
9187         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
9188         gtk_ctree_constructor().
9189
9190         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
9191         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
9192
9193         * docs/reference/Makefile.am: fun stuff, disabled docs generation
9194         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
9195
9196         * gtk/gtkwidget.[hc]:
9197         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
9198         and gtk_widget_get().
9199         (gtk_widget_new): use g_object_new_valist().
9200         (gtk_widget_set): use g_object_set_valist().
9201
9202         * gtk/gtkobject.[hc]:
9203         removed gtk_object_arg_get_info(), gtk_object_getv(),
9204         gtk_object_query_args(), gtk_object_newv(),
9205         gtk_object_class_add_signals(),
9206         gtk_object_class_user_signal_new(),
9207         gtk_object_class_user_signal_newv(),
9208         gtk_object_arg_set(), gtk_object_arg_get(),
9209         gtk_object_args_collect(),
9210         gtk_object_default_construct(),
9211         gtk_object_constructed(),
9212         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
9213         removed nsignals, signals and n_args members from GtkObjectClass.
9214         (gtk_object_new): use g_object_new_valist().
9215         (gtk_object_set): use g_object_set_valist().
9216         (gtk_object_get): use g_object_get_valist().
9217         
9218         * gtk/gtkcompat.h: define gtk_object_default_construct().
9219         
9220         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
9221         g_object_new().
9222
9223         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
9224         fucntions, cleaned up method assignments (make sure your structures
9225         are setup properly before calling out). removed all GTK_CONSTRUCTED
9226         hacks ;)
9227
9228 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
9229
9230         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
9231         off-by-one error in checks. (Dave Lambert)
9232
9233 2000-12-12  Alexander Larsson  <alexl@redhat.com>
9234
9235         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
9236         Don't free gdk_fb_keyboard twice.
9237
9238 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
9239
9240         * gtk/testgtk.c:
9241         (create_tooltips): 
9242         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
9243         use GObject swapped_signal:: properties instead.
9244
9245         * gtk/gtkcellrenderertoggle.c: 
9246         * gtk/gtkcellrenderertextpixbuf.c: 
9247         * gtk/gtkcellrenderertext.c: 
9248         * gtk/gtkcellrendererpixbuf.c: 
9249         * gtk/gtkcellrenderer.c:
9250         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
9251         missing warnings for invalid property ids, install properties
9252         with g_object_class_install_property() now.
9253         
9254         * gtk/gtksignal.c:
9255         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
9256         
9257 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
9258         
9259         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
9260         to determine if a window is the focus widget within
9261         its toplevel.
9262
9263         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
9264         to be boolean.
9265
9266         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
9267         of the case where the container CAN_FOCUS to here instead
9268         of having it in each individual move-the-focus place.
9269
9270         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
9271         focusing to be geometric in a much more obvious sense. Arrowing
9272         around is still non-intuitive because it isn't perfect and
9273         because entries, etc, grab the arrow keys, but it at least
9274         usually will do what you expect now.
9275         
9276         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
9277         file.
9278
9279         * gtk/gtknotebook.c: Change tabs to be a single item in
9280         the focus chain. Make movement of focus on tabs with arrow
9281         keys wrap around.
9282         
9283         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
9284         CHECK_FIND_CHILD macro to give informative error messages
9285         instead of silent returns.
9286
9287         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
9288         flag since we handle GdkReturn on the tabs.
9289
9290         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
9291         windows rather than sending expose events directly.
9292
9293         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
9294         definition for GtkNotebookPage into .c file, since it is private.
9295
9296         * gtk/testgtk.c (create_notebook): Add option for 
9297         testing borderless notebook.
9298
9299         * gtk/testgtk.c (page_switch): Removed egregious poking
9300         around in GTK+ internals.
9301
9302         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
9303
9304         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
9305         properly through gtk_clist_focus. Make the title headers a
9306         single item in the tab-focus chain, and make left-right wrap
9307         around.
9308
9309         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
9310         focus method so that wrapping around works properly.
9311
9312         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
9313         that is handled for the widget now. 
9314
9315 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
9316
9317         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
9318         widgets as TOPLEVEL.
9319
9320         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
9321         TOPLEVEL widgets are containers.
9322
9323         * gtk/gtkinvisible.h: Remove useless include.
9324
9325 2000-12-11  Havoc Pennington  <hp@redhat.com>
9326
9327         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
9328         Handle chopping off \r\n and 0x2029 in addition to \n before
9329         passing to PangoLayout
9330
9331         * gtk/gtkimcontextsimple.c
9332         (gtk_im_context_simple_get_preedit_string): 
9333         return an empty string if no match is pending
9334
9335         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
9336         assertion that the returned preedit string was sane
9337
9338         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
9339         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
9340         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
9341
9342 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
9343
9344         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
9345         Fix up finalizer to chain to its parent.
9346
9347 2000-12-11  Alexander Larsson  <alexl@redhat.com>
9348
9349         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
9350         Clearified the difference between the keyboard types. Wrote a note
9351         about the magic sysrq key to get out of raw mode.
9352
9353 2000-12-09  James Henstridge  <james@daa.com.au>
9354
9355         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
9356         member to hold masks for detecting the start of a protocol packet.
9357         (mouse_devs): add packet start masks for ps2 and ms device types.
9358         Left the mask for fidmour blank, as I have no idea what it should
9359         be.
9360         (handle_mouse_io): skip bytes until we get to the start of a
9361         packet.  My Logitech mouse seems to be passing an extra NULL pad
9362         byte, and GPM does a similar thing here.
9363         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
9364         this is the ms mouse driver.
9365         (gdk_fb_mouse_ms_packet): fix up button handling, which was
9366         completely broken except for button1.  It was checking the wrong
9367         bit in the packet for the status of the right mouse button, and
9368         wrongly assuming right == button2 rather than 3.  I fixed that and
9369         also added support for middle button (button2).
9370
9371 2000-12-08  Havoc Pennington  <hp@redhat.com>
9372
9373         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
9374         that cause a segfault on text insertion
9375
9376         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
9377         warning
9378
9379         * gtk/gtktextiter.c (test_log_attrs): use
9380         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
9381
9382         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
9383         Get log attrs for a line, using a cache stored on the buffer
9384         
9385         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
9386         reported by Jeff Franks
9387
9388 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9389
9390         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
9391         /dev/ttyS0 -> /dev/mouse
9392
9393 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9394
9395         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
9396         Added dummy gdk_fontset_load.
9397
9398 2000-12-08  Alexander Larsson  <alexl@redhat.com>
9399
9400         * docs/README.linux-fb:
9401         * docs/Makefile.am:
9402         Initial GtkFB docs.
9403         
9404         * gdk/linux-fb/Makefile.am:
9405         Define GDK_DATA_PREFIX.
9406
9407         * gdk/linux-fb/gdkmain-fb.c:
9408         Fix typo.
9409         Change default display to /dev/fb0.
9410
9411         * gdk/linux-fb/gdkpango-fb.c:
9412         Add $(prefix)/share/fonts/ to font path.
9413         
9414 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9415
9416         * gdk/linux-fb/gdkkeyboard-fb.c:
9417         New file containing the abstracted keyboard driver. Most code
9418         taken from gdkinput-ps2.c
9419
9420         * gdk/linux-fb/gdkinput-ps2.c:
9421         Removed file.
9422         
9423         * gdk/linux-fb/Makefile.am:
9424         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
9425
9426         * gdk/linux-fb/gdkcolor-fb.c:
9427         display->fb was renamed to display->fb_fd.
9428
9429         * gdk/linux-fb/gdkcursor-fb.c:
9430         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9431
9432         * gdk/linux-fb/gdkinput.c:
9433         Moved gdk_input_init here from gdkinput-ps2.c
9434
9435         * gdk/linux-fb/gdkmain-fb.c:
9436         display->fb was renamed to display->fb_fd.
9437         Now the tty and the console is opened here instead
9438         of in the keyboard driver. Also check GDK_VT to see what
9439         tty to open.
9440         Move gdk_beep () here from gdkinput-ps2.c
9441         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9442
9443         * gdk/linux-fb/gdkmouse-fb.c:
9444         Add header.
9445         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9446         Return correct keyboard modifiers.
9447         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
9448
9449         * gdk/linux-fb/gdkprivate-fb.h:
9450         Add tty and vt info to display.
9451         Add orignal modeinfo storage to display
9452         Update global functions
9453
9454         * gdk/linux-fb/gdkwindow-fb.c:
9455         Added gdk_fb_window_find_focus().
9456         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9457
9458 2000-12-07  Havoc Pennington  <hp@pobox.com>
9459
9460         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
9461         function, noticed by Alex
9462
9463 2000-12-06  Elliot Lee  <sopwith@redhat.com>
9464
9465         * configure.in: Detect freetype properly
9466
9467         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
9468         above.
9469
9470 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9471
9472         * gdk/linux-fb/Makefile.am:
9473         Add gdkmouse-fb.c
9474         
9475         * gdk/linux-fb/gdkmouse-fb.c:
9476         New file. Abstracted the mouse drivers a bit.
9477
9478         * gdk/linux-fb/gdkcursor-fb.c:
9479         The cursor hide/show functions was moved here from gdkinput-ps2.c.
9480
9481         * gdk/linux-fb/gdkinput-ps2.c:
9482         Removed old mouse handling code. Moved cursor handling code
9483         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
9484         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
9485         gdk_mouse_get_info.
9486
9487         * gdk/linux-fb/gdkmain-fb.c:
9488         Pass NULL pointers for x,y in gdk_mouse_get_info call.
9489
9490         * gdk/linux-fb/gdkprivate-fb.h:
9491         Removed public gdk_fb_find_common_ancestor, added and renamed
9492         functions for the new mouse handling code.
9493
9494         * gdk/linux-fb/gdkwindow-fb.c:
9495         Moved gdk_fb_window_send_crossing_events here. added global
9496         variable gdk_fb_window_containing_pointer. made
9497         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
9498         renamed to gdk_mouse_get_info.
9499
9500 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9501
9502         * gdk/linux-fb/gdkevents-fb.c:
9503         Update to match latest gmain/gsource changes.
9504
9505         * gdk/linux-fb/gdkinput-ps2.c:
9506         Bogus gdk_keymap_get_entries_for_keycode implementation so that
9507         it links. Will be implemented later.
9508
9509 2000-12-03  Havoc Pennington  <hp@pobox.com>
9510
9511         * gdk/Makefile.am: add gdkkeys.[hc]
9512
9513         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
9514         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
9515
9516         * acconfig.h, configure.in: add checks and command line options
9517         for XKB
9518
9519         * gdk/x11/gdkkeys-x11.c: Implement the above functions
9520         
9521         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
9522         and group in the key event
9523
9524         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
9525         field with the low-level hardware key code, and a group
9526         field with the keyboard group
9527
9528         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
9529         and declare a couple globals used for keymap handling
9530         
9531         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
9532         hold down Shift-Control and type a hex number to get a Unicode 
9533         character corresponding to the hex number
9534         (gtk_im_context_simple_get_preedit_string): Fix cursor position
9535         (return bytes not chars)
9536
9537 2000-12-05  Elliot Lee  <sopwith@redhat.com>
9538
9539         * gdk/gdkcolor.h: Make GdkColor specify element sizes
9540         to avoid waste on 64-bit platforms.
9541
9542 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
9543
9544         * INSTALL: Fix link to PNG home, remove reference
9545         to fribidi.
9546
9547         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
9548         
9549         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
9550         tested.)
9551
9552         * gtk/gtkcheckmenuitem.c: Permanently turn on
9553         always_show_toggle.
9554
9555         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
9556         be NULL. (Vladimir Klebanov, #26545)
9557
9558         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
9559         some signed/unsigned comparison problems. (#6510,
9560         David Kaelbling)
9561
9562         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
9563         return type to boolean (Oskar Liljeblad, #18648)
9564
9565 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9566
9567         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
9568         Remove bogus colormap setting.
9569
9570 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9571
9572         * gdk/linux-fb/gdkcolor-fb.c:
9573         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
9574
9575         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
9576         Must set colormap.
9577         
9578 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
9579
9580         * docs/tutorial/gtk-tut.sgml: DND updates
9581
9582 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
9583
9584         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9585         Remove old debug g_warning().
9586         (gdk_fb_draw_drawable): The src argument can be either a wrapper
9587         or an implementation, just pass the implementation to draw_drawable_2.
9588         
9589         * gdk/linux-fb/gdkprivate-fb.h:
9590         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
9591
9592         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9593         clear and invalidate area when window is destroyed.
9594         (send_map_events): Remove old commented out code.
9595
9596 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9597
9598         * gdk/linux-fb/gdkpango-fb.c:
9599         Use italic instead of oblique in font aliases.
9600         
9601         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
9602         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
9603         other unsupported functions.
9604
9605 2000-12-04  Havoc Pennington  <hp@redhat.com>
9606
9607         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
9608
9609         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
9610
9611         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
9612
9613         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
9614         hack to avoid infinite loops (synthetic expose event) - 
9615         Owen has more appropriate fixes in a branch he'll check in later.
9616
9617         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
9618         separator, CR, and CRLF as line ends
9619
9620         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
9621         into lines using pango_find_paragraph_boundary(); other bits of
9622         the widget are still going to be broken if the boundary isn't '\n'
9623         though
9624
9625 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9626
9627         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
9628         multiply.
9629
9630         * gdk/linux-fb/gdkpango-fb.c:
9631         Copied some 26.6 scaling macros from pango to clean up the rounding.
9632         (pango_fb_font_get_glyph_info): Correct sign on x value.
9633
9634         * gdk/linux-fb/gdkprivate-fb.h:
9635         Removed unreferenced external functions.
9636
9637         * modules/linux-fb/Makefile.am: Use ` instead of '.
9638
9639         * modules/linux-fb/basic.c:
9640         Remove dead code. In particular the dummy lang engine which broke all
9641         pango layouts in GtkFB. Don't include tables-big.i anymore.
9642
9643         * modules/linux-fb/tables-big.i:
9644         Upgrade to latest version from pango. Left for reference, basic_ranges
9645         moved to basic.c.
9646         
9647 2000-12-04  Havoc Pennington  <hp@redhat.com>
9648
9649         Fix bugs Alex found:
9650         
9651         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
9652         to "draw"
9653
9654         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
9655
9656         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
9657
9658         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
9659         implementation in here, apparently the expose() implementation was
9660         dead code.
9661
9662 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9663
9664         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9665         Return positive descent.
9666
9667 2000-12-02  Havoc Pennington  <hp@pobox.com>
9668
9669         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
9670         method and signal
9671         
9672         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
9673         calls gdk_window_process_updates() to push the exposes through
9674         (gtk_widget_class_init): No more draw signal, no
9675         gtk_widget_real_draw()  
9676         
9677         * gtk/gtkbin.c (gtk_bin_draw): remove
9678
9679         * gtk/gtkbox.c (gtk_box_draw): remove
9680
9681         * gtk/gtkbutton.c (gtk_button_draw): remove
9682
9683         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
9684
9685         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
9686
9687         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
9688
9689         * gtk/gtkclist.c (gtk_clist_draw): remove
9690
9691         * gtk/gtkentry.c (gtk_entry_draw): remove
9692
9693         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
9694
9695         * gtk/gtkfixed.c (gtk_fixed_draw): remove
9696
9697         * gtk/gtkframe.c (gtk_frame_draw): remove
9698
9699         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
9700
9701         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
9702
9703         * gtk/gtklayout.c (gtk_layout_draw): remove
9704
9705         * gtk/gtklist.c (gtk_list_draw): remove
9706
9707         * gtk/gtklistitem.c (gtk_list_item_draw): remove
9708
9709         * gtk/gtkmenu.c (gtk_menu_draw): remove
9710
9711         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
9712
9713         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
9714
9715         * gtk/gtknotebook.c (gtk_notebook_draw): remove
9716
9717         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
9718
9719         * gtk/gtkpacker.c (gtk_packer_draw): remove
9720
9721         * gtk/gtkrange.c (gtk_range_draw): remove
9722
9723         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
9724
9725         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
9726
9727         * gtk/gtktable.c (gtk_table_draw): remove
9728
9729         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
9730
9731         * gtk/gtktext.c (gtk_text_draw): remove
9732
9733         * gtk/gtktextview.c (gtk_text_view_draw): remove
9734
9735         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
9736
9737         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
9738
9739         * gtk/gtktree.c (gtk_tree_draw): remove
9740
9741         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
9742
9743         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
9744
9745         * gtk/gtkviewport.c (gtk_viewport_draw): remove
9746
9747         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
9748
9749         * gtk/gtkvscale.c (gtk_vscale_draw): remove
9750
9751         * gtk/gtkwindow.c (gtk_window_draw): remove
9752
9753 2000-20-01  Anders Carlsson  <andersca@gnu.org>
9754
9755         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
9756         a GtkToggleButton is both insensitive and active, it was being
9757         drawn by the GtkButton draw handler which doesn't check the
9758         state. Now it's calling gtk_toggle_button_paint instead.
9759         
9760 2000-12-01  Havoc Pennington  <hp@redhat.com>
9761
9762         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
9763         dangling pointers to the appearance attributes from the 
9764         line display
9765
9766         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
9767         width/height to mean "full width/height of drawable"
9768
9769         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
9770         click to select word/line
9771         
9772         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
9773         when getting log attrs. Get a slice, so that pixmaps and stuff
9774         are properly handled.
9775
9776         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
9777         paste into the selection (replaces selection now, previously
9778         crashed or added to selection). Reveals longstanding btree bug -
9779         select multiple lines, middle-click on the selection, boom. This
9780         isn't related to my changes though.
9781
9782         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
9783         PangoLogAttrs changes
9784         (gtk_entry_move_backward_word): ditto
9785
9786         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
9787         functions return bool whether the iter moved onto a
9788         dereferenceable position.
9789  
9790         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
9791         functions for motion in terms of display lines.
9792
9793         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
9794         get the buffer a mark is inside
9795         
9796 2000-12-01  Alexander Larsson  <alexl@redhat.com>
9797
9798         * gdk/linux-fb/Makefile.am:
9799         * modules/linux-fb/Makefile.am:
9800         Freetype 2 final uses freetype-config
9801
9802         * gdk/linux-fb/gdkpango-fb.c:
9803         Upgrade to use Freetype 2 final.
9804         More flexible support for font aliases, this also fixes a bug with
9805         GtkFontSelector, as the aliases must be visible in the font/family list,
9806         or GtkFontSelector reads uninitialized memory.
9807
9808 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
9809
9810         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
9811         XGetIMValues to properly terminate variable argument list, and do
9812         NULL return check for ic_values and xim_styles.
9813
9814         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
9815         Restore preedit state after XmbResetIC().
9816         
9817         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
9818         XvaCreateNestedList() should take XvaNestedList, but not
9819         XvaNestedList*.
9820
9821         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
9822         preedit_draw_callback, preedit_caret_callback): Match
9823         "preedit-changed" signal name to "preedit_changed" to be
9824         consistent to the spec.
9825
9826         * gtk/gtkimcontextsimple.c (check_table):
9827         Match "preedit-changed" to "preedit_changed" to be consistent
9828         to the spec.
9829
9830 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
9831
9832         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
9833         gc->clip_region == NULL>
9834
9835 2000-11-30  Tor Lillqvist  <tml@iki.fi>
9836
9837         Changes by Hans Breuer:
9838         
9839         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
9840         Dont't use negative width and height as max_hints. This fixes
9841         Owen's recent testgtk changes for win32.
9842
9843         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
9844         gdk_win32_hdc_release): These are exported and may be called with
9845         other drawable types than our GdkDrawableImplWin32 (?).
9846
9847         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
9848         so always #define USE_BACKING_STORE.
9849
9850         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
9851         of printf for debugging output.
9852
9853         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
9854         
9855         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
9856
9857         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
9858         declaration.
9859
9860         * gtk/gtktexttypes.h: Ditto.
9861
9862         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
9863         (GDK_VoidSymbol) also if in case of arg check failure.
9864
9865         * gtk/gtkimcontextsimple.c
9866         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
9867         position to the pointer, but to the variable it points to.
9868
9869         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
9870
9871         * gtk/gtk.def: Updates.
9872
9873 2000-11-29  Elliot Lee  <sopwith@redhat.com>
9874
9875         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
9876         GTK_TYPE_TREE_MODEL.
9877
9878 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9879
9880         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
9881         Set the size of the font from the description.
9882         (gdk_text_width): Gross hack that calculates the width
9883         of text by text_length * size/2. This is necessary because
9884         GtkLabel does some ugly gtk_string_width call to calculate
9885         an good size.
9886         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
9887
9888 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
9889
9890         * docs/tutorial/gtk-tut.sgml: DND updates
9891
9892 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9893
9894         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9895         If you pass width or height == 0 to gdk_window_clear_area they
9896         should be calculated from the window size.
9897
9898 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9899
9900         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
9901         a grab, but no grab-cursor, use the cursor from the grabbed
9902         window. (gdk_fb_window_send_crossing_events): Send normal
9903         enter/leave notifications if grab and owner_events == TRUE.
9904
9905 2000-11-29  Alexander Larsson  <alexl@redhat.com>
9906
9907         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
9908         Do implicit button grabs, even if the window doesn't
9909         want the event.
9910         (gdk_fb_window_send_crossing_events): If there is a
9911         grab, only the grabbed window gets normal enter/leave
9912         notifications. On ungrab go from grabbed window to current.
9913         Don't send any notification to b when propagating from c -> b.
9914         If setting a grab on window, don't set prev_window.
9915         (handle_mouse_input): Send enter/leave events to the window the
9916         mouse is over, not the grabbed one.
9917         
9918 2000-11-28  Elliot Lee  <sopwith@redhat.com>
9919
9920         * gdk/gdkregion-generic.c: Zap warning.
9921         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
9922         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
9923
9924 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
9925
9926         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
9927         The cursor should be hidden if it is part of either the
9928         source or destination region. Not only if it is in both.
9929         (gdk_window_set_transient_for): Silence warnings.
9930
9931 2000-11-28  Alexander Larsson  <alexl@redhat.com>
9932
9933         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
9934         The default mode in X is Pie Arcs, therefore that is
9935         what Gtk+ uses.
9936
9937 2000-11-28  Alexander Larsson  <alexl@redhat.com>
9938
9939         * gdk/linux-fb/gdkinput-ps2.c:
9940         Implement correct EnterNotify/LeaveNotify:
9941         (gdk_fb_window_send_crossing_events): New function that sends
9942         all GdkCrossingEvents from the last mouse-window to the specified
9943         destination.
9944         (gdk_fb_window_visibility_crossing): Removed function.
9945         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
9946         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
9947         instead of gdk_window_get_pointer() for better readability.
9948
9949         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
9950         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
9951
9952         * gdk/linux-fb/gdkprivate-fb.h:
9953         removed gdk_fb_window_visibility_crossing, added
9954         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
9955
9956         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
9957         New function that finds the least common ancestor of two windows.
9958         (gdk_window_show, gdk_window_hide):
9959         Use gdk_fb_window_send_crossing_events.
9960         (gdk_fb_window_move_resize): Send configure events to toplevel
9961         windows. Use gdk_fb_window_send_crossing_events.
9962
9963 2000-11-27  Havoc Pennington  <hp@redhat.com>
9964
9965         * gtk/gtkprivate.h (enum): Remove a trailing comma
9966
9967 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
9968
9969         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
9970         the "changed" callback of the adjustment.  We need to redraw the
9971         spin button's arrows when the adjustment's range changes.
9972         (adjustment_changed_cb): Draw the arrows.
9973         (gtk_spin_button_value_changed): Draw the arrows.
9974
9975 2000-11-23  Alexander Larsson  <alexl@redhat.com>
9976
9977         * gdk/linux-fb/gdkselection-fb.c:
9978         Initial selection implementation.
9979
9980         * gtk/gtkselection.c:
9981         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
9982         requestor in gtk_selection_request.
9983         
9984         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
9985         Added gdk_selection_property atom.
9986
9987         * gdk/linux-fb/gdkprivate-fb.h:
9988         Export _gdk_selection_window_destroyed.
9989         Removed mask_off_x/y from GdkCursorPrivateFB.
9990         Removed hbearing, added top, left to PangoFBGlyphInfo.
9991
9992         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9993         Call _gdk_selection_window_destroyed
9994         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
9995         the root window has been created.
9996         (static_dx_hack, static_dy_hack, compare_draw_rects,
9997         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
9998         in region. They are already sorted. Instead just traverse them in
9999         reverse if draw_direction < 0.
10000         
10001         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10002         Double-clicks must be sent after the normal button_press.
10003         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
10004         
10005         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
10006         Pass _gdk_fb_screen_gc instead of NULL.
10007
10008         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
10009         Initialize gdk_selection_property.
10010         (gdk_event_make): Remove unused code.
10011
10012         * gdk/linux-fb/gdkcursor-fb.c:
10013         Make the pixmap for the cursor the same size as the mask. Also remove
10014         the mask_off_x/y fields in GdkCursorPrivateFB and combine
10015         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
10016         Now the whole cursor is visible.
10017
10018         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
10019         Fix bug where xdest+height instead of ydest+height was used
10020         to calculate if the source and dest overlapped. This fixes the
10021         redraw bug when the main window in testgtk was scrolled when
10022         partially covered by a tall window.
10023         Copy rectangles in region in order depending on draw_direction.
10024         Also moved the draw_direction flipping of start_y and end_y into
10025         the gc functions, as this might not be what all of them want.
10026         (gdk_fb_draw_lines): Support dashed lines.
10027         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
10028         so that the text is positioned correctly (was 1 pixel high).
10029
10030         gdk/linux-fb/gdkgc-fb.c:
10031         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
10032         all lines were drawn a pixel to short. Also checked the default of
10033         the rest of the values, and they're the same as X now.
10034
10035         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
10036         Clean up pixel positioning of the glyphs. Just use bgy->top and
10037         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
10038         to all divisions to get correct rounding behaviour.
10039
10040         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
10041         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
10042         Moved start_y/end_y flip into draw_drawable implementations.
10043         Flip also x rendering when draw_direction < 0.
10044         Remove unneccesary multiply with draw_direction.
10045
10046 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
10047
10048         * docs/tutorial/gtk-tut.sgml:
10049           - get rid of gtk_toggle_button_toggled FUD
10050           - start DND section - needs work - based on:
10051                 http://wolfpack.twu.net/docs/gtkdnd/
10052
10053 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10054
10055         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
10056         Correct calculation of font metrics. Now GtkEntrys have sane
10057         size.
10058
10059 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10060
10061         * gdk/gdktypes.h:
10062         Add new type GdkSpan
10063         
10064         * docs/reference/gdk/gdk-sections.txt,
10065         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
10066         gdk/gdkregion.h:
10067         Implement and document gdk_region_spans_intersect_foreach.
10068
10069         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
10070         Add new file gdkrender-fb.c which contains all core
10071         rendering code.
10072         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
10073         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
10074         (optimized rectangle fillers).
10075
10076         * gdk/linux-fb/gdkdrawable-fb2.c:
10077         Move all rendering code to gdkrender-fb.c.
10078         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
10079         Use the new span intersection functions in gdk_fb_fill_spans.
10080         gdk_fb_draw_rectangle() clips filled rectangles and calls
10081         gc->fill_rectangle with the result.
10082         gdk_fb_fill_spans() gets extra argument "sorted".
10083
10084         * gdk/linux-fb/gdkevents-fb.c:
10085         Remove unused includes and defines.
10086         New function gdk_fb_get_time() to get correct time for events.
10087
10088         * gdk/linux-fb/gdkinput-ps2.c:
10089         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
10090         Make sure to set the time of all events.
10091
10092         * gdk/linux-fb/gdkmain-fb.c:
10093         Use gdk_fb_get_time ().
10094
10095         * gdk/linux-fb/gdkprivate-fb.h:
10096         New virtual GC calls: fill_span & fill_rectangle.
10097         Export gdk_fb_get_time().
10098         gdk_fb_fill_spans() gets extra argument "sorted".
10099
10100         * gdk/linux-fb/mi*.c:
10101         Use GdkSpan instead of GdkRectangle.
10102         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
10103         from XFree 4 source)
10104         
10105 2000-11-22    <jrb@redhat.com>
10106
10107         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
10108         reversing the order in an if statement will do.  Doing so managed
10109         to make the treemodelsort half work.  Other half will follow after
10110         I get the insert function fully fixed.
10111
10112 2000-11-21  Elliot Lee  <sopwith@redhat.com>
10113         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
10114         more than 2 bits. Besides, I need to implement an evil hack. :)
10115
10116 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
10117
10118         * docs/tutorial/gtk-tut.sgml: minor corrections
10119
10120 2000-11-20  Jonathan Blandford <jrb@redhat.com>
10121         * gtk/gtktreemodelsort.h: Add convertion functions to let you
10122           convert to and from relative path's and iters.
10123
10124         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
10125           testing sorting functions a bit better.  Currently broken -- will
10126           fix in morning.
10127
10128 2000-11-20  Havoc Pennington  <hp@redhat.com>
10129
10130         * gtk/gtkwidget.c: Documented a bunch of functions in here
10131         (gtk_widget_realize): Warn if you try to realize
10132         a widget with no parent that isn't a toplevel
10133         (gtk_widget_intersect): return a gboolean
10134
10135 2000-11-20  Havoc Pennington  <hp@redhat.com>
10136
10137         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
10138         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
10139         scrolling to be implemented in GDK to finish. Also, right now
10140         we just size_allocate all children on every layout change,
10141         which is pretty lame. Test commented out of testtext.c, 
10142         until it works better.
10143
10144 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
10145
10146         * gdk/linux-fb/gdkdrawable-fb2.c:
10147         Removed unused arguments from gdk_fb_drawable_get_pixel().
10148
10149         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
10150         Renamed fidur specific mouse packet data in MouseDevice to
10151         generic. Used it in ps2 mouse handling code to avoid blocking
10152         reads.
10153
10154 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
10155
10156         * demos/gtk-demo/main.c: Changed to have the list become
10157         non-italic when the demo window is destroyed through an external
10158         event (like a close button).  Doing so found three bugs in the
10159         widget.
10160
10161         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
10162
10163         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
10164         we actually set the cell.
10165
10166         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
10167
10168         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
10169         free a leaked path.  Thanks memprof.
10170
10171 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
10172
10173         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
10174         off-by-one error when destroying allocated segments
10175         on failure. (Elliot)
10176
10177 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
10178
10179         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
10180         memleaks found by Evan Martin.
10181
10182 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
10183
10184         * Released 1.3.2
10185         
10186         * NEWS: Updates for 1.3.2
10187
10188 2000-11-17  Tor Lillqvist  <tml@iki.fi>
10189
10190         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
10191         but in general for window system specific events.
10192
10193         * gtk/gtk.def
10194         * gtk/makefile.mingw.in
10195         * gtk/makefile.msc.in: Update.
10196         
10197         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
10198
10199 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
10200
10201         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
10202         distribute gtk.immodules.
10203
10204         * gtk/Makefile.am (install-data-local): Don't install the
10205         gtk.immodules file created for the uninstalled modules;
10206         instead run gtk-query-immodules after install
10207
10208 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
10209
10210         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
10211         -rpath to the right install location.
10212
10213         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
10214         -export-dynamic.
10215
10216         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
10217         properly.
10218
10219 2000-11-15  Havoc Pennington  <hp@pobox.com>
10220
10221         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
10222         patch from Mikael Hermansson to temporarily stop blinking while
10223         the user is using the keyboard to type or navigate. 
10224
10225         Also, when blinking, stay on for longer than we stay off. Also,
10226         return from start_cursor_blink if !cursor_visible, to save
10227         checking that flag all over the place before we call
10228         start_cursor_blink.
10229
10230 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
10231
10232         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
10233         only contain a "fontset" line, which is now ignored.
10234
10235         * gtk/gtkentry.c (gtk_entry_button_release): Make 
10236         double-click-to-select-word work.
10237         
10238 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
10239
10240         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
10241         Don't move back one char when we are actually at the end of the 
10242         paragraph.
10243
10244 2000-11-15  Robert Brady  <robert@suse.co.uk>
10245
10246         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
10247         'o' < 'p'.
10248         
10249         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
10250         bind_textdomain_codeset.
10251
10252         (gtk_init_check): Make the warning about translating default:LTR
10253         sterner.
10254         
10255 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
10256
10257         * **/Makefile.am : remove unecessary rules for win32-specific
10258         config-substituted targets. If you want these rules, use
10259         --enable-maintainer-mode (called automatically by autogen.sh).
10260         Stops a lot of unneccessary make-time warnings.
10261
10262         * gtk/gtktext{layout,display}.c: Factor in total width as
10263         well as screen when figuring alignment for word-wrap as well as
10264         no wrap; this is necessary to handle lines that cannot be wrapped
10265         at all.
10266
10267 2000-11-15  Havoc Pennington  <hp@redhat.com>
10268
10269         * gtk/testtext.c: Implement essential color cycling feature
10270
10271 2000-11-15  Havoc Pennington  <hp@redhat.com>
10272
10273         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
10274         when we invalidate the main window.
10275
10276         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
10277         GtkTextView will now invalidate the side windows for us when text
10278         changes.
10279
10280 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
10281
10282         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
10283         unconditionally, since we may need to update the horizontal
10284         scrollbars even if the height didn't change.
10285
10286         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
10287         the extra attrs, since some of them affect size.
10288
10289         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
10290         x_offset correctly.
10291
10292 2000-11-15  Havoc Pennington  <hp@redhat.com>
10293
10294         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
10295         don't move the first line out into the margin, instead move the
10296         whole paragraph in order to make space for the first line within 
10297         the margin
10298
10299 2000-11-15  Havoc Pennington  <hp@redhat.com>
10300
10301         * gtk/gtktextview.c (changed_handler): offset redraw rect by
10302         xoffset in addition to yoffset, so horizontal scrolling doesn't
10303         break redraws
10304
10305 2000-11-15  Havoc Pennington  <hp@redhat.com>
10306
10307         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
10308         from the cursor
10309         (render_layout_line): fix reversed test that caused weird
10310         underlines to get drawn
10311
10312 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10313
10314         * gdk/linux-fb/gdkprivate-fb.h:
10315         Fix debug macros.
10316         
10317 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10318
10319         * gdk/linux-fb/gdkprivate-fb.h:
10320         Added virtual functions set_pixel, get_color,
10321         fill_span and draw_drawable to the GC.
10322         Added global _gdk_fb_screen_gc to use instead of
10323         NULL when drawing to the screen.
10324         Added _gdk_fb_gc_calc_state() prototype.
10325
10326         * gdk/linux-fb/gdkgc-fb.c:
10327         Call _gdk_fb_gc_calc_state() on any gc state change.
10328
10329         * gdk/linux-fb/gdkglobals-fb.c:
10330         Add _gdk_fb_screen_gc
10331                 
10332         * gdk/linux-fb/gdkdrawable-fb2.c:
10333         _gdk_fb_gc_calc_state() calculates best functions
10334         for the GC state and depth.
10335         Moved bpp specialized code to separate functions.
10336         Added optimized 24 bpp AA draw_drawable.
10337
10338         * gdk/linux-fb/gdkevents-fb.c:
10339         Silence gcc warning.
10340
10341         * gdk/linux-fb/gdkimage-fb.c:
10342         Use _gdk_fb_screen_gc
10343
10344         * gdk/linux-fb/gdkwindow-fb.c:
10345         Init and use _gdk_fb_screen_gc
10346
10347         * gdk/linux-fb/mitypes.h:
10348         Remove unused types.
10349
10350 2000-11-14  Havoc Pennington  <hp@pobox.com>
10351
10352         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
10353         to pixels
10354
10355 2000-11-14  Havoc Pennington  <hp@pobox.com>
10356
10357         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
10358
10359         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
10360         unknown char, no real reason we were using a variable. 
10361         Remove gtk_text_unknown_char variable. Fix all the text widget
10362         files accordingly.
10363
10364         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
10365         since the Unicode spec seems to prefer that character for our
10366         purposes.
10367
10368 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
10369
10370         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
10371         value of g_getenv() isn't freeable, so g_strdup it.
10372
10373         * modules/input/inuktitut.c: Inuktitut input method.
10374
10375         * modules/input/Makefile.am: Build this.
10376         
10377 2000-11-14  Elliot Lee  <sopwith@redhat.com>
10378
10379         * gtk/Makefile.am: Install gtk.immodules, needed for operation
10380         of gtk programs.
10381
10382 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
10383
10384         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
10385         reversed > that was causing Home to go to end of previous line.
10386
10387         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
10388         modified-keypresses (leave for bindings.)
10389
10390         * modules/input/Makefile.am: Remove useless -export-dynamic
10391         from module LDFLAGS.
10392
10393 2000-11-14  Havoc Pennington  <hp@redhat.com>
10394
10395         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
10396         higher.
10397
10398         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
10399         account. Also, render rise, underline, background, etc. for
10400         pixbufs as well as text. Also, draw underlines one pixel higher.
10401
10402         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
10403         PangoAttribute for the rise, so it gets drawn properly. Also,
10404         add the GtkTextAppearance attribute for pixbuf/widget segments
10405         as well; we should go ahead and have rise, underline, background,
10406         stipple work for those
10407
10408         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
10409         Pango
10410
10411 2000-11-15  Tor Lillqvist  <tml@iki.fi>
10412
10413         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
10414
10415         * gtk/gtk.def: Update.
10416
10417         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
10418         included.
10419         (gtk_rc_get_im_module_file): Use run-time installation directory
10420         on Win32.
10421
10422         * gdk/win32/rc/gdk.rc: Remove.
10423         * gdk/win32/rc/gdk.rc.in: New file.
10424         * gdk/win32/rc/Makefile.am: New file
10425         * gdk/win32/Makefile.am: Corresponding changes.
10426
10427         * gtk/gtk.rc: Remove.
10428         * gtk/gtk-win32.rc.in: New file.
10429         * gtk/Makefile.am: Corresponding changes.
10430
10431         * configure.in: Corresponding changes.
10432
10433         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
10434         has a built gtkcompat.h. Developers using CVS code on Win32 can
10435         hand-edit it from gtkcompat.h.in.
10436
10437         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
10438         gtkcompat.h from gtkcompat.h.win32.
10439
10440 2000-11-14  Havoc Pennington  <hp@redhat.com>
10441
10442         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
10443         to default to GDK_ACTION_MOVE if the drag is within a single
10444         widget. Defaults to GDK_ACTION_COPY between widgets.
10445
10446 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
10447
10448         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
10449
10450         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
10451
10452         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
10453         srcdir != builddir
10454
10455         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
10456
10457         * configure.in (GTK_VERSION): Up to 1.3.2
10458
10459         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
10460         gtkimcontextxim.h
10461
10462         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
10463         missing doc comment.
10464
10465 2000-11-14  Alexander Larsson  <alexl@redhat.com>
10466
10467         * modules/linux-fb/basic.c:
10468         Use the glib iconv wrappers.
10469
10470 2000-11-13  Havoc Pennington  <hp@pobox.com>
10471
10472         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
10473         still more bugs.
10474
10475         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
10476         scroll the GdkWindows before realization.
10477
10478 2000-11-13  Havoc Pennington  <hp@redhat.com>
10479
10480         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
10481         where GC didn't always get updated properly
10482
10483         * demos/gtk-demo/textview.c (create_tags): Use subattributes
10484         of fonts instead of setting the entire font
10485
10486         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
10487         setting entire font
10488
10489         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
10490
10491         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
10492         a bunch of individually-settable font attributes. You can still 
10493         use the "font" and "font_desc" args, they just set all the font
10494         attributes at once.
10495
10496 2000-11-13 Elliot Lee <sopwith@redhat.com>
10497
10498         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
10499
10500 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
10501
10502         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
10503         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
10504
10505         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
10506         work better.
10507
10508 2000-11-13  Havoc Pennington  <hp@redhat.com>
10509
10510         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
10511         the module file.
10512
10513         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
10514         dest->language
10515
10516         * gtk/testtext.c: Test pixels above/below/inside paragraphs
10517         settings
10518
10519         * gtk/gtktextview.c: Implement object args and setters/getters for
10520         all the aspects of the GtkTextAttributes that are not set from
10521         GtkWidget attributes. This is spacing, justification, margins,
10522         etc.
10523
10524         (gtk_text_view_set_arg)
10525         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
10526         args
10527         (gtk_text_view_class_init): Add args for justify, left_margin,
10528         right_margin, indent, and tabs
10529         
10530
10531         * gtk/gtktextlayout.c (set_para_values): fix to display indent
10532         attribute properly
10533
10534         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
10535         replace with indent attribute
10536
10537         * gtk/gtktextlayout.c (set_para_values): multiply indent by
10538         PANGO_SCALE
10539
10540         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
10541         rearranging code to do that
10542         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
10543         i.e. don't subtract the top_margin first, just to keep
10544         all margin-futzing in one place.
10545
10546         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
10547
10548         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
10549         special case of last line, Pango now handles this itself.
10550         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
10551         Y coordinate
10552         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
10553         (find_display_line_above): wasn't moving the byte index as it
10554         iterated over lines, so always returned byte 0. Also, port to use
10555         PangoLayoutIter.
10556         (find_display_line_below): same problem as
10557         find_display_line_above. Also, port to use PangoLayoutIter.
10558
10559 2000-11-13  Alexander Larsson  <alexl@redhat.com>
10560
10561         * gdk/linux-fb/*.[ch]:
10562         Massive reindent to gtk+ standard. My hands hurt.
10563
10564         * gdk/linux-fb/gdkcolor-fb.c:
10565         Move GdkColorPrivateFB from inherited to windowing_data
10566
10567         * gdk/linux-fb/gdkcursor-fb.c:
10568         _gdk_cursor_new_from_pixmap made static
10569
10570         * gdk/linux-fb/gdkdnd-fb.c:
10571         GdkDragContextPrivate moved to windowing_data
10572
10573         * gdk/linux-fb/gdkdrawable-fb2.c:
10574         Removed endian.h, use glib endianness macros instead
10575         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
10576         and GDK_DRAWABLE_IMPL_FBDATA
10577
10578         * gdk/linux-fb/gdkfont-fb.c:
10579         Add empty gdk_font_load(). Needed for linking of Gtk+.
10580
10581         * gdk/linux-fb/gdkimage-fb.c:
10582         Removed endian.h, use glib endianness macros instead
10583         Moved GdkImagePrivateFB to windowing_data
10584         gdk_image_new_bitmap didn't always allocate enough
10585         memory.
10586
10587         * gdk/linux-fb/gdkinput-ps2.c:
10588         Added semi-working support for MS serial mice.
10589
10590         * gdk/linux-fb/gdkprivate-fb.h:
10591         s/GdkWindowPrivate/GdkWindowObject/
10592         Removed GdkWindowPrivate typedef
10593         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
10594         Removed GDK_DRAWABLE_P
10595         Move GdkColorPrivateFB from inherited to windowing_data
10596         Moved GdkImagePrivateFB to windowing_data
10597
10598         * gdk/linux-fb/gdkvisual-fb.c:
10599         Removed some unused debug code.
10600
10601         * gdk/linux-fb/gdkwindow-fb.c:
10602         Use stock cursors instead of including X headers.
10603         s/GdkWindowPrivate/GdkWindowObject/
10604
10605         * gdk/linux-fb/mitypes.h:
10606         Removed unused types.
10607
10608         * modules/linux-fb/basic.c:
10609         Use the pango fribidi wrappers.
10610
10611 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
10612
10613         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
10614         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
10615         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
10616         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
10617         GEqualFunc where applicable.
10618         
10619         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
10620         pango_font_description_equal as changed in pango.
10621         
10622         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
10623
10624         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
10625
10626         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
10627
10628         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
10629
10630         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
10631
10632         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
10633
10634         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
10635         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
10636
10637         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
10638         gtk_rc_styles_compare -> gtk_rc_styles_equal.
10639
10640 2000-11-12  Havoc Pennington  <hp@pobox.com>
10641
10642         * demos/gtk-demo/Makefile.am (democodedir): change demo install
10643         dir to datadir/gtk+-2.0/demo
10644
10645         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
10646         sorts of text widget and Pango font bugs. Urgh.
10647
10648         * demos/gtk-demo/Makefile.am (demos): Add textview.c
10649
10650         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
10651         tree that you should double click to see the demo. Fix 
10652         types of variables to reflect changed return values from 
10653         GtkTreeStore and GtkTreeViewColumn constructors.
10654
10655         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
10656         newly-created buffer to prepare for GObject semantics
10657
10658         * gtk/testtext.c: don't leak the buffer with GObject semantics
10659
10660         * gtk/testtextbuffer.c: ditto
10661         
10662 2000-11-12  Havoc Pennington  <hp@pobox.com>
10663
10664         Rename this testgtk to gtk-demo to avoid confusion, and 
10665         install it so people can use it as a supplement to 
10666         the documentation.
10667         
10668         * demos/gtk-demo: Moved from demos/testgtk
10669
10670         * demos/testgtk: Removed
10671
10672         * configure.in: make Makefile in gtk-demo
10673         
10674         * demos/gtk-demo/Makefile.am: Install sample source to 
10675         datadir/gtk-demo (maybe there's a better place?), and 
10676         rename the binary to gtk-demo
10677         
10678         * demos/gtk-demo/main.c (load_file): Load installed sample
10679         source if source isn't found in pwd.
10680
10681 2000-11-09  Havoc Pennington  <hp@pobox.com>
10682
10683         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
10684         argument to set the char displayed when visibility == FALSE
10685         (gtk_entry_create_layout): If !entry->visible, replace 
10686         all chars with the "invisible char"
10687
10688         * gtk/testgtk.c: Test the invisible_char deal
10689         
10690 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
10691
10692         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
10693         can't get a native font in the right encoding.
10694
10695 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
10696
10697         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
10698         respectively.
10699
10700 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
10701
10702         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10703         Fix warning when moving between paragraphs.
10704
10705         * gtk/gtkentry.[ch]: Change move => move_cursor, 
10706         delete => delete_from_cursor, insert => insert_at_cursor
10707
10708 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
10709
10710         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
10711
10712         * modules/input/imthai-broken.c: A Thai input method for use if
10713         Thai keys are really generating Latin1 keysyms.
10714
10715         * modules/input/Makefile.am: Build these.
10716
10717 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
10718
10719         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
10720         g_filename_{to,from}_utf8 now takes an extra parameter.
10721
10722         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
10723         strftime into UTF-8.
10724
10725         (column_from_x, gtk_calendar_paint_day_names): Support RTL
10726         calendars.
10727
10728         (gtk_calendar_paint_day_names): Draw day names in the right 
10729         place.
10730         
10731 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
10732
10733         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
10734         problem with using result of g_get_charset() backwards -
10735         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
10736
10737         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
10738         negative min_width/height and max_width/height to
10739         mean "requisition"; this allows setting a window
10740         to be user-resizable in only one direction easily.
10741
10742         * gtk/testgtk.c (create_main_window): Remove hard-coded
10743         usize - set a default size in the vertical direction.
10744
10745 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
10746
10747         * gtk/gtkrange.c: Add some missing casts. Support 
10748         2 and 3 button clicks on the arrows to mean 
10749         "move by pages" and "jump to end". (Like gtkspinbutton)
10750
10751 2000-11-12 Hans Breuer <Hans@Breuer.Org>
10752
10753         * gdk/win32/makefile.msc : reflect build module changes
10754
10755         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
10756         from GdkPixmap*, cast implementation member instead.
10757
10758         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
10759         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
10760         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
10761         more Gdi functions return value checking. 
10762         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
10763         GdkImagePrivateWin32 *.
10764
10765         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
10766         menus useable again. Add #pragma message to keep reminded on this issue.
10767         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
10768         windows. This allows to enable backing store on Win32!
10769
10770         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
10771         in drawable is of impl type. Correct specific type checks appropriate.
10772  
10773         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
10774         GDK_WINDOW_DESTROYED before allocating new resources.
10775
10776         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
10777
10778         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
10779         (gdk_window_foreign_new) initialize parent handle.
10780         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
10781
10782         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
10783         Let the GDI invalidate the window on MoveWindow call to fix scrolling
10784         problems (e.g. main buttons in testgtk). 
10785
10786 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
10787
10788         * gtk/gtkentry.c (gtk_entry_key_press): Call 
10789         gtk_widget_activate for GDK_Return.
10790
10791         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
10792         of preedit cursor position.
10793
10794 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
10795
10796         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
10797         static.
10798
10799 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
10800
10801         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
10802         out support for multiple locales; that simple doesn't
10803         work reliably with current Xlib
10804
10805         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
10806         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
10807         Add support for positioning the cursor within the preedit string.
10808
10809 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
10810
10811         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
10812         at XIM input method module.
10813
10814         * gtk/gtktextview.c: Check for bindings after passing
10815         events to im context filter.
10816
10817 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
10818
10819         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
10820         empty attribute lists properly.
10821
10822 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
10823
10824         * gtk/queryimmodules.c (main): Return non-zero exit
10825         status if errors were encountered querying any
10826         modules.
10827
10828         * modules/input/Makefile.am (moduledir): remove
10829         leftover bin program target.
10830
10831         * docs/make-todo: Fix typo in error message.
10832
10833 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
10834
10835         * configure.in: Add modules/input/Makefile
10836
10837 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
10838
10839         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
10840         don't include gtkthemes.h.
10841
10842         * gtk/testgtk.c gtk/testtext.c: Set environment variables
10843         to point
10844
10845         * gtk/Makefile.am: Add new .c and .h files, build 
10846         gtk-query-immodules and use it to create a gtk.immodules
10847         file for use of test programs.
10848
10849         * gtk/gtkpreview.c: remove extra blank line.
10850
10851 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
10852
10853         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
10854         Add the ability to add extra tables beyond the default
10855         one, and also the ability to have compose sequences 
10856         that are prefixes of other compose sequences. 
10857
10858         * gtk/gtkimcontextsimple.c: Export a preedit string which
10859         consists of possible candidates for keystrokes that have
10860         been entered but not yet committed.
10861
10862         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
10863         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
10864
10865         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
10866         Add a function to add input-method switching menu items
10867         to a menu.
10868
10869         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
10870         when switching input methods.
10871
10872         * gtk/gtkimcontextsimple.[ch]: Change the format of
10873         the compose table to allow compose tables of different
10874         lengths / sequence.
10875
10876 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
10877
10878         * gtk/gtkimmodule.[ch]: Support routines for loading
10879         GtkIMContext implementations dynamically at runtime.
10880
10881         * modules/input/imcyrillic-translit.c: A sample input
10882         method (based on GtkIMContextSimple with an extra table),
10883         which demonstrates preedit strings and the module
10884         system for input modules
10885
10886         * gtk/queryimmodules.c: Program to query the available
10887         input modules and write the results into a file.
10888          
10889         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
10890         extra config options "im_module_file" (cache file for
10891         input method modules), and "im_module_path" - path
10892         to look for modules when generating cache file.
10893
10894         This doesn't scale.
10895
10896 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
10897
10898         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
10899         generic code from gtkthemes into a new abstraction
10900         GtkModule which has the logic for implementing
10901         a loadable module which implements a number of 
10902         GObject types.
10903
10904 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
10905
10906         * gtk/gtkeditable.[ch]: Convert GtkEditable from
10907         a class into an interface  
10908         
10909         * gtk/gtkoldeditable.[ch]: Move the old editable
10910         implementation into here, so legacy widgets can
10911         still rely on the implemenation. GtkOldEditable
10912         exports GtkEditable. Make selection handling
10913         code use new text conversion functions (and
10914         handle UTF-8 as a side-effect). Use GtkClipboard
10915         for CLIPBOARD.
10916
10917         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
10918         Adopt to match above changes.
10919
10920         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
10921         avoid GtkOldEditable implementation. Restructure
10922         to reduce number of places that modify state directly.
10923         Move to GtkBindingSet. Display the preedit string.
10924         Queue recomputation of PangoLayout and scroll position
10925         to improve effiency of doing complex changes naively.
10926         Add a menu with cut/copy/paste and input method selection.
10927
10928 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
10929
10930         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
10931         to set preedit string and attributes; display preedit string by
10932         inserting string and attributes at cursor when creating the
10933         GtkTextLineDisplay.
10934
10935         * gtk/gtktextlayout.c: Move all conversions between byte
10936         positions in PangoLayout and GtkTextIter into new functions
10937         line_display_iter_to_index/index_to_iter that properly
10938         handle the preedit string.
10939
10940         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
10941         it to return const char * (eventually will end up
10942         as GCONST char *, most likely.)
10943
10944         * gtk/gtktextview.[ch]: Handle the preedit string, call
10945         gtk_im_context_reset() as necessary, add a menu to switch
10946         input methods.
10947         
10948         * gtk/gtktextlayout.[ch]: Remove useless
10949         gtk_text_layout_get_log_attrs() function.
10950
10951 2000-11-11  Tor Lillqvist  <tml@iki.fi>
10952
10953         * gdk/gdk.def
10954         * gtk/gtk.def: Update.
10955
10956         * gdk/win32/*.c: Add last argument to g_type_register_static()
10957         calls.
10958
10959         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
10960
10961         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
10962         generated by older wheel mouse drivers. Get the correct y
10963         coordinate from WM_MOUSEWHEEL messages.
10964
10965         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
10966         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
10967         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
10968         Debugging functions.
10969
10970         * gdk/win32/gdkprivate-win32.h: Declare them.
10971
10972         * gdk/win32/gdkinput-win32.h: Add declaration for
10973         gdk_input_window_destroy().
10974
10975         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
10976
10977 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
10978
10979         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
10980         function to help handle keeping things in sync.
10981
10982 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
10983
10984         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
10985         BOXED marshallers.
10986
10987         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
10988         (gtk_list_store_class_init): use the new BOXED marshallers.
10989
10990         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
10991         new_with_values to new_with_types.
10992         (gtk_tree_store_get_column_type): add this.
10993         (gtk_tree_store_class_init): use the new BOXED marshallers.
10994
10995         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
10996         mirror some POINTER marshallers.
10997
10998 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
10999
11000         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
11001         allow more interesting iterators.  Also, made the lifecycle of
11002         iterators more explicit.
11003
11004         * gtk/gtktreemodelsort.[ch]: New model for sorting.
11005
11006         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
11007         types.
11008
11009 2000-11-09  Alexander Larsson  <alexl@redhat.com>
11010
11011         * demos/testgtk/menus.c:
11012         Changes to make the new testgtk compile after
11013         gtk_menu_append was removed.
11014
11015         * gdk/linux-fb/gdkdrawable-fb2.c
11016         (gdk_fb_get_depth, gdk_fb_get_visual,
11017         gdk_drawable_impl_fb_class_init): Implement
11018         these drawable functions. Now GtkImages work again.
11019
11020         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
11021
11022         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
11023         
11024         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
11025         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
11026         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
11027         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
11028
11029 2000-11-08  Havoc Pennington  <hp@pobox.com>
11030
11031         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
11032         visible_set args, don't know where these had gone, I thought they
11033         used to be there
11034
11035         * gtk/testtext.c: Add a menu item to apply invisibility tag;
11036         now we can test the feature and see that it's totally broken.
11037
11038 2000-11-08  Havoc Pennington  <hp@pobox.com>
11039
11040         Make DND copy pixbufs and tags when source and target share a 
11041         tag table.
11042         
11043         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
11044         in-process GTK_TEXT_BUFFER_CONTENTS target
11045         (gtk_text_view_drag_data_received): Paste from
11046         GTK_TEXT_BUFFER_CONTENTS if we receive it.
11047
11048 2000-11-08  Alexander Larsson  <alexl@redhat.com>
11049
11050         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
11051         API changes.
11052
11053         * gtk/gtkmenu.c: Add support for scrolling menus.
11054         Remove gtk_menu_append/prepend/insert, these have been moved to
11055         gtkcompat.h as #defines.
11056
11057         * gtk/gtkcompat.h.in:
11058         Add compatibility #defines for gtk_menu_append/prepend/insert
11059
11060         * gtk/gtkmenu.h: Add data needed for scrolling menus.
11061         GtkMenuPositionFunc gets an extra argument push_in.
11062         gtk_menu_append/prepend/insert removed.
11063         
11064         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
11065         positioning behaviour to fit to scrolling menus.
11066
11067         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
11068         into menuitem->submeny. That is wrong, and broke torn
11069         off submenus of torn off menus, since they were unrealized
11070         when the first menu was unrealized.
11071
11072         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
11073         gtk_menu_shell_select_item() since these need to be overridden in
11074         GtkMenu.
11075
11076         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
11077         positioning behaviour to fit to scrolling menus.
11078         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
11079         the current item so that it is prelighted when the menu pops up.
11080         This is a workaround to the fact that the menu doesn't get the
11081         initial enter event (due to grabs).
11082
11083         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
11084         s/gtk_menu_append/gtk_menu_shell_append/
11085
11086         * gtk/gtknotebook.c:
11087         s/gtk_menu_insert/gtk_menu_shell_insert/
11088
11089         * gtk/testgtk.c (create_menu, create_menus):
11090         Create the first menu with 50 items so that menu scrolling
11091         can be tested.
11092         
11093         
11094         Patch from Jonathan Blandford  <jrb@redhat.com>
11095
11096         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
11097         system to handle size requests.  First, we ask what the size of
11098         the toggle is.  Then, when allocating the size, we allocate the
11099         toggle_size first.  This way we can have multiple menu-item
11100         classes w/o needing a seperate class for each.
11101
11102         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
11103         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
11104
11105         * gtk/gtkcheckmenuitem.c
11106         (gtk_check_menu_item_toggle_size_request): New function to handle
11107         the toggle size-request.
11108
11109 2000-11-07  Havoc Pennington  <hp@redhat.com>
11110
11111         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
11112         Half-ass somewhat fix this function, so that scrolling to the
11113         insertion point works. Pango hacking is in the future to really
11114         fix it.
11115
11116         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
11117         length of data, no longer used.
11118
11119         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
11120         method contents in here, get rid of destroy method
11121         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
11122         that were backward. Remove debug spew.
11123         (cut_or_copy): Make the clipboard work with insert_range to
11124         preserve tags and pixbufs, not just the primary selection.
11125
11126 2000-11-07  Havoc Pennington  <hp@redhat.com>
11127
11128         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
11129         to gtk_text_mark_get_visible
11130
11131         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
11132         bug that was generating an invalid iterator
11133
11134         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
11135         ensure_char_offsets() in front of code placing the iter in an
11136         invalid state.
11137
11138         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
11139         make override_location arg const
11140         (paste): Replace the selection if we paste into the 
11141         current selection
11142
11143         * gtk/gtkselection.h: Remove "GtkSelectioData"
11144         (struct _GtkSelectionData): move the definition here.
11145
11146         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
11147         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
11148
11149         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
11150
11151         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
11152         (gtk_text_buffer_insert_range_interactive): implement
11153         (gtk_text_buffer_get_tags): Remove, replaced by
11154         gtk_text_iter_get_tags()
11155
11156         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
11157         limit parameter, to avoid infinite linear scan.
11158         (gtk_text_iter_backward_search): Add search limit
11159         (gtk_text_iter_forward_find_char): Add search limit
11160         (gtk_text_iter_backward_find_char): Add search limit
11161
11162 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
11163
11164         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11165         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
11166         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
11167         gdk/linux-fb/gdkwindow-fb.c:
11168         use g_object_new() instead of g_type_create_instance() which
11169         is a private function for fundamental type implementations.
11170
11171         * gdk/linux-fb/gdkinput-ps2.c:
11172         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
11173         instead just store the current modifier state. Add a (somewhat broken)
11174         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
11175         Rename exported function gdk_input_ps2_get_mouseinfo to
11176         gdk_input_get_mouseinfo.
11177
11178         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
11179         gdk/linux-fb/gdkwindow-fb.c:
11180         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
11181         
11182
11183 2000-11-02  Havoc Pennington  <hp@redhat.com>
11184
11185         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
11186         use stock buttons. Should be 100% source compatible, appropriate
11187         filesel fields now point to dialog->vbox and dialog->action_area.
11188         On the bizarre side, dialog->action_area and filesel->action_area
11189         are not the same widget.
11190         (gtk_file_selection_init): Put some padding around the selection
11191         entry, so it isn't touching the GtkDialog separator.    
11192
11193         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
11194         use stock buttons, etc. Should also be source compatible.
11195         Set the dialog default title in _init not _new().
11196         
11197         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
11198         Use stock buttons; don't put a button box inside the existing
11199         dialog button box. Don't bother with push/pop colormap anymore.
11200
11201         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
11202         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
11203         for message dialog, and necessary for the font selection and color
11204         selection with help and apply buttons.
11205         
11206         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
11207         to the created button widget. Set GTK_CAN_DEFAULT on the button.
11208         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
11209         between buttons, put less padding around the action area.
11210         (gtk_dialog_run): Exit on unmap rather than on destroy. 
11211         This will also exit the loop if the widget is hidden.
11212         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
11213         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
11214         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
11215         special-case delete event.
11216
11217         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
11218         formatting
11219         
11220 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
11221
11222         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
11223         button to temporarily disable position recording in the
11224         "saved position" test.
11225
11226 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
11227
11228         * gtk/gtkthemes.c: added compat code that temporarily implements
11229         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
11230         going to be revamped by owen's upcoming GtkModule patches, but
11231         untill then people want gtk to build, right? ;)
11232
11233 2000-11-04  Havoc Pennington  <hp@pobox.com>
11234
11235         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
11236         list
11237
11238         * docs/Changes-2.0.txt: Add note about
11239         gtk_container_get_toplevels()
11240
11241         * gtk/gtktextview.h: formatting
11242         
11243         * gtk/gtktextview.c: don't start descriptions with "Returns",
11244         confuses gtk-doc
11245
11246 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
11247
11248         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
11249         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
11250
11251 2000-11-03  Havoc Pennington  <hp@redhat.com>
11252
11253         * gtk/gtktexttagtable.c: Docs
11254         (gtk_text_tag_table_size): return a signed int
11255
11256         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
11257         (gtk_text_tag_event): make the event_object a GObject
11258
11259         * gtk/gtktextview.c: Write API docs for all functions.
11260
11261         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
11262         for gtk_text_view_get_window_type() called on one of the private
11263         windows.
11264
11265         * gtk/gtktextview.c: Instead of accessing text_view->buffer
11266         directly, call get_buffer() which demand-creates a default
11267         buffer. So gtk_text_view_new() can be used to create a view with a
11268         default buffer in it, if you just want an empty text box users can
11269         put data in. Useful for GUI builders also.
11270
11271 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
11272
11273         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
11274         the charset encodign portion MUST be in lowercase.
11275         * gtk/gtkrc.az: added file for Azeri language
11276
11277 2000-11-03  Havoc Pennington  <hp@redhat.com>
11278
11279         Get widgets working on the btree/buffer side. Display of them 
11280         still doesn't work.
11281         
11282         * gtk/gtktextview.c: start implementing child widget stuff
11283
11284         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
11285
11286         * gtk/gtktextlayout.c: handle embedded widgets
11287
11288         * gtk/gtktextdisplay.c: handle embedded widgets
11289
11290         * gtk/gtktextchild.c: Implement all the child anchor goo
11291
11292         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
11293         function
11294
11295         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
11296         (insert_pixbuf_or_widget_segment): abstract out common portions of 
11297         creating a child anchor or a pixbuf segment.
11298         (gtk_text_btree_create_child_anchor): new function
11299         (gtk_text_btree_unregister_child_anchor): new function
11300
11301         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
11302         allocate_child signal on GtkTextLayout
11303
11304         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
11305         values
11306         (gtk_text_iter_get_child_anchor): new function
11307
11308         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
11309         default handler for the changed signal, which calls
11310         gtk_text_buffer_set_modified(), instead of just always emitting
11311         changed then calling set_modified() manually. I guess this is
11312         maybe more flexible. It seems logical.
11313
11314 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
11315
11316         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
11317         now.
11318
11319         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
11320
11321 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
11322
11323         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
11324         been marked static.
11325
11326 2000-11-02  Havoc Pennington  <hp@redhat.com>
11327
11328         * gtk/testgtk.c (create_labels): had a test backward
11329
11330         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
11331         fields, so the dest GC ends up with the correct clip origin, 
11332         etc. Fixes a bug where colored labels didn't redraw 
11333         properly.
11334
11335 2000-11-02  Alexander Larsson  <alexl@redhat.com>
11336
11337         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11338         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
11339         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
11340         Add last argument to t_type_register_static call.
11341         
11342         * gdk/linux-fb/gdkdrawable-fb2.c:
11343         Add last argument to t_type_register_static call.
11344         export the get_image drawable virtual function.
11345
11346         * gdk/linux-fb/gdkimage-fb.c:
11347         Add last argument to t_type_register_static call.
11348         rename gtk_image_get to _gdk_fb_get_image and
11349         export it for use by gdkdrawable-fb2.
11350
11351         * gdk/linux-fb/gdkprivate-fb.h:
11352         export _gdk_fb_get_image.
11353
11354         * gdk/linux-fb/gdkselection-fb.c:
11355         Add new api call stubs.
11356
11357         * gtk/Makefile.am:
11358         Missing ( in linux-fb part.
11359
11360         * modules/linux-fb/Makefile.am:
11361         Must link with gdk_pixbuf or get unresolved symbol.
11362
11363 2000-11-01  Havoc Pennington  <hp@pobox.com>
11364
11365         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
11366         GTK_TYPE_TEXT_ITER and BOXED marshallers
11367
11368         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
11369
11370         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
11371         
11372         * gtk/gtk-boxed.defs: add GtkTextIter
11373
11374         * gtk/gtkmarshal.list: Add marshallers for text widget that 
11375         properly use OBJECT and BOXED
11376
11377 2000-11-01  Havoc Pennington  <hp@redhat.com>
11378
11379         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
11380
11381         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
11382         before returning it. 
11383         
11384 2000-11-01  Havoc Pennington  <hp@redhat.com>
11385
11386         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11387         Clip the rectangle to be rendered to the drawable, since
11388         get_from_drawable() requires a region within the drawable
11389
11390 2000-11-01  Havoc Pennington  <hp@redhat.com>
11391
11392         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
11393         from coordinates.
11394
11395 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
11396
11397         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
11398         it isn't NULL.
11399
11400 2000-11-01  Havoc Pennington  <hp@pobox.com>
11401
11402         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
11403         on a label
11404         (gtk_label_finalize): unref the attr list if any.
11405
11406         * gtk/testgtk.c (create_get_image): close test on second click
11407         (make_message_dialog): close dialog if it exists
11408
11409         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
11410
11411         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
11412         gdk-pixbuf
11413
11414         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
11415         from Pango markup format
11416         (gtk_label_set_markup_with_accel): ditto but with accelerator
11417         parsing
11418
11419         * gtk/gtkimage.c (gtk_image_expose): reformatting.
11420
11421         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
11422         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
11423         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
11424         call gdk_window_get_origin().
11425
11426         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11427         implement GDK_PIXBUF_ALPHA_FULL
11428         
11429 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
11430
11431         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
11432         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
11433         g_signal_handlers_disconnect_matched to block/unblock and disconnect
11434         multiple handlers respectively, instead of only treating the
11435         first handler found (bug reported by owen).
11436
11437 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
11438
11439         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
11440
11441         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
11442
11443         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
11444         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
11445         gtk/gtktreeviewcolumn.h: Fixed inline docs.
11446
11447         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
11448         widget.  Needs writing someday.
11449
11450         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
11451         the docs.
11452
11453 2000-10-30  Havoc Pennington  <hp@redhat.com>
11454
11455         * gtk/gtktextview.h, gtk/gtktextview.c:
11456         Rename delete_at_cursor delete_from_cursor, and 
11457         move to move_cursor.
11458
11459 2000-10-30  Havoc Pennington  <hp@redhat.com>
11460
11461         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
11462         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
11463         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
11464         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
11465         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
11466         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
11467         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
11468         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
11469         gtktexttypes.h, gtktextview.c, gtktextview.h:
11470
11471         Massive reindentation and reformatting. Arg alignment and comments
11472         still need fixing in various places.
11473
11474 2000-10-30  Havoc Pennington  <hp@redhat.com>
11475
11476         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
11477         to be named insert_at_cursor and delete_at_cursor so C++ can
11478         handle them.
11479
11480 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11481
11482         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
11483         to get a double directory separator in case the home directory
11484         ends with one. This would cause trouble especially on Windows,
11485         where the path will be confused with the syntax for an an UNC
11486         (network share) path \\server\share\path.
11487         (gtk_rc_add_initial_default_files): Ditto.
11488
11489 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
11490
11491         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
11492
11493         * gtk/gtktextview.c: Use correct marshallers.
11494
11495 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
11496
11497         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
11498         use new iter stuff, and added all the appropriate signals et al.
11499
11500         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
11501         code is internal to gtk only.
11502
11503 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11504
11505         * gtk/gtk.def
11506         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
11507         glib-genmarshal etc.
11508
11509 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
11510
11511         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
11512         parallel builds.
11513
11514 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
11515
11516         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
11517
11518 2000-10-27  Robert Brady  <robert@suse.co.uk>
11519
11520         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
11521         en_GB (British), ia (Interlingua).
11522
11523 2000-10-26  Havoc Pennington  <hp@redhat.com>
11524
11525         * gtk/gtktextiter.c (my_strrstr): fix constness warning
11526
11527         Fixed output of:
11528         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
11529         
11530         * gtk/gtktextsegment.c (char_segment_new): rename
11531         (_char_segment_new_from_two_strings): rename
11532         (_toggle_segment_new): rename
11533         
11534         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
11535         (make_clipboard_widget): make it static
11536         (text_get_func): static
11537         (text_clear_func): static
11538
11539         * gtk/gtkcolorsel.c (adjustment_changed): make this function
11540         static
11541         (hex_changed): make it static
11542         (hsv_changed): make it static
11543         (opacity_entry_changed): make it static
11544
11545         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
11546         (toggle_segment_check_func): rename with _gtk
11547
11548         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
11549         (_widget_segment_new): rename
11550         (_widget_segment_add): rename
11551         (_widget_segment_remove): rename
11552         (_widget_segment_ref): rename
11553         (_widget_segment_unref): rename
11554
11555         * gtk/gtktextmark.c (_mark_segment_new): Rename
11556         _gtk_mark_segment_new   
11557
11558 2000-10-26  Havoc Pennington  <hp@redhat.com>
11559
11560         * gtk/gtkmarshal.list: add new marshallers used by the text widget
11561         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11562         types
11563
11564         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
11565         marshaller types
11566
11567         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
11568         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
11569         license on these files.
11570
11571         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
11572         work.
11573
11574         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
11575         runtime random number different for each tree, instead of 
11576         a constant I made up.
11577
11578 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
11579
11580         * gtk/Makefile.am: buncha cleanups, kludged build sources
11581         dependencies with a Makefile: oldest-source-stamp dependancy
11582         for the moment. automake is really fighting us here, with
11583         intentionally not allowing user-defined rules or dependancies
11584         prior to it's -include $(DEP_FILES) statement. sucks rocks!
11585
11586         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
11587         to public headers. tehy have a comment stating that they are
11588         "semi-public" aren't included by gtk.h and if enums popup there,
11589         they can be /*< skip >*/-ed.
11590
11591         * gtk/gtktextlayout.h: 
11592         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
11593         added LGPL... <SIGH>
11594
11595 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
11596
11597         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
11598         GtkTreeIter.  Added iterators everywhere.
11599
11600         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
11601
11602         * gtk/gtktreeviewselection.c: Changed to use the iterators.
11603
11604         * gtk/gtktreestore.c: Changed to use the iterators.
11605
11606         * gtk/gtkliststore.c: Commented out the code.  Will convert to
11607         iterators tomorrow.
11608
11609         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
11610         iterators tomorrow.
11611
11612         * gtk/treestoretest.c: Changed to use iterators.
11613
11614         * demos/testgtk/main.c: Moved to use the new iterator system.
11615
11616 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
11617
11618         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
11619         localization misbehaviour.
11620
11621         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
11622         a useless type without copy/free.
11623
11624         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
11625         of GTK_TYPE_CTREE_NODE.
11626
11627 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
11628
11629         * gtk/gtksignal.c:
11630         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
11631         applicable.
11632
11633         * gtk/gtk-boxed.defs (GtkSelectionData): specify
11634         gtk_selection_data_copy and gtk_selection_data_free
11635         do GtkSelectionData work as params in signals.
11636
11637 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
11638
11639         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
11640         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
11641         couldn't they at least give it a non-standard name?
11642         
11643         * gtk/gtktextlayout.c: arg! yet another implementation of
11644         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
11645
11646         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
11647         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
11648         home. now i know this _is_ a conspiracy.
11649
11650         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
11651         ::state-changed.
11652
11653         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
11654         (gtk_accel_group_create_add): marshaller signature fixups.
11655
11656         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
11657         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
11658
11659         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
11660         anymore.
11661
11662 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
11663
11664         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
11665         due to the signal system changes, it wouldn't build currently. to
11666         be fixed soon.
11667
11668         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
11669
11670         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
11671         so it needs gtk_marshal_VOID__ENUM() instead of
11672         gtk_marshal_NONE__UINT().
11673
11674         * gdk/gdk*.c: adapted type registration functions.
11675
11676         * gtk/gtkbindings.c:
11677         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
11678         gone.
11679
11680         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
11681
11682         * gtk/gtkobject.c:
11683         (gtk_object_destroy):
11684         (gtk_object_shutdown): fixed recursion guards. basically we have to
11685         catch the case where any of GObject.shutdown() or gtk_object_destroy()
11686         is called during ::destroy, and avoid recursion there.
11687
11688         * gtk/gtktypeutils.c:
11689         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
11690         boxed_copy/boxed_free. this needs a more general solution based on a
11691         publically installed code-generator utility.
11692
11693         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
11694         glib's gobject has support for that now.
11695         define GtkSignalMarshaller in terms of GSignalCMarshaller.
11696
11697 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
11698
11699         * gtk/gtksignal.[hc]:
11700         * gtk/gtkmarshal.[hc]:
11701         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
11702         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
11703         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
11704         care of that.
11705
11706         * *.c: marshaller name fixups.
11707
11708         * gtk/gtkmarshal.list: added a comment briefing the format.
11709
11710 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
11711
11712         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
11713         compatibility macros here now. more specifically, most of
11714         the API is preserved (yes, _most_, nonwithstanding the
11715         following exceptions listed, the API is stil lHUGE ;)
11716         things that got removed completely:
11717         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
11718         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
11719         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
11720         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
11721         gtk_signal_remove_emission_hook().
11722         non-functional functions variants:
11723         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
11724         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
11725         not supported anymore.
11726         (gtk_signal_compat_matched): new internal function to aid
11727         implementation of the compatibility macros, it  provides
11728         functionality to block/unblock/disconnect handlers based
11729         on func/data.
11730
11731         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
11732
11733         * *.c: adaptions to new type registration API signatures.
11734
11735 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
11736
11737         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
11738
11739 2000-10-25  Robert Brady  <robert@suse.co.uk>
11740
11741         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
11742         gdk_property_delete): If window == NULL, assume the root window.
11743         (restoring the behaviour that was in 1.2).
11744         
11745         * gtk/testtext.c (save_buffer): Allow creation of new files when
11746         saving.
11747
11748         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
11749         calls to read().
11750
11751 2000-10-25  Tor Lillqvist  <tml@iki.fi>
11752
11753         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
11754
11755         * gdk/win32/gdkdrawable-win32.c
11756         * gdk/win32/gdkimage-win32.c
11757         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
11758         X11 backend.
11759
11760         * gdk/win32/gdkcc-win32.c
11761         * gdk/win32/gdkcolor-win32.c
11762         * gdk/win32/gdkfont-win32.c
11763         * gdk/win32/gdkinput-win32.c
11764         * gdk/win32/gdkmain-win32.c
11765         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
11766
11767 2000-10-24  Havoc Pennington  <hp@redhat.com>
11768
11769         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
11770         it a static function
11771
11772         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
11773         redraw text when a tag is applied to it.
11774
11775         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
11776         (gtk_text_tag_affects_nonsize_appearance): private functions to
11777         see if a tag requires various kinds of redraw/layout to be queued
11778         up.
11779
11780         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
11781
11782         * gtk/testtext.c (fill_example_buffer): Put the cursor 
11783         at the start of the buffer, so search works by default
11784
11785         * gtk/gtktextiter.c (lines_match): init match_start always
11786
11787         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
11788         function, get iter at a line + a byte index
11789
11790         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
11791         to set byte position within a line
11792         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
11793
11794 2000-10-23  Havoc Pennington  <hp@redhat.com>
11795
11796         * gtk/testtext.c: Re-enable the "find" dialog
11797
11798         * gtk/testgtk.c: Add test for gdk_drawable_get_image
11799         
11800         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
11801         the arguments to gdk_draw_drawable were in the wrong order
11802         (gdk_window_paint_init_bg): This function was ignoring the
11803         init_region, instead of clipping to it, so the entire backing
11804         pixmap was cleared on every begin_paint()
11805         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
11806         was in here again, the loop kept using the same GtkWindowPaint
11807         over and over.
11808         (gdk_window_begin_paint_region): Fix a bug where we had two
11809         x_offset instead of x_offset and y_offset
11810
11811         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
11812         before we get the image.
11813         (gdk_draw_drawable): get the composite before we draw the drawable.
11814         (gdk_drawable_real_get_composite_drawable): default
11815         get_composite_drawable implementation that returns the drawable 
11816         itself
11817
11818         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
11819         get_composite_drawable virtual function
11820
11821         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
11822         list-walking bug
11823
11824         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
11825         make this work if the source drawable is a GdkDrawableImplX11
11826         instead of a public drawable type. This is really broken; the
11827         problem is that GdkDrawable needs a virtual method get_xid(), but
11828         of course that doesn't work in practice. Enter RTTI.
11829
11830         Also, improve mismatched depth message.
11831
11832         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
11833         GdkPixmap
11834
11835         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
11836         install _gdk_x11_get_image as our implementation of get_image
11837         
11838         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
11839         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
11840
11841         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
11842         gdk_drawable_get_image
11843
11844         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
11845
11846         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
11847         get_image
11848
11849         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
11850         trailing semicolon after for loop
11851
11852 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
11853
11854         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
11855         where font_desc for widget's context lagged widget's font_desc by
11856         one step.
11857
11858 2000-10-22  Tor Lillqvist  <tml@iki.fi>
11859
11860         * gdk/win32/gdkgc-win32.c
11861         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
11862
11863         * gtk/makefile.mingw.in
11864         * gtk/gtk.def: Updates.
11865
11866         * gtk/testgtk.c: sleep() is called _sleep in MS's C
11867         library.
11868
11869         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
11870
11871         * gtk/makefile.msc: Remove
11872
11873         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
11874
11875         * gtk/Makefile.am: Add it.
11876
11877         * configure.in: Generate it.
11878
11879         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
11880         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
11881         something even if not implemented, to satisfy picky MSVC.
11882
11883         Patches by Hans Breuer:
11884         
11885         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
11886         SetBkMode() and SetTextAlign() before calling
11887         pango_win32_render().
11888
11889         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
11890         Set hcliprgn to NULL after destroying it.
11891         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
11892
11893         * gdk/win32/gdkgeometry-win32.c
11894         (_gdk_windowing_window_queue_antiexpose): More effective
11895         implementation.
11896
11897         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
11898         depth as default, not the visual's.
11899
11900         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
11901         against empty title.
11902
11903         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
11904         IMAGE_PRIVATE_DATA.
11905
11906         * gdk/win32/gdkimage-win32.c: Use it.
11907
11908 2000-10-22  Robert Brady  <robert@suse.co.uk>
11909
11910         * configure.in: Check for bind_textdomain_codeset
11911
11912         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
11913         present, make use of it.
11914
11915         Add a translatable string "default:LTR" which, if translated
11916         to "default:RTL", will cause the default direction to be
11917         Right-to-Left.
11918
11919         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
11920         direction if marked as flippable.
11921
11922         * gtk/gtkhscale.c: Mark widget as flippable.
11923         
11924 2000-10-04  Havoc Pennington  <hp@redhat.com>
11925
11926         * gtk/testgtk.c (create_buttons): create some stock buttons
11927         with the default accel group
11928         (create_image): test some new GtkImage features
11929         (make_message_dialog): test GtkMessageDialog
11930         (create_modal_window): fix someone's bizzarro indentation
11931
11932         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
11933         GTK_WIN_POS_CENTER_ON_PARENT. 
11934         Add "destroy with parent" setting, which means the window goes
11935         away with its transient parent.
11936         (gtk_window_get_default_accel_group): get the default accel group
11937         for the window.
11938         (gtk_window_set_destroy_with_parent): set/unset destroy with
11939         parent flag
11940         (gtk_window_read_rcfiles): invalidate icon set caches
11941         after reloading rcfiles 
11942
11943         * gtk/gtkenums.h (GtkWindowPosition): add
11944         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
11945         on its parent window when the dialog is mapped for the first time.
11946
11947         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
11948         a simple message dialog class
11949         
11950         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
11951         handler to emit response signal, and maybe later it would
11952         honor a hide_on_delete flag - though that isn't there yet.
11953         Set border width on the vbox to 2, so we get some padding.      
11954         Use a button box for the action area.
11955         (gtk_dialog_key_press): synthesize a delete event if Esc
11956         is pressed and the GtkWidget key press handler didn't 
11957         handle the escape key.
11958         (gtk_dialog_new_with_buttons): new function creates a dialog
11959         with some default buttons in it.
11960         (gtk_dialog_add_action_widget): add an activatable widget
11961         as a button in the dialog - you can also add a non-activatable
11962         widget by accessing the action area directly.
11963         (gtk_dialog_add_button): add a simple button - stock ID or 
11964         label - to the action area
11965         (gtk_dialog_response): emit response signal
11966         (gtk_dialog_run): block waiting for the dialog, return 
11967         the response. Override normal delete_event behavior, so that 
11968         delete_event does nothing inside gtk_dialog_run().
11969
11970         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
11971         emitted when an action widget is clicked or the dialog gets
11972         delete_event
11973
11974         * gtk/gtk.h: add gtkmessagedialog.h
11975
11976         * gtk/Makefile.am: add gtkmessagedialog.[hc]
11977
11978 2000-10-18  Havoc Pennington  <hp@redhat.com>
11979
11980         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
11981         where any number of empty lines would get skipped
11982
11983         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
11984         edge.
11985
11986         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
11987         warning about invalid iterators (explain more thoroughly)
11988         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
11989
11990         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
11991         big
11992
11993         * demos/*.c: Add error handling
11994
11995         * gtk/gtktextbuffer.c: don't modify const iterators
11996
11997         * gtk/gdk-pixbuf-loader.c: Add full error handling here
11998
11999         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
12000         on file load
12001
12002         * gtk/gtkiconfactory.c: Update to reflect addition of error
12003         handling to gdk-pixbuf loaders
12004
12005 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
12006
12007         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
12008         move to new modularized testgtk.
12009
12010 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
12011
12012         * gtk/gtktreeview.c: Draw the arrows correctly.
12013
12014         * gtk/gtktreemodel.c: Added user docs.
12015
12016         * gtk/gtk.h: remove gtktreedatalist.h.
12017
12018         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
12019         parent when generating my type.
12020
12021         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
12022         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
12023
12024 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12025
12026         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
12027         GtkTreeModel from object to interface.
12028
12029 2000-10-16  Havoc Pennington  <hp@redhat.com>
12030
12031         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
12032         compilation
12033
12034 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12035
12036         * gtk/gtktreeselection.c: Add API documentation to all public
12037         functions.
12038
12039         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
12040         functions.
12041
12042 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
12043
12044         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
12045         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
12046         docs to all public functions.
12047
12048         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
12049         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
12050         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
12051         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
12052         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
12053         issue.
12054
12055 2000-10-14  Robert Brady  <robert@suse.co.uk>
12056
12057         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
12058
12059 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
12060
12061         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
12062         values other then G_TYPE_STRING.
12063         * gtk/gtktreeselection.c: Minor commenting updates.
12064         * gtk/gtktreeview.c: Format updates.
12065
12066 2000-10-09  Tor Lillqvist  <tml@iki.fi>
12067
12068         * README.win32: Update.
12069
12070         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
12071         lines that had been deleted by mistake (?).
12072
12073         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
12074         also the case fg==white and bg==black (but still not randomly
12075         coloured cursors). Thanks to Wolfgang Sourdeau.
12076
12077         * gdk/win32/*.c: Silence gcc -Wall.
12078
12079         * gtk/gtk.def: Add missing entry points.
12080
12081         Fixes by Hans Breuer:
12082
12083         * gdk/makefile.msc
12084         * gdk/win32/makefile.msc: Update.
12085
12086         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
12087         some MSVC thing, presumably), cause breakpoint on failures. Add
12088         GDK_NOR case. Call g_log_set_always_fatal.
12089
12090         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
12091         should be pased by reference.
12092         
12093         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
12094         
12095         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
12096
12097         * gdk/win32/gdkevents-win32.c
12098         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
12099
12100         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
12101         implementation object.
12102
12103         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
12104         not just windows.
12105         
12106         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
12107         Use the wrapper object.
12108         
12109 2000-10-06  Havoc Pennington  <hp@redhat.com>
12110
12111         * Makefile.am (SRC_SUBDIRS): contrib subdir
12112
12113         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
12114         so it can be used in Xlib version
12115
12116         * demos/testpixbuf.c (update_timeout): error checking from 1.0
12117         tree
12118
12119         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
12120         change from 1.0 tree that returns first frame of animation
12121         if the loaded file is an animation.
12122
12123         * contrib: add new directory to hold stuff that comes with GTK+
12124         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
12125         
12126         * configure.in: add contrib/*
12127
12128 2000-10-05  Havoc Pennington  <hp@redhat.com>
12129
12130         * demos/testpixbuf-save.c: add pixbuf save test
12131
12132         * demos/Makefile.am: add testpixbuf-save.c
12133
12134 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
12135
12136         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
12137         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
12138         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
12139         * gtk/gtktreeselection.[ch]: Replaced
12140         "node_selected"/"node_unselected" signal with "selection_changed"
12141         signal.
12142
12143 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12144
12145         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
12146         tree widget.
12147
12148 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12149
12150         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
12151         drawing.
12152
12153 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
12154
12155         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
12156         Move list pointer forwards before removing item from
12157         list. (Crash reported by Salmaso Raffaele)
12158
12159         * gdk/gdkwindow.h: Remove spurious trailing ,
12160
12161         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
12162         dependencies on uninstalled libraries, sorry folks.
12163
12164 2000-10-04  Havoc Pennington  <hp@redhat.com>
12165
12166         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
12167         gtk/gtkiconfactory.c: Fix copyrights    
12168
12169         * demos/testpixbuf.c: add inline pixbuf test
12170         
12171 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
12172
12173         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
12174         Add gdk_window_iconify.
12175
12176         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
12177         (gdk_window_set_geometry_hints): Add win_gravity
12178         to geometry structure.
12179
12180         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
12181         Implement _NET_WM_PING.
12182
12183         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
12184         Set _NET_WM_PID on the client leader.
12185
12186         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
12187         Handle UTF-8 better.
12188
12189         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
12190         UTF-8 better, set _NET_WM_NAME as well. Only set
12191         icon name if it hasn't previously been explicitely 
12192         set.
12193
12194 2000-10-03  Havoc Pennington  <hp@redhat.com>
12195
12196         * gtk/testtextbuffer.c: clean up trailing whitespace,
12197         add extensive tests for tag toggle iteration.
12198         
12199         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
12200         distance
12201
12202         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
12203         optimize case where the tag root is on level 1
12204         (gtk_text_line_previous_could_contain_tag): attempt to implement
12205         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
12206         functionality
12207
12208         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
12209         Implement this, though not very efficiently.
12210
12211         * gtk/gtktextiterprivate.h: reformat
12212
12213         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
12214         iterator
12215
12216         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
12217         this to properly revalidate the iterators.
12218
12219         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
12220         properly at the end of the line (and therefore on empty lines)
12221
12222         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
12223         maybe we should return a value...
12224
12225 2000-10-03  Tor Lillqvist  <tml@iki.fi>
12226
12227         * config.h.win32: Guard definition of alloca(). glib.h now handles
12228         that.
12229
12230         * gdk/gdk.def
12231         * gtk/gtk.def: Add new entry points.
12232
12233         Changes just to make GTK+ build without errors on Win32. No hope
12234         of it working in its current state, though...:
12235         
12236         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
12237         some functions from the X11 backend, just to make GTK+ build.
12238
12239         * gdk/makefile.mingw.in
12240         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
12241         number. Add new object files.
12242
12243         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
12244         GetMessageTime to get timestamp (where on X11 uses
12245         gdk_x11_get_server_time()).
12246
12247 2000-10-02  Havoc Pennington  <hp@pobox.com>
12248
12249         * gtk/gtktextview.c: text_window_* weren't static and should have
12250         been.
12251         Start work on child widgets; not yet complete, syncing to 
12252         office computer.
12253
12254         * gtk/gtktextchild.h: change this to contain a public interface,
12255         starting work on child interfaces.
12256         * gtk/gtktextchildprivate.h: move private interfaces here
12257
12258         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
12259
12260         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
12261         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
12262         gtk/gtktextmark.c: copyright notices
12263
12264         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
12265         internal functions      
12266
12267         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
12268         internal function
12269
12270         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12271         Reformatting    
12272
12273 2000-09-30  Havoc Pennington  <hp@pobox.com>
12274
12275         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
12276         NULL start/end pointers
12277
12278         * gtk/gtktextbuffer.c: Write some docs
12279         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
12280         NULL, so you can just check whether there's a selection.        
12281
12282         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
12283         cleanup_line or segments_changed ourselves, it gets done 
12284         in unlink_segment
12285
12286         * gtk/gtktextmark.h:
12287         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
12288         
12289         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
12290
12291         * gtk/gtktextmark.c: delete some more old Tk cruft
12292
12293         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
12294         mark before removing it, so we can emit MARK_DELETED with a valid
12295         pointer.
12296         (gtk_text_buffer_mark_set): hold ref across signal emission
12297
12298         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
12299         whining about attempts to delete special marks
12300
12301         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
12302         underscore, since it's internal.
12303
12304         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
12305         now implemented in terms of iterators in gtktextiter.h
12306
12307         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
12308         New function, destructively sets contents of buffer. Also 
12309         a convenient way to clear the buffer by setting text to ""
12310
12311         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
12312         multiline string literal
12313
12314         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
12315         text changes.
12316
12317         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
12318         is not dereferenceable
12319         (gtk_text_iter_forward_lines): fix return value
12320
12321 2000-09-29  Havoc Pennington  <hp@redhat.com>
12322
12323         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
12324
12325         * gtk/gtktextview.c: Implement drag thresholding; change functions 
12326         that set border window size to have nicer name
12327         (gtk_text_view_mark_set_handler):  Fix this to have the 
12328         right signature.
12329
12330         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
12331
12332         * gtk/testtext.c: Update with API changes, put line numbers on 
12333         both sides.
12334         
12335         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
12336         with this
12337
12338         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
12339         pixbuf; delete a big block of #if 0 Tk code
12340
12341         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
12342         insert_pixmap with insert_pixbuf
12343
12344 2000-09-29  Martin Baulig  <baulig@suse.de>
12345
12346         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
12347         confusion with the GdkPixbuf of the GNOME 1.x platform.
12348
12349 2000-09-29  Havoc Pennington  <hp@pobox.com>
12350
12351         * gtk/gtktextview.c: Implement the side windows.
12352
12353         * gtk/testtext.c: Implement simple line numbering in the 
12354         left side window; seems to make scrolling sloooow. Oops.
12355         Also, cursor blink is for some reason causing redraws
12356         of the line numbers. Should investigate...
12357
12358 2000-09-28  Havoc Pennington  <hp@redhat.com>
12359
12360         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
12361         scrolling child windows, and draw focus rectangle properly.
12362         
12363         (gtk_text_view_buffer_to_window_coords):
12364         Coordinate transformation to deal with all these freaking windows
12365         and offsets
12366         (gtk_text_view_window_to_buffer_coords): transform the other way
12367
12368         * gtk/testtext.c (create_buffer): Update to match Pango API change
12369
12370         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
12371         anonymous tags
12372         (foreach_unref): don't emit remove signal from finalize, just
12373         set tag's parent to NULL
12374
12375 2000-09-26  Havoc Pennington  <hp@redhat.com>
12376
12377         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
12378         Fix some warnings       
12379
12380 2000-09-26  Havoc Pennington  <hp@redhat.com>
12381
12382         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
12383         headers into the private header list
12384
12385         * Makefile.am (pkgconfig_DATA): install pkg-config files
12386
12387         * configure.in: add pkg-config files
12388
12389         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
12390
12391         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
12392         outstanding icon caches on theme change.
12393
12394         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
12395         important types:
12396
12397         (GtkIconSource): Specification for creating a pixbuf 
12398         appropriate for a direction/state/size triplet from 
12399         a source pixbuf or filename
12400
12401         (GtkIconSet): List of GtkIconSource objects that are used to
12402         create the "same" icon (e.g. an OK button icon), and cache for
12403         rendered icons
12404
12405         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
12406         up the icon set for a given stock ID.  GTK maintains a stack of
12407         GtkIconFactory to search, and applications or libraries can add
12408         additional icon factories on top of the stack
12409         
12410         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
12411         the set of GtkIconSource specified for a given stock ID into 
12412         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
12413         RcStyle, under the specified stock ID.
12414
12415         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
12416         render_icon used to derive a GdkPixbuf from a GtkIconSource.
12417         This allows people to theme how prelight, insensitive, etc. are
12418         done.
12419
12420         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
12421         icon factories for a style, and return the resulting 
12422         icon set if any.
12423
12424         (gtk_style_render_icon): Render an icon using the render_icon 
12425         method in the GtkStyleClass.
12426
12427         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
12428         Use the style for a given widget to look up a stock ID, get the
12429         icon set, and render an icon using the render_icon method 
12430         of the style
12431
12432         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
12433         (contains information about a stock item), the built-in stock item
12434         IDs, and functions to add/lookup stock items.
12435
12436         * gtk/stock-icons/*: Stock icons that come with GTK
12437
12438         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
12439         a button based on a GtkStockItem
12440         (gtk_button_new_accel): Takes a uline string and accel group, and
12441         installs the accelerator.
12442
12443         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
12444         image-display widget.
12445
12446 2000-09-25  Havoc Pennington  <hp@redhat.com>
12447
12448         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
12449
12450         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
12451         Fix a bug when removing node data, we didn't properly 
12452         re-splice the linked list after removing the data.
12453
12454         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
12455         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
12456
12457         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
12458
12459         * gtk/gtktextlayout.c (set_para_values): Set tab array 
12460         for the layout from the GtkTextTag.
12461
12462         * gtk/gtktexttypes.h: delete tab and search cruft, 
12463         remove g_convert() in favor of GLib version
12464
12465         * gtk/gtktexttypes.c: remove tab implementation from here,
12466         move to Pango
12467
12468         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
12469         tab stuff using new PangoTabArray from Pango
12470
12471         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
12472         unused border_width stuff
12473
12474 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
12475
12476         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
12477         glib) and now useless utf_to_latin1() latin1_to_utf()
12478
12479         * gtk/gtktextview.[ch]: Change ::move_insert and
12480         ::delete_text action signals to ::move and ::delete;
12481         create the signals with the right enumeration type,
12482         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
12483         C-v bindings, change Home, End to move to beginning/end
12484         of line, Add C-Home C-End to move to beginning/end
12485         of buffer. Change ::cut_text to ::cut_clipboard, etc;
12486         combine ::scroll_text into ::move; use new GtkSelectionData
12487         functions to simplify DND text handling.
12488         
12489         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
12490         deletion enumerations here, rename enumeration values to 
12491         be consistently plural.
12492
12493         * gtk/gtktextbuffer.c: Use new clipboard interfaces
12494         for cut/copy/paste and primary selection.
12495
12496         * gtk/gtktextbuffer.[ch]: Remove excess time and
12497         'interactive' arguments from cut/copy/paste;
12498         rename cut to cut_clipboard, etc; remove
12499         gtk_text_buffer_get_clipboard_contents().
12500
12501         * gtk/gtktextlayout.[ch]: Add 
12502         gtk_text_layout_move_iter_to_line_end() to move the iter to 
12503         line ends.
12504
12505         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
12506         Functions to set or get a UTF-8 string on the selection
12507         data.
12508
12509         * gtk/gtkclipboard.[ch]: New, simplified selection handling
12510         interfaces.
12511
12512         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
12513         created widgets - one of these is useless if we don't.
12514
12515         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
12516         a public function clear all targets registered for the
12517         widget.
12518
12519         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
12520         Never call gtk_widget_realize() - that was just asking
12521         for bizarre side-effects.
12522
12523         * gtk/gtkselection.c (gtk_selection_owner_set): Call
12524         gdk_selection_owner_set even if the widget is the
12525         same so that we reliably update the timestamp on
12526         the server.
12527
12528         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
12529         gdk_x11_get_server_time() function.
12530         
12531         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
12532         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
12533         Add some tricky filtering on serial numbers for
12534         selection clear events to fix up long-standard
12535         race condition FIXME's in gtkselection.c.
12536
12537         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
12538         routines to convert from utf8 to compound text or
12539         STRING and from a text property to UTF-8.
12540
12541         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
12542         a convenience function gdk_get_current_event_time().
12543
12544         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
12545         and free selection_data->data properly
12546
12547 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
12548
12549         * gtk/gtkthemes.c: Remove some unecessary includes.
12550
12551 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
12552
12553         * gtk/gtktextdisplay.c
12554         * gtk/gtktextlayout.c
12555         * gtk/gtktexttag.c
12556         * gtk/gtktexttag.h
12557         * gtk/testtext.c: Change the overstrike property to strikethrough,
12558         to closer match pango.
12559
12560 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
12561
12562         * gtk/gtktextview.c: Fix up visibility so that focus,
12563         cursor_visible and blink interact properly.  Reenable cursor blink
12564         which had been roughly disabled. Make blink and focus
12565         properly per-view.
12566
12567         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
12568         Add a flag for whether to display insertion cursor and
12569         a function to set the flag.
12570
12571         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
12572         get_line_y() to get_line_yrange(), to be a bit more generally
12573         useful.
12574
12575 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
12576
12577         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
12578           do stop_navigating_submenu, to clear last timeout properly.
12579           Also in gtk_menu_motion_notify move ignore_enter above
12580           the conditional to make it always happen as suggested by Owen
12581
12582 2000-09-07  Tor Lillqvist  <tml@iki.fi>
12583
12584         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
12585
12586         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
12587         w32api headers.
12588
12589         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
12590         declarations.
12591
12592         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
12593         (gdk_win32_get_colormap): A line had been deleted by mistake.
12594
12595         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
12596         (gdk_event_translate): Handle more virtual keycodes to be able to
12597         generate GDK events for Control-comma, Control-period, etc.
12598
12599         * gtk/gtk.def: Add some missing entry points.
12600
12601 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
12602
12603         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
12604         Doc comment fixing. (Mostly non-matching parameter names.)
12605
12606         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
12607         comments a little to avoid looking like a doc comment.
12608
12609         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
12610         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
12611         conversions be changed to GError?)
12612
12613         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
12614         Move private #defines into .c file.
12615
12616         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
12617         order of argument addition, remove duplicates.
12618
12619         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
12620         parent class is FrameClass, not BinClass.
12621
12622         * gtk/gtk.h: Add gtkinvisible, which was missing.
12623         (It's occasionalyl useful for client apps, if seldom.)
12624
12625         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
12626         #define.
12627
12628 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
12629
12630         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
12631         coordinates when creating window, instead of GDK-space
12632         coordinates. (Avoid BadValue on too large windows.)
12633
12634 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12635
12636         * configure.in (use_mmx_asm): Remove conftest* after use along the
12637         lines of AC_TRY_COMPILE.        
12638         
12639         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
12640         of g_dirname, which is deprecated.
12641         (gtk_rc_parse_any): Removed calls to
12642         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
12643
12644         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
12645         Removed calls to g_hash_table_{freeze,thaw}, as they are
12646         deprecated now.
12647
12648         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
12649         instead of g_basename.
12650         
12651 2000-09-04 Elliot Lee <sopwith@redhat.com>
12652         
12653         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
12654         ANSI warning.
12655
12656 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
12657
12658         * gtk/gtkwidget.h:  Add some documenting comments about 
12659           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
12660           just as owen said on irc.
12661
12662         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
12663           set HAS_DEFAULT.  Only set it if there isn't another window
12664           holding it (a focus window which RECEIVES_DEFAULT) and only unset
12665           it if the widget is not the focused window with RECEIVES_DEFAULT.
12666           This fixes weird double default bugs in dialogs which has things
12667           call gtk_window_set_default at times.
12668
12669 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
12670
12671         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
12672         Nils Barth and David Santiago to improve submenu
12673         navigation. The patch does this by creating a triangular
12674         region from the point where the pointer leaves the
12675         menu to the submenu.  While the pointer is in
12676         that region and a timeout has not expired, events 
12677         that would cause the active submenu to change are
12678         ignored.
12679
12680 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
12681
12682         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
12683         moving a toplevel window immediately after sizing it would
12684         result in it being sized back to the old size since 
12685         impl->width, impl->height aren't updated until we hear
12686         back from the server. There is still a (longstanding) bug
12687         here that gdk_window_get_size() will give the wrong size
12688         until we do hear back.
12689
12690 2000-08-31  Havoc Pennington  <hp@redhat.com>
12691
12692         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
12693         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
12694         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
12695         Rename GtkTextStyleValues to GtkTextAttributes
12696
12697 2000-08-31  Havoc Pennington  <hp@pobox.com>
12698
12699         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
12700         for rapid testing whether an iterator is the end iterator
12701         (gtk_text_btree_new): init end line cache
12702         (gtk_text_line_is_last): use fast cached line to 
12703         see if we're the last line.
12704         (get_last_line): use cached line here too, should 
12705         speed up some random unrelated code.
12706         
12707 2000-08-30  Havoc Pennington  <hp@pobox.com>
12708
12709         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
12710         signals.
12711
12712         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
12713         delete_text signals. This allows the signals to be used for
12714         implementing undo.
12715
12716         * gtk/gtktextbuffer.c: Change signal handler signatures; 
12717         provide "interactive" argument when emitting insert_text or
12718         delete_text signal.
12719         
12720 2000-08-30  Havoc Pennington  <hp@pobox.com>
12721
12722         * gtk/gtktextbuffer.c: Docs
12723
12724 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
12725
12726         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
12727         from switch statements, since Tor removed the enumeration
12728         value.
12729         
12730         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
12731         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
12732
12733 2000-08-29 Elliot Lee <sopwith@redhat.com>
12734         * */*.h: Use G_GNUC_CONST.
12735
12736 2000-08-27  Havoc Pennington  <hp@pobox.com>
12737
12738         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
12739         minor indentation fixes, inserted some FIXME about stuff I
12740         realized was broken while documenting it.
12741         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
12742         GTK convention  
12743
12744 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
12745
12746         * gtk/testgtk.c (create_styles): Fix double free of
12747         font desc.
12748
12749 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
12750
12751         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
12752         
12753         * gtk/testgtk.c (create_styles): Add a test for modifying
12754         the style through gtk_widget_modify_*.
12755
12756         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
12757         a function to get the current modifier style.
12758
12759         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
12760         of the passed in GtkRcStyle instead of ref'ing it.
12761
12762         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
12763
12764 2000-08-20  Tor Lillqvist  <tml@iki.fi>
12765
12766         * gdk/gdkimage.h
12767         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
12768         shared memory image+pixmap GdkImage type, or
12769         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
12770         I am dropping that.
12771
12772         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
12773         actually call gtk_init_abi_check(), passing also
12774         sizeof(GtkWindow). Ditto for gtk_init_check(). 
12775
12776         * gtk/gtk.def
12777         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
12778         New functions, used to check that the GTK+-using code has been
12779         compiled using the correct compiler and switches. In particular,
12780         with gcc one has to use the -fnative-struct switch as GTK+ is
12781         compiled with that.
12782
12783 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
12784
12785         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
12786         ->prev fields when merging lists. (Found simultaneously
12787         by Pawel Salek and Jakub Jelinek)
12788
12789 2000-08-12  Tor Lillqvist  <tml@iki.fi>
12790
12791         * gdk/gdk.def
12792         * gtk/gtk.def: Add missing entries.
12793
12794         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
12795         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
12796
12797         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
12798         function. Dummy implementation at this point.
12799
12800         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
12801         rules. Undefine GTK_COMPILATION when compiling the test programs.
12802         
12803         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
12804
12805 2000-08-11  Tor Lillqvist  <tml@iki.fi>
12806
12807         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
12808         to convert back and forth from UTF-8 and the "system" (or "current
12809         locale") charset when necessary. Indentation/spacing cleanup.
12810
12811 2000-08-10  Havoc Pennington  <hp@redhat.com>
12812
12813         * Makefile.am (snapshot): Change the format of the snapshot
12814         version to match glib
12815
12816         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
12817         from EXTRA_DIST since it doesn't seem to exist
12818
12819 2000-08-10  Tor Lillqvist  <tml@iki.fi>
12820
12821         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
12822         version of the directory name (not the UTF-8 one) when building
12823         the path name to stat().
12824
12825 2000-08-03  Elliot Lee  <sopwith@redhat.com>
12826
12827         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
12828         PANGO_ATTR_SHAPE set.
12829
12830 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
12831
12832         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
12833         Peter Osterlund to simplify the code while keeping the
12834         functionality the same.
12835
12836 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
12837
12838         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
12839         is_viewable() test further inside the function, since removing the 
12840         window from the redraw list without clearing ->update_area
12841         was also very broken.
12842
12843 2000-08-02  Tor Lillqvist  <tml@iki.fi>
12844
12845         * configure.in: Check for <unistd.h>.
12846
12847 2000-08-01  Martin Baulig  <baulig@suse.de>
12848
12849         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
12850         to display the message that this is a development version of GTK+.
12851
12852 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
12853
12854         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
12855         was depending on widget->allocation instead of the width of text_area,
12856         which was incorrect for subclasses like GtkSpinButton.
12857
12858         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
12859         with width == 1 tests that should be width == -1.
12860
12861 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
12862
12863         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
12864         (broken, Elliot, every single window blank on X) custom code with call
12865         to gdk_window_is_viewable() which a) prevents code duplicate and
12866         b) works. 
12867
12868 2000-07-31  Elliot Lee  <sopwith@redhat.com>
12869
12870         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
12871         to get the GDK_PARENT_ROOT() macro to work.
12872         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
12873         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
12874         of, windows that aren't shown.
12875         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
12876         pointer grab stuff.
12877
12878 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
12879
12880         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
12881           s/gtk_main_iteration/g_main_iteration/
12882
12883           Did this already in change:
12884                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
12885           don't know how it got reverted.
12886
12887 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
12888
12889         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
12890         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
12891
12892         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
12893         not gdk_pixbuf.
12894
12895 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
12896
12897         * configure.in,po/{sp,sr}.po: Added Serbian files
12898
12899 2000-07-30  Tor Lillqvist  <tml@iki.fi>
12900
12901         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
12902
12903         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
12904         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
12905         GIOChannel implementation.
12906
12907         * gdk/win32/gdkinput.c
12908         * gdk/win32/gdkpango-win32.c: Update license name here, too.
12909
12910         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
12911         definition to match prototype.
12912
12913         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
12914
12915 2000-07-27  Elliot Lee  <sopwith@redhat.com>
12916
12917         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
12918         function, to allow handling image formats that cannot be detected
12919         by looking at content alone.
12920
12921 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
12922
12923         * docs/tutorial/*.gif *.jpg *.eps
12924           Update these to the same look-n-feel.
12925           Why does including images in DocBook suck so badly?
12926
12927 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
12928
12929         * gtk/gtktable.c: applied patch from Phil Thompson
12930         <phil@river-bank.demon.co.uk> that enables space settings for
12931         the last row/columns as well.
12932
12933 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
12934
12935         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
12936         updates the license headers to the GNU Lesser General Public License,
12937         as well as updating the copyright year to 2000.
12938
12939 2000-07-26  Robert Brady  <rwb197@zepler.org>
12940
12941         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
12942           and po/Makefile, was installing and looking for them under gtk20
12943           and gtk2 respectively.
12944
12945 2000-07-25  Havoc Pennington  <hp@redhat.com>
12946
12947         * gtk/testtext.c: Comment out some stuff that depends on the rest
12948         of my patches.
12949
12950 2000-07-25  Havoc Pennington  <hp@redhat.com>
12951
12952         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
12953         buffer
12954
12955 2000-07-25  Havoc Pennington  <hp@redhat.com>
12956
12957         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
12958         widget changes.
12959
12960         * gtk/gtktextview.h: To be consistent with usage of "line"
12961         throughout the API to mean "newline-terminated thingy", change
12962         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
12963         to MOVEMENT_LINE.
12964
12965         (GtkTextView): Add flags for default editability, and whether to
12966         show the cursor. Add functions to get/set that. Add 
12967
12968         (gtk_text_view_get_iter_location): new function
12969
12970         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
12971         gtktextlayout.h
12972         (g_convert): Add g_convert temporarily, will go in glib in a bit
12973         
12974         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
12975         GtkTextTagTableForeach instead of brokenly using GHFunc.
12976         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
12977
12978         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
12979         moved to public header.
12980
12981         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
12982         "invisible", since "elide" was a bad name.
12983         (gtk_text_tag_get_priority): Added
12984
12985         (GtkTextStyleValues): put this in public header, along with
12986         functions to use it.
12987
12988         * gtk/gtktextmarkprivate.h: Include more headers, since we no
12989         longer include gtktextbtree.h.
12990
12991         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
12992         gtk_text_mark_deleted
12993
12994         * gtk/gtktextlayout.h: Don't include the "really private" headers,
12995         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
12996         to make this possible. Now we only need to install
12997         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
12998         (However the Makefile.am isn't changed yet because of the
12999         logistics of merging gtk-hp-patches piecemeal)
13000
13001         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
13002         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
13003         gtk_text_iter_get_line is now used in the public API for a
13004         different purpose.
13005
13006         * gtk/gtktextiter.h: Clean up function names to be more
13007         consistent. Always call char offset "offset" and byte index
13008         "index". A "line" is always a line number. 
13009
13010         (gtk_text_iter_is_last): new function, more efficient than 
13011         the existing way to check
13012         (gtk_text_iter_is_first): new function, also more efficient
13013
13014         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
13015
13016         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
13017         gtk_text_iter_forward_char, etc.
13018
13019         (gtk_text_iter_forward_to_tag_toggle): Renamed from
13020         forward_find_tag_toggle, since this isn't a linear search
13021
13022         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
13023
13024         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
13025         New functions, search for a buffer substring.
13026
13027         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
13028         interactive and default editable (since we need to store that info
13029         until we receive the selection data).
13030
13031         Remove all the _at_char and at_line etc. versions of functions;
13032         only have iterator versions.
13033
13034         Add _interactive() versions of functions, that consider the
13035         editability of text. (FIXME add interactive flag to the 
13036         insert/delete signals per Darin's suggestion)
13037
13038         (gtk_text_buffer_get_tag_table): new function, demand-creates the
13039         tag table if necessary
13040
13041         Remove declaration of gtk_text_buffer_get_iter_from_string
13042
13043         (_gtk_text_buffer_get_btree): private/internal function, added.
13044         
13045
13046         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
13047         (gtk_text_line_is_last): new function
13048
13049 2000-07-25  Havoc Pennington  <hp@redhat.com>
13050
13051         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
13052         using GtkProgressBar. See Changes-2.0.txt for details.
13053
13054         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
13055         "pulse_step" which are the equivalent of
13056         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
13057         Implement new API.
13058         
13059         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
13060         (use_text_format) to mark whether text set on the progress bar is
13061         a format string. Deprecate entire GtkProgress interface.
13062
13063         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
13064         (gtk_progress_build_string): make this a no-op if use_text_format
13065         is FALSE
13066
13067         * docs/Changes-2.0.txt: Describe progress bar changes.
13068
13069 2000-07-25  Tor Lillqvist  <tml@iki.fi>
13070
13071         * Makefile.am: Include the build directory.
13072
13073         * configure.in: Generate build/Makefile, build/win32/Makefile,
13074         gdk/, gdk/win32/, and gtk/makefile.mingw.
13075
13076         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
13077         Add GETTEXT_PACKAGE.
13078         
13079         * gdk/gdk.def
13080         * gtk/gtk.def: Updates.
13081
13082         * gdk/gdkfont.h
13083         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
13084         need them any longer.
13085
13086         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
13087
13088         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
13089         PANGOWIN32_LIBS and gdk_pixbuf.
13090
13091         * gdk/win32: Compiles, but no doubt doesn't work at all.
13092
13093         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
13094
13095         * gdk/win32/gdkinput.c: New file, temporarily.
13096         
13097         * gdk/win32/gdkinput-win32.h: New file
13098
13099         * gdk/win32/gdkinputprivate.h: Remove.
13100
13101         * gdk/win32/gdkpango-win32.c: New file.
13102
13103         * gtk/makefile.mingw.in: New file
13104
13105         * gtk/makefile.cygwin: Removed
13106         
13107         * gtk/Makefile.am: Update accordingly.
13108
13109         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
13110         made externally visible.
13111
13112         * gtk/gtkmain.c: Use it.
13113         
13114         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
13115         is enough.
13116
13117         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
13118
13119 2000-07-24 Elliot Lee <sopwith@redhat.com>
13120         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
13121         individual backends already.
13122         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
13123         again. Yes, there really is a good reason for this, if you are using the gdkregion
13124         internals, and if you're not, why do you care?
13125         * gdk/gdkwindow.c: Fix inverted condition
13126         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
13127         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
13128         * gtk/gtkrange.c: Redraw trough when moving.
13129         * gtk/gtktypeutils.c: Fix warning by adding const cast.
13130         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
13131
13132 2000-07-23  Tor Lillqvist  <tml@iki.fi>
13133
13134         * configure.in: Check for mkstemp and sigsetjmp. Output
13135         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
13136
13137         More work on GDK for Win32. Still in an intermediate state.
13138
13139         * gdk/makefile.cygwin
13140         * gdk/win32/makefile.cygwin: Removed.
13141         
13142         * gdk/makefile.mingw.in
13143         * gdk/win32/makefile.mingw.in: New files.
13144
13145         * gdk/Makefile.am
13146         * gdk/win32/Makefile.am: Generate and distribute them.
13147
13148         * gdk/win32/gdkwindow-win32.h
13149         * gdk/win32/gdkdrawable-win32.h
13150         * gdk/win32/gdkpixmap-win32.h: New files.
13151
13152         * gdk/win32/gdkcolor-win32.c
13153         * gdk/win32/gdkcursor-win32.c
13154         * gdk/win32/gdkdrawable-win32.c
13155         * gdk/win32/gdkgc-win32.c
13156         * gdk/win32/gdkimage-win32.c
13157         * gdk/win32/gdkprivate-win32.h
13158         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
13159         Rename fields and variables called xcursor, xid, etc (these names
13160         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
13161
13162 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
13163
13164         * gtk/gtkentry.[ch]: Fix some problems with vertical
13165         alignment.
13166
13167         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
13168         char/byte confusion.
13169
13170 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
13171
13172         * gtk/gtktextview.c (changed_handler): Fix bug where
13173         redraw wasn't being done properly when height of
13174         dirty region changed.
13175
13176         * demos/Makefile.am: Remove various references to
13177         -lgmodule
13178
13179 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
13180
13181         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
13182         PangoAttrShape to reserve space for pixmaps, add 
13183         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
13184         in the display functions.
13185         
13186         * gtk/testgtk.c (create_layout): Set some more exotic
13187         scrolled window options
13188
13189         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
13190         Add function to set the shadow type of a window, to allow
13191         putting a shadow around widgets such as GtkLayout or GnomeCanvas
13192         which don't draw their own frame.
13193
13194 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
13195
13196         * docs/tutorial/package-db-tutorial.sh: New file for
13197           packaging DocBook format tutorial
13198
13199 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
13200
13201         * docs/tutorial/gtk-tut.sgml: Minor updates
13202
13203         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
13204
13205 2000-07-19  Tor Lillqvist  <tml@iki.fi>
13206
13207         * gtk/gtksignal.c: Fix C++ comment.
13208
13209         * gtk/gtkimmulticontext.c
13210         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
13211         don't return value from void functions.
13212
13213         * gtk/gtk.def: Add gtk_rc_style_unref.
13214
13215 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13216
13217         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
13218         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
13219         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
13220         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
13221         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
13222         gtk/gtktypeutils.h: Include files outside of the extern "C"
13223         block. Makes some C++ compiler happy. Reported by Denis Vakatov
13224         <vakatov@peony.nlm.nih.gov>.
13225
13226 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
13227
13228         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
13229           Completes first pass. Hurrah!
13230
13231 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
13232
13233         * docs/tutorial/gtk-tut.sgml: More clean ups.
13234
13235 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
13236
13237         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
13238         paint the background of the text area which was accidentally
13239         removed at some point.
13240
13241         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
13242           
13243          - Move most of the functionality from the theme vtable
13244            into GtkRcStyleClass and GtkStyleClass. The moved
13245            vtable functions were changed a bit in the move to
13246            work better in their new home.
13247
13248          - Get rid of the engine and engine_data fields from
13249            GtkRcStyle and GtkStyle; instead the theme
13250            engine derives theme-specific subclasses of GtkRcStyle
13251            and GtkStyle
13252
13253          - Add extra dlsym() found entry point to themes,
13254            theme_create_rc_style().
13255
13256         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
13257         in gtk_style_real_copy.
13258
13259         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
13260         to register a type associated with an engine. (The engine
13261         won't be unloaded as there is an instance of the type.)
13262
13263
13264 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
13265
13266         * docs/tutorial/gtk-tut.sgml: Clean ups.
13267
13268 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
13269
13270         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
13271           of cleaning up to do.
13272
13273 2000-07-15  Tor Lillqvist  <tml@iki.fi>
13274
13275         * gdk/testgdk.c: New file, quick hack to test backends for
13276         pixel-by-pixel correctness of the most simple graphic operations.
13277
13278 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
13279
13280         * Really release 1.3.1
13281         
13282         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
13283         include structure.
13284
13285 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
13286
13287         * Released 1.3.1
13288
13289 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
13290
13291         * gtk/gtktextlayout.c: use FALSE for size_only most
13292         of the time when calling gtk_text_layout_get_line_display()
13293         to avoid causing double reshapes when a redraw follows
13294         immediately after.
13295
13296 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
13297
13298         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
13299         appropriate region and gdk_window_process_updates() so trough
13300         updating doesn't lag behind the window being scrolled.
13301
13302         * gdk/gdkgc.c: Make parent_class pointer static.
13303          
13304 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
13305
13306         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
13307         include <string.h>.
13308          
13309         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
13310         cut-and-paste error in computing memory offset for 4 channels.
13311
13312 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
13313
13314         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
13315         gtk_rc_append_default_pixmap_path(), since it wasn't
13316         adding an interesting path and we don't have a meaningful
13317         default for this value.
13318
13319 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
13320
13321         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
13322         gtk-config to gtk-config-2.0 move gtk_.m4 to
13323         gtk-2.0.m4
13324
13325         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13326         gdk/Makefile.am demos/Makefile.am: Change 
13327         library names to libgtk-1.3.la, etc, so that we
13328         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
13329
13330         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13331         gdk/Makefile.am gdk/x11/Makfile.am
13332         Move include files into /usr/include/gtk-2.0, 
13333         /usr/lib/gtk-2.0/include/
13334          
13335         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
13336         gtk/gtkintl.h: Change package for gettext from 
13337         gtk+ to gtk20. Put hack in autogen.sh to modify
13338         po/Makefile.in.in after gettextize to make this
13339         possible.
13340
13341         * gtk+.spec: Some updates, not tested.
13342
13343         * gdk-pixbuf/Makefile.am: Move loaders into
13344         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
13345
13346         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
13347         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
13348         to THEMENAME/gtk-2.0/. Move engine directory  to
13349         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
13350         
13351 2000-07-12  Tor Lillqvist  <tml@iki.fi>
13352
13353         Win32 changes, still doesn't build though.
13354
13355         * gdk/makefile.cygwin
13356         * gdk/win32/makefile.cygwin
13357         * gtk/makefile.cygwin: Updates.
13358
13359         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
13360         default values for fg and bg pixel as X11 does (0 and 1), not
13361         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
13362         Use 0 for pen width by default (treated as 1 anyway later, but for
13363         apps that might check the value in the GdkGC).
13364         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
13365         interface to gdk_gc_predraw and _postdraw.
13366
13367         * gdk/win32/gdkwin32.h
13368         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
13369
13370         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
13371         extraneous semicolon.
13372
13373         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
13374
13375         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
13376         not the Win32 bitspixel value.
13377
13378         * gdk/win32/gdkcc-win32.c:
13379         * gdk/win32/gdkcolor-win32.c 
13380         * gdk/win32/gdkprivate-win32.h
13381         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
13382         GDK object structure.
13383
13384 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
13385
13386         * docs/tutorial/gtk_tut_12.es.sgml (name): 
13387         * docs/tutorial/gtk_tut_it.sgml (name): 
13388         * docs/tutorial/gtk_tut_fr.sgml (name): 
13389         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
13390         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
13391
13392 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
13393
13394         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
13395           small changes.
13396
13397 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
13398
13399         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
13400         a bug here, never been here and never fixed anything ;(
13401         (don't segfault if tree->root_tree is NULL, which happens prior
13402         to widget realization, but puke instead).
13403
13404 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
13405
13406         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
13407         add the necessary tokens.
13408
13409         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
13410         (gtk_rc_style_to_style): copy thicknesses.
13411         (gtk_rc_init_style): apply thicknesses.
13412         (gtk_rc_parse_style): parse xthickness and ythickness.
13413
13414         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
13415
13416         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
13417         (gdk_window_new): 
13418         (_gdk_windowing_window_init): 
13419         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
13420         (gdk_pixmap_create_from_data): 
13421         (gdk_bitmap_create_from_data): 
13422         (gdk_pixmap_new): 
13423         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13424         (gdk_image_new): 
13425         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
13426         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
13427         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
13428         (gdk_colormap_get_system): 
13429         (gdk_colormap_new): 
13430         * gdk/gdkwindow.c (gdk_window_init): 
13431         * gtk/gtkstyle.c (gtk_style_new):
13432         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
13433         * gdk/gdkpixmap.c (gdk_pixmap_init): 
13434         * gtk/gtkrc.c (gtk_rc_style_new):
13435         use g_object_new() instead of g_type_create_instance() which
13436         is a private function for fundamental type implementations.
13437
13438 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
13439
13440         * configure.in: Add check for db2html
13441
13442 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
13443
13444         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
13445         hack to set glib_debug_objects based on gtk_debug_flags.
13446
13447 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
13448
13449         * INSTALL.in: Update the Prerequisites section.
13450
13451         * Makefile.am demos/Makefile.am docs/Makefile.am
13452         docs/tutorial/Makefile.am gdk/x11/Makefile.am
13453         gdk/linux-fb/Makefile.am: Dist fixes
13454
13455 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
13456
13457         * NEWS: 10,000 foot view of 1.3.1 changes.
13458
13459 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
13460
13461         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
13462         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
13463         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
13464         gdk/x11/gdkmain-x11.c: 
13465
13466         Patch from George Lebl to add a GdkGrabStatus enumeration to use
13467         as a return value of gdk_*_grab(). Previously, we just
13468         returned the X11 values directly.
13469
13470 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
13471
13472         * gdk/x11/Makefile.am: Patch from George Lebl to 
13473         install all the headers in the right place.
13474
13475 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
13476
13477         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
13478           initial conversion to DocBook.
13479
13480 2000-07-04  Tor Lillqvist  <tml@iki.fi>
13481
13482         * README.win32: Improve a bit.
13483
13484         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
13485         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
13486         Alt+0nnn on the numpad (used to enter characters by numeric code
13487         from current DOS or ANSI codepage) working correctly, as in other
13488         Windows apps.
13489
13490         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
13491         same argument validity tests as in X11 version.
13492         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
13493
13494         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
13495         definitions in case missing from headers.
13496
13497         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
13498         destroy the window-specific cursor.
13499         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
13500         calling GetModuleHandle(NULL).
13501         (gdk_window_set_cursor): Reworked to always copy the passed cursor
13502         with CopyCursor before setting it as the window-specific
13503         cursor. It is OK for the caller to destroy the GdkCursor (and thus
13504         also its Windows cursor) after calling this function. Destroy any
13505         previous window-specific cursor.
13506
13507 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
13508
13509         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
13510         font charset is iso8859-1, not iso-8859-1.
13511
13512 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
13513
13514         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
13515         Use g_get_charset() instead of g_get_codeset().
13516
13517         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
13518         Comment out some strdup'ing functions to keep timj
13519         happy until we finish fighting this out.
13520
13521 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
13522
13523         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
13524         <= width or height.
13525
13526         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
13527         from 1.2 for parent/child states.
13528
13529         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
13530         of typos.
13531
13532         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
13533         event structures, replace with a generic axes field. Replace 
13534         deviceid/sourec with GdkDevice *device.
13535
13536         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
13537         to extract particular axis use value from event. (Also
13538         can be used for normal X/Y.)
13539
13540         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
13541         allow for arbitrary number of axes, namespace everything
13542         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
13543         everywhere.
13544
13545         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
13546         Get rid of the gdk_input_vtable setup if favor of simply
13547         defining the functions in gdkinput-none/gxi/xfree.c in
13548         a similar fashion to the way that the port structure is 
13549         done.
13550
13551         * gtk/gtkdnd.c: Fix fields of synthesized button press event
13552         for new event structures. 
13553
13554         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
13555         new device interfaces.
13556
13557 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
13558
13559         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
13560         set the initial text.
13561
13562         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
13563         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
13564         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
13565         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
13566
13567         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13568         pango_layout_set_font_description to simplify.
13569
13570 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
13571
13572         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13573         pango_layout_set_font_description to simplify.
13574
13575 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
13576
13577         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
13578         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
13579         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
13580
13581         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
13582         PANGO_PIXELS() macro.
13583
13584 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
13585
13586         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
13587         that returns a PangoContext owned by the widget and updated to
13588         match future changes in the widget. Also, make 
13589         gtk_widget_create_pango_layout() use this context. If we ever
13590         add a ::changed signal to PangoContext, this will make things
13591         much more convenient. 
13592
13593         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
13594         in the appropriate places instead of destroying the layouts and
13595         creating new ones.
13596
13597         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
13598         in a few strategic places.
13599
13600 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
13601
13602         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
13603         gtk_widget_size_request() on reparented child, if one. Otherwise,
13604         queue_resize() on the child never results in it getting size-requested
13605         at all.
13606
13607         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
13608         in option menus, so that (with luck) people won't copy it into
13609         their apps in the future.
13610
13611         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
13612         to gtk_option_menu_calc_size. This isn't perfect, but should fix
13613         a lot of problems with changing the size of the menu's menu
13614         items after adding it to the option menu.
13615
13616         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
13617
13618         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
13619         the text direction for a widget changes.
13620
13621         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
13622         ::direction_changed to get rid of various hacks.
13623
13624 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
13625
13626         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
13627         name.
13628
13629 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
13630
13631         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
13632         flag to the structure. Do not call XFreePixmap on pixmaps created
13633         by gdk_pixmap_foreign_new().
13634
13635 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
13636
13637         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
13638         value using GdkRGB functionality given GdkColormap and GdkColor.
13639         (name not final, waiting for inspiration.)
13640         
13641         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
13642         set the foreground/background of a GC using the GC's colormap
13643         and GdkRGB. (name not final, waiting for inspiration.)
13644
13645         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
13646         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
13647
13648         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
13649         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
13650         purely a function of the corresponding colormap. Make
13651         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
13652
13653         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
13654         gdk_pixbuf_*create_from_xpm_* in terms of
13655         gdk_pixbuf_new_from_xpm_data(), move into platform independent
13656         code.
13657
13658         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
13659         advantage of the new draw_rgb_32_image_dithalign.
13660
13661         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
13662
13663         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
13664         on each created GC.
13665
13666         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
13667
13668         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
13669         which we initialize from the drawable when the GC is created,
13670         if the drawable has a colormap.
13671
13672         * gdk/x11/gdkgc-x11.c: include string.h for memset.
13673
13674         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
13675
13676         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
13677
13678 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
13679
13680         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
13681         actually returning expose events, make sure to set
13682         the count field properly.
13683
13684         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
13685         accidentally reintroced bug which always cleared
13686         the graphics_exposures value. 
13687
13688 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
13689
13690         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
13691
13692 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
13693
13694         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
13695
13696 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
13697
13698         * docs/faq/gtk-faq.sgml: Start of Section 6.
13699
13700 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
13701
13702         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
13703         
13704         (Fixes problem with drawing childless frames. Pointed out
13705         by and a first patch from Anders)
13706         
13707         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
13708         compute a child_allocation, even if we don't have a child.
13709
13710         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
13711         Always chain to the parent's impl, even if we don't have a child.
13712
13713 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
13714
13715         * gdk/gdkrgb.c: If possible, create only a single shm segment and
13716         use multiple parts of it instead of creating a bunch of separate
13717         segments, since the maximum number of segments per system is not
13718         large. (This might be worth backporting to GTK+-1.2.x if we make a
13719         new release )
13720
13721         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
13722         structure in preparation for per-colormap GdkRGB.
13723
13724         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
13725         to False when we get EINVAL from shmget so that the caller of
13726         gdk_image_new can retry with a smaller segment size.
13727
13728 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
13729
13730         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
13731
13732 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
13733
13734         * configure.in: make the current version number 1.3.1 (binary age 0,
13735         interface age 0).
13736         
13737         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
13738         gtkcompat.h is all we want.
13739
13740         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
13741         GLib primitive types. fixed g_type_register_fundamental() argument
13742         ordering.
13743
13744         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
13745         compiles.
13746
13747         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
13748         object code cleanup, comment trigraph fixes, etc...
13749
13750 2000-06-23  Havoc Pennington  <hp@redhat.com>
13751
13752         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
13753         instead of making up a bogus name for first_para_mark
13754
13755         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
13756         0 as a context ID
13757
13758 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
13759
13760         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
13761
13762 2000-06-21  Havoc Pennington  <hp@pobox.com>
13763
13764         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
13765         we didn't check window->bg_pixmap != GDK_NO_BG.
13766
13767         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
13768         gdk-pixbuf
13769
13770 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
13771
13772         * docs/faq/gtk-faq.sgm: Move file to here.
13773           TODO: Update Makfile.am 
13774
13775 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
13776
13777         * docs/gtk-faq.sgm: Add Section 2
13778
13779 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
13780
13781         * docs/gtk-faq.sgm: New file. Start of DocBook
13782           version of the FAQ.
13783
13784 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
13785
13786         * configure.in (GDK_PIXBUF_MAJOR): Define version
13787         numbers for GDK_PIXBUF_*, as they get substituted
13788         into a header file. Need to consider versioning
13789         for gdk-pixbuf more carefully later.
13790
13791 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
13792
13793         Work with srcdir != builddir.   
13794         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
13795         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
13796         * demos/testpixbuf.c: Likewise.
13797         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
13798         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
13799         <gdk/x11/gdkx.h>.
13800         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
13801         "gdk-pixbuf.h".
13802         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
13803
13804 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
13805
13806         * TODO.xml: Change 1.4 version numbers to 2.0.
13807
13808 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
13809
13810         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
13811         fixups to GTK+ standard.
13812
13813 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
13814
13815         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
13816         gdk-pixbuf.
13817
13818         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
13819         fixups for GObject.
13820
13821         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
13822         gdk-pixbuf with GDK dependencies moved into GDK.
13823         
13824         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
13825         move gdk-pixbuf-loader here until GObject has signals.
13826
13827         * demos/: New directory of demos. Move demos from
13828         gdk-pixbuf here.
13829
13830         * demos/pixbuf-init.c: Small bit of code to check for
13831         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
13832         set GDK_PIXBUF_MODULEDIR appropriately.
13833
13834         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
13835         define which no longer makes sense.
13836
13837 2000-06-21  Havoc Pennington  <hp@redhat.com>
13838
13839         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
13840         gtk_get_default_language
13841
13842         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
13843         new function to get the default language
13844
13845         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
13846         s/gtk_text_view_style_values/gtk_text_style_values/
13847
13848         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
13849         Add a "language" field to tags.
13850
13851         (gtk_text_tag_set_arg): Fix bug in setting
13852         "bg_full_height_set" tag.
13853
13854 2000-06-21  Havoc Pennington  <hp@redhat.com>
13855
13856         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
13857         in the interfaces
13858
13859         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
13860         stuff instead when possible.
13861
13862         * gtk/gtktexttypes.h: Delete some unused constants
13863
13864         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
13865         testtextbuffer.c: use glib instead of custom unicode routines
13866
13867 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
13868
13869         * docs/es/: Removed mistakenly added generated sgml
13870
13871         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
13872         Remove outdated info files.
13873
13874         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
13875         Moved tutorial files into subdir
13876
13877         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
13878         subdir.
13879
13880         * docs/man/gtk_button.pod: Remove. (contents will be
13881         integrated into gtk-reference button page.)
13882
13883         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
13884         docs/faq/Makefile.am: Adjust for new organization
13885
13886 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
13887
13888         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
13889         not $(MKINSTALLDIRS)
13890
13891 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
13892
13893         * gtk/testgtk.c (create_text): Finish the job Elliot started
13894         of removing font setting test for text widget. (Since text widget
13895         and GdkFont are not deprecated, and cause portability problems.)
13896
13897 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
13898
13899         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
13900         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
13901         Remove use of libunicode in favor of new GLib functions.
13902
13903         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
13904         nano-x, framebuffer. The X11 include is just a hack until we get
13905         the necessary functions in gdkcolor.h, so there is no reason to
13906         add other includes of platforms.
13907
13908         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
13909         window bigger than the screen change.
13910
13911         * gtk/testgtk.c: Revert some random changes from Elliot
13912         that had no particular point and were causing testgtkrc
13913         not to function correctly.
13914         
13915         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
13916         because GdkSegment and GdkRegionBox have the same fields,
13917         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
13918         results in clearer code.
13919
13920         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
13921         gdk_input_translate_coordinates): Fix missed GdkObjectification
13922
13923 2000-06-18  Elliot Lee  <sopwith@redhat.com>
13924
13925         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
13926         * gtk/gtk{plug,socket}.h: Missed commits from previous.
13927
13928 2000-06-20  Havoc Pennington  <hp@redhat.com>
13929
13930         * modules/linux-fb/Makefile.am: Make this compile
13931         without framebuffer enabled
13932
13933         * gdk/linux-fb/Makefile.am: Add conditional to not build
13934         framebuffer unless specified in configure
13935
13936         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
13937         the size of the target instead of source if -1 was passed for
13938         width/height
13939
13940         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
13941         width/height confusion.
13942
13943 2000-06-19  Havoc Pennington  <hp@redhat.com>
13944
13945         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
13946         GDK_DRAWABLE_XID. In the future, we probably want to make it
13947         faster with G_DISABLE_CHECKS turned on.
13948
13949 2000-06-14  Havoc Pennington  <hp@redhat.com>
13950
13951         * gdk/Makefile.am: add gdkpixmap.c
13952
13953         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
13954         s/gdk_image_init/_gdk_windowing_image_init
13955
13956         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
13957         ref/unref
13958
13959         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
13960
13961         * gdk/gdkcompat.h: remove GdkWindowType compat, since
13962         GdkWindowType is now non-deprecated; 
13963         change gdk_window_get_type() compat to be
13964         gdk_window_get_window_type().
13965
13966         * gdk/gdkdnd.h: make GdkDragContext a GObject.
13967
13968         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
13969         virtual GObject. Make all functions call into the vtable.
13970         Move gdk_image_put() guts in here. Remove GdkDrawableType
13971         and gdk_drawable_get_type(), these are now GdkWindow-specific.
13972         draw_image, get_depth, get_size, set_colormap, get_colormap,
13973         get_visual added to the vtable.
13974         
13975         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
13976         GObject. Virtualize everything. 
13977         (gdk_gc_new_with_values): remove check for destroyed window,
13978         because now GdkWindow::create_gc will check this.
13979         (gdk_gc_set_values): New function to set GC values, this 
13980         was already implemented but wasn't in the header
13981
13982         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
13983
13984         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
13985         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
13986         remove _gdk_window_class; add _gdk_window_impl_get_type() and
13987         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
13988         _gdk_windowing_window_init, rename gdk_image_init to
13989         _gdk_windowing_image_init.
13990         
13991         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
13992         (gdk_draw_layout): Remove check for destroyed window, 
13993         because all the drawable methods already check it.
13994         
13995         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
13996         Add gdkpixmap.c which contains implementation of GdkDrawable
13997         virtual table (by chaining to a platform-specific implementation
13998         object).
13999         
14000         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
14001         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
14002         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
14003         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
14004         GdkColormapPrivate. 
14005
14006         * gdk/gdktypes.h: #include <glib-object.h>
14007
14008         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
14009         Move most functionality to platform-specific implementation
14010         object. GdkWindow itself now handles the backing store, then
14011         chains to the platform-specific implementation.
14012         (gdk_window_get_window_type): return GdkWindowType of the window.
14013         (gdk_window_peek_children): New routine, returns the children of 
14014         a GdkWindow
14015         (gdk_window_get_children): Was in X11-specific code and did 
14016         XQueryTree. Changed to simply return a copy of window->children; 
14017         so it can go in cross-platform code.
14018         
14019         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
14020
14021         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
14022         GdkColormap; just changed to use the new private data instead
14023         of casting to GdkColormapPrivate.
14024
14025         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
14026         gdk_cursor_new().
14027
14028         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
14029         (private data member in the GObject). 
14030         (xdnd_manager_source_filter): Function had broken 
14031         error handling, fix it (use gdk_error_trap_push).
14032
14033         * gdk/x11/gdkdrawable-x11.c: This file now implements
14034         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
14035         base class is purely for the convenience of the X port,
14036         and not part of the interface to cross-platform GDK.
14037
14038         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
14039         
14040         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
14041         specific to X, and returned by the create_gc virtual method
14042         of GdkDrawableImplX11. 
14043         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
14044         rather than gchar, this was also changed in the GdkGC vtable.
14045         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
14046         mask is 0, return immediately, instead of checking every flag.
14047         This is faster, and keeps us from segfaulting if values is NULL
14048         and the mask contains some nonzero flags.
14049
14050         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
14051         GdkWindow.
14052
14053         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
14054         GdkWindowPrivate is gone.
14055
14056         * gdk/x11/gdkim-x11.c: rename things that got renamed.
14057
14058         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
14059         remove the image_put stuff that got transferred to GdkDrawable.
14060         
14061         * gdk/x11/gdkinput.c: renamings
14062
14063         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
14064
14065         * gdk/x11/gdkpixmap-x11.c: GObject conversion
14066
14067         * gdk/x11/gdkprivate-x11.h: indentation fixes
14068
14069         * gdk/x11/gdkproperty-x11.c: renamings
14070
14071         * gdk/x11/gdkselection-x11.c: renamings
14072
14073         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
14074         implements the platform-specific "impl" object.
14075         Moved gdk_window_get_children to gdk/gdkwindow.c
14076
14077         * gdk/x11/gdkx.h: Remove all the private structs and private datas
14078         that no longer exist. Add declaration of GdkGCX11 object here.
14079         Fix all the macros to still work. 
14080
14081         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
14082         GdkDragContext from the boxed types since they are now GObjects.
14083
14084         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
14085         moved xthickness/ythickness into the instance. GtkStyleClass
14086         functions are now in the standard vtable for GtkStyle, so you have
14087         to create a GObject subclass to write a theme engine.
14088         (gtk_style_copy): fixed a leaked PangoFontDescription
14089         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
14090         can be the standard GObject function.
14091         
14092         * Throughout GTK:
14093         s/style->klass->[xy]thickness/style->[xy]thickness
14094         s/pango_layout_unref/g_object_unref/
14095
14096         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
14097         
14098         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
14099         accessing GDK internals.
14100
14101         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
14102         accessing GDK internals.
14103
14104 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14105
14106         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
14107
14108         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
14109         problem by calculating event position relative to the trough
14110         rather than the slider.
14111         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
14112
14113         * gdk/gdkgc.h: Add GDK_NOR.
14114
14115         * configure.in, Makefile.am: Add modules top level dir
14116         * configure.in: Only use pangox library if building x11 target.
14117         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
14118
14119 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14120
14121         * gtk/gtkcolorsel.c: Change private class member to be named
14122         private_data throughout the file.
14123
14124         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
14125         private_data to avoid clashing with keyword.
14126
14127 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14128
14129         * gdk/gdkdnd.h: Add comment to remove warning.
14130
14131 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
14132
14133         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
14134         Byelorussian language; changed the Makefile and file names 
14135         to reflect that.
14136
14137 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
14138
14139         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
14140         rather than gdk_window_hide; this makes things work
14141         correctly if the window is programmatically hidden while
14142         iconified.
14143
14144 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
14145
14146         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
14147         cut and paste typo where wrong pixmap was being
14148         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
14149
14150 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
14151
14152         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
14153         Add helper function to compute format / bytes 
14154         relationship. Use in a couple places to fix up
14155         errors which assume 8 * format.
14156
14157         * gtk/gtkselection.c (gtk_selection_request): Use 32
14158         rather than 8 * sizeof (GdkAtom), to work correctly
14159         on Alpha.
14160
14161 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
14162
14163         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
14164         libgtk.la
14165         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
14166         versions
14167
14168         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
14169         checking macros return NULL since the function has a return value.
14170
14171 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
14172
14173         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
14174         GTK+ from building at all.
14175
14176         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
14177
14178 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
14179
14180         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
14181         gtk/Makefile.am: make it possible to configure gtk for different
14182         targets on the same platform. The library name is now 
14183         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
14184         flag. Only the x11 target compiles right now.
14185         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
14186         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
14187         * gdk/nanox/gdk*generic*: delete generic region code.
14188         * gdk/linux-fb/gdk*generic*: delete generic region code.
14189         * README.nanox: update information.
14190         
14191 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
14192
14193         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
14194         prepend not append. (Pointed out by Brett Hall.)
14195
14196 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
14197
14198         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
14199
14200 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
14201
14202         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
14203         need this later, and this makes sure that the atexit for
14204         glib gets called after that for GDK, so atexits are
14205         properly ordered for object leak checking.
14206
14207         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
14208
14209         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
14210         pango_x_shutdown_display()
14211
14212         * gtk/simple.c (main): Close window on destroy.
14213
14214 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
14215
14216         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
14217         to treat initial creation different from setting with 
14218         regards to the graphics-exposures parameter, so add a parameter
14219         indicating whether this is initial or not.
14220
14221 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
14222
14223         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
14224         to sort of work by adding an extra return_exposes arg
14225         to gdk_event_translate() - it might be better to simply
14226         deprecate the function altogether and force people to rewrite
14227         without it. gdk_window_scroll() handles most of it, and where
14228         gdk_window_scroll() doesn't work, simply redrawing more does.
14229
14230         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
14231         assertion.
14232
14233         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
14234
14235         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
14236         bunch of pretty much useless /* Print debugging info */ comments 
14237         which had drifted away from the code they were commenting.
14238
14239 2000-06-02  Havoc Pennington  <hp@pobox.com>
14240
14241         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
14242         is in working order.
14243         
14244         * gtk/testtext.c: Change to reflect anonymous mark API
14245
14246         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
14247
14248         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
14249         field, which was unused.
14250
14251         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
14252         saves some typing.
14253
14254         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
14255
14256         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
14257         flag on the insertion point and selection bound
14258
14259         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
14260         make mark-manipulation functions take a GtkTextMark* instead of a
14261         mark name.
14262         
14263         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
14264         GtkTextMarkBody; will be used to detect attempts to delete
14265         the permanent marks (insert and selection bound)
14266
14267         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
14268
14269 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
14270
14271         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
14272         flag to on.
14273
14274         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
14275         Honor DOUBLE_BUFFRED_FLAG
14276
14277         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
14278         function to set the DOUBLE_BUFFERED flag.
14279
14280         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
14281         or not exposes done on the widget should be double-buffered.
14282
14283         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
14284         to be what would be expected. (Fixes problem with a
14285         g_return_if_fail() validating a TextDirection enumeration)
14286
14287 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
14288
14289         * gtk/gtkwidget.c: Remove all references to 
14290         offscreen flag which was no longer used.
14291
14292         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
14293
14294         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
14295         for non-null label_widget->parent.
14296
14297         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
14298         which no longer was used.
14299
14300         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
14301
14302         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
14303         for null arguments.
14304
14305         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
14306         check for destroyed windows.
14307
14308 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
14309
14310         * gtk/gtkimmulticontext.c: Add a finalize method and unref
14311         the slave context there.
14312
14313         * gtk/gtkinvisible.[ch]: Make reference counting behavior
14314         identical to GtkWindow.
14315
14316 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
14317
14318         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
14319         pangox to here, so we can write them independent of rendering
14320         system, using GDK primitives.
14321
14322         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
14323         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
14324         since we have a rendering-system independent implementation in
14325         terms of draw_glyphs().
14326         
14327         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
14328         function to render a single line.
14329
14330         * gdk/x11/gdkpango.c: Move the guts of this file mostly
14331         into ../gdkpango.c, which simplifies things, since we
14332         don't have to deal with raw X gc's.
14333
14334 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
14335
14336         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
14337         get the logical attributes for a given GtkTextLine.
14338
14339 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
14340
14341         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
14342         g_locale_get_codeset() to g_get_codeset() change.
14343
14344 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
14345
14346         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
14347         descriptions.
14348
14349         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
14350         the entry.
14351
14352         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
14353         redoing (vastly simplifying) for Pango. Still needs quite
14354         a bit of work. (Size selection is currently poor. List of 
14355         predefined sizes is not a good idea, since all of these
14356         sizes won't necessarily be distinct.)
14357
14358 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
14359
14360         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
14361         CODESET results for LANG=C.
14362
14363 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
14364
14365         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
14366         which takes a stringized pango font description;
14367         ignore the older 'font' and 'fontset' declarations.
14368
14369         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
14370         field with a GdkFont derived via gdk_font_from_description(),
14371         for compatibility. (Should we just remove it entirely?
14372         Probably too much compatibility breakage, but people
14373         should be migrating to the new Pango stuff as quickly
14374         as possible.)
14375
14376 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
14377
14378         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
14379
14380 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
14381
14382         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
14383         redoing; there are some bugs in size allocation right
14384         now, the semi-existant distinction between header / day
14385         fonts was removed, but, with Pango, could actually
14386         be made functional in a nice way.
14387         
14388         * gtk/testcalender: Move calender from examples into this
14389         directory as a test program. (We really need to restrcture
14390         testgtk into a whole directory full of tests for every
14391         widget or functionality group, separated into multiple .c
14392         files.)
14393
14394 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
14395
14396         * gtk/testgtk.c (file_exists): Fix stupid typo that
14397         was keeping RC file from being loaded.
14398
14399         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
14400         RC file font code.
14401
14402 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
14403
14404         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
14405         Add function to load a GdkFont from a PangoFontDescription.
14406
14407 2000-05-29  Tor Lillqvist  <tml@iki.fi>
14408
14409         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
14410         variable should be of type GdkEventPrivate.
14411
14412 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
14413
14414         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
14415         to have any widget for the label, use a GtkLabel widget
14416         to display the text. (Based partially on a patch from
14417         Anders Carlson.)
14418
14419         (Quite a bit of code reorganization - strip 90% of the
14420         guts out of gtkaspectframe and add a single virtual
14421         func to GtkFrameClass - compute_child_allocation.)
14422
14423 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
14424
14425         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
14426         (Removed clist->row_center_offset field because caching
14427         it wasn't saving time or code, added private function
14428         _gtk_clist_create_cell_layout()).
14429
14430 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
14431
14432         * gtk/gtkaccellabel.c: Pangoized.
14433
14434         * gtk/[hv]ruler.c: Pangoized
14435
14436 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
14437
14438         * gtk/gtkfilesel.c (gtk_file_selection_init):
14439         Use gtk_clist_set_column_auto_resize() to remove need
14440         need for manual column width computations.
14441
14442 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
14443
14444         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
14445         ensuring Pango correctness, and considerably simplifying the
14446         code.
14447         
14448         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
14449
14450         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
14451         getting of numbers of lines.
14452
14453         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
14454         to the actual requested width of the lable, not to the wrap
14455         width we set.
14456
14457         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
14458
14459         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
14460           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
14461
14462         * gtk/gtktextview.c: Fix structure inheritance.
14463
14464         * gtk/gtkprogressbar.c: Pangoize.
14465
14466 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
14467
14468         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
14469         in a function.
14470
14471         * gtk/gtktextlayout.c (find_display_line_above): Fixed
14472         bug with computing line tops.
14473
14474         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
14475
14476 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14477
14478         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
14479         and y_offset coordinates to do what we need now. (The offset between
14480         buffer and layout coordinates has been reintroduced, but is a 
14481         bit different than before.)
14482
14483         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
14484         handle the adjustments ourselves, and scroll as necessary using
14485         the new gdk_window_scroll().
14486         
14487         The advantage of this is that when we are incrementally revalidating,
14488         we are essentially rearranging things around the visible portion
14489         of the screen. With the old setup, the visible portion of the
14490         screen was moved around in the layout, so scrolling and redrawing
14491         to track that caused jumping of the display. Since we now
14492         control the scrolling ourselves, we can suppress this and
14493         only redraw when things actually change.
14494
14495 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
14496
14497         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
14498         the region not just redisplay it after-all, since we store the
14499         cursors in the LineDisplay. (Ugly interactions here between
14500         GtkLayout and GtkTextBTree here.)
14501         
14502         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
14503
14504 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
14505
14506         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
14507         Added function to scroll contents of a window while keeping the
14508         window constant. Works by XCopyArea or guffaw-scrolling depending
14509         on the details of how the window is set up. (guffaw-scrolling
14510         still needs to be filled in.)
14511
14512 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
14513
14514         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
14515         move the debugging that was tied to a global variable
14516         to that.
14517
14518         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
14519
14520         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
14521         validated flag, in line data instead of setting height/width to
14522         -1. This allows us to perform operations with partially invalid
14523         buffer (using the old size for invalid lines) and thus to do
14524         incremental vaidation. Keep height/width aggregates up to date
14525         when deleting text and rebalancing the tree.
14526
14527         * gtk/gtktextbtree.[ch]: Add functions validate a line
14528         (gtk_text_btree_validate_line), and to validate up
14529         to a number of pixels (gtk_text_btree_validate).
14530
14531         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
14532         that indicates that something is changed and a revalidation
14533         pass is needed. Change ::need_repaint to ::changed, and
14534         make it take old and new yranges instead of a rectangle.
14535
14536         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
14537         the line_data_destroy() function from 
14538         gtk_text_btree_add_view() to a virtual function in 
14539         GtkTextLayout
14540
14541         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
14542         since we are handling partial repaints in a different fashion
14543         now.
14544
14545         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
14546         of the selection instead of queueing a repaint on the
14547         entire widget.
14548
14549         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
14550         get_selection_bounds() down to btree, make the function
14551         in buffer a wrapper around the btree function.
14552
14553         * gtk/gtktextlayout.[ch]: Add functions to check if the
14554         layout is valid and to recompute either a range of pixels
14555         aroudn a line or a certain total number of pixels.
14556
14557         * gtk/gtktextlayout.[ch]: Cache a single line display;
14558         now that we only redraw the needed portions, the hit rate
14559         for this cache is quite high.
14560         
14561         * gtk/gtktextview.[ch]: Keep track of the first paragraph
14562         on the screen so that when re-laying-out the buffer, we can
14563         keep the same place. This requires connecting to ::value_changed
14564         on the adjustments
14565
14566         * gtk/gtktextview.[ch]: Add idle functions to revalidate
14567         the buffer after we receive an ::invalidated signal.
14568         
14569 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
14570
14571         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
14572         to max of allocation and layout size, not just to the
14573         layout size.
14574
14575         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
14576         Invalidate window so it gets redrawn properly.
14577
14578         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
14579         to mean the entire window.
14580
14581         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
14582         into public header.
14583
14584 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14585
14586         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
14587         to get the name of a mark.
14588
14589         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
14590         to find the paragraph from a y position.
14591
14592 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
14593
14594         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
14595         nodes have width/height >= 0, not > 0.
14596
14597 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
14598
14599         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
14600         Add a size_only flag, so when we only need the size, we don't create
14601         useless appearance attributes.
14602
14603         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
14604         duplicate setting of font description.
14605
14606         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
14607
14608 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
14609
14610         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
14611         EXTRA_DIST. It does not work well when the file that
14612         everything depends on is not in the tarball.
14613
14614 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
14615
14616         * gtk/testgtk.c: Some hacks and fixes so that it basically
14617         works when not sitting in the GTK+ build tree.
14618
14619 2000-05-03  Havoc Pennington  <hp@redhat.com>
14620
14621         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14622         Properly determine the ordering of the tag root and the current
14623         line within the tree. Previous algorithm only worked if the tag
14624         root's immediate parent was the common root of both the current
14625         line and the tag root.
14626
14627 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
14628
14629         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
14630         alignment.
14631
14632         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
14633         the widget text directional dynamically.
14634
14635         * gtk/gtktextview.[ch]: Added functions to get and set default
14636         wrap mode.
14637
14638 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
14639
14640         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
14641         in cursor location computation.
14642
14643 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
14644
14645         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
14646         vadjusment values properly when layout gets smaller.
14647
14648         * gtk/gtktextview.c (need_repaint_handler): Areas being
14649         passed in are far completely inaccurate, and sometimes
14650         too small, so, for now, just queue a redraw on the
14651         whole visible region.
14652
14653 2000-04-25  Havoc Pennington  <hp@redhat.com>
14654
14655         * gtk/gtktextbtree.c (summary_destroy): new function to 
14656         destroy tag summary nodes
14657         (gtk_text_line_next_could_contain_tag): this function was 
14658         totally broken if the line passed in wasn't below the tag
14659         root. Fix it.
14660         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
14661         "wildcard" case, we have to do a linear scan. Blah.
14662         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
14663         we have to do the linear scan
14664         (tag_removed_cb): When a tag is removed from the tag table, 
14665         remove the GtkTextTagInfo node from the btree.
14666         (gtk_text_btree_spew): Implement the spew function, for 
14667         our debugging pleasure.
14668
14669 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
14670
14671         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
14672         a problem with referring to the wrong buffer.
14673
14674         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
14675
14676         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
14677         font description to gtk_style_new() - otherwise things
14678         don't work without a .gtkrc file.
14679
14680         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
14681         tags table if we create it ourself, too.
14682
14683         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
14684         it was conflicting with XKB modifiers.
14685
14686         * gtk/gtktextview.[ch]: Add simple support for 
14687         GtkIMContext.
14688
14689 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
14690
14691         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
14692         with deletion from last commit.
14693
14694 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
14695
14696         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
14697         in the context from the current locale.
14698         
14699         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
14700         context, not hardcoded value.
14701
14702         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
14703         not logical.
14704
14705 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
14706
14707         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
14708         attributes - that doesn't handle partial-glyph selection
14709         properly. Instead use new pango_layout_line_get_x_ranges()
14710         functionality to draw the selection.
14711
14712         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
14713         now properly handles out-of-range coordinates.
14714
14715         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
14716
14717         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
14718         public.
14719
14720         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
14721         for paragraphs opposite to the base direction of the widget.
14722
14723         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
14724
14725         * gtk/gtktextlayout.c: Don't split segments on marks, since that
14726         causes Arabic words to reshape as you cursor through.
14727
14728         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
14729         cursor position when moving vertically with the arrow keys and
14730         scrolling with page-up/page-down. (Arrow keys save only the X,
14731         scrolling saves both X and Y.)
14732
14733         This means you can line-up / line-down or page-up / page-down
14734         without losing your place, and also that moving vertically
14735         with the cursor keys keeps the same X position, not the same
14736         character count:
14737
14738         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
14739         arrow keys move by display lines, not paragraphs.
14740
14741 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
14742
14743         * gtk/gtklayout.c: Make sure that the bin window is at least
14744         as big as the allocation. (Should we also make sure that the
14745         bin window is big enough to completely cover widget->window?)
14746
14747         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
14748         function to get the onscreen rectangle.
14749
14750         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
14751         for offsets in window coordinates.
14752
14753 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
14754
14755         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
14756         confusion.
14757
14758         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
14759         from the widget direction.
14760
14761         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
14762         Add a "direction" attribute.
14763
14764         * gtk/gtktextview.c: global s/tkxt/text_view/.
14765
14766         * gtk/testtext.c: Added long block of text in Arabic, to test out
14767         the direction attributes. (Some problems with the shaping system
14768         for arabic become obvious - like the fact the cursor splits words
14769         into unjoined pieces.)
14770
14771 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
14772
14773         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
14774
14775         * gtk/gtktextlayout.c: Fix up alignment.
14776
14777         * gtk/testtext.c: Add some tests for centering, wrapping.
14778
14779 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
14780
14781         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
14782         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
14783         If we wrote GTK+-specific layout-render function this could just replace
14784         the draw_layout() operation in the vtable.
14785
14786         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
14787         pango_layout_get_cursor_pos() and use that function.
14788
14789         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
14790         is a non-static symbol.
14791
14792         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
14793         with gtk_text_btree_find_line_by_y()
14794
14795         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
14796         renderer that handles GtkTextAppearance attributes.
14797
14798         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
14799
14800           - Move the values in the style that don't affect geometry into a
14801             GtkTextAppearance structure.
14802           - Change underline to take a PangoUnderline and "font" a string
14803             representation of a font description
14804           - Add a "font_desc" attribute which takes a FontDescription structure.
14805
14806         * gtk/gtktextlayout.[ch]:
14807
14808           - Get rid of the display-line list per each line. Instead, we
14809             generate, on demand, a GtkTextLineDisplay structure which]
14810             contains a PangoLayout * and other necesary information
14811             (offsets, cursor locations) for displaying a paragraph.
14812           - Get rid of the code to wrap lines, create display chunks,
14813             etc. Instead, we just go through a paragraph and convert
14814             it into the necessary inputs to a PangoLayout.
14815           - Implement a new attribute type, GtkTextAttrAppearance. This
14816             holds a GtkTextAppearance, and is used to pass colors, 
14817             stipple, etc, through from the layout to the display without
14818             having to use lots and lots of individual attributes.
14819           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
14820             in terms of PangoLayout functions.
14821         
14822         * gtk/gtktextview.c: 
14823          
14824           - Handle passing the necessary PangoContext to the layout
14825           - Some fixups in painting to deal with the automatic backing store
14826             and offsetting of GTK+-1.4
14827           - Add a style_set handler so that the default style reacts
14828             properly to theme changes.
14829         
14830         * gtk/gtktext?*.[ch]: Random code-style fixes.
14831
14832         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
14833
14834 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
14835
14836         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
14837         in original form preparatory to Pango-ization and gdkimcontext-ization.
14838
14839 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
14840
14841         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
14842         so that we can derive from gtkimcontext in language bindings properly.
14843
14844 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
14845
14846         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
14847         Add a compose table including (almost) all the compose combinations
14848         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
14849         data in the XIM implementation.
14850
14851         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
14852         Moved functions to convert keyvalues from and to unicode here from
14853         the win32 port and made them public.
14854
14855 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
14856
14857         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
14858
14859 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
14860
14861         * gtk/gtkimcontext.[ch]: Base class for new input context system
14862
14863         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
14864         the real input context implementation to be loaded from modules
14865         and switched on the fly.
14866
14867         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
14868         context that just does direct keysymbol => unicode translation.
14869
14870         * gtk/gtkentry.[ch]: Start switching editing over to using
14871         GtkInputContext. (No handling of preedit yet.)
14872
14873 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
14874
14875         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
14876         many substitutions. (klass should not be subsituted.)
14877
14878 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
14879
14880         * configure.in: Add checks for Pango
14881
14882         * configure.in docs/Makefile.am: Add test for sgml2html
14883         and allow 'make dist' without building html, but print out
14884         warnings in that case. (For making snapshots)
14885
14886         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
14887         Add Pango libraries and C flags
14888
14889         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
14890         Add function (gdk_draw_layout) to draw a pango layout.
14891
14892         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
14893         for getting Pango contexts for GDK.
14894
14895         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
14896
14897         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
14898         editing.
14899
14900         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
14901         keysym => unicode translations. More languages can be added
14902         here, but real input-method support is needed.
14903
14904         * docs/Changes-1.4.txt: Added note about entry behavior.
14905         
14906         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
14907         to set the reading direction for a widget and the global direction.
14908         Add test which allows toggling the global direction. Two private
14909         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
14910
14911         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
14912           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
14913
14914         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
14915
14916         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
14917         underlining now handled by Pango.
14918
14919         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
14920         to RCStyle and Style. (Having both this and the old font name and GdkFont 
14921         is temporary.)
14922
14923         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
14924         convenience functions for creating contexts and layouts for widgets.
14925
14926         * gtk/testgtk.c: Enhance label tests with multilingual labels.
14927
14928 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
14929
14930         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
14931         titles to be active, even if they aren't visible.
14932         (gtk_clist_column_titles_passive):  Ditto.
14933
14934 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
14935
14936         * gtkmenu.c:
14937         * gtkmenu.h:
14938         * gtktypeutils.h: Spelling/grammar fixes in comments.
14939
14940 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
14941
14942         * gdk/nanox/*.h: add missing header files.
14943
14944 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
14945
14946         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
14947         send_event to TRUE.
14948         (gtk_drawing_area_size): queue a resize.
14949
14950 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
14951
14952         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
14953         the handlers, also invalidate them. bug nailed down by Karl Nelson
14954         <kenelson@ece.ucdavis.edu>.
14955
14956 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
14957
14958         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
14959         "(nil)" foundries, patch from Grigorios Magklis.
14960
14961         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
14962         on non-available fonts, based on a patch by Grigorios Magklis
14963         <maglis@cs.rochester.edu>.
14964
14965 2000-05-18  Elliot Lee  <sopwith@redhat.com>
14966
14967         * gdk/x11/gdkregion-generic.c: If a region does not have any
14968         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
14969         instead of GDK_OVERLAP_RECTANGLE_IN.
14970
14971 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
14972
14973         * gtk/gtklayout.c (gtk_layout_map): Remove references to
14974         OFFSCREEN, as it is no longer necessary.
14975
14976 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
14977
14978         * gtk/gtkcolorsel.c: Patch from David Santiago
14979         <mrcooger@cyberverse.com> to change things so that the 
14980         indicator of the active palette entry is done independently,
14981         not via the focus, since it should always be visible.
14982
14983 2000-05-17  Tor Lillqvist  <tml@iki.fi>
14984
14985         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
14986         refcount leaks as in the X11 backend.
14987
14988         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
14989         cosmetics.
14990
14991         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
14992         backend. Add _gdk_windowing_window_destroy().
14993
14994         * gtk/gtkcolorsel.c: Include correct backend-specific header.
14995         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
14996         either, but these probably do exist on nanox?)
14997         
14998         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
14999         which isn't necessarily defined by <math.h>.
15000
15001         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
15002         ancestry past GtkObject.
15003
15004         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
15005         from DLL on Win32.
15006
15007         * gtk/gtk.def: Update corresponding to recent changes.
15008
15009         * gtk/makefile.{cygwin,msc}: Updates.
15010
15011 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
15012
15013         * docs/Changes-1.4.txt: A bit of editing.
15014
15015         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
15016         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
15017         to clear the update area for the window, and clear it
15018         when hiding a window.
15019
15020         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
15021         if window destroyed.
15022
15023         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
15024
15025         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
15026         gdk_window_destroy() to the generic code, since there was a lot of 
15027         window-system-independent logic it in. Add a function:
15028         
15029          _gdk_window_destroy() 
15030
15031         to the internal API to destroy a window without unreferencing it.
15032         Add a function:
15033
15034          _gdk_windowing_window_destroy()
15035
15036         That does the windowing-system-dependent part of destroying 
15037         the window.
15038
15039 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
15040
15041         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
15042
15043 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
15044
15045         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
15046         Make gtk_widget_shape_combine_mask() keep a reference count on
15047         the pixmap since it keeps it around.
15048
15049 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
15050
15051         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
15052         leak.
15053
15054         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
15055         leak with event filters.
15056
15057 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
15058
15059         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
15060         signal handlers with the right data arguments. (Fixes
15061         some warnings when a widget was repeatedly set as a drag
15062         destination.)
15063
15064         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
15065         window so we can avoid avoid setting the DND properties on the
15066         toplevel window repeatedly.
15067
15068 2000-05-13  Tor Lillqvist  <tml@iki.fi>
15069
15070         * gdk/win32/gdkwin32.h: Define more message types missing from
15071         mingw headers.
15072
15073         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
15074         call gdk_window_destroy_notify(). It was never called. This
15075         probably meant that the GdkWindow was never freed. Thanks Owen for
15076         noticing (!).
15077
15078         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
15079         window as destroyed before calling DestroyWindow(). DestroyWindow()
15080         causes a call to the window procedure (gdk_WindowProc), which
15081         calls gdk_event_translate(), which calls
15082         gdk_window_destroy_notify(), which gets confused unless the window
15083         is set as destroyed.
15084
15085         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
15086         this function to indicate it's win32 only. Put inside #ifdef
15087         G_ENABLE_DEBUG.
15088
15089         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
15090         debugging function. (gdk_event_translate:) Add a default branch
15091         that uses the above function to print debug messages with all
15092         Windows messages symbolically.
15093
15094         * gdk/win32/gdkprivate-win32.h: Declare it, and
15095         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
15096
15097 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
15098
15099         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
15100         public header file.
15101
15102 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
15103
15104         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
15105
15106         * gtk/gtktext.c: made the adjustments no-construct args, simply
15107         provide default adjustments.
15108         (gtk_text_destroy): release adjustments.
15109
15110         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
15111         adjustment argument non-construct.
15112
15113         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
15114         instead of in finalize.
15115         (gtk_progress_get_text_from_value): 
15116         (gtk_progress_get_current_text): 
15117         (gtk_progress_set_value): 
15118         (gtk_progress_get_percentage_from_value): 
15119         (gtk_progress_get_current_percentage): 
15120         (gtk_progress_set_percentage): 
15121         (gtk_progress_configure): ensure an adjustment is present.
15122
15123 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
15124
15125         * gtk/gtkcolorsel.[hc]:
15126         * gtk/gtkcolorseldialog.[hc]:
15127         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
15128         their parent implementation, use bit fields for boolean values, don't
15129         create unused widgets, usage of glib types, braces go on their own
15130         lines, function argument alignment, #include directives etc. etc. etc..
15131
15132         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
15133
15134 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
15135
15136         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
15137
15138         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
15139         of NULL.
15140
15141         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
15142         to freed data.
15143         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
15144
15145         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
15146         to NULL when the toplevel is getting destroyed.
15147         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
15148         (gtk_menu_destroy): 
15149         (gtk_menu_init): store the information of whether we have to
15150         readd the initial child ref_count during destruction in a new
15151         GtkMenu field needs_destruction_ref_count.
15152
15153         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
15154         here, those reading: learn from my mistake! ;)
15155         in order for set_?adjustment to support a default adjustemnt if
15156         invoked with an adjustment pointer of NULL, the code read (pseudo):
15157         if (v->adjustment) unref (v->adjustment);
15158         if (!adjustment) adjustment = adjustment_new ();
15159         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
15160         now imagine the first unref to actually free the old adjustment and
15161         adjustment_new() creating a new adjustment from the very same memory
15162         portion. here, the latter comparision will unintendedly fail, and
15163         all hell breaks loose.
15164         (gtk_viewport_set_hadjustment):
15165         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
15166         after unreferencing it.
15167
15168         * gtk/gtkcontainer.[hc]: removed toplevel registration
15169         functions: gtk_container_register_toplevel(),
15170         gtk_container_unregister_toplevel() and
15171         gtk_container_get_toplevels() which had wrong semantics
15172         anyways: it didn't reference and copy the list.
15173
15174         * gtk/gtkwindow.c: we take over the container toplevel registration
15175         bussiness now. windows are registered across multiple destructions,
15176         untill they are finalized. the initial implicit reference count
15177         users are holding on windows is removed with the first destruction
15178         though.
15179         (gtk_window_init): ref & sink and set has_user_ref_count, got
15180         rid of gtk_container_register_toplevel() call. add window to
15181         toplevel_list.
15182         (gtk_window_destroy): unref the window if has_user_ref_count
15183         is still set, got rid of call to
15184         gtk_container_unregister_toplevel().
15185         (gtk_window_finalize): remove window from toplevel list.
15186         (gtk_window_list_toplevels): new function to return a newly
15187         created list with referenced toplevels.
15188         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
15189
15190         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
15191         adjustment a non-construct arg.
15192         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
15193         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
15194         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
15195
15196         * gtk/gtkrange.c: added some realized checks.
15197         (gtk_range_destroy): get rid of the h/v adjustments in the
15198         destroy handler instead of finalize. remove timer.
15199         (gtk_range_get_adjustment): demand create adjustment.
15200
15201         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
15202         we simply create them on demand now and get rid of them in
15203         the destroy handler.
15204         (gtk_viewport_destroy): get rid of the h/v adjustments in the
15205         destroy handler instead of finalize.
15206         (gtk_viewport_get_hadjustment): 
15207         (gtk_viewport_get_vadjustment): 
15208         (gtk_viewport_size_allocate): demand create h/v adjustment
15209         if required.
15210
15211         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
15212         gtk_widget_real_destroy () functionality.
15213         (gtk_widget_real_destroy): reinitialize with a new style, instead
15214         of setting widget->style to NULL.
15215
15216 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
15217
15218         * gtk/gtkcalendar.c:
15219         * gtk/gtkbutton.c: ported _get_type() implementation over to
15220         GType, either to preserve memchunks allocation facilities,
15221         or because Gtk+ 1.0 GtkTypeInfo was still being used.
15222
15223         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
15224         over. prepare for ::destroy to be emitted multiple times.
15225         removed reference tracer magic. chain into GObjectClass.shutdown()
15226         to emit ::destroy signal.
15227
15228         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
15229         fundamental.
15230
15231         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
15232         cludge.
15233
15234         * gtk/gtksocket.c:
15235         * gtk/gtkplug.c:
15236         * gtk/gtklayout.c:
15237         * gtk/gtklabel.c:
15238         * gtk/gtkargcollector.c:
15239         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
15240         not being a fundamental anymore, and to work with the new
15241         type system (nuked fundamental type varargs clutter).
15242
15243         * gtk/*.c: install finalize handlers in the GObjectClass
15244         part of the class structure.
15245         changed direct GTK_OBJECT()->klass accesses to
15246         GTK_*_GET_CLASS().
15247         changed direct object_class->type accesses to GTK_CLASS_TYPE().
15248
15249         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
15250         GType. made most of the GTK_*() type macros and Gtk* typedefs
15251         simple wrappers around macros and types provided by GType.
15252         most notably, a significant portion of the old API vanished:
15253         GTK_TYPE_MAKE(),
15254         GTK_TYPE_SEQNO(),
15255         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
15256         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
15257         GTK_TYPE_ARGS,
15258         GTK_TYPE_CALLBACK,
15259         GTK_TYPE_C_CALLBACK,
15260         GTK_TYPE_FOREIGN,
15261         GtkTypeQuery,
15262         gtk_type_query(),
15263         gtk_type_set_varargs_type(),
15264         gtk_type_get_varargs_type(),
15265         gtk_type_check_object_cast(),
15266         gtk_type_check_class_cast(),
15267         gtk_type_describe_tree(),
15268         gtk_type_describe_heritage(),
15269         gtk_type_free(),
15270         gtk_type_children_types(),
15271         gtk_type_set_chunk_alloc(),
15272         gtk_type_register_enum(),
15273         gtk_type_register_flags(),
15274         gtk_type_parent_class().
15275         replacements, where available are described in ../docs/Changes-1.4.txt.
15276         implemented compatibility functions for the remaining API.
15277
15278         * configure.in: depend on glib 1.3.1, use gobject module.
15279
15280 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
15281
15282         * TODO.xml: Various updates to current status.
15283
15284 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
15285
15286         * gtk.m4: Print out version when test succeeds.
15287
15288 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
15289
15290         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
15291         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
15292         
15293         (Original triangle color selector from Simon Budig
15294         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
15295         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
15296         Santiago <mrcooger@cyberverse.com>)
15297
15298         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
15299         out into a separate widget.
15300
15301         * gtk/testgtk.c: Add some checkbuttons for toggling palette
15302         and opacity controls.
15303
15304 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
15305
15306         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
15307         snuck in prematurely.
15308
15309 2000-05-07  Tor Lillqvist  <tml@iki.fi>
15310
15311         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
15312         had deleted a ! operator by mistake, which caused
15313         GDK_SELECTION_CLEAR events never to be generated, which caused
15314         only the first copy to the clipboard from an gtkeditable to
15315         actually cause a copy to the Windows clipboard.
15316
15317 2000-05-06  Tor Lillqvist  <tml@iki.fi>
15318
15319         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
15320         compilation, too. Current mingw gcc distributions include the
15321         necessary headers. Also the necessary IIDs are now in mingw
15322         headers/libraries, and own definitions unnecessary.
15323
15324         More hacking on OLE2 DND, still doesn't work though, and thus
15325         ifdeffed out.
15326
15327         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
15328         here, too.
15329
15330 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
15331
15332         * gdk/nanox/*: nano-X port work in progress.
15333         * gdk/simple.c: simple test for Gdk.
15334         * README.nanox: notes about the port: read this first!
15335         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
15336         with nano-X.
15337
15338 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
15339
15340         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
15341         gdk_window_clear() into common code, implement in terms of
15342         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
15343         not redirected to the backing rectangle.
15344
15345 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
15346
15347         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
15348         EXTRA_DIST. It does not work well when the file that
15349         everything depends on is not in the tarball.
15350
15351 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
15352
15353         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
15354         with recursion where process_updates() is called from
15355         an expose handler. (GtkTextView is highly broken in
15356         doing this, but it should work, so it is a nice test
15357         case.)
15358
15359 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15360
15361         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
15362         handle the case where updates are queued during processing of
15363         updates.
15364
15365 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15366
15367         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
15368         window is on gdk_display - use that instead of segfaulting.
15369
15370 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
15371
15372         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
15373         broken and require an empty arg, give it to them.
15374
15375 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
15376
15377         * gtk/gtklabel.h: indentation fixes.
15378
15379 2000-05-02  Tor Lillqvist  <tml@iki.fi>
15380
15381         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
15382         draw too narrow or too low arcs, they seem to fail, at least with
15383         some display drivers.
15384
15385         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
15386
15387         Large changes to the Win32 backend, partially made necessary by
15388         the changes to the backend-independent internal
15389         structures. Attempts to implement similar backing store stuff as
15390         on X11. The current (CVS) version of the Win32 backend is *not* as
15391         stable as it was before the no-flicker branch was merged. A
15392         zipfile with that version is available from
15393         http://www.gimp.org/win32/. That should be use by "production"
15394         code until this CVS version is usable. (But note, the Win32
15395         backend has never been claimed to be "production quality".)
15396
15397         * README.win32: Add the above comment about versions.
15398
15399         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
15400
15401         * gdk/gdk.def: Update.
15402
15403         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
15404         presumably be replaced by some more better mechanism as 1.4 gets
15405         closer to release shape.
15406
15407         * gdk/makefile.{cygwin,msc}: Update.
15408
15409         * gdk/win32/*.c: Correct inclusions of the backend-specific and
15410         internal headers. Change code according to changes in these. Use
15411         gdk_drawable_*, not gdk_window_* where necessary.
15412
15413         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
15414         our old DND.
15415
15416         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
15417         to interpret single characters as UTF-8. Thanks to Hans Breuer.
15418         Use correct function name in warning messages.
15419
15420         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
15421         GSourceFuncs gdk_event_prepare and gdk_event_check.
15422         (gdk_event_get_graphics_expose): Do implement, use
15423         PeekMessage. Thanks to Hans Breuer.
15424         (event_mask_string): Debugging function to print an GdkEventMask.
15425         (gdk_pointer_grab): Use it.
15426
15427         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
15428         (old) book I used claimed was Hangul actually is CJK Unified
15429         Ideographs Extension A. Also, Hangul Syllables were missing.
15430         Improve logging.
15431
15432         * gdk/win32/gdkgc-win32.c: Largish changes.
15433
15434         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
15435         g_win32_getlocale() from GLib, and not setlocale() to get current
15436         locale name.
15437
15438         * gdk/win32/gdkprivate-win32.h
15439         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
15440         gdkwin32.h, similarily as in the X11 backend.
15441
15442         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
15443         assignment was used instead of equals in if test. Thanks to Hans
15444         Breuer.
15445
15446         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
15447         the X11 version.
15448
15449         * gdk/win32/makefile.{cygwin,msc}
15450         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
15451         path to the Win32 headers that works also with the mingw compiler.
15452
15453         * gtk/gtkstyle.c: Include <string.h>.
15454
15455 2000-04-26  Havoc Pennington  <hp@redhat.com>
15456
15457         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
15458         replacing the broken gtk_label_get ()
15459
15460 2000-04-15  Havoc Pennington  <hp@pobox.com>
15461
15462         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
15463         this keeps scanner scripts from getting confused.
15464
15465         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
15466         data, rather than void
15467
15468 2000-04-15  Tor Lillqvist  <tml@iki.fi>
15469
15470         * gtk/gtkclist.c (gtk_clist_motion)
15471         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
15472         with is_hint FALSE, get x and y from the event. They used to be
15473         used uninitialised. The Win32 backend never sends motion events
15474         marked as hints. This for instance fixes the annoying file and
15475         font selector behaviour in the Win32 version.
15476
15477 2000-04-14  Tor Lillqvist  <tml@iki.fi>
15478
15479         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
15480         gtk_private_n_signals variables, they are used by some software,
15481         sigh.
15482
15483         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
15484         installation directory from the Registry, where the installer
15485         should have put it.
15486
15487 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
15488
15489         * gdk/x11/Makefile.am: Fix problem with installation directory for
15490         gdkx.h
15491
15492         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
15493         <mrcooger@cyberverse.com> so that when selecting menus with the
15494         mouse, the first item will not be selected, but when selecting
15495         with an accelerator, or navigating left-right on a menubar with
15496         the menus popped up, the first item will be selected.
15497
15498 2000-04-05  Dan Damian  <dand@dnttm.ro>
15499
15500         * configure.in: Added "ro" to ALL_LINGUAS.
15501
15502 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
15503
15504         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
15505         indentation.
15506
15507         * Makefile.am (EXTRA_DIST): Fix typo.
15508
15509         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
15510         to catch gdkconfig.h
15511
15512         * gtk/gtkitemfactory.c: Added FIXME.
15513
15514 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
15515
15516         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
15517         s/return_if_fail/return_val_if_fail/g and add a return value.
15518
15519 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
15520
15521         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
15522         merge slipup.
15523
15524         * gdk/gdkinput.h: Fix missing line from merge.
15525
15526 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
15527
15528         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
15529         instead of gdkprivate.h.
15530
15531 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
15532
15533         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
15534         parent class to correctly be GtkDialogClass.
15535
15536 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
15537
15538         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
15539         toplevel windows and their immediate children by their parents,
15540         since the size of toplevel windows is out of our immediate
15541         control and we don't get any real benefit from trying to track
15542         this size for clipping.
15543
15544         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
15545         for input_only windows.
15546
15547         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
15548         to fix some hacks and make sure that we don't try to set the
15549         background of input only windows.
15550
15551 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
15552
15553         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
15554         the _really_ internal stuff, and leave gdkprivate.h for the fake private
15555         stuff that we've traditionally exposed.
15556
15557         * gdk/**.c: Use gdkinternals.h where appropriate.
15558
15559         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
15560         not include gdkprivate-x11.h, move all stuff of conceivable public
15561         interest into gdkx.h; keep all really private stuff in
15562         uninstalled header gdkprivate-x11.h.
15563
15564         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
15565         image->image_put on windows through a new function _gdk_window_draw_image()
15566         to allow us to do backing store for images. (Sort of ugly)
15567
15568         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
15569         contexts locally so that we can offset them properly when drawing 
15570         onto backing pixmaps.
15571
15572         * gdk/gdkinput.h: Reindented
15573
15574         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
15575         pixmap or color for the window, so we can properly initialize
15576         our double-buffer pixmaps, and also so that we temporarily set
15577         a background of None while scrolling.
15578
15579         * gdk/gdkregion.h: Revise region boolean operators to have an
15580         interface that is actually convenient - switch from creating new
15581         regions on every op, to "methods" that modify existing regions
15582         (A = A OP B). 3 argument forms which allow dest == src, would also
15583         be possible, but the current interfaces seem to map nicely
15584         onto what needs to be done. (There is quite a lot of region
15585         code in GDK now.)
15586
15587         * gdk/gdkregion.h: Add constructor from rectangle and a copy
15588         operator.
15589
15590         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
15591         gdkpoly-generic.h: Copy region code from Xlib, switch it over
15592         to 32 bit coordinates, modify it to be mostly GTK+ style
15593         and to have interfaces that match gdkregion.h.
15594
15595         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
15596         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
15597         create a backing pixmap and redirect all drawing to
15598         that backing pixmap until a matching gdk_window_end_paint().
15599
15600         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
15601         Create a special drawable class for GtkWindow's that 
15602         redirects the drawing to the backing pixmap as necessary
15603         and then calls the real operations in _gdk_windowing_window_class.
15604
15605         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
15606         Store invalid region for each window. Generate expose events for invalid
15607         region in an idle. This replaces both the expose compression
15608         and the redrawing queuing in GTK+. It is both more efficient and
15609         simpler than either one individually and far more so then the
15610         combination.
15611
15612         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
15613         Emulate 32 bit coordinates for windows with 16 bit coordinates
15614         by offsetting drawing, guffaw scrolling techniques and
15615         mapping/unmapping child windows as necessary.
15616
15617         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
15618         where, when invalid regions are processed, the region is stored,
15619         and if expose events come in that are detectably duplicate
15620         the processed exposes (by comparison of event serial numbers),
15621         the stored region is subtracted out of those exposes.
15622
15623         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
15624         regions newly exposed when scrolling or resizing windows.
15625         This, combined with forcing processesing of queued invalidated
15626         regions, gives nice flicker-free scrolling.
15627
15628         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
15629         invalidated regions after every scroll.
15630
15631         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
15632         emulation in GDK. Its, for all practical purposes just a
15633         GtkViewport/GtkFixed hybrid now.
15634
15635         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
15636         (16-bit) structures as necessary instead of just casting.
15637
15638         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
15639         in terms of the structures from gdkregion-generic.c, using appropriate
15640         offsets from GDK to X11 coordinates. Cache clip mask and
15641         origin and ts origin locally and only flush to the server
15642         when drawing, to avoid constantly setting and resetting these
15643         values when offsetting GC's for scrolling and backing pixmaps.
15644
15645         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
15646
15647         * gtk/gtkcontainer.c: Call process_all_updates at end
15648         of resizing to reduce flicker. (Avoids having redraw
15649         lag arbitrarily behind resize under some circumstances)
15650
15651         * gtk/gtkentry.c: Remove old backing store code, and simply take
15652         advantage of the new backing store capabilities of GDK.
15653
15654         * gtk/gtkmain.c: Simple implementation of widget backing
15655         store - simply push a paint while handling each expose.
15656         (Should really be configurable widget for widget.)
15657         
15658         * gtk/gtkwidget.c: Remove all the old complicated redraw
15659         code, and simply invalidate the GDK windows from
15660         gdk_window_queue_clear(), etc. (Sigh, so much carefully
15661         debugged complexity ... gone to the winds.)
15662
15663         Remove all the code for suppressing expose events while
15664         resizes are pending; this isn't needed since the invalid
15665         areas won't be processed until after the resizes are
15666         processed, since they are in a lower priority idle.
15667
15668 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
15669
15670         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
15671         and height of dest rectangle for non-intersecting rectangles.
15672
15673 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
15674
15675         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
15676         for GdkRectangle.
15677
15678 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
15679
15680         * gdk/gdk{events,image,private,types,window}.h
15681          gdk/x11/gdkinputprivate.h: Change all coordinates
15682          from int16 to int. Also, Change width and height from
15683          unsigned to signed to avoid all the stupid C 
15684          signedness bugs.
15685
15686 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
15687
15688         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
15689         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
15690         Add some more detailed checking.
15691
15692         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
15693         New function to retrieve the depth of a drawable.
15694
15695         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
15696         field, reorder fields to save memory. 
15697
15698 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
15699
15700         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
15701         of the background image instead of scaling the background down to
15702         a line.
15703
15704         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
15705         which temporarily set slider to wrong size.
15706
15707         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
15708         queue_clear().
15709
15710 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
15711
15712 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
15713
15714         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
15715
15716 2000-03-17  Tor Lillqvist  <tml@iki.fi>
15717
15718         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
15719         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
15720
15721         * gdk/win32/gdkfont-win32.c
15722         * gdk/win32/gdkproperty-win32.c
15723         * gdk/win32/gdkselection-win32.c
15724         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
15725         now declared such.
15726
15727 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
15728
15729         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
15730
15731 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
15732
15733         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
15734         is called without trapping X errors.
15735
15736 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
15737
15738         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
15739         way into the fontset lists.
15740
15741 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
15742
15743         * gtk/gtkthemes.h: add extern "C" scope.
15744
15745 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
15746
15747         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
15748         to make appends to the list constant. (gtk-guy-990901-0.patch)
15749
15750 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
15751
15752         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
15753         for the typename hash table.
15754
15755 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
15756
15757         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
15758         to make sure we never divide by zero. 
15759         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
15760
15761 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
15762
15763         * gtk/gtkfontsel.c: Apply patch from
15764         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
15765         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
15766
15767         Also, some cleanups in atom handling.
15768
15769 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
15770
15771         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
15772         not GtkWidget.
15773
15774 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
15775
15776         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
15777         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
15778         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
15779         more guint wrap-around bugs before going to bed.
15780
15781 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
15782
15783         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
15784         guint wrap arounds in allocation.width.
15785
15786         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
15787         process untill we fit the allocation given.
15788
15789 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
15790
15791         * gtk/gtkwidget.c:
15792         (gtk_widget_unrealize): guard widget access with ref/unref
15793         around signal emission.
15794         (gtk_widget_hide): same here, but also check its destroyed
15795         state before queueing a resize.
15796
15797 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
15798
15799         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
15800         of gtk_default_insensitive_bg as insensitive base color.
15801
15802         * gtk/gtktext.c (gtk_text_style_set): set the background color according
15803         to the widget's state.
15804         (gtk_text_realize): same here.
15805         (gtk_text_state_changed): same here.
15806         (draw_bg_rect): compare background color against base[] from
15807         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
15808
15809 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
15810
15811         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
15812         grabs are active, unless a delete event is send to the toplevel
15813         of the currently grab holding widget.
15814
15815 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
15816
15817         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
15818         debugging g_print's.
15819
15820 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
15821
15822         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
15823         ever make the scrolled-window requisition ever depend on the 
15824         visibility state of the scrollbars for the AUTOMATIC policy. 
15825         This breaks the GTK+ requisition model, and causes loops.
15826
15827 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
15828
15829         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
15830         the default font to avoid problems with XFree86-4.0 where the
15831         default charset is iso10646-1, not iso8859-1.
15832
15833 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
15834
15835         * acinclude.m4
15836         * config.guess
15837         * config.sub
15838         * ltconfig
15839         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
15840
15841         * gtk/Makefile.am: minor cosmetic consistency tweak
15842
15843 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
15844
15845         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
15846         the activate_time to 0, so that we handle a quick
15847         press/release press/release properly and don't suppress
15848         the second release. (Red Hat bug #7545)
15849
15850 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
15851
15852         * gtk/gtkctree.c (row_delete):
15853         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
15854         bugs with destruction notifier, *always* update internal
15855         structures *before* calling user code.
15856
15857 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
15858
15859         A few more fixes for bug #5487, #2051, #2677.
15860         * gtk/gtkclist.c : 
15861         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
15862         not GDK_BUTTON_PRESS.
15863         (resync_selection): resync only if selection_mode is
15864         GTK_SELECTION_EXTENDED
15865         * gtk/gtkctree.c (resync_selection): same here
15866
15867 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
15868
15869         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
15870         gdk_drag_get_selection() and gtk_menu_detach().
15871
15872         [ From Jeroen Ruigrok/Asmodai ]
15873
15874 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
15875
15876         * gtk/gtknotebook.c (gtk_notebook_size_request): 
15877         page->tab_label can be NULL.
15878
15879 2000-01-25  Havoc Pennington  <hp@pobox.com>
15880         
15881         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
15882         arg is boolean
15883
15884         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
15885
15886         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
15887
15888         * gdk/gdkproperty.c (gdk_property_get): return boolean
15889
15890         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
15891
15892         * gdk/gdkim.c (gdk_im_ready): return boolean
15893
15894         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
15895
15896         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
15897         glib clash, should fix glib)
15898
15899         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
15900         (gdk_get_show_events): return gboolean, and canonicalize 
15901         to TRUE/FALSE
15902
15903         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
15904         colormap is private
15905         (gdk_colors_alloc): gboolean whether to be contiguous
15906         (gdk_color_equal): return gboolean since we are a predicate
15907         and not a qsort() (this looks semi-wrong due to glib breakage,
15908         IMO glib should be fixed)
15909         
15910         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
15911         (gdk_get_use_xshm): return gboolean
15912         (gdk_pointer_is_grabbed): return gboolean
15913
15914         * gdk/gdk.h: Change prototypes to match all the above changes,
15915         and re-run egtk-format-protos as required.
15916
15917 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
15918
15919         * gtk/gtkctree.c (resync_selection): 
15920         * gtk/gtkclist.c (resync_selection):
15921
15922         Return immediately if clist->drag_pos < 0. This is a workaround
15923         for the corrupt state that the clist gets into when a
15924         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
15925
15926         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
15927         
15928         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
15929         variable from recent commit.
15930
15931 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
15932
15933         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
15934
15935 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
15936
15937         * gtk/Makefile.am: prefix all autogenerated source that get build in
15938         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
15939         in builddir. since we subsequently cd into srcdir for autogeneration,
15940         the paths have to be stripped from the target file names, thusly we
15941         use $(@F) as target names now.
15942         put a comment about configure.in's --disable-rebuilds option,
15943         which can be used for non-writable source directories, for development
15944         setups though, srcdir has to be *writable*.
15945
15946 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
15947
15948         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
15949           Finish the job of allowing event to be NULL.
15950           (Fixes bug #4283, reported by Chris Blizzard)
15951
15952         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
15953           things so that the cursor appears on screen, properly
15954           take into account INNER_BORDER.
15955           (Fixes bug #4754, reported by Antonio Campos)
15956
15957 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
15958
15959         * gtk/gtknotebook.c (gtk_notebook_map): Don't
15960           show the tab_label unless it itself is visible.
15961
15962           gtk/gtknotebook.c (gtk_notebook_size_request):
15963           Do a better job of making sure that the visibility
15964           of the tab label corresponds to whether it should
15965           be mapped or not.
15966
15967 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
15968
15969         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
15970           Use the requisition, not the allocation, since the
15971           allocation has not necessarily been computed yet.
15972           (Pointed out by Eugene Osintsev)
15973
15974 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
15975
15976         * gtk/gtkstyle.c (gtk_style_new): Dont' set
15977           style/base[GTK_STATE_INSENSITIVE] both to
15978           gtk_default_insensitive_bg!
15979           (Bug #2187, reported by Jonathan Blandford)
15980
15981         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
15982           Add Alt_L, Alt_R to list of invalid accelerators.
15983           (Bug #3736, reported by Vlad Harchev)
15984
15985 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
15986
15987         * gtk/gtkfilesel.c (open_ref_dir): Fix several
15988         bugs which occured after an attempt to open 
15989         invalid home directory left cmpl_state->reference_dir == NULL.
15990
15991          - completion on files in home directory didn't work
15992          - completion on an empty string caused  segfault
15993
15994          (Bug #3678, reported by Steve Ratcliffe)
15995
15996         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
15997         cut and paste error that was causing scales to
15998         be incorrectly positioned.
15999         (Bug #2956,
16000          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
16001
16002 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
16003
16004         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
16005         when checking for dcgettext, if we've found we needed
16006         it for dgettext.
16007 +
16008 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
16009
16010         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16011         queue_clear on NO_WINDOW widgets during a reparent,
16012         since at that point the window and widget heirarchies
16013         are out of sync. This stops crashing in some cases
16014         (the scrolled window reparent test, for instance), and
16015         _probably_ won't cause drawing errors.
16016
16017         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
16018         test do what it was supposed to do and be robust against
16019         window closings, etc. (Bug #2443)
16020
16021 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
16022
16023         * gtk/gtkentry.c: Fix return values on mouse events.
16024         (Bug #2686, Sky <seb_sky@yahoo.com>)
16025
16026         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
16027         (pointed out by George Lebl)
16028
16029         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
16030         (From Ettore Perazzoli  <ettore@helixcode.com>)
16031  
16032 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
16033
16034         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
16035         clicks between rows or outside calender area correctly.
16036         (Patch from Damon Chaplin)
16037
16038         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
16039         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
16040           Call destroy function when overwriting existing data. 
16041           (Pointed out by Damon Chaplin)
16042
16043 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
16044
16045         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
16046           which was causing problems on various systems with Xmu.
16047           This hasn't been needed for a very long time.
16048           (Fixes #1185 3167)
16049
16050 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
16051
16052         * gdk/gdki18n.h: Include <ctype.h> when defining
16053           gdk_isw* in terms of is* as a fallback.
16054           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
16055
16056 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
16057
16058         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
16059           realize the widget when it is size allocated!
16060           (old, old bug)
16061
16062         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
16063           Removed unused call to gdk_window_get_size() that
16064           showed up when the above was fixed.
16065
16066 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
16067
16068         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
16069           fix up widget->window when the widget is a
16070           NO_WINDOW container widget.
16071
16072 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
16073
16074         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
16075           to account for the fact that feof() does _not_ 
16076           return TRUE on errors, and thus avoid infinite loops
16077           when trying to use gdk_pixmap_create_from_xpm()
16078           on unreadable values.
16079
16080 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
16081
16082         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
16083
16084 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
16085
16086         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
16087           gdk_gc_set_dashes to take gint8 instead of gchar to
16088           make it clearer that it is _not_ a NULL terminated string.
16089
16090         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
16091           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
16092           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
16093           arguments.
16094
16095 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
16096
16097         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
16098         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
16099         background size relative to our allocation, guard against small
16100         allocations, we may have not yet been size allocated.
16101
16102 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
16103
16104         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
16105         not just version == 3. We implement all 3 + most of 4 - 
16106         (we don't support matching text/plain;charset=iso-8859-1
16107         to a dest that expects text/plain). We'll still advertise
16108         3 to be safe, but any client implementing version >= 3
16109         must interoperate with 3.
16110         
16111 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16112
16113         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
16114         background and gc members, add a warning in gtk_tooltips_set_color()
16115         indicating that this function is deprecated.
16116
16117 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
16118
16119         * docs/gtkfaq.sgml: FAQ Update:
16120           - Minor cleanups (Emmanuel, me)
16121           - New questions:
16122                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
16123                 How can I retrieve the text from a GtkMenuItem? (timj)
16124                 How do I validate/limit/filter the input to a GtkEntry? (me)
16125                 Memory does not seem to be released when I free the list
16126                         nodes I've allocated (timj)
16127
16128 2000-03-07  Tor Lillqvist  <tml@iki.fi>
16129
16130         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
16131         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
16132         for which it is no use to call GetLastError onWin9x.
16133         (gdk_other_api_failed) New function, for general error
16134         reporting without calling GetLastError.
16135         (gdk_win32_api_failed) OTOH, this function always calls
16136         GetLastError. (gdk_win32_last_error_string) Remove this function,
16137         GLib has the equivalent now.
16138
16139         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
16140         call them with function name, file name and line number in the
16141         arguments.
16142
16143         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
16144         functions.
16145         
16146         * gtk/gtk.def: Add some missing entry points.
16147
16148         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16149         gtk_paned_set_gutter_size, which don't exist any longer, as void.
16150         
16151         Fixes by Hans Breuer:
16152
16153         * gdk/makefile.msc: Update for debugging.
16154
16155         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
16156         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
16157         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
16158         in the dash_list.
16159
16160         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
16161         the x11 backend.
16162
16163         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
16164
16165         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
16166
16167 2000-03-04  Tor Lillqvist  <tml@iki.fi>
16168
16169         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
16170         just pixel value of background colour.
16171
16172         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
16173         containing code snippet previously duplicated in a couple of
16174         places.
16175         
16176         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
16177         gdk_colormap_color.
16178
16179         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
16180         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
16181         events for autorepeated Shift, Control and Alt keys. Use
16182         gdk_colormap_color.
16183
16184         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
16185         pointer is inside the window the cursor of which we are setting,
16186         call SetCursor immediately.
16187
16188         * gdk/win32/makefile.cygwin
16189         * gtk/makefile.cygwin: If we don't have the build number stamp
16190         file, use zero.
16191
16192         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16193         gtk_paned_set_gutter_size as empty.
16194
16195         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
16196         
16197 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
16198
16199         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
16200           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
16201           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
16202           docs/gtk_tut.sgml docs/gtk.texi TODO:
16203
16204           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
16205
16206 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
16207
16208         * gtk/gtkcalendar.c: Implement num_marked_dates,
16209           and don't emit mutiple day_selected signals on
16210           month_prev.
16211
16212 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
16213
16214         * docs/make-todo (lineno): let title and logo be configurable so
16215         that GNOME can use this script too.
16216
16217         * TODO.xml: added logourl and a title
16218
16219 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
16220
16221         * TODO.xml: Added some UI items, and an explanatory
16222         comment at the top of the file.
16223
16224 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
16225
16226         * TODO.xml: some updates, added abunch of new entries.
16227         a note for those fiddeling with this file, when done
16228         with it, invoke:
16229         $ ./docs/make-todo TODO.xml >/dev/null
16230         and correct output errors before comitting changes.
16231
16232 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
16233
16234         * TODO.xml: Added XML-structured TODO file.
16235         * docs/make-todo: python script to turn TODO.xml into
16236           pretty XML output. 
16237
16238 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
16239
16240         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
16241         the function to let it draw the seven dots, instead of the old,
16242         much maligned, method.
16243         (draw_dot): New function to draw a dot.
16244
16245         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
16246         to draw the handle inside the border width as opposed to outside.
16247         Use paint function instead of gdk_draw_point.
16248
16249         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
16250         to draw the handle inside the border width as opposed to outside.
16251         Use paint function instead of gdk_draw_point.
16252
16253         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
16254         Change indenting to be more GTK like.
16255
16256 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
16257
16258         * docs/gtk_tut.sgml: New section on GtkCalendar
16259         * examples/calendar: Update example code
16260
16261 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
16262
16263         * docs/gtkfaq.sgml: FAQ Update
16264
16265 2000-02-19  Anders Carlsson  <andersca@gnu.org>
16266
16267         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
16268         to prevent the scroll event to be propagated upwards.
16269
16270 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
16271
16272         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
16273         OwnerGrabButtonMask from button entries for
16274         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
16275
16276         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
16277         to the event mask (which will result in button/press release
16278         being added to the event mask on Unix) so scrolling works
16279         for layouts in scroll windows.
16280
16281         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
16282
16283         Patch from Anders Carlsson  <andersca@gnu.org> to add
16284         a scroll event.
16285
16286         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
16287         scrolling to the "Test Scrolling" part of testgtk.
16288  
16289         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
16290  
16291         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
16292         it against GDK_SCROLL.
16293  
16294         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
16295         way of mouse wheel scrolling.
16296  
16297         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
16298  
16299         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
16300  
16301         * gtk/gtkmain.c: Removed previous mouse wheel hack.
16302  
16303         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
16304         gdk_event_mask_table.
16305  
16306         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
16307         GdkEventScroll handler.
16308  
16309         * gdk/gdkevents.h: Added GdkEventScroll structure.
16310  
16311 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
16312
16313         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
16314         and Anders Carlsson to change the Paned widgets so that they
16315         can be dragged from anywhere along the length. Also change
16316         the way that this is drawn to make this apparent.
16317
16318         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
16319         from George Lebl to check that option_menu->menu is present
16320         before getting history.
16321
16322 2000-02-14  Tor Lillqvist  <tml@iki.fi>
16323
16324         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
16325         before the assertion for non-NULL segment list.
16326
16327         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
16328         Seems that pattern brushes *must* be 8x8 pixels! At least on my
16329         machine, but it might be display driver dependent. Sigh, so make
16330         sure the stipple is that size. Does Windows suck or what?
16331
16332         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
16333         places.
16334
16335 2000-02-13  Havoc Pennington  <hp@pobox.com>
16336
16337         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
16338         refcount to 1
16339         (gdk_cursor_new): init refcount to 1
16340
16341         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
16342
16343 2000-02-13  Tor Lillqvist  <tml@iki.fi>
16344
16345         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
16346         so that we don't have to do unnecessary settings to the HDC.
16347
16348         * gdk/win32/gdkdrawable-win32.c
16349         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
16350         gdk_gc_predraw.
16351
16352         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
16353         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
16354         GDI paths, call WidenPath to get the outline of the stroken path,
16355         and then fill the outline (with the brush that was built from the
16356         stipple).
16357
16358         * gdk/win32/gdkgc-win32.c: Factor out common code from
16359         _gdk_win32_gc_new and gdk_win32_gc_set_values into
16360         gdk_win32_gc_values_to_win32values. Use correct colour for
16361         SetBkColor() (Until now the code actually used a random colour in
16362         the call to SetBkColor()... but that didn't show up as not many
16363         GDI APIs use the background colour. Pattern (opaque stippled)
16364         brushes do.)
16365
16366         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
16367         gdk_win32_api_failed): New functions for error logging.
16368
16369         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
16370         WIN32_API_FAILED to call them, passing function or file name and
16371         line number.
16372
16373         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
16374
16375         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
16376         GdkColor for foreground and background in GdkGCWin32Data.
16377
16378         * gdk/makefile.cygwin: Link in the resource object separately.
16379
16380         * gdk/win32/rc/gdk.rc
16381         * gtk/gtk.rc (New file)
16382         * gdk/win32/makefile.cygwin
16383         * gtk/makefile.cygwin: Update build number in DLLs automatically,
16384         as in GLib.
16385
16386 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
16387
16388         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
16389         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
16390         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
16391         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
16392         parameters given and cursor->ref_count. coding style fixups.
16393
16394         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16395         not GtkWidget.
16396         
16397         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
16398         fix up widget macros and add _GET_CLASS() variant.
16399         
16400         * gtk/*.c: some GtkType fixups.
16401
16402 2000-02-09  Tor Lillqvist  <tml@iki.fi>
16403
16404         * gdk/win32/gdkproperty-win32.c
16405         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
16406         were reversed.
16407
16408 2000-02-04  Tor Lillqvist  <tml@iki.fi>
16409
16410         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
16411         g_filename_to_utf8 to convert the font names Windows gives us from
16412         whatever is the default codepage to UTF-8.
16413         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
16414         in the other direction.
16415
16416         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
16417         error in debugging output.
16418
16419 2000-02-02  Tor Lillqvist  <tml@iki.fi>
16420
16421         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
16422         and height parameters to gdk_window_clear_area(). Not minus one.
16423
16424 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
16425
16426         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
16427         checks if the widget passed to gtk_drag_get_data() was not the
16428         dest widget.
16429
16430 2000-02-01  Tor Lillqvist  <tml@iki.fi>
16431
16432         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
16433         g_filename_from_utf8 functions (which were added a moment ago to
16434         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
16435         size buffers.
16436
16437         gtk_file_selection_get_filename returns the filename in the C
16438         runtime encoding. It calls g_filename_from_utf8, but copies the
16439         returned string to a static buffer, which is returned. I think
16440         this is better than returning the result from g_filename_from_utf8
16441         directly, which would mean all apps that use it would have to free
16442         the return value. Or should this function care about this issue at
16443         all? Maybe a new function with clearly defined semantics.
16444
16445         * gtk/gtkfilesel.h: Add comment about
16446         gtk_file_selection_get_filename returning the filename in the C
16447         runtime's encoding.
16448
16449         * README.win32
16450         * gdk/gdk.def
16451         * gdk/makefile.{cygwin,msc}
16452         * gtk/gtk.def: Updates.
16453
16454         * gdk/gdkcursor-win32.c: Initialise refcount.
16455
16456 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
16457
16458         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
16459
16460 2000-01-30  Havoc Pennington  <hp@pobox.com>
16461
16462         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
16463         destroy
16464
16465         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
16466
16467         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
16468         implemented in platform-specific code
16469
16470         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
16471
16472         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
16473         underscore in front
16474
16475         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
16476         put an underscore in front
16477
16478         * gdk/gdkcursor.c: new file, implements
16479         gdk_cursor_ref/gdk_cursor_unref
16480
16481         * gdk/gdkcursor.h: Refcount GdkCursor
16482
16483         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
16484
16485 2000-01-29  Tor Lillqvist  <tml@iki.fi>
16486
16487         * gdk/gdkwindow.h
16488         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
16489
16490 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
16491
16492         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
16493         structures to properly inherit from GtkWidget not GtkBin.
16494
16495 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
16496
16497         * gtk+.spec.in: Added lib/gtk+/include/* to %files
16498         (bug #5178 - Peter Wainright)
16499         
16500         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
16501         so that it will be installed.
16502         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
16503
16504 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
16505
16506         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
16507         for the GtkStyleClass vtable const.
16508
16509         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
16510         take a const string argument like GtkTranslateFunc. This will
16511         require changes in use code.
16512
16513 2000-01-19  Tor Lillqvist  <tml@iki.fi>
16514
16515         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
16516         semantics (to mimic the X11 backend, which just calls XClearArea)
16517         is to check for zero width (and height), and in that case use the
16518         window's width minus x (height minus y). This fixes for instance
16519         some redraw problems with gtkclist, which were easily noticeable
16520         in the gtk file selection widget.
16521
16522         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
16523         windows.
16524
16525 2000-01-13  Tor Lillqvist  <tml@iki.fi>
16526
16527         * configure.in
16528         * gdk/Makefile.am
16529         * gdk/x11/Makefile.am
16530         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
16531         (bug #5177).
16532         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
16533         out later.
16534
16535 2000-01-09  Tor Lillqvist  <tml@iki.fi>
16536
16537         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
16538         WM_MOVE for iconified or invisible windows. This fixes various
16539         problems when minimising windows. Thanks to Bernd Herd.
16540
16541 2000-01-05  Tor Lillqvist  <tml@iki.fi>
16542
16543         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
16544         backend's draw_lines method, not draw_points.
16545
16546 2000-01-02  Tor Lillqvist  <tml@iki.fi>
16547
16548         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
16549         before Owen's reorganisation: Don't have queued_events and
16550         queued_tail statics in this file, but use gdk_queued_events and
16551         gdk_queued_tail. This makes exposure event compression work again.
16552
16553         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
16554         seem to be needed?
16555
16556 1999-12-30  Tor Lillqvist  <tml@iki.fi>
16557
16558         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
16559         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
16560         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
16561         doesn't do anything.
16562
16563         * gdk/gdk.def: Add gdk_xid_table_insert.
16564
16565         * gdk/win32/gdkprivate-win32.h
16566         * gdk/win32/gdkevents-win32.c
16567         * gdk/win32/gdkinput-win32.c
16568         
16569         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
16570         extension_events field in the GdkWindowWin32Data struct. Use only
16571         the extension_events field in GdkWindowPrivate. Previously one was
16572         set, and the other one tested, which broke tablet
16573         functionality. Thanks to Keishi Suenaga for pointing this out.
16574
16575 1999-12-18  Tor Lillqvist  <tml@iki.fi>
16576
16577         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
16578         When handling a single character (text length == 1), don't handle
16579         it as if it was UTF-8.
16580
16581 1999-12-11  Tor Lillqvist  <tml@iki.fi>
16582
16583         * Makefile.am: Distribute README.win32.
16584         
16585         * gdk/Makefile.am
16586         * gdk/win32/Makefile.am: Distribute Win32 files.
16587
16588         * gdk/makefile.msc: New file.
16589
16590         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
16591         after label).
16592
16593         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
16594         gdk_error_code as GDKVAR, as they are referred outside GDK.
16595
16596         * gdk/win32/makefile.msc: Update.
16597
16598         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
16599         tweaks. Check only if at least one of those Unicode subrange bits
16600         we care for is set. If no code page bits are set, guess (wildly)
16601         based on the charset.
16602
16603         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
16604
16605         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
16606         non-NULL.
16607
16608         * gtk/gtkdnd.c
16609         * gtk/gtklayout.c
16610         * gtk/gtkplug.c
16611         * gtk/gtkselection.c
16612         * gtk/gtksocket.c
16613         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
16614         appropriate. There must be a cleaner way to handle this?
16615
16616         * gtk/gtkrc.c: Must include windows.h on Win32.
16617
16618         * gtk/testgtk.c: No need to include gdkx.h.
16619
16620         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
16621
16622 1999-12-07  Tor Lillqvist  <tml@iki.fi>
16623
16624         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
16625         the rbearing is set to the same as the width, but this should be
16626         fixed.
16627
16628 1999-12-06  Tor Lillqvist  <tml@iki.fi>
16629
16630         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
16631         function. If Windows doesn't tell us what Unicode subranges a font
16632         covers, guesstimate based on the codepages it covers. This will
16633         hopefully help those Windows versions or fonts that don't give us
16634         any useful Unicode subrange information with GetTextCharsetInfo.
16635         Call this function in gdk_font_load_internal.
16636
16637         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
16638         minor changes.
16639
16640 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
16641
16642         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
16643         New function, long needed.
16644
16645 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
16646
16647         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
16648         only_if_exists argument of gdk_atom_intern to
16649         bool.
16650
16651 1999-11-25  Tor Lillqvist  <tml@iki.fi>
16652
16653         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
16654         Fix two copy&paste errors.
16655
16656         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
16657         win32 has changed.
16658
16659         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
16660         GdkWin32SingleFont struct.
16661
16662         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
16663         subranges of loaded fonts. Clear font signature first, in case
16664         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
16665         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
16666
16667         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
16668         Unoffset clip region.
16669
16670 1999-11-23  Tor Lillqvist  <tml@iki.fi>
16671
16672         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
16673         event->any.window before calling filter functions.
16674
16675 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
16676
16677         * gtk/gtkgamma.h: Adapt cast macros to standard.
16678
16679 [ Merges from 1.2 ]
16680
16681 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
16682
16683         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
16684         If translation does not include a '/', use entire
16685         translation instead of crashing.
16686
16687 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
16688
16689         * docs/gtk_tut.sgml:
16690         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
16691
16692 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
16693
16694         * gtk/gtkselection.c (gtk_target_list_remove): Use
16695         g_list_remove_link, not g_list_remove.
16696
16697         [ From Geert Bevin <gbevin@thunderstorms.org> ]
16698         
16699 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
16700
16701         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
16702         statement upon unselection (how the heck did that slip in?).
16703
16704 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
16705
16706         * gtk/gtktext.c (gtk_text_freeze): 
16707         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
16708         in frozen state (and aparently crashes). patch provided by Anders
16709         Melchiorsen <and@kampsax.dtu.dk>.
16710
16711 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
16712
16713         * fix insensitive default/focus widget activation,
16714         reported by Matt Goodall <mgg@isotek.co.uk>.
16715
16716         * gtk/gtkwindow.c (gtk_window_key_press_event): 
16717         (gtk_window_activate_default):
16718         (gtk_window_activate_focus):
16719         return handled=FALSE for actiavtion of insensitive default
16720         widgets. return handled=TRUE for activation of insensitive
16721         focus widgets. don't activate in either case.
16722
16723 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
16724
16725         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
16726         and $glib_cflags to match library order and in the
16727         theory that an old version of GLib is more likely to
16728         be in the include directory for X then vice-versa.
16729         (Bug #2776)
16730
16731 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
16732
16733         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
16734         to determine the locale for fontsets, not LC_MESSAGES;
16735         the user may want English messages with a handling
16736         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
16737         will still be broken) (Bug #2891)
16738
16739 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
16740
16741         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
16742
16743 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
16744
16745         * gtk/gtkrc.ko: Changed the Korean default fontset.
16746
16747 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
16748
16749         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
16750         where when scrolling to the left or top double exposes
16751         were done, causing major slowdowns.
16752
16753 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
16754
16755         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
16756         names to lowercase and alphanumeric, before looking
16757         them up.
16758
16759         * gtk/Makefile.am: Install codeset variant gtkrc files
16760         with normalized names.
16761
16762 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
16763
16764         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
16765         popup menus when the menu is already visible, but its parent
16766         is still hidden, (happens after tornoff window got hidden).
16767
16768 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
16769
16770         * gtk/Makefile.am (install-data-local): Fix
16771         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
16772         deleted, causing error messages on install.
16773
16774 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
16775
16776         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
16777         the handle as well, since we now sometimes ignore
16778         exposes on the handle while resizing.
16779
16780 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
16781
16782         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
16783         extra g_free introduced in one of the last one or two 
16784         commits.
16785
16786 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
16787
16788         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
16789         consistent, put each style that a gtkrc.* file creates
16790         in a unique namespace, remove old files before installing.
16791
16792 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
16793
16794         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
16795         gtk_rc_init is called multiple times. (Yes, people who
16796         do that have bugs in their code.)
16797
16798 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
16799
16800         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
16801         Remove it since it's generated by the Makefile anyway
16802
16803 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
16804
16805         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
16806         device->info.axes for core pointer.
16807
16808 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
16809
16810         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
16811         idle_id, to deal with obsolete, broken C libraries.
16812
16813 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
16814
16815         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
16816         allocation->x/y twice!
16817
16818         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
16819         consistent with gtk_vscale_pos_trough().
16820
16821 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
16822
16823         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
16824         be queueing a resize on a toplevel container between
16825         the time we show it and when we map it. So, we need
16826         to test GTK_WIDGET_VISIBLE() for toplevels, and only
16827         use GTK_WIDGET_DRAWABLE() for child windows.
16828
16829 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
16830
16831         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
16832         (fixes bug #2144)
16833
16834 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
16835
16836         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
16837         container DRAWABLE (instead of VISIBLE), so we don't queue
16838         resizes on non-toplevel containers.
16839
16840 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
16841
16842         * gtk/gtkselection.[ch]: Make the data argument
16843         const guchar *.
16844
16845 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
16846
16847         * gtk/gtkwindow.c: Try to behave sensibly if 
16848         the focus widget is the window itself. (Should
16849         we allow this at all?)
16850
16851 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
16852
16853         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
16854         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
16855         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
16856         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
16857         in prototypes and implementations consistent (Tomas Ogren).
16858
16859         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
16860         before the widget is unparented (reported by damon).
16861
16862         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
16863         since we provide unsigned data anyways.
16864
16865 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
16866
16867         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
16868         the call to gtk_tooltips_layout_text() until later.
16869
16870         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
16871         Call gtk_widget_ensure_style() before using the style.
16872
16873 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
16874
16875         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
16876         for old widgets that don't propagate draws to all
16877         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
16878
16879 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
16880
16881         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
16882         for a redraw but just the widget that requested the resize.
16883
16884 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
16885
16886         * gtk/gtkcontainer.c: added new widget level method
16887         gtk_container_set_reallocate_redraws() and a GtkContainer flag
16888         reallocate_redraws : 1 to reflect the setting, exported this through
16889         the argument system as a boolean ::reallocate_redraws.
16890
16891         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
16892         on the widget because the allocation changes, do so as well for
16893         widget->parent if the parent has reallocate_redraws set to TRUE.
16894         with that containers requesting reallocation redraws get automatically
16895         redrawn if their children changed allocation (this unfortunately
16896         affects also other children that didn't change allocation, but we
16897         cannot work around that before 1.3).
16898
16899 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
16900
16901         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
16902         _and_ height are >0 (not _or_).
16903
16904         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
16905         instead of gtk_container_queue_resize(), which is a core gtk internal
16906         function (must have been on crack when i queued that).
16907
16908         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
16909         we can check more reliably if we want to discard expose events.
16910         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
16911         flag.
16912         
16913         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
16914         we simply trust these events. for deciding whether to discard exposes,
16915         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
16916         
16917 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
16918
16919         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16920         queues of areas that are completely off screen.
16921
16922         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
16923         logic for handleboxes.
16924
16925         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
16926         check on width/height.
16927
16928 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
16929
16930         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
16931         we are fine with using $@ the way we do (if we actually encounter
16932         brokeness with $@ in VPATH builds because of additional path prefixes,
16933         we need to use $(@F) actually).
16934
16935 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
16936
16937         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
16938         short lived bugs, that would allow language bindings to do surgeries
16939         to our guts.
16940
16941 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
16942
16943         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
16944         where comparison was being done against an uninitialized
16945         value causing intermittant results depending on
16946         compiler flags. Also make it clearer that we aren't
16947         ever initializing the child as 0x0 (though this will
16948         be caught in gtk_widget_size_allocate())
16949
16950 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
16951
16952         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
16953         gtk_window_unset_transient_for() call after we do checks
16954         involving the old transient parent.
16955         [ From Lance Capser <lmc@cyberhighway.net> ]
16956
16957 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
16958
16959         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
16960         an empty file.
16961
16962 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
16963
16964         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
16965         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
16966
16967 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
16968
16969         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
16970         `$@' is valid only in the build dir, not after we've done 
16971         `cd $srcdir'.  Also use `test -f' instead of less portable
16972         `test -e'.
16973
16974 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
16975
16976         * gtk/gtktext.c (correct_cache_insert): Rewrite
16977          for simplicity, and hopefully correctness.
16978          (Fixes bug #1322, which was a segfault when
16979           on some insertions with the properties around
16980           the insertion set up just wrong.)
16981
16982         * gtk/gtktext.c (gtk_text_adjustment): When we receive
16983          a "changed" signal, clamp the new value to the adjustment
16984          bounds to avoid segfaulting if someone tries to change
16985          the adjustment to a bogus value. (Bug #1795)
16986
16987 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
16988
16989         * gtk/gtkmain.c: Ignore unexpected destroy notifies
16990         for children, for toplevel windows handle them
16991         like delete_event.
16992
16993         * gtk/gtkplug.c: Add an unrealize handler so that
16994         we unref plug->socket_window when we are done
16995         with it.
16996
16997 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
16998
16999         * gtk/gtktext.c (clear_area): Fix stupid signedness
17000          problem that was causing background to sometimes
17001          be misaligned.
17002
17003 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
17004
17005         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
17006         
17007         * gtk/gtkmenu.c (gtk_menu_position): Make
17008          sure we never position menus with negative x, y,
17009          since gtk_widget_set_uposition() can't handle that.
17010
17011         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
17012          Modify the positioning code a bit so that we always
17013          put the top-left corner onscreen. (This is for
17014          UI reasons, gtk_menu_position() now takes care of
17015          gtk_widet_set_uposition() brokeness.)
17016
17017 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
17018
17019         * gtk/Makefile.am: fixed up things for -jx, x > 1.
17020
17021 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
17022
17023         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
17024           RC style that is passed in. The lack of the ref
17025           before was a bug. If people worked around this
17026           bug, this will introduce a slight memory leak
17027           in their code. The code should typically look like:
17028
17029             rc_style = gtk_rc_style_new ();
17030             [...]
17031             gtk_widget_modify_style (widget, rc_style);
17032             gtk_rc_style_unref (rc_style);
17033
17034         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
17035           the style if it was already set.
17036
17037         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
17038           style if it was set before.
17039
17040 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17041
17042         * gtk/testgtk.c (main): Add a check to see if we
17043           are being run from the correct directory and
17044           to quit nicely if we are not.
17045
17046         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
17047           static.
17048
17049 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
17050
17051         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
17052
17053         * gtk/gtkwindow.c:
17054         queue resizes unconditionally (gtk_widget_queue_resize will figure
17055         what to do if the window is not realized).
17056         (gtk_window_move_resize): only recenter the window
17057         for GTK_WIN_POS_CENTER_ALWAYS.
17058         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
17059         the same way as GTK_WIN_POS_CENTER.
17060
17061 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
17062
17063         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
17064         with (!(info->last_flags & GDK_HINT_POS)) instead of
17065         (!info->last_flags & GDK_HINT_POS).
17066
17067         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
17068         new_height unconditionally, because we use these values even if
17069         !default_size_changed && !hints_changed.
17070         comented the (default_size_changed || hints_changed) case with
17071         respect to resize rejects from the window manager.
17072
17073         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
17074         in the zvt condition hack, since this includes the window hints, set
17075         the hints after the handling_resize case.
17076
17077         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
17078         window is initially shown with to the geometry.
17079
17080 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
17081
17082         * gtk/gtkwindow.c (gtk_window_move_resize):
17083         s/size_changed/default_size_changed/g so i know what's
17084         really going on (frying brain on smaller flame now).
17085
17086 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
17087
17088         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
17089         we have size_changed upon handling_resize. this is a gross
17090         workaround for the broken zvt widget and should be removed in
17091         1.3 again (search for FIXME).
17092         Owen provided an accurate comment for this:
17093
17094         /* We could be here for two reasons
17095          *  1) We coincidentally got a resize while handling
17096          *     another resize.
17097          *  2) Our computation of size_changed was completely
17098          *     screwed up, probably because one of our children
17099          *     is broken. It's probably a zvt widget.
17100          *
17101          * For 1), we could just go ahead and ask for the
17102          * new size right now, but doing that for 2)
17103          * might well be fighting the user (and can even
17104          * trigger a loop). Since we really don't want to
17105          * do that, we requeue a resize in hopes that
17106          * by the time it gets handled, the child has seen
17107          * the light and is willing to go along with the
17108          * new size. (this happens for the zvt widget, since
17109          * the size_allocate() above will have stored the
17110          * requisition corresponding to the new size in the
17111          * zvt widget)
17112          *
17113          * This doesn't buy us anything for 1), but it shouldn't
17114          * hurt us too badly, since it is what would have
17115          * happened if we had gotten the configure event before
17116          * the new size had been set.
17117          */
17118
17119 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
17120
17121         * gtk/gtkrc.c: deal properly with the fact that RC
17122           style lists may include rc styles more than once.
17123
17124         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
17125           unused static function.
17126
17127         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
17128           stack of directories of RC files currently being
17129           parsed and implicitely add them to pixmap path.
17130           
17131           This fixes a bug where the directory would get
17132           appended then overwritten by pixmap_path declarations.
17133
17134           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
17135
17136         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
17137           theme's exit function. (Patch from Peter Wainwright,
17138           bug #1454)
17139
17140         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
17141           Add a destroy() handler to take care of removing
17142           group for menu item. (Fixes bug #1197)
17143
17144         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
17145           in warning message.
17146
17147 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
17148
17149         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
17150         roundtrip to figure window's width and height, since we know that
17151         anyways from widget->allocation.
17152
17153 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
17154
17155         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
17156           the hints after we request the new size.
17157
17158 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
17159
17160         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
17161           GTK_WIDGET_REALIZED() assertion - we can compute the
17162           hints before we are realized.
17163
17164         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
17165           hint changing so that we have a value of hints_changed
17166           when we decide whether to constrain the window size.
17167
17168         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
17169
17170         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
17171         change back to G_MAXINT.
17172
17173 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
17174
17175         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
17176         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
17177         contain uncluttered values.
17178         (gtk_window_compute_hints): simply assert that window is realized
17179         and that geometry_info is valid, since we rely on this anyways.
17180         (gtk_window_constrain_size): major cleanups to the code.
17181         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
17182         for the base size, instead of the minimums. use 32767 as max width
17183         and height (like in gtkwindow.c) instead of G_MAXINT.
17184
17185 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
17186
17187         * cleaned up the GtkContainer.need_resize flag handling mess, we
17188         only need to force resize requests when we were prematurely
17189         realized, or our widget tree was modified when we were temporarily
17190         hidden. handling these cases directly upon showing the window (i.e.
17191         while the GdkWindow is still unmapped) avoids the need to wait for
17192         a configure event response and therefore makes the GUI more snappier
17193         and avoids blank windows during the roundtrip.
17194
17195         * gtk/gtkwidget.c:
17196         (gtk_widget_hide): 
17197         (gtk_widget_show): don't queue resizes on toplevels, they know how
17198         to deal with matters.
17199
17200         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
17201         flag directly for not visible resize containers and spare us unecessary
17202         signal emissions.
17203
17204         * gtk/gtkwindow.c:
17205         (gtk_window_realize): if we need to enforce premature size allocation,
17206         queue a container resize so we are correctly resized later on.
17207         (gtk_window_init):
17208         (gtk_window_size_request):
17209         don't freak around with the ->need_resize flag,
17210         gtk_container_queue_resize() will care about that.
17211         (gtk_window_show):
17212         handle initial resizing issues here, we can handle matters better in
17213         this place, especially since we know that our GdkWindow is still
17214         unmapped.
17215         (gtk_window_move_resize):
17216         don't care about ->need_resize at all.
17217         handle size changes properly that occoured while we waited for a
17218         configure event.
17219
17220 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
17221
17222         * gtk/gtkwidget.c (gtk_widget_set_uposition):
17223         * gtk/gtkwindow.[hc] (gtk_window_reposition):
17224         Move the hint setting code from gtk_widget_set_uposition
17225         to here; set the hints so that we respect any previously
17226         set geometry hints.
17227
17228         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
17229         change the window hints here or move the window here,
17230         let that happen in gtk_window_move_resize().
17231
17232 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
17233
17234         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
17235         to already queued resizes (and therefore redraws) on a widget, check
17236         its anchestry as well.
17237
17238         * gtk/gtkcontainer.c:
17239         (gtk_container_queue_resize): clear resize widgets for resize
17240         containers before aborting prematurely. this is especially important
17241         for toplevels which may need imemdiate processing or their resize
17242         handler to be queued.
17243         (gtk_container_dequeue_resize_handler): added new internal function for
17244         gtkwindow.c.
17245
17246         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
17247         configure event, take possible changes in window position into account
17248         as well.
17249         if we request a new window size, queue up a resize handler that will
17250         last until the configure event response arrives.
17251         combined the ->need_resize case (initial show) with the general size
17252         (hints) changed case and added even more comments.
17253         if !auto_shrink, only revert to the old allocation if the new size
17254         is smaller than the current allocation.
17255
17256 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
17257
17258         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
17259                            gtk_window_set_geometry_hints
17260                            gtk_window_set_default_size):
17261         When hints are set, queue a resize so that the hints will
17262         be eventually reset on the toplevel.
17263
17264         * gtk/gtkwindow.c (gtk_window_show): Use
17265         gtk_window_compute_default_size(). Clear the need_resize flag
17266         on the initail map so that we don't unnecessarily trigger the
17267         resize code.
17268
17269         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
17270         into separate functions. Compare the hints we are setting
17271         with what we set last time so that we can accurately
17272         tell when we need to reset the hints.
17273
17274         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
17275         function to figure out the size from requisition
17276         and default_size.
17277
17278         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
17279         from fvwm to constrain a size to the geometry hints.
17280
17281         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
17282         to compare two sets of geometry hints.
17283
17284         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
17285         from gtk_window_set_hints(), just compute the hints,
17286         don't set them.
17287
17288         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
17289         code from gtk_window_move_resize() to separate function,
17290         rationalize a bit.
17291
17292 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
17293
17294         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
17295         structure into a new private structure.
17296
17297         * gtkrc.c: Split GtkRcStyle into public/private.
17298         In the private part, add a list of pointers to the
17299         RcStyle lists this RcStyle participates in.
17300
17301         * gtkrc.c: When a RcStyle is free, remove all
17302         lists referencing it from the 
17303         realized_style_ht hash, and free those lists.
17304         
17305         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
17306         gtk_rc_init(), since that adds the default styles
17307         to the list of parsed RC files again.
17308
17309         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
17310         
17311 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
17312
17313         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
17314         checks that ensure that a widget's allocation is at least 1 in width
17315         and height. (GNOME note: this doesn't affect old panel code anymore,
17316         because GtkSocket will request width and height of at least 1 since
17317         Fri Jul 23).
17318
17319         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
17320         allocated yet (happens if the user realizes the window prematurely),
17321         size request and allocate it.
17322         (gtk_window_size_allocate): guard against guint underflows.
17323
17324 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
17325
17326         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
17327         in gtk_built_sources, so gtk.defs gets built prior to all other
17328         sources.
17329
17330 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17331
17332         * gtk/Makefile.am:
17333         invoke indent on gtkmarshal.*. 
17334         rewrote source generation rules, use COPYING as oldest source tag for
17335         a piggyback rule to generate all sources from (don't touch it ;).
17336         major cleanups, strip spaces on build rules for GNU Make.
17337
17338         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
17339         source and target files from commandline arguments. don't invoke indent.
17340
17341 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17342
17343         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17344         notebook after switch to avoid drawing problems.
17345         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17346         
17347         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17348         show them instead. 
17349         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17350
17351 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17352
17353         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17354         notebook after switch to avoid drawing problems.
17355         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17356         
17357         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17358         show them instead. 
17359         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17360
17361 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
17362
17363         * gtk/gtkwindow.c:
17364         we use window->need_resize from configure_event now, to indicate that
17365         the gtkwindow should keep its allocation (e.g. because the user resized
17366         the window through window manager handles). resize_count is now reliably
17367         used to figure whether we got the allocation we requested from the
17368         window manager.
17369         configure events get queued as resizes now, the real stuff (size
17370         computation and allocation) now only goes on in gtk_window_move_resize().
17371         GtkWindow's requisition now contains its *real* requisition (like all
17372         other widgets), *not* taking usize into account.
17373         geometry_info->last_{width|height} is now updated from set_hints() only
17374         so it always contains the last hints we set for the window manager.
17375         made some event handlers return TRUE instead of FALSE.
17376         the overall code should be much more straight forward now, and the
17377         significant code portions are accompanied by comments now.
17378         (gtk_window_set_hints):
17379         removed requisition argument and made it
17380         fetch the requisition through gtk_widget_get_child_requisition.
17381         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
17382         does that now.
17383         (gtk_window_show):
17384         ensure that the widget is realized before calling 
17385         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
17386         ensure that we got properly size requested and allocated before
17387         realization.
17388         (gtk_window_configure_event):
17389         ignore plain window moves, or reallocate the widget tree through the
17390         resize queue otherwise.
17391         (gtk_window_move_resize):
17392         mostly rewrote this function to figure window manager hints more
17393         reliably, coalesce window moves and resizes to reduce configure events
17394         and do actuall size allocations.
17395
17396 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
17397
17398         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
17399         that have a resize pending, because a redraw is already queued for them.
17400
17401         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
17402         hack to clear resize_widgets.
17403
17404         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
17405         for resize containers prior to size allocation. (this is also a bit
17406         ugly, but avoids side effects for stopped emissions and is thus more
17407         reliable).
17408         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
17409
17410         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
17411         function from gtk_tooltips_expose, as we connect to ::expose_event
17412         *and* ::draw now.
17413
17414 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
17415
17416         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
17417         checks.
17418         (gtk_target_list_unref): Likewise.
17419
17420         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
17421
17422 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
17423
17424         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
17425         guard against division by zero. (Fixes bug #1339)
17426
17427 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
17428
17429         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
17430         Prevent the trivial leak of information of allowing
17431         word motion when the entry is not visible.
17432
17433 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
17434
17435         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
17436         modality to error dialog as well as confirmation dialogs.
17437         (Bug #1803, reported by Rosanna Wing Sze Yuen)
17438
17439 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
17440
17441         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
17442         tree->view_lines.
17443         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
17444
17445         * gtk/Makefile.am (install-data-local): Solaris apparently
17446         has various troubles with ln -f; use rm first instead.
17447         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
17448
17449 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
17450
17451         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
17452         use `cp' followed by `rm' (the `rm' was already there).
17453
17454 July 30, 1999 Elliot Lee <sopwith@redhat.com>
17455         
17456         * configure.in: Fix autoconf warnings about cross compilation by
17457         trying to provide sane defaults for AC_TRY_RUN.
17458         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
17459         put them into $(srcdir) when generated. Also add a dependency of
17460         gtksignal.h on gtkmarshal.h for -j builds. 
17461         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
17462
17463 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
17464
17465         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
17466         GDK_THREADS_{LEAVE,ENTER} pair.
17467         (From Paul Fisher <pnfisher@redhat.com>)
17468
17469 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
17470
17471         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
17472         width and height are always >0 (owen).
17473
17474 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
17475
17476         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
17477         change that assured that a widget's allocated with and height are
17478         always >1, since this breaks *buggy* panel code. unfortunately this
17479         back-breaks the gimp's color selector.
17480
17481         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
17482         allocation is always >0 in width and height, before sending the
17483         configure event; this is a *gross* hack to get the gimp back to work.
17484         
17485         * marked both cases with TODO-1.3
17486
17487 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
17488
17489         * gtk/gtktext.c: Don't display wrap indicators when
17490         text is not editable and word wrap is on.
17491
17492 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
17493
17494         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
17495         option menus here as they are not derived from menu shell, assure that
17496         the option menu has a menu we can add items to.
17497
17498 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
17499
17500         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
17501         width/height to (gint) before calculations and check against < 0 to
17502         avoid guint wraparounds.
17503
17504 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
17505
17506         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
17507         width and height is never zero. sanity check both dimensions against
17508         32767 and issue a warning if the allocation is greater than that.
17509
17510 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
17511
17512         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
17513         to g_main_pending() as well.
17514
17515 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
17516
17517         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
17518         call to g_main_iteration() - since that will regrab
17519         GTK+ lock to process events.
17520
17521 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
17522
17523         * gtk/gtkwindow.c
17524         - Regularize with the rest of GTK+ by making widget->requisition
17525           not reflect the set_usize()
17526         - Always recompute geometry hints, then check if they
17527           changed before sending them to the X server. The
17528           previous checks for changes would fail in a number
17529           of circumstances. 
17530
17531 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
17532
17533         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
17534
17535 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
17536
17537         * gtk/gtkdnd.c:
17538         - Code cleanups
17539         - Instantaneously update on modifier key presses
17540         - Allow cancellation of the drag with Escape.
17541
17542 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
17543
17544         * gtk/testgtk.c (create_handle_box): Set the policy
17545         to auto_shrink - otherwise the appearance is rather
17546         strange when flipping between horizontal and vertical.
17547
17548 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
17549
17550         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
17551         (gtk_window_set_default_size): don't change a value if it's < 0.
17552         queue a resize.
17553
17554 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
17555
17556         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
17557
17558 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
17559
17560         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
17561         add an extra "/" when concating "/" + filename.
17562         (From Matt Grossman <mattg@oz.net>)
17563
17564 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
17565
17566         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
17567         for fg_gc if we set it for drawing pixmap.
17568
17569 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
17570
17571         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
17572         
17573         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
17574         already set, call old engine's destroy function and
17575         unref the old engine.
17576
17577 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
17578
17579         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
17580
17581 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
17582
17583         * gtk/gtkaccelgroup.h: mark certain functions as internal.
17584
17585 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
17586
17587         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
17588         expand behaviour changed.
17589
17590         * gtk/gtklabel.c (gtk_label_set_pattern):
17591         (gtk_label_set_justify):
17592         (gtk_label_set_line_wrap):
17593         don't bother invoking queue_clear, the reallocation does
17594         that for us, always free_words so the upcoming resize will
17595         relayout the label's contents.
17596
17597 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
17598
17599         * applied argument implementation patches from Elena Devdariani
17600         <elena@cogent.ca>.
17601
17602         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
17603         ::space_style, ::relief
17604         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
17605         * gtk/gtkpreview.c: ::expand
17606         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
17607         * gtk/gtknotebook.c: ::homogeneous
17608         * gtk/gtklabel.c: ::wrap
17609         * gtk/gtklist.c: ::selection_mode
17610         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
17611         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
17612         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
17613         * gtk/gtkclist.c: ::sort_type
17614         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
17615         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
17616
17617 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
17618
17619         * gtk/gtkstyle.c: Removed ill-thought-out part of last
17620         comment.
17621
17622 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
17623
17624         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
17625         counting right when we have to attach a new style
17626         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
17627
17628         * gtk/gtkstyle.c: Documented the refcounting
17629         peculularities of gtk_style_attach.
17630
17631 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17632
17633         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
17634         window types.
17635
17636         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
17637         of GTK_TOPLEVEL for creating the window.
17638
17639 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17640
17641         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
17642         the last argument (reported by Per Winkvist).
17643         
17644 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
17645
17646         Fixes for invisible XOR lines (Frank Loemker
17647         <floemker@TechFak.Uni-Bielefeld.DE>)
17648         
17649         * gtk/gtkclist.c (gtk_clist_realize): Always use
17650         a non-zero pixel for GDK_XOR.
17651
17652         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
17653         Use GDK_INVERT instead of GDK_XOR.
17654
17655 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
17656
17657         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
17658         signals if h/voffsets differ from adjustment values.
17659         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
17660
17661 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
17662
17663         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
17664         ::selection-done emissions up to the topmost menu shell.
17665
17666 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
17667
17668         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
17669         the user data on the window before destroying it.
17670
17671         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
17672         unrealize handler to take care of destroying 
17673         notebook->panel properly. 
17674         (Bug #1198 - Morten Welinder <terra@diku.dk>)
17675
17676         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
17677         of g_new and g_realloc to stop memory leak. (Actually,
17678         we could just use g_realloc(), but I'm not 100% sure
17679         that is portable).
17680         (Bug #1196 - Morten Welinder <terra@diku.dk>)
17681
17682 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
17683
17684         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
17685
17686         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
17687         for fontsets.
17688
17689         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
17690         with bin/button confusion.
17691
17692 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
17693
17694         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
17695         and show how preselection of radio items is done.
17696
17697 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
17698
17699         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
17700         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
17701         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
17702         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
17703         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
17704         * gtk/gtktable.c (gtk_table_attach): 
17705         * gtk/gtklist.c (gtk_list_insert_items): 
17706         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
17707         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
17708         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
17709         * gtk/gtkbin.c (gtk_bin_add): 
17710         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
17711         * gtk/gtkfixed.c (gtk_fixed_put): 
17712         * gtk/gtklayout.c (gtk_layout_put):
17713         general fixups to container_add logic. always realize child if
17714         child->parent is realized, only map the child and queue a resize
17715         if child and child->parent are both visible.
17716
17717 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
17718
17719         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
17720         instead of gtk_container_foreach to walk and unrealize children, so
17721         composite children get also unrealized.
17722         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
17723         (gtk_widget_map): assert that the widget is visible (basic constrain).
17724         (gtk_widget_real_map): assert that the widget is realized (basic
17725         constrain).
17726
17727 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
17728
17729         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
17730
17731 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
17732
17733         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
17734         file for iso-8859-2 locales.
17735
17736         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
17737
17738 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
17739
17740         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
17741          (Pointed out by andy@rz.uni-karlsruhe.de and others).
17742          Remove some suspicious and useless lines. 
17743
17744 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
17745
17746         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
17747         width,height = 0, 0 to mean - here to edge of window,
17748         instead of -1, -1, since the former is all we support.
17749
17750 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
17751
17752         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
17753         when removing from quit_functions list.
17754
17755 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
17756
17757         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
17758
17759 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
17760
17761         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
17762          When redrawing characters on non-visible entry, use appropriate
17763          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
17764
17765 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
17766
17767         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
17768         from drag coordinates.
17769         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
17770         use drag_dest_cell.
17771
17772         * gtk/gtktree (drag_dest_cell)
17773         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
17774         (Bug #1129)
17775
17776 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
17777
17778         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
17779         translate_* fields.
17780         (gtk_item_factory_finalize): invoke translate_notify independant from
17781         translate_data.
17782         (gtk_item_factory_set_translate_func): likewise.
17783         (gtk_item_factory_destroy): only remove ifactory pointer from those
17784         widgets that belong to us (stupid me).
17785
17786 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
17787
17788         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
17789         rc_style list when lookup succeeeds.
17790
17791 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
17792
17793         * gtk/gtkctree.c (resync_selection): 
17794         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
17795         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
17796         bug.
17797
17798 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
17799
17800         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
17801         Add some missing GDK_THREADS_ENTER()/LEAVE around
17802         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
17803
17804 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
17805
17806         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
17807         rather than emit_by_name.
17808
17809         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
17810         on the widget across multiple signal emissions.
17811         (gtk_editable_delete_text): same here.
17812         (gtk_editable_class_init): set widget_class->activate_signal after
17813         editable_signals[ACTIVATE] has been created.
17814
17815 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
17816
17817         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
17818         position here prematurely -- we might not have the
17819         right ->min_position and ->max_position yet.
17820
17821 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
17822
17823         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
17824         Add error traps so if the other end of the connection
17825         dies, we survive.
17826
17827         * gtk/gtkselection.c (gtk_selection_notify): Clean
17828         up properly when selection property retrieval fails.
17829         
17830         * gtk/gtkselection.c (gtk_selection_request): Correctly
17831         reject SelectionRequest notifies where the handler
17832         returns no data.
17833
17834 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
17835
17836         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
17837         when we've previously highlighted.
17838
17839         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
17840         emit two "drag_leave" signals for Motif drops.
17841
17842         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
17843         back the correct status messages when dropping from
17844         Motif onto a proxy window that is rejecting the
17845         drop.
17846
17847 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
17848
17849         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
17850         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
17851         to compare two argument values. added gtk_arg_to_valueloc() to set a
17852         variable from an arg through its location (pointer).
17853
17854         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
17855         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
17856         as gfloat*, uchars are collected as guchar*, ints are collected as
17857         gint*, etc...
17858
17859 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
17860
17861         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
17862         Include <string.h> instead of <strings.h>.
17863
17864         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
17865         (actually, a lot more duplicate includes occur if
17866          you trace through the sequence of #include's)
17867         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
17868         
17869 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
17870
17871         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
17872         gtk-a-higuti-990322-[0-3]
17873
17874         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
17875         that was causing -DX_LOCALE not to work.
17876
17877         * gtk/gtkrc.c (gtk_rc_init):
17878         X_LOCALE will never have LC_MESSAGES defined
17879
17880 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
17881
17882         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
17883         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
17884
17885         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
17886         left/right as well (gtk-michael-980726-0.patch.gz).
17887
17888         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
17889         for pointer values, use gchar instead of char. fixed uline allocation
17890         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
17891         chunks instead of G_ALLOC_ONLY.
17892         (gtk_label_size_request): always alter requisition as passed and leave
17893         widget->requisition alone.
17894         (gtk_label_set_text): allow NULL strings.
17895         (gtk_label_new): likewise.
17896
17897 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
17898
17899         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
17900
17901 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
17902
17903         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
17904         *and* mapped (i.e. drawable).
17905         (gtk_bin_expose): only send exposes to drawable children.
17906
17907         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
17908         (gtk_box_expose): only send exposes to drawable children.
17909
17910         * gtk/gtkhscale.c (gtk_hscale_draw): 
17911         * gtk/gtkvscale.c (gtk_vscale_draw):
17912         hm, this is an ugly one. we first compute the size of our trough area
17913         here (window relative) and then check intersection with the draw_area
17914         which is parent relative because we're a NO_WINDOW widget, so we need
17915         to offset the trough area by allocation.x and allocation.y before the
17916         check. (this must not be done for the background area though, since
17917         that's already computed parent relative).
17918
17919 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
17920
17921         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
17922         unrealize title buttons.
17923
17924 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
17925
17926         * gtk/gtkclist.c (gtk_clist_column_title_passive)
17927         (gtk_clist_column_title_active): 
17928         only connect/disconnect to GtkWidgetClass::event to block mouse events.
17929
17930         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
17931         zero initialize event, removed superfluous gdk_window_get_pointer call
17932
17933         * gtk/gtklist.c (gtk_list_vertical_timeout)
17934         (gtk_list_horizontal_timeout): removed superfluous
17935         gdk_window_get_pointer call
17936
17937 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
17938
17939         * plugging problems reported by "Bruce Mitchener, Jr."
17940         <bruce@puremagic.com> due to a purify session.
17941
17942         * gtk/gtkstyle.c:
17943         (gtk_style_ref): 
17944         (gtk_style_unref): assert ref_count to be > 0.
17945
17946         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
17947         the requisition.
17948         (gtk_clist_set_shift): likewise.
17949
17950         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
17951         adjustments.
17952
17953         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
17954         event before sending it and set send_event to TRUE (which needs to
17955         be done for *all* synthesized events).
17956         (gtk_list_vertical_timeout): likewise.
17957
17958         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
17959         leaks.
17960
17961         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
17962         to TRUE when synthesizing events.
17963
17964 [ *** end of merges from 1.2 *** ]      
17965         
17966 1999-11-21  Tor Lillqvist  <tml@iki.fi>
17967
17968         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
17969         (or copied from gdkconfig.h.win32 on Win32, sigh).
17970
17971         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
17972
17973         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
17974
17975         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
17976
17977         * gdk/gdkconfig.h.win32: New file.
17978
17979         * gdk/win32/makefile.cygwin: Build just a static archive here.
17980
17981         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
17982         for the DLL from the static archive built above.
17983
17984         * gdk/gdk.def: Moved here from the win32 subdirectory.
17985
17986         * gdk/win32/*: Adapt for the changed private struct organisation.
17987
17988         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
17989
17990 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
17991
17992         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
17993         for wheel mice (buttons 4 and 5).
17994
17995 1999-11-18  Tor Lillqvist  <tml@iki.fi>
17996
17997         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
17998         drawables use just the pixel field in the foreground and
17999         background GdkColor of the GdkGC.
18000
18001         gdk_gc_set_{fore,back}ground() are called in the GIMP with
18002         GdkColors containing uninitialized (red,green,blue) fields, and
18003         just the pixel field filled in, and furthermore in the
18004         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
18005         It thus turns out that we really don't need to have the full
18006         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
18007         it later to have just the pixel values.
18008
18009 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18010
18011         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
18012
18013 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
18014
18015         * docs/gtkfaq.sgml: threads example from Erik Mouw.
18016         New question on GtkLabel background colors.
18017
18018         * docs/gtk_tut.sgml:
18019           - Correct the example code callback
18020             function definitions.
18021           - Update the gtkdial example code, from Frans van Schaik.
18022           - Update setselection.c to current API.
18023
18024         * examples/Makefile examples/*/*.c: Update to code
18025         listed in tutorial.
18026
18027 1999-11-10  Tor Lillqvist  <tml@iki.fi>
18028
18029         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
18030         subrange table (from the "Developing International Software for
18031         WIndows 95 and Windows NT" book) was missing the Hangul syllable
18032         block... Get the loaded font's charset correctly.
18033
18034         (Note that this, and the other *-win32.c files, still really are
18035         the old ones, the win32 subdirectory is not ready for compilation
18036         yet after the reorg.)
18037
18038 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
18039
18040         * gtk/gtkclist.c: Fix off-by-one bug in parameter
18041         check.
18042
18043 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
18044
18045         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
18046         on results of XQueryDeviceState().
18047
18048 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
18049
18050         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
18051         we need to accesss only ->children. We need an accessor
18052         for the children.
18053
18054         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
18055         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
18056         to get rid of gdkx.h include.
18057         
18058         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
18059         and random references to 'None'.
18060
18061         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
18062         Get rid of unused #include <gdk/gdkx.h>
18063
18064         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
18065         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
18066         gdkconfig.h.
18067
18068 1999-11-08  Tor Lillqvist  <tml@iki.fi>
18069
18070         * gdk/win32/gdkdraw.c
18071         * gdk/win32/gdkfont.c
18072         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
18073         following yesterday's changes. (Unrelated to Owen's reorg.)
18074
18075 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
18076
18077         * gdk/x11/gdkinput-gxi.c: Add missing include,
18078           fix GdkWindowPrivate => GdkDrawablePrivate.
18079
18080         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
18081
18082         * gdk/x11/Makefile.am (xinput_sources): Add missing
18083         backslash to fix building with --with-xinput=none
18084
18085 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
18086
18087         Move all X specific code into the x11/ directory.
18088         Aside from shuffling things around, did the following:
18089
18090        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
18091          gdk_arg_context_* - a simple argument parsing system
18092          in the style of popt.
18093
18094        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
18095          gdk/x11/gdkprivate-x11.h:
18096          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
18097          add ->klass and ->klass_data fields. The klass_data
18098          field points to an auxilliary structure that is
18099          windowing system dependent.
18100
18101        * gdk/gdkfont.c: Make most of the measurement functions
18102          simply wrappers around gdk_text_extents().
18103
18104        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
18105          _gdk_font_strlen() function that hides the weird
18106          behavior in gtk+-1.[02] where a string is interpreted
18107          differently for 8-bit and 16-bit fonts.
18108
18109        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
18110          to store common code for synthesizing double/triple
18111          press events.
18112         
18113        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
18114          Make all the function that modify an existing GC
18115          simply wrappers around gdk_gc_set_values().
18116          
18117        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
18118          for throwing out later.
18119
18120        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
18121          GdkImagePrivate and GdkColormapPrivate to have a
18122          windowing system dependent part (GdkFontPrivateX etc.)
18123          that "derives" from the system-independent part.
18124
18125        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
18126          Got rid of the included-source-files for XInput in
18127          favor of automake conditionals. (Which didn't exist
18128          when XInput support was originally added.)
18129
18130        * gdk/gdkrgb.c: Remove the visual id from the debugging
18131          statements since that is X11 specific; print out
18132          type/depth info instead.
18133          
18134
18135 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
18136
18137         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
18138         loading duplicates of hashed fonts.
18139
18140         * gdk/gdk.c (gdk_keysym_convert_case): rename
18141         gdk_XConvertCase to gdk_keysym_convert_case, allow
18142         results to be NULL in the GTK+ style.
18143
18144         * gdk/gdkcompat.h: Started compatibility header
18145         for renames.
18146
18147 1999-11-07  Tor Lillqvist  <tml@iki.fi>
18148
18149         * gdk/win32/gdkprivate.h: New font private structures, related to
18150         fontsets.
18151
18152         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
18153         gdk_font_list_free(). On X11, will just be wrappers to
18154         XListFonts() and XFreeFontNames(). On Win32, the code previously
18155         in gtkfontsel.c is now here.
18156
18157         New function gdk_font_xlfd_create(). On X11 will get the FONT
18158         property of the font (for GDK_FONT_FONTs), or call
18159         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
18160         builds a XLFD style name from the font information in the LOGFONT
18161         struct(s).
18162
18163         New function gdk_font_xlfd_free(), which correspondingly frees the
18164         string returned by gdk_font_xlfd_create().
18165
18166         Implement fontsets on Win32. Add a function that iterates over a
18167         wide char string and calls a callback function for each substring
18168         of wide chars from the same Unicode subrange (and thus probably
18169         available in the same real font).
18170
18171         Improve the XLFD emulation a bit.
18172
18173         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
18174
18175         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
18176         Beta3, WM_IME_CHAR messages don't seem to contain the composed
18177         multi-byte char as with the Active IMM on Win9x. Oh well, handle
18178         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
18179         ImmGetCompositionStringW() to get the composed Unicode chars.
18180
18181         * gdk/win32/gdkgc.c
18182         * gdk/win32/gdkdraw.c: Changes needed because of the font private
18183         struct changes.
18184
18185         * gdk/win32/gdk.def: Add the new functions.
18186
18187 1999-11-04  Tor Lillqvist  <tml@iki.fi>
18188
18189         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
18190         get the Platform SDK to get <dimm.h>.
18191
18192         * gdk/win32/gdkevents.c: More event handling fixes and
18193         simplification. Never generate motion events with is_hint true. We
18194         used to do that on bogus grounds earlier. Windows sends
18195         WM_MOUSEMOVE messages on button events even if the mouse hasn't
18196         moved, ignore these.
18197
18198         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
18199
18200         * gdk/win32/gdkglobals.c
18201         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
18202         the TrackMouseEvent function, and use it.
18203
18204         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
18205         char before calling WideCharToMultiByte in order to get a string
18206         for the window title.
18207
18208         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
18209
18210         * gdk/win32/gdk.def: Remove obsolete functions.
18211
18212         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
18213         /nodefaultlib and /defaultlib switches.
18214
18215         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
18216
18217 1999-10-31  Tor Lillqvist  <tml@iki.fi>
18218
18219         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
18220         EuroSign).
18221
18222         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
18223         same type as GdkWChar, especially on Win32.
18224
18225         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
18226
18227         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
18228         before passing to Windows GDI for drawing etc. Convert to the
18229         system default codepage before passing to Windows as window
18230         titles.
18231
18232         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
18233         support changing input locale on the fly.
18234
18235         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
18236         on-the-fly changes. Convert incoming characters from the current
18237         codepage to Unicode (and then to a UTF-8 multi-byte string) based
18238         on the current input language. Use keysym<->Unicode mapping tables
18239         and functions borrowed from xterm sources.
18240
18241         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
18242         editions of Win9x, use the ActiveX-based Active IMM (Input Method
18243         Manager) if available. IMEs and the Active IMM are available under
18244         the disguise of Chinese, Korean and Japanese support for IE and
18245         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
18246         support is present in all editions (as long as you install it).
18247
18248         Call DispatchMessage from gdk_events_queue() (and thus
18249         gdk_WindowProc()), instead of duplicating the code in
18250         gdk_WindowProc().
18251
18252         Reworked the grab handling and propagation code, factored out
18253         duplicated code snippets into separate functions. Other cleanups,
18254         too.
18255
18256         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
18257         the <dimm.h> header describing the Active IMM.
18258
18259         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
18260         just do the same as for "single" fonts.
18261
18262         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
18263         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
18264         the new keysyms from gdkkeysyms.h.
18265
18266         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
18267         fontset, so that gtkentry uses wide characters.
18268
18269         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
18270         GTk+'s system directory "gtk+", not "gtk".
18271
18272 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
18273
18274         * docs/gtkfaq.sgml: FAQ update
18275
18276 1999-10-21  Tor Lillqvist  <tml@iki.fi>
18277
18278         * gdk/win32/gdkprivate.h: Add more font private data.
18279
18280         * gdk/win32/gdkfont.c
18281         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
18282         fonts and strings. Now works much better. You still have to
18283         have a correct font selected, though. No fontset emulation yet.
18284
18285 1999-10-19  Tor Lillqvist  <tml@iki.fi>
18286
18287         * gtk/maketypes.awk: Use G_OS_WIN32.
18288
18289         * gtk/gtk.def: Add some missing entry points. Also some non-public
18290         ones, but PyGTK porter claims to need them.
18291
18292         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
18293         built-in type generation.
18294
18295 1999-10-14  Tor Lillqvist  <tml@iki.fi>
18296
18297         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
18298         GDK_FONT_FONT fonts (which is all we have for now, we don't
18299         emulate fontsets). The X11 version uses plain XDrawString in that
18300         case, too. The string passed to gdk_draw_text_wc seems to be in
18301         fact (at least, when used by gtkentry and gtktext) either in a
18302         single-byte charset, or a DBCS. Not Unicode.
18303
18304         This fixes the problem in gtkfontsel, where even if you had
18305         selected a font with a non-Latin1 charset (windows-greek, for
18306         instance), the preview still used Latin-1 glyphs.
18307
18308         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
18309         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
18310         (gdk_font_load): Recognize the demibold etc weights, even if we
18311         don't have the corresponding constants in the headers.
18312         (gdk_font_hash_insert): Use same hash mechanism as in the X11
18313         version. Should save font resources a bit, when we don't have
18314         multiple HFONTs for the same font.
18315
18316         * gdk/win32/gdkprivate.h: Add the names field as in the X11
18317         version.
18318
18319 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
18320
18321         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
18322         X values
18323
18324 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
18325
18326         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
18327         layout support (as mentioned on
18328         http://www.jcinteractive.com/gnome-ui/software/widgets/)
18329
18330 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
18331
18332         * gtk/fnmatch.c
18333         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
18334
18335 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
18336
18337         * configure.in (ALL_LINGUAS): Added Galician (gl)
18338
18339 1999-10-05  Tor Lillqvist  <tml@iki.fi>
18340
18341         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
18342
18343         * gdk/win32/gdkcompat.c: New file, actually provide an
18344         implementation for the deprecated functions. (Just temporarily.)
18345
18346         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
18347
18348         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
18349
18350         * gdk/win32/gdk.def gtk/gtk.def: Updates.
18351
18352 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
18353
18354         * configure.in: Added "uk" to ALL_LINGUAS.
18355         
18356 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
18357
18358         * configure.in: correct checking for BeOS check
18359
18360         * gdk/gdktypes.h
18361         * gtk/fnmatch.c
18362         * gtk/gtkfilesel.c
18363         * gtk/gtkitemfactory.c
18364         * gtk/gtkmain.[ch]
18365         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
18366
18367 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18368
18369         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
18370         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
18371         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
18372         by Bulgarian). 
18373
18374 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
18375
18376         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
18377         Fix a reference to window_private->destroyed.   
18378
18379         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
18380         (ugly) setting of an internal GdkWindow member to use
18381         a _slightly_ cleaner macro.
18382
18383         * gdk/gdkprivate.h: Split GdkWindowPrivate into
18384         GdkDrawablePrivate and GdkWindowPrivate.
18385         Add extra macros for accessing GDK_DRAWABLE_ components.
18386
18387         * *.[ch]: Massive adjustments for the above, use the
18388         new macros in a lot of places.
18389
18390 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
18391
18392         * gdk/gdktypes.h: Make GdkDrawable the base type,
18393         not GdkWindow.
18394
18395 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
18396
18397         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
18398
18399 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
18400
18401         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
18402
18403 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
18404
18405         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
18406         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
18407
18408         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
18409
18410         * docs/gtk-config.1: Now autogenerated.
18411         * docs/Changes-1.4.txt: started
18412         
18413 1999-10-03  Tor Lillqvist  <tml@iki.fi>
18414
18415         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
18416         to #ifdef also here.
18417
18418         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
18419         Owen did to the X11 backend.
18420
18421         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
18422         ScrollWindowEx when blitting inside a window, it can't be correct
18423         in the general case.
18424
18425         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
18426         WM_GETMINMAXINFO is easier.
18427
18428         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
18429         depth equal to the bitspixel value, not the visual's depth.
18430
18431         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
18432         to 24 even if the bitspixel value is 32.
18433
18434         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
18435         need to check for depth==32 when bpp==32, depth will always be 24.
18436
18437 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
18438
18439         * docs/Changes-1.4.txt: Started
18440         
18441         * gtk/Makefile.am (gdk_headers): Include all the new headers.
18442
18443         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
18444         
18445         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
18446         into C file.
18447         
18448         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
18449         header to gdkinputprivate.h.
18450
18451         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
18452         unused since before 1.2.
18453
18454 1999-09-30  Tor Lillqvist  <tml@iki.fi>
18455
18456         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
18457         expand possible hex escapes in the font family (put there by
18458         logfont_to_xlfd if the font name isn't a legal XLFD font family,
18459         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
18460         On Win32, add hex escapes here, too.
18461
18462 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
18463
18464         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
18465         to #ifdef GDK_WINDOWING_X11.
18466
18467 [ Merges from gtk-1-2 ]
18468
18469 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
18470
18471         * configure.in: fixed "GNU Make" check to pass with new make version
18472         3.77.95.
18473
18474 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
18475
18476         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
18477         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
18478         AM_PATH_GTK() macros don't get confused by the -pre1.
18479
18480 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18481
18482         * configure.in (REBUILD): Change check for perl5
18483           to check explicitely for v >= 5.002. (5.001
18484           does not work with our scripts.)
18485
18486 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
18487
18488         * configure.in: evaluate $PERL for the perl version check. added
18489         --disable-rebuilds to give the user an option to completely disable
18490         any source autogeneration rules.
18491
18492 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
18493
18494         * configure.in: evaluate $ac_make when checking for GNU Make.
18495
18496 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18497
18498         * docs/Makefile.am: added generation.txt.
18499
18500         * Makefile.am: require automake 1.4, build README from README.in and
18501         INSTALL from INSTALL.in in dist-hook.
18502         
18503         * README.in:
18504         * INSTALL.in: new files to autogenerate README and INSTALL from.
18505
18506         * configure.in: figure whether we have GNU Make
18507
18508         * docs/generation.txt: minor additions/corrections.
18509
18510 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18511
18512         * docs/gtkfaq.sgml: FAQ Update
18513
18514 July 30, 1999 Elliot Lee <sopwith@redhat.com>
18515         
18516         * configure.in: Fix autoconf warnings about cross compilation by
18517         trying to provide sane defaults for AC_TRY_RUN.
18518
18519 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
18520
18521         * ltconfig
18522         * ltmain.sh: upgrade to libtool 1.3.3
18523
18524 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
18525
18526         * INSTALL: Indicate that the --with-glib= configure
18527         time flag is unsupported.
18528
18529 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
18530
18531         * docs/generation.txt: Added a file that gives
18532         documenation about the autogeneration process for
18533         various autogenerated files.
18534         
18535 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18536
18537         * configure.in (LIBS): Look for libgmodule in the
18538         right location.
18539
18540 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
18541
18542         * docs/gtk_tut.sgml: Removed references to
18543         code examples in my directory on gtk.org as
18544         they should all be in the tutorial now.
18545
18546         * docs/gtk_tut.sgml: Added sources for dial-test
18547         and scribble-xinput programs that were previously
18548         missing.
18549
18550 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
18551
18552         * TODO: Added entry about menu keyboard navigation, removed
18553         some finished items.
18554
18555 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
18556
18557         * acinclude.m4: Standardize on func_dgettext
18558         not func_gettext, so that the checks for dgettext
18559         actually are paid attention to.
18560
18561 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
18562
18563         * configure.in (LIBS): Add $INTLLIBS into $LIBS
18564         directly, rather than repeating the checks for
18565         gettext.
18566
18567         * INSTALL: Added information about gettext and
18568         NLS support.
18569
18570         * acinclude.m4 (LIBM): Check for dgettext, not
18571         just gettext. This should hopefully fix things wrt
18572         systems with old versions of GNU gettext installed.
18573
18574 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18575
18576         * configure.in (LIBS): Look for libgmodule in the
18577         right location.
18578
18579 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18580
18581         * autogen.sh: add --enable-maintainer-mode
18582
18583         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
18584
18585 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
18586
18587         * docs/gtk-config.1.in:
18588           docs/Makefile.am:
18589           configure.in: gtk-config is now generated.
18590
18591         * docs/gtk-config.1: Removed, now generated.
18592
18593 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
18594
18595         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
18596         handle CreateNotify itself, still put out a debuging message for
18597         --gdk-debug=events. made the ReparentNotify debugging message more
18598         verbose.
18599         wrap xcoords translation for ConfigureEvents into an error trap,
18600         a destroy event may already be pending, and in that case, the
18601         actuall coordinate values are not at all critical.
18602
18603 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
18604
18605         * gdk/gdkcc.c: Stop leaking the color_hash all over
18606         the place. Simplify and improve the logic.
18607
18608 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
18609
18610         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
18611         for prototypes and function implementations consistent (reported
18612         by Tomas Ogren).
18613
18614 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
18615
18616         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
18617         send_event set in debugging output.
18618         (gdk_compress_exposures): default initialize the event so we don't
18619         operate on bogus values (namely send_event).
18620
18621 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
18622
18623         * gdk/gdkwindow.c: When we receive an unexpected
18624         destroy notify on one of our windows, don't just
18625         warn about it, also mark our windows as destroyed.
18626
18627 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
18628
18629         * gdk/gdkfont.c (gdk_font_hash_insert): Add
18630           name => font and name => fontset hashes. The 
18631           name => fontset hash is a _big_ win since we
18632           weren't previously caching fontsets at all and loading
18633           fontsets is expensive. The name => font hash
18634           is less of a win, but it does save us from doing
18635           repeated XQueryFont calls on the same font.
18636
18637         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
18638           list so we can remove font/fontset from hash.
18639
18640 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18641
18642         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
18643           and slightly confusing test. [ XInternAtom (,,TRUE)
18644           will never return None ].
18645
18646 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
18647
18648         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
18649           gdk/gdkwindow.c (gdk_window_set_hints):
18650
18651         Don't omit setting the properties if flags == 0 -
18652         there may be an existing set of properties there
18653         already. (Very old bug. Would it be better to
18654         delete the property instead?)
18655
18656         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
18657           spelling error in comment.
18658
18659 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
18660
18661         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
18662           to avoid stomping over gdk_error_warnings.
18663
18664         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
18665           as (bits_per_pixel + 7) / 8. This gives the same
18666           result as before for multiples of 8, but actually
18667           a "reasonable" value for 1bit or 4bit displays.
18668
18669 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18670
18671         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
18672         GNU Make.
18673
18674 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
18675
18676         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
18677         discarding configure events.
18678
18679 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
18680
18681         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
18682         refcount is greater than zero.
18683
18684         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
18685
18686         * gdk/gdkfont.c (gdk_font_unref): Likewise.
18687
18688         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
18689
18690         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
18691
18692 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
18693
18694         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
18695         that format 32 => sizeof(item) == 4. It really is
18696         sizeof(long).
18697
18698 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
18699
18700         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
18701         core dump at all on X IO errors, only core dump
18702         if --enable-debug for X errors.
18703
18704 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
18705
18706         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
18707         unknown window:" message. disabled ConfigureNotify discarding code,
18708         because it led to events being processed out of order.
18709
18710 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
18711
18712         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
18713
18714         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
18715         we export this function, supress error warnings and don't reset the
18716         error code in the first half of this function.
18717
18718         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
18719         code (instead of just -1) so gdk_error_trap_pop() reveals something
18720         actually informative about the error that happened.
18721
18722         * gdk/*.c:
18723         don't rely on gdk_error_code being -1 if an error occoured, but just
18724         gdk_error_code != 0.
18725
18726 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
18727
18728         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
18729         pointer *before* invoking the filter function, so we at least don't
18730         crash if a filter is removed that is currently executed. window filters
18731         *really* need to be made truely reentrant at some point.
18732
18733 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
18734
18735         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
18736         PropertyNotify debug messages.
18737
18738 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
18739         
18740         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
18741         
18742         * gdk/gdkim.c: Fix cut-and-paste errors for 
18743         x/y and PreeditAttributes/StatusAttributes.
18744
18745 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18746
18747         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
18748         G_MAXINT to 2^16 to alleviate overflow problems in
18749         various window managers.
18750
18751 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
18752
18753         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
18754         for fontsets.
18755
18756 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
18757
18758         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
18759         Initialize size_hints.x and size_hints.y because kwm
18760         brokenly pays attention to them.
18761         (Bug #1181 -  Lars Heete <hel@admin.de>)
18762
18763 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
18764
18765         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
18766         return value of gdk_list_visuals(). 
18767         (Bug #1193 - Morten Welinder <terra@diku.dk>)
18768
18769 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
18770
18771         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
18772         XSetIMValues to (void *) when comparing to NULL, to workaround
18773         the problem of some compilers barfing since older X headers don't
18774         have the prototype for it.
18775
18776 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
18777
18778         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
18779         for pseudocolor where colormap->colors was double
18780         allocated.
18781
18782         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
18783         color value in the hash table with the pixel filled
18784         in so when we do later hash table lookups, the color
18785         value is correct.
18786         
18787 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
18788
18789         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
18790         making the call
18791
18792 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
18793
18794         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
18795         pointed out by Morten Welinder <terra@diku.dk>.
18796
18797 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
18798
18799         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
18800           default filter from the list
18801
18802 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
18803
18804         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
18805           default filter from the list
18806
18807 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
18808
18809         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
18810
18811         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
18812         g_strdup_printf instead of calcing the length separately
18813
18814 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
18815
18816         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
18817         that we don't do in many other places. (Fixing duplicate 
18818         #include of config.h)
18819
18820         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
18821         Otherwise, #ifndef XINPUT_NONE check in the latter
18822         doesn't work. (Bug #546)
18823
18824 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
18825
18826         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
18827         "None" case insensitive.
18828
18829 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
18830
18831         * gdk/gdkselection.c: 
18832         Add error traps so if the other end of the connection
18833         dies, we survive.
18834
18835 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18836
18837         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
18838         dest_xid field into two fields - one for the window
18839         to send in messages, one to indicate the last looked
18840         up window for caching purposes. This is needed, so
18841         that Leave messages get the correct window.
18842
18843 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
18844
18845         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
18846         Fix warning created by people mucking around
18847         with the gsource API.
18848
18849         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
18850         Change mapping between GIOCondition and GdkInputCondition
18851         to match the way the Linux kernel does it. This should
18852         fix problems where closed pipes were no longer signalling
18853         GDK_INPUT_READ on systems with a native poll().
18854
18855 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
18856
18857         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
18858         explicitly for the string "None" - it is in the XPM
18859         spec and some servers treat unknown colors in odd ways
18860         (like asking the user!)
18861
18862 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18863
18864         * gdk/gdkevents.c: made "->" into a "." of previous change so
18865         it compiles
18866
18867 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
18868
18869         * gdk/gdkevents.c (gdk_compress_exposures): Set the
18870         window field of the event structure before calling
18871         user filters.
18872
18873 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
18874
18875         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
18876         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
18877
18878 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
18879
18880         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
18881         intermediate text property - prevents major memory
18882         leak when gdk_use_mb.
18883         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
18884
18885 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
18886
18887         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
18888         gtk-a-higuti-990322-[0-3]
18889
18890         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
18891         sizeof(wchar_t) != sizeof (GdkWChar)
18892
18893         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
18894         that was causing -DX_LOCALE not to work.
18895
18896         * gtk/gtkrc.c (gtk_rc_init):
18897         X_LOCALE will never have LC_MESSAGES defined
18898
18899         * gdk/gdk.c (gdk_init_check):
18900         Remove --xim-preedit and --xim-status from argv properly.
18901
18902         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
18903         that the client window is present on the X server
18904         before we pass it to the input method.
18905
18906 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
18907
18908         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
18909         if --display is specified on the command line, than
18910         the drag window will not be created on that display.
18911         
18912 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
18913
18914         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
18915         lookups with only_if_exists == TRUE were inserting
18916         bogus values into the atom cache.
18917
18918 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
18919
18920         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
18921         then reset it to NULL.
18922
18923         * gdk/gdkcolor.c:
18924         (gdk_colors_free): 
18925         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
18926         key for g_hash_table_remove() in both functions, this prevents us
18927         from accessing possibly uninitialized portions of a GdkColor structure
18928         where we are only interested in its pixel value.
18929
18930 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
18931
18932         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
18933         font hash table, if we have a GdkFontPrivate entry for this font
18934         already, simply increment its reference count, provided by Olaf Dietsche
18935         <olaf.dietsche+list.gtk@netcologne.de>.
18936
18937 1999-09-21  Tor Lillqvist  <tml@iki.fi>
18938
18939         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
18940         just to be sure.
18941
18942         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
18943         unused variables, leftovers from the X11 version.
18944
18945         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
18946
18947         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
18948         downcase fields on X11.
18949
18950 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18951         
18952         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
18953         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
18954
18955 1999-09-17  Tor Lillqvist  <tml@iki.fi>
18956
18957         * gdk/win32/gdk.def: Add gdk_threads_mutex.
18958
18959         * gtk/makefile.msc: Correct path to libintl.
18960
18961         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
18962         use of gint vs. int, and gint vs. gboolean in headers and
18963         definitions. Use GtkType for the *_get_type functions. Note that
18964         these changes preserve binary compatibility.
18965
18966         * gdk/gdk.c
18967         * gdk/win32/gdk.c
18968         * gdk/gdk.h: Fix inconsistencies: gint vs int.
18969
18970         * gtk/gtkmain.c
18971         * gtk/gtkclist.c
18972         * gtk/gtkmenufactory.c
18973         * gtk/gtknotebook.c
18974         * gtk/gtkwidget.c: Fix inconsistencies, also gint
18975         vs. gboolean.
18976
18977         * gtk/gtkcolorsel.[ch]
18978         * gtk/gtkcombo.[ch]
18979         * gtk/gtkdrawingarea.[ch]
18980         * gtk/gtkgamma.[ch]
18981         * gtk/gtkhandlebox.[ch]
18982         * gtk/gtkhpaned.[ch]
18983         * gtk/gtkhruler.[ch]
18984         * gtk/gtkplug.[ch]
18985         * gtk/gtkpreview.[ch]
18986         * gtk/gtkruler.[ch]
18987         * gtk/gtksocket.[ch]
18988         * gtk/gtkstatusbar.[ch]
18989         * gtk/gtktoolbar.[ch]
18990         * gtk/gtkvbbox.[ch]
18991         * gtk/gtkvpaned.[ch]
18992         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
18993         functions.
18994
18995         * gtk/gtkgamma.h: Fix bug, missing () in call of
18996         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
18997
18998 1999-09-14  Tor Lillqvist  <tml@iki.fi>
18999
19000         * gdk/gdkcolor.c (gdk_colormap_new)
19001         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
19002         colormap->colors was allocated twice.
19003
19004         * gdk/win32/gdk.c: Remove some unused stuff.
19005
19006         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
19007         colormap.
19008
19009         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
19010         * gtk/gtklabel.h (gtk_label_get_type)
19011         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
19012         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
19013         in a couple of places, not guint.
19014
19015 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19016
19017         * configure.in,po/et.po: added Estonian language file
19018
19019 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19020
19021         * configure.in,po/da.po: added Danish file
19022
19023 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
19024
19025         * docs/gtkfaq.sgml: Minor FAQ Update
19026
19027 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
19028
19029         * docs/gtkfaq.sgml: FAQ update
19030
19031 1999-08-27  Tor Lillqvist  <tml@iki.fi>
19032
19033         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
19034         way to get window contents continually refreshed while resizing. I
19035         didn't like the effects myself, so it's not on by default.
19036
19037         * gdk/win32/gdkprivate.h: New flag variable
19038         gdk_event_func_from_window_proc, FALSE by default.
19039
19040         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
19041         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
19042         are passed --gdk-event-func-from-window-proc.
19043
19044         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
19045         and we have am event_func, call it instead of enqueing the event.
19046
19047 1999-08-23  Tor Lillqvist  <tml@iki.fi>
19048
19049         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
19050         Kelley: Set expose_count in GdkEventExposes correctly.
19051
19052         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
19053         MULTIPLE_WINDOW_CLASSES).
19054
19055         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
19056         for bug in NT, apparently NT *does* draw the end pixel, too, in
19057         LineTo with a one-pixel pen, so we don't have to do it ourselves.
19058
19059 1999-08-21  Tor Lillqvist  <tml@iki.fi>
19060
19061         Improvements by Hans Breuer: 
19062
19063         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
19064
19065         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
19066         CS_?REDRAW flags as they cause lots of (late) redraws when "show
19067         window contents while dragging" is turned on. Allocate at least
19068         one unique class for every GdkWindowType. If support for single
19069         window-specific icons is ever needed (eg. Dialog specific), every
19070         such window should get its own class.
19071
19072 1999-08-19  Tor Lillqvist  <tml@iki.fi>
19073
19074         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
19075         error that caused crashes.
19076
19077 1999-08-17  Tor Lillqvist  <tml@iki.fi>
19078
19079         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
19080         window, use ScrollWindowEx, and call UpdateWindow. This prevents
19081         bugs when for instance part of the window was outside the
19082         display. Thanks to Philippe Colantoni for finding and fixing this.
19083
19084 1999-08-16  Tor Lillqvist  <tml@iki.fi>
19085
19086         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
19087         endpoint calculations which were totally wrong. (A little RTFMing
19088         helps a lot ;-)
19089
19090         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
19091         from a separate directory, not from gettext, because of licensing
19092         issues (we want to use the LGPL version).
19093
19094         * README.win32: Mention the intl from glibc vs from gettext issue.
19095
19096 1999-08-13  Tor Lillqvist  <tml@iki.fi>
19097
19098         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
19099         in the key event handling: Now AltGr chars work again. Also,
19100         now Alt-digits are passed up as well as Control-digits.
19101         Pass keypad plus and minus as normal plus and minus.
19102
19103 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
19104
19105         * docs/gtkfaq.sgml: FAQ Update
19106
19107 1999-07-25  Tor Lillqvist  <tml@iki.fi>
19108
19109         * README.win32
19110         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
19111         the Wintab SDK.
19112
19113         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
19114         OK, but getting closer. Guard against bogus tilt data from Wacom
19115         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
19116         enable easier building without Wintab.
19117
19118         * gdk/win32/gdkinput.h
19119         * gdk/win32/gdkevents.c 
19120         * gdk/win32/gdkwindow.c: Minor changes related related to above.
19121         
19122         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
19123         code. As we have just one visual on Win32, no sense to have it in a
19124         table, and no need for the hash table.
19125
19126         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
19127         better on white background.
19128
19129 1999-07-21  Tor Lillqvist  <tml@iki.fi>
19130
19131         * README.win32: Update gcc build instructions. Mention gettext is
19132         GPL.
19133
19134         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
19135         supported cursor size with GetSystemMetrics.
19136
19137         * gdk/win32/gdkfont.c
19138         * gtk/gtkfontsel.c: Guard against some font weight and charset
19139         symbols being undefined (in mingw32 headers).
19140
19141         * gdk/win32/makefile.cygwin
19142         * gtk/makefile.cygwin
19143         * gtk/gtkthemes.c: No longer need to have differently named
19144         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
19145
19146 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
19147
19148         * docs/gtkfaq.sgml: Long awaited FAQ update.
19149
19150 1999-07-15  Tor Lillqvist  <tml@iki.fi>
19151
19152         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
19153         it. Obscure bit manipulation needed.
19154
19155         * gdk/win32/gdkevents.c: Logging.
19156         
19157         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
19158         style (file name include compiler name) for theme engines.
19159
19160 1999-07-13  Tor Lillqvist  <tml@iki.fi>
19161
19162         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
19163
19164         * gdk/win32/gdkevents.c: Fix long-standing bug in key
19165         events. The key.string wasn't zero-terminated, still we strdup'ed
19166         it in gdk_event_copy(). Synthesize crossing events for button
19167         events before possible propagation.
19168
19169         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
19170
19171         * gdk/win32/makefile.cygwin
19172         * gtk/makefile.cygwin: Use new DLL naming style for the
19173         GCC-compiled ones.
19174
19175         * gdk/win32/makefile.msc
19176         * gtk/makefile.msc: Cosmetics mostly.
19177
19178         * gtk/gtk.def: Add missing entry points.
19179
19180         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
19181
19182 1999-07-09  Tor Lillqvist  <tml@iki.fi>
19183
19184         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
19185         or height is zero. Don't print a warning if Pie or Arc fails, they
19186         always fail (?) for very narrow ellipses.
19187
19188         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
19189         the part or the destination window corresponding to source area
19190         outside of the source drawable's boundary.
19191
19192         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
19193         anything if less than two points.
19194
19195         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
19196         return NULL. Gtk cut-and-paste inside a single program works
19197         better this way. (It always gets the clipboard contents from
19198         Windows, not from its own copy, which is cleared anyway. I can't
19199         say I fully understand what happens... Emulating the X selection
19200         and property stuff is a bit of a mess.)
19201
19202         * gdk/win32/gdkevents.c
19203         * gdk/win32/gdkproperty.c: A bit more verbose logging.
19204
19205         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
19206         that never got deleted). Revamp gdk_region_shrink.
19207
19208         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
19209         after use.
19210
19211         * gtk/gtk.def: Add some missing entry points.
19212
19213         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
19214         component.
19215
19216 1999-07-04  Tor Lillqvist  <tml@iki.fi>
19217
19218         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
19219         Control-digits specially.
19220
19221 1999-07-03  Tor Lillqvist  <tml@iki.fi>
19222
19223         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
19224
19225 1999-06-28  Tor Lillqvist  <tml@iki.fi>
19226
19227         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
19228         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
19229         finding this.)
19230
19231 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
19232
19233         * gtk+.spec.in: Corrected some typos in files section.
19234         
19235 1999-06-15  Tor Lillqvist  <tml@iki.fi>
19236
19237         * README.win32: Mention using GNU gettext.
19238         * config.h.win32: Enable NLS stuff.
19239         * gtk/makefile.msc: Use GNU gettext.
19240         * gdk/win32/gdkdnd.c: Minor header reorg.
19241         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
19242         cosmetics.
19243         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
19244         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
19245
19246 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
19247
19248         * acinclude.m4
19249         * config.guess
19250         * config.status
19251         * ltconfig
19252         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
19253
19254 1999-05-30  Tor Lillqvist  <tml@iki.fi>
19255
19256         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
19257         SafeAdjustWindowRectEx. Don't override all calls to
19258         AdjustWindowRectEx by it, but use it only in two places: When
19259         creating a new top-level window and when moving a top-level
19260         window.
19261
19262         Use screen coordinate rectangle, not client rectangle, in
19263         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
19264         when we try to place a window so that the decoration (mainly,
19265         title bar) isn't visible.
19266
19267         These changes fix the bug that showed up for instance as the
19268         GIMP's saved top-level windows moving right and down (by an amount
19269         equal to the window decoration) for each session. This bug showed
19270         up also in testgtk's "Saved Position".
19271
19272         gdk_window_resize also redone a bit.
19273
19274 1999-05-25  Tor Lillqvist  <tml@iki.fi>
19275
19276         * gtk/testgtkrc: Add (commented out) Windows-style theme
19277         include line.
19278
19279         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
19280
19281 1999-05-18  Tor Lillqvist  <tml@iki.fi>
19282
19283         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
19284         gdkx.h to a gdk subdirectory, so that applications can include
19285         these with <gdk/*.h> without trouble.
19286
19287         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
19288         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
19289         have their bitmap destroyed.
19290
19291         * gdk/win32/gdk.def: Add gdk_root_parent.
19292
19293 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
19294
19295         * configure.in
19296           gtk-config.in
19297           ltconfig
19298           ltmain.sh     
19299           gtk/Makefile.am: changes to compile nicely (with xlib) 
19300           on BeOS
19301
19302 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
19303
19304         * acinclude.m4
19305         * config.guess
19306         * config.sub
19307         * ltconfig
19308         * ltmain.sh: upgrade to libtool 1.3
19309
19310 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
19311
19312         * gtk/gtkclist.c:
19313         * gtk/gtkctree.c: merges from gtk-1-2
19314
19315 1999-04-25  Tor Lillqvist  <tml@iki.fi>
19316
19317         Support added for building using a GNU toolchain on Win32,
19318         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
19319
19320         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
19321         * config.h.win32: Changes for gcc.
19322         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
19323         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
19324         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
19325         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
19326         Protect shl stuff unavaiilable with mingw32 headers.
19327         * gdk/win32/gdkevents.c: Fix typo.
19328         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
19329         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
19330         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
19331         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
19332         the mingw32 headers.
19333         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
19334         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
19335         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
19336         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
19337         Test for NATIVE_WIN32, not _MSC_VER.
19338         * gtk/gtkmain.c: No use warning about developer version on Win32,
19339         there aren't any non-developer versions anyhow.
19340         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
19341         * gtk/makefile.msc: Use pthread from another directory. Minor other
19342         changes. 
19343
19344 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19345
19346         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19347           default filter from the list
19348
19349 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
19350
19351         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
19352          when gtk_widget_grab_default() is called for a widget that
19353          is not within a GtkWindow.
19354
19355 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
19356
19357         * docs/gtk_tut.sgml, examples/clist.c: use a
19358           scrolled window in the clist example. Minor
19359           tutorial fixes.
19360
19361 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
19362
19363         * docs/gtk_tut.sgml: Style check from David King
19364           <dking@youvegotmail.net>
19365
19366 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
19367
19368         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
19369         compile with unknown value of GDK_WINDOWING
19370
19371 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
19372
19373         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
19374         after the rule is fired.
19375         (install-exec-local): Install gdkconfig.h only if the contents are
19376         different from the currently installed gdkconfig.h.
19377
19378 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
19379
19380         * gdk/Makefile.am (configexecincludedir): Rename from 
19381         configincludedir so that gdkconfig.h will be installed 
19382         as part of `make install-exec'. 
19383
19384 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
19385
19386         * acinclude.m4
19387         * config.guess
19388         * config.sub
19389         * ltconfig
19390         * ltmain.sh: upgrade to libtool 1.2f
19391
19392         * autogen.sh: libtool is not required to autogen gtk+
19393
19394         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
19395         needed)
19396
19397 1999-03-18  Tor Lillqvist  <tml@iki.fi>
19398
19399         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
19400         declaring gdk variables exported/imported from the DLL. New image
19401         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
19402         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
19403         GDK_DRAG_PROTO_OLE2.
19404
19405         * gdk/gdk.h: Merge in Win32 version: Two new functions,
19406         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
19407         declared only for the Win32 version, but could be in the X11
19408         version as well. (Needed for a Xlib-less gdk_imlib.)
19409         gdk_color_hash should have only one parameter. Declare
19410         gdk_threads_mutex with GDKVAR.
19411         
19412         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
19413         just one parameter.
19414
19415         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
19416         per pixel, not bits.
19417
19418         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
19419         Fetch bpp (which means bits-per-pixel here) from another place on
19420         Win32. Accept also depth==32 (which we might get on Win32) with
19421         bpp==32.
19422
19423         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
19424         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
19425         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
19426         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
19427         in the backend-dependent directory, not in the common gdk
19428         directory.
19429
19430         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
19431         headers.
19432
19433 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
19434
19435         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
19436         want to use the Gtk+ devel version (which is true, and yes - even i am
19437         currently working with the 1.2.x branch). so everyone reading this, you
19438         probably want to issue
19439         cvs checkout -r glib-1-2 glib
19440         and
19441         cvs checkout -r gtk-1-2 gtk+
19442         as your next two comands.
19443
19444 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
19445
19446         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
19447         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
19448
19449         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
19450         file. strongly deprecated the GTK_HAVE_* macros, we provide
19451         GTK_CHECK_VERSION() for people that need to check for certain
19452         Gtk+ versions.
19453
19454         * gtk/gtkcompat.h: removed this from CVS.
19455         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
19456         idea right from the start, it just didn't seem like that back then.
19457
19458 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
19459
19460         * merges from gtk-1-2:
19461
19462 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
19463
19464         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
19465         item factory class has been created.
19466         (gtk_item_factory_parse_rc): likewise.
19467
19468         * gtk/gtkmenu.c:
19469         keep proper references for old_active_menu_item.
19470         (gtk_menu_reparent): unset the usize of the new parent,
19471         so the menu can sanely be size requested and we don't get nasty screen
19472         artefacts upon next reparentation.
19473         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
19474         enter notify. only synthesize enter notifies if the pointer really is
19475         inside the event window.
19476         (gtk_menu_popdown): use gtk_menu_shell_deselect().
19477         (gtk_menu_popup): move the background setting stuff into
19478         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
19479
19480         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
19481         gtk_menu_shell_select_item() to select the new item.
19482         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
19483         do the right thing for deselection as well.
19484
19485 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
19486
19487         * gtk/gtkwidget.[hc]:
19488         (gtk_widget_accelerators_locked): return whether a widget's accelerators
19489         are locked.
19490
19491         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
19492         existing accelerators if the widget's accelerators are locked.
19493
19494 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
19495
19496         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
19497
19498         * gtk/gtkmenu.c: truely forward key press and key release events to
19499         the menu widget from the toplevel or tearoff window. we can't simply
19500         connect to that, we need to stop further processing of the events as
19501         well.
19502
19503 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
19504
19505         * gtk/gtkmenu.c:
19506         (gtk_menu_key_press): pass event->keyval, event->state to
19507         gtk_accelerator_valid, instead of event->keyval twice.
19508         refuse to install single letter accelerators for menus that use
19509         single letter shortcuts.
19510
19511         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
19512         gtk_menu_ensure_uline_accel_group().
19513
19514         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
19515         which will always return an uline accel group, made
19516         gtk_menu_get_uline_accel_group() return NULL if the group isn't
19517         yet created.
19518
19519 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
19520
19521         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
19522
19523         * gtk/gtkclist.c (gtk_clist_column_title_passive):
19524         Leave button sensitive, trap  button_press, button_release,
19525         motion_notify, enter_notify and leave_notify events instead.
19526         (gtk_clist_column_title_active): disconnect event handler.
19527         (gtk_clist_drag_data_get): fixed memory leak. Reported by
19528         Guillaume Laurent <glaurent@worldnet.fr>
19529
19530 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
19531
19532         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
19533         width/height mixups.
19534
19535         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
19536         if needed.
19537
19538 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
19539
19540         * gtk/testgtk.c (create_item_factory): unref the item factory after
19541         window's destruction.
19542
19543         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
19544         count on the menu shell around the menu item's activation, since the
19545         signal emission may cause menu shell destruction.
19546
19547         * gtk/gtkitemfactory.c:
19548         the previous code leaked one accel group per menu. we use
19549         gtk_menu_get_uline_accel_group() now to fix that, and with that
19550         also create the underline accelerator group of the menus only if
19551         required (i.e. an underline accelerator has been specified).
19552         (gtk_item_factory_construct):
19553         (gtk_item_factory_create_item): removed code that would create an
19554         extra accel group for the menu (and leak references).
19555         (gtk_item_factory_create_item): adapted the underline accelerator
19556         installation code to properly feature gtk_menu_get_uline_accel_group().
19557
19558         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
19559         menu->accel_group, this may return NULL if the accelerator group
19560         hasn't been set yet.
19561         added gtk_menu_get_uline_accel_group() to retrive the underline
19562         accelerator group of the menu, this will be created on demand
19563         and proper care is taken about its reference count.
19564
19565         * gtk/gtkitemfactory.h:
19566         * gtk/gtkitemfactory.c:
19567         dumped the approach of keeping a widgets by action list on the
19568         factory since the factory<->widget destroy negotiation didn't work
19569         and would be hard to get going at all. instead we keep a list of
19570         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
19571         persistant throughout a program's life time).
19572         also, i removed the static const gchar *key_* variables, and made
19573         them inline strings (they weren't actually used anyways).
19574         (gtk_item_factory_add_item): update ifactory->items.
19575         (gtk_item_factory_destroy): destroy ifactory->items (and remove
19576         the item factory pointer from the remaining ifactory widgets).
19577         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
19578         list to find the widget.
19579         (gtk_item_factory_get_item): new function that works around
19580         gtk_item_factory_get_widget() limitations, this function will only
19581         return menu items, even for <Branch> entries.
19582
19583 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19584
19585         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19586         font hash table, if we have a GdkFontPrivate entry for this font
19587         already, simply increment its reference count, provided by Olaf Dietsche
19588         <olaf.dietsche+list.gtk@netcologne.de>.
19589
19590         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19591         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19592
19593 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
19594
19595         * gtk/gtkcontainer.c:
19596         (gtk_container_add_with_args):
19597         (gtk_container_addv):
19598         (gtk_container_add): before adding a child to a conatiner, make sure
19599         it is (default) constructed, this is neccessary because under certain
19600         circumstances the child will get relized and mapped immediatedly, in
19601         which case it has to be constructed already.
19602
19603 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
19604
19605         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
19606         values > 1 as TRUE also.
19607
19608 1999-03-16  Tor Lillqvist  <tml@iki.fi>
19609
19610         * README.win32: New file.
19611                 
19612         * configure.in: Check for lstat.
19613
19614         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
19615         completeness.
19616
19617         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
19618
19619         * gtk/gtk.def: Removed CRs.
19620
19621         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
19622         ..\gdk\win32).
19623
19624         * gdk/win32/makefile.msc: Correct upwards relative paths.
19625         
19626 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
19627
19628         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
19629           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
19630           it was connecting a void function to expose_event and the int
19631           returning function to the draw signal
19632
19633 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
19634
19635         * configure.in:
19636         Use correct path to libgmodule.la when ref'ing uninstalled copy
19637         of glib.  (Already in stable branch, Bug #417)
19638
19639 1999-03-15  Tor Lillqvist  <tml@iki.fi>
19640
19641         Win32 merge and general portability stuff:
19642                 
19643         * acconfig.h,configure.in: Check for <sys/time.h>.
19644
19645         * gdk/win32: New directory (actually, been there for a while).
19646         
19647         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
19648         NATIVE_WIN32, and use these. Always case fold on Win32. No
19649         backslashed escapes on native Win32.
19650
19651         * gtk/{gtk.def,makefile.msc}: New files.
19652
19653         * gtk/Makefile.am: Add above new files.
19654         
19655         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
19656         instead of <strings.h>.
19657
19658         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
19659         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
19660         <unistd.h> appropriately.
19661
19662         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
19663         Use ABS() (from <glib.h>) instead of abs().
19664         
19665         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
19666         of gtk (and thus glib) headers, so that WIN32 will be
19667         defined. With MS C, include <direct.h> for mkdir prototype.
19668
19669         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
19670         some casts, needed by MS C.
19671
19672         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
19673         implemented).
19674
19675         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
19676         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
19677         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
19678
19679         * gtk/gtkmain.h: Mark variables for export/import on Win32.
19680                 
19681         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
19682         the event is not a hint, or its window is not the slider. Needed
19683         on Win32, at least.
19684
19685         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
19686         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
19687         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
19688         a subdirectory of the Windows directory as gtk system
19689         configuration directory.
19690
19691         * gtk/gtkselection.c: No chunks on Win32.
19692
19693         * gtk/gtksocket.c: Not implemented on Win32.
19694
19695         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
19696
19697         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
19698
19699         * gtk/maketypes.awk: Declare variables with a macro that expands to
19700         necessary export/import magic in the case of Win32.
19701                 
19702         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
19703
19704 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
19705
19706         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
19707         since those were meant only for gdki18n.h.  
19708         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
19709         for widechar tests.
19710         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
19711
19712 1999-03-13  Tor Lillqvist  <tml@iki.fi>
19713
19714         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
19715         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
19716
19717         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
19718         installed) to CFLAGS.
19719
19720         * gdk/Makefile.am: Add rules for gdkconfig.h.
19721
19722         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
19723         APIs.
19724
19725         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
19726         gdkx.h anyway when compiling for X11.
19727         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
19728         general): Merge in Win32 version.
19729         
19730         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
19731         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
19732         expansion (if we don't have HAVE_PWD_H), allow for drive
19733         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
19734         included code from Craig Setera's port to Win32 (the one that uses
19735         X11, and the cygwin dll), even if it probably will be abandoned.
19736
19737         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
19738         the user entered one herself.  This way one can complete *.h and
19739         don't get matches on any .help files, for instance.
19740         
19741 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19742
19743         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19744         font hash table, if we have a GdkFontPrivate entry for this font
19745         already, simply increment its reference count, provided by Olaf Dietsche
19746         <olaf.dietsche+list.gtk@netcologne.de>.
19747
19748         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19749         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19750
19751 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
19752
19753         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
19754         the number of calls to gdk_draw_point() (and thus to X) by
19755         clipping the points by hand.
19756
19757         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
19758         the clip parameter.
19759         (gtk_handle_box_paint): Only paint the handle if the expose area
19760         intersects it.
19761
19762 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
19763
19764         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
19765
19766 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
19767
19768         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
19769         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
19770
19771 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
19772
19773         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
19774          textmode (O_TEXT) for OS/2 version.
19775
19776 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
19777
19778         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
19779         GtkSpinButton, "input" and "output", to make the output more flexible.
19780         The user has to provide a mapping between adjustment->value and the
19781         output string (and vice versa, if the spin button is editable). 
19782         See testgtk for examples.
19783
19784 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
19785
19786         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
19787         new one.
19788         
19789         * configure.in: set gtk+ version to 1.3.0.