]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
don't use += before =
[~andy/gtk] / ChangeLog.pre-2-8
1 2001-09-18  Matt Wilson  <msw@redhat.com>
2
3         * docs/Makefile.am (EXTRA_DIST): don't use += before =
4
5         * docs/faq/Makefile.am (EXTRA_DIST): likewise
6
7         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
8         
9         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
10         (EXTRA_HEADERS): likewise
11
12         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
13         (EXTRA_HEADERS): likewise
14         (EXTRA_DIST): likewise
15         (CLEANFILES): likewise
16
17         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
18
19         * tests/Makefile.am (EXTRA_DIST): likewise
20         
21         * Makefile.am (install-data-local): changed to use
22         install-data-hook, which runs after install-pkgconfigDATA, so that
23         the pkgconfigdir will have been created and populated first.
24
25 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
26
27         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
28         be the last big GtkTreeView API change.
29
30         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
31         replace with "activate" and "start_editing".  Also, added a
32         "can_activate" and "can_edit" property.
33
34         * gtk/gtktreeviewcolumn.c: modify to use above.
35
36 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
37
38         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
39
40 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
41
42         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
43         icon instead of one with ugly white background.
44
45 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
46
47         * demos/gtk-demo/stock_browser.c (id_to_macro): make
48         the uppercasing work. (#59550)
49
50 2001-09-14  Jakub Steiner <jimmac@ximian.com>
51
52         * gtk/stock-icons/dialog_error.png:
53         * gtk/stock-icons/dialog_question.png: more road signs
54
55 2001-09-13  Jakub Steiner <jimmac@ximian.com>
56
57         * gtk/stock-icons/dialog_question.png:
58         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
59           like a road sign.
60
61 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
62
63         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
64         signals to make them more clear.  Also, change ::range_changed to
65         ::row_changed.
66         * gtk/gtktreemodel.c: Adjust to interface change
67         * gtk/gtktreemodel.h: ditto
68         * gtk/gtktreemodelsort.c: ditto
69         * gtk/gtktreestore.c: ditto
70         * gtk/gtkliststore.c: ditto
71         * gtk/gtktreeview.c: ditto
72         * tests/testtreecolumns.c: ditto
73         * gtk/gtkmarshal.list: Actually remove a marshaller!
74
75 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
76
77         * gtk/gtktextview.c
78         Add support for Ctrl+Up/Down arrow to move cursor to beginning
79         of previous/next paragraph. If within a paragraph cursor moves to
80         beginning of that paragraph.
81
82 2001-09-12  Jakub Steiner <jimmac@ximian.com>
83
84         * gtk/stock-icons/dialog_question.png: replacing the shaky
85           question mark with a sans-serif one.
86         * gtk/stock-icons/stock_top.png, stock_bottom.png,
87      stock_first.png, stock_last.png: using the new style arrows
88         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
89      colors.
90         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
91      color.
92         * gtk/stock-icons/stock_zoom*: anti-aliased
93         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
94      '-' with a '_', removed the wrong files
95
96 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
97  
98         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
99  
100         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
101         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
102         than in gtk-2.0/major.minor.micro/<type>/. This
103         works better for a search path for modules.
104  
105         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
106         gtk_binary_version variable holding major.minor.(micro-binary_age).
107  
108         * modules/input/Makefile.am (moduledir): Fix installation
109         directory to match change in lookup location.
110  
111         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
112         suffixes. Needs to be handled in g_module_build_path().
113
114         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
115         appropriate.
116  
117 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
118
119         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
120         causing RC properties not to work.
121
122 2001-09-11  Jakub Steiner <jimmac@ximian.com>
123
124         * gtk/stock-icons/dialog-error.png: less drastic
125         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
126           "STOP" is international enough.
127         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
128         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
129
130 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
131
132         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
133         (add|remove)_selection_clipboard symmetric. (bug #59836)
134
135         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
136         Avoid SEGV for empty tree. (bug #60243)
137
138 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
139
140         * tests/testgtk.c (create_idle_test): slight fix for
141         g_object_set() not usable for nesting anymore.
142
143         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
144         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
145         properties, supply ::shadow_type properties instead as most
146         other widgets do.
147
148 2001-09-10  Alex Larsson  <alexl@redhat.com>
149
150         * demos/gtk-demo/stock_browser.c:
151         * gdk/gdkcolor.c:
152         * gdk/gdkfont.c:
153         * gdk/gdkcursor.c:
154         * gdk/gdkevents.c:
155         * gdk/gdkrectangle.c:
156         * gtk/gtktypeutils.c:
157         Update to use the new g_boxed_type_register_static API.
158
159 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
160
161         * gtk/gtktreestore.c:
162         Fix looping in gtk_tree_store_init() waiting for zero random int.
163
164 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
165
166         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
167         behaviour which havoc broke. they have to default to 1.0 for
168         expand behaviour.
169
170         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
171
172 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
173
174         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
175         Amend previous change to avoid runtime error in g_param_spec_ref()
176
177 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
178
179         * gtk/gtkrc.c (insert_rc_property): Fix blank line
180         in the wrong place.
181
182 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
183
184         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
185         do a lookup immediately after creating style->property_cache,
186         since bsearch crashes on zero length for Solaris.
187         (Found by Padraig O'Briain.)
188
189 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
190
191         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
192         Really return NULL if not set.
193         (gtk_widget_init): Remove unused varaible.
194         
195 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
196
197         * configure.in:
198         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
199         in cvs.
200
201 2001-09-08  Havoc Pennington  <hp@pobox.com>
202
203         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
204         people might want to use
205
206 2001-09-08  Havoc Pennington  <hp@pobox.com>
207
208         * gtk/gtkalignment.c (gtk_alignment_class_init): default
209         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
210
211         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
212
213         * gtk/gtktextiter.c: fix docs
214         (gtk_text_iter_spew): get rid of this
215
216         * gtk/gtklayout.c: docs
217
218         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
219         to center image and label together, instead of having image on
220         left and label centered, patch/suggestion from Jacob
221
222         * gtk/gtkdialog.c: docs
223
224 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
225
226         * gtk/gtkliststore.c: Write documentation
227         * gtk/gtktreestore.c: Write documentation
228
229 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
230
231         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
232         with GArray and bsearch(), to remove dependency on a still
233         evolving interface that we want to keep private to glib/gobject. 
234
235 2001-09-08  Havoc Pennington  <hp@pobox.com>
236
237         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
238         docs fixes
239
240         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
241
242         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
243
244         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
245
246         * gtk/gtkscrolledwindow.h: docs fixes
247
248         * gtk/gtkimage.c (gtk_image_new): docs fixes
249
250 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
251
252         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
253         false alarm  constness warning with a cast.
254
255         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
256         for the inside-gdk case.
257
258 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
259
260         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
261         remove g_print.
262
263         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
264         change models, #59899
265
266 2001-09-07  Havoc Pennington  <hp@pobox.com>
267
268         * gtk/gtkmain.c: move some docs inline
269
270 2001-09-07  Havoc Pennington  <hp@pobox.com>
271
272         * gtk/gtk.h: tsk tsk, jrb broke the build
273
274 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
275
276         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
277         Removed 'fill' attribute.  It was silly b/c that was a property of
278         the cell renderer, anyway.
279         (gtk_tree_view_column_render): Actually render the packed
280         renderers.
281         * doc/tree-column-sizing.txt: initial devel documentation.
282         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
283         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
284
285         * tests/testtreefocus.c: fix up to reflect above changes.
286         * tests/testtreeview.c: ditto
287         * demos/gtk-demo/stock_browser.c: ditto
288
289 2001-09-07  Alex Larsson  <alexl@redhat.com>
290
291         * gdk/linux-fb/gdkcolor-fb.c:
292         Removed unused function.
293         
294         * gdk/linux-fb/gdkdrawable-fb2.c
295         * gdk/linux-fb/gdkfont-fb.c:
296         Use PangoLanguage functions.
297
298         * gdk/linux-fb/gdkinput.c:
299         * gdk/linux-fb/gdkselection-fb.c:
300         Fix const warnings.
301         
302         * gdk/linux-fb/gdkwindow-fb.c:
303         Fix warning. Implement gdk_window_set_icon_list() and
304         gdk_window_get_frame_extents(). (No icon support yet though.)
305
306         * gtk/gtkwindow.c (gtk_window_get_position):
307         If window->frame is set get the extents of it instead.
308         
309 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
310
311         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
312         Make the default default colormap the GdkRGB colormap,
313         not the system colormap.
314
315         * gtk/gtkinvisible.c (gtk_invisible_init) 
316           gtk/gtkwindow.c (gtk_window_init): Set the current
317         colormap, as returned by _gtk_widget_peek_colormap()
318         on the widget.
319
320         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
321         to GTK+. Make it return %NULL instead of the default
322         colormap if no colormap has explicitely been pushed.
323
324         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
325         colormaps on ancestral widgets before defaulting the
326         the system default colormap.
327
328         * docs/Changes-2.0.txt: explain colormap changes.
329
330 2001-09-07  Havoc Pennington  <hp@redhat.com>
331
332         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
333         #57424
334
335 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
336
337         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
338         make gdk_set_use_xshm a noop. Remove --no-xshm command line
339         option. If we aren't autodetecting properly, we need
340         to fix the problem, or at least make it an environment
341         variable setting, to avoid problems with propagating
342         to embedded children, plugins, etc.
343
344         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
345
346         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
347         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
348         New function to render a pixmap and mask for a particular colormap.
349
350         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
351         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
352         of internal implementation of the same.
353
354 2001-09-07  Havoc Pennington  <hp@redhat.com>
355
356         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
357         debug code that seems to have caused a breakpoint in valid cases
358         
359         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
360         pointer on the first view when adding the second view, fixes
361         crash when closing gtk-demo text test with active selection
362
363         * gtk/gtktextbuffer.c
364         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
365         clipboards in the list of clipboards - probably fixes #59836
366
367 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
368
369       Make gdkx.h the only installed header from gdk/x11.
370       All structures in gdk/x11 are opaque.
371
372         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
373         Don't install gdk{drawable,pixmap,window}-x11.h.
374
375         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
376         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
377         GdkVisualClass into C files.
378
379         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
380
381         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
382         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
383         Add public functions to replace previously exported direct
384         structure access.
385         gdk_x11_colormap_get_{xdisplay,xcolormap} 
386         gdk_x11_cursor_get_{xdisplay,xcursor},
387         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
388         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
389         gdk_x11_gc_get_{xdisplay,ximage}
390         
391         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
392         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
393
394       Fix a number of variables and functions that were exported
395       "accidentally" from GDK.
396
397         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
398         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
399         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
400         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
401         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
402         gdk_event_queue_find_first, gdk_event_queue_remove_link,
403         gdk_event_queue_append, gdk_event_button_generate,
404         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
405
406         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
407            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
408         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
409         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
410         gdk_use_xshm, gdk_input_ignore_core.
411
412         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
413         #defines to namespace functions into the private _gdk_ 
414         namespace.
415
416         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
417         to replace gdk_parent_root exported variable. Adjust and
418         deprecate GDK_ROOT_PARENT().
419
420         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
421         GDK_ROOT_PARENT usage, remove includes of port-specific
422         headers.
423
424         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
425         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
426         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
427
428         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
429         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
430         gdk_wm_delete_window functions, gdk_wm_take_focus, 
431         use gdk_atom_intern() instead.
432
433         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
434           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
435           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
436           gtk/gtkselection.c 
437         Unexport gdk_selection_property, just use 
438         gdk_atom_intern ("GDK_SELECTION").
439
440         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
441         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
442         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
443         GdkVisualprivate, gdk_x11_gc_flush.
444
445       Make a number of public exports of variables into functions
446       to increase encapsulation.
447
448         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
449         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
450         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
451
452         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
453         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
454         gdk_error_warnings.
455
456         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
457           docs/Changes-2.0.txt: 
458         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
459         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
460         Add gdk_x11_get_default_xdisplay().
461
462         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
463         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
464         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
465         Don't export gdk_progclass, move --class command line
466         option and handling to common portion of GDK.
467
468       Miscellaneous fixes:
469
470         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
471         g_return_val_if_fail that should have been g_return_if_fail.
472
473         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
474         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
475
476         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
477         X11 dependency.
478
479         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
480         Remove unused gdk_key_repeat_disable/restore.
481
482         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
483         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
484         Remove unused gdk_null_window_warnings variable.
485
486         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
487         it can be retrieved from the repository; it is too far
488         from functional to be worth having people check out;
489         it would be easier to start from scratch, I suspect.
490
491         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
492
493         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
494         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
495         Fix some accidentally global variables and unused global variables.
496
497         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
498         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
499         Fix some accidentally global variables and unused global variables.
500
501       Add some space for future expansion to multihead.
502
503         * gdk/gdkdrawable.h: Add four reserved function pointers
504         for future expansion of GdkDrawableClass.
505
506         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
507         where we can put a GdkScreen * later.
508
509 2001-09-07  Havoc Pennington  <hp@redhat.com>
510
511         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
512         adjustments after validating destination yrange; fixes #53918
513         (This may cause other issues, but I hope it won't)
514         
515 2001-09-05  Havoc Pennington  <hp@redhat.com>
516
517         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
518         line into start line, update the character counts in parent nodes; 
519         caused a bug when end and start line had different parent nodes.
520
521 2001-08-30  Havoc Pennington  <hp@redhat.com>
522         
523         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
524         assertion that tag is in a table
525
526 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
527
528         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
529         g_strcasecmp on NULL strings. (#59058)
530
531 2001-09-06  Alex Larsson  <alexl@redhat.com>
532
533         * gtk/gtkbin.c:
534         * gtk/gtkfontsel.c:
535         * gtk/gtkspinbutton.c:
536         * gtk/gtktipsquery.c:
537         Use GtkType/GType instead of uint.
538
539 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
540
541         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
542         sort column.
543
544         * gtk/gtktreestore.c (gtk_list_store_init): ditto
545
546         * gtk/gtktreesortable.c: add docs.
547
548 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
549
550         * Version 1.3.7
551
552         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
553         docs for gtk-config
554
555         * modules/input/Makefile.am (install-data-local): Don't
556         run gtk-query-immodules if DESTDIR is set.
557
558         * NEWS: Various additions.
559
560 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
561
562         * NEWS: updates for 1.3.7 release.
563
564 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
565
566         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
567         handle default sort feature
568
569         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
570         new function to handle default sort.
571         (gtk_tree_sortable_has_default_sort_func): check if default sort
572         is set.
573
574         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
575         handle default sort feature
576
577 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
578
579         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
580         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
581         #59731
582
583 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
584
585         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
586         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
587         time, #59727
588
589         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
590         correctly.
591
592 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
593
594         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
595         so that we don't eternally update the keymap after we
596         get a change notification.
597
598         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
599         incorrect cast.
600
601 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
602
603         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
604         it working. It mostly works now, although there're still a few issues
605         to be worked out.
606
607         * tests/testtreesort.c (main): changes to have a better test
608         application for the GtkTreeModelSort.
609
610 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
611
612         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
613         fix for bug #59222.
614
615         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
616         gpointer search_data argument to function definition and
617         prototype, to match GtkTreeViewSearchEqualFunc typedef.
618
619 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
620
621         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
622         per jrb's request.
623
624 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
625
626         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
627
628         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
629
630 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
631
632         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
633         Instead of always mirroring the selection to a single PRIMARY
634         selection, allow it to be mirrored to any number of clipboards.
635
636         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
637         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
638
639         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
640         GtkClipboard argument, and for paste_clipboard, the
641         @override_location argument from @paste_primary.
642
643         * gtk/gtktextview.c: Adapt to above change.
644         
645 2001-08-30  Havoc Pennington  <hp@redhat.com>
646
647         * gtk/gtktextview.c (invalidated_handler): put validate idle at
648         resize - 2 just for flexibility
649
650 2001-08-30  Havoc Pennington  <hp@redhat.com>
651
652         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
653         object from the empty-child-anchor case by drawing a little box.
654         
655         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
656         if the child anchor has no anchored widgets - fixes #59328.
657
658         Also, remove bizarre deletion of preedit string that seems to have
659         gotten in here somehow.
660
661 2001-08-30  Havoc Pennington  <hp@redhat.com>
662
663         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
664         to #58420 from Hidetoshi Tajima and Matthias Clasen
665
666 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
667
668         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
669         change color when the GtkTreeView loses focus.
670
671         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
672         ditto.
673         
674         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
675
676 2001-08-28  Havoc Pennington  <hp@pobox.com>
677
678         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
679
680 2001-08-28  Havoc Pennington  <hp@pobox.com>
681
682         * demos/gtk-demo/main.c (setup_default_icon): add default icon
683
684         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
685         warning fix
686         (gtk_radio_button_new_with_label): warning fix
687
688         * gtk/gtkdnd.c: used some random GtkImage private structs, 
689         update to reflect GtkImage changes
690
691         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
692         whether the hint is supported, just always set the icon. A task
693         list might want to use it even if the WM doesn't, and the WM may
694         change over time. Also, XDeleteProperty() if list == NULL.
695
696         * gtk/gtkwindow.c (gtk_window_set_icon_list)
697         (gtk_window_get_icon_list)
698         (gtk_window_set_icon)
699         (gtk_window_get_icon)
700         (gtk_window_set_default_icon_list)
701         (gtk_window_get_default_icon_list):
702         new functions
703
704         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
705
706         * gtk/gtkimage.c: Implement property support, bug #59408
707
708         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
709         on reparent-without-removing-first a bit more helpful.
710         Let's just destroy this FAQ.
711
712 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
713
714         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
715         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
716
717 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
718
719         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
720         of use_text_format to the end of the function. (#56447)
721
722 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
723
724         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
725         only in response to an area_prepared signal.
726
727 2001-08-28  Alex Larsson  <alexl@redhat.com>
728
729         * gtk/gtkwidget.c (gtk_widget_class_init):
730         Make unrealize GTK_RUN_LAST.
731
732 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
733
734         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
735         with_label and with_mnemonic should create radio buttons, not
736         check buttons
737
738 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
739
740         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
741         * tests/treestoretest.c (make_window): ditto
742         * demos/gtk-demo/main.c (create_tree): ditto
743         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
744
745 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
746
747         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
748         GTK selection types rather than GtkTreeSelectionMode.
749
750         * docs/Changes-2.0: Add comment about selection change.
751
752 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
753
754         * gtk/gtkenums.h (GtkSelectionMode): deprecate
755         GTK_SELECTION_EXTENDED.
756
757         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
758         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
759
760         * gtk/gtkctree.c: ditto
761
762         * gtk/gtklist.c: ditto
763
764         * gtk/gtktree.c: ditto
765
766 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
767
768         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
769         of typos in compat macros. (#59624, Skip Montaro)
770
771 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
772
773         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
774         macro.
775
776          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
777  
778         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
779         interface to be a standard setter from gtk_menu_item_right_justify.
780         (gtk_menu_item_get_right_justified): a getter to go with the setter
781
782         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
783         gtk_menu_item_right_justify.
784
785         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
786         gtk_menu_item_set_right_justified.
787  
788 2001-08-27  Jens Finke <jens@gnome.org>
789
790         * gtk+.spec.in: Updated to match gpp requirements, reworked the
791         files section to make it work with 1.3.x releases.
792
793 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
794
795         * gtk/gtkbutton.[ch]:
796         Add properties for labels, mnemonics and stock items.
797         Added C accessor functions for the properties.
798         Removed deprecated button->child.
799
800         * gtk/gtkradiobutton.c:
801         * gtk/gtktogglebutton.c:
802         Update to use the functions in GtkButton.
803
804         * gtk/gtkcheckbutton.c:
805         Update to use the functions in GtkButton.
806         Changed size allocation of child. Now only gets as much
807         space as it requests.
808
809         * gtk/gtkclist.c:
810         Don't use GtkButton->child
811
812         * gtk/gtklabel.c:
813         Fixed typo in docs
814         
815 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
816
817         * tests/testgtk.c:
818         * tests/Makefile.am:
819         Ressurect the properties test.
820         I don't care if it is inferior, I just want to test my property code.
821
822 2001-08-25  Chema Celorio  <chema@celorio.com>
823
824         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
825         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
826         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
827
828 2001-08-24  Havoc Pennington  <hp@pobox.com>
829
830         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
831         these are already in gtkmenu.h, and the copies
832         here were broken.
833
834         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
835
836         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
837         special-case bitmaps to allow no colormap
838         (bitmap1): implement no-colormap bitmap-getting
839         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
840         alpha
841         (rgb8): indentation
842         (rgb1a, rgb1): change the way we read the data out of the image, 
843         old way didn't seem to work quite right.
844
845         I'm pretty sure a lot of the rgbconvert code is still broken.
846         
847         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
848         above position constraint (I really intended to do this before,
849         don't know what's up with that)
850         (gtk_XParseGeometry): shut up gcc
851
852         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
853         and "0" should have been. remove the attempted 4-bytes-at-once
854         optimization, it was totally broken.
855
856 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
857
858         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
859         on push to buttons (based on patch from Soeren Sandmann, #54720)
860
861           - Add child_displacement_x/y style properties to control how far the
862             child moves when the button is depressed.
863
864           - Add non-exported function _gtk_button_set_depressed to clean
865             up the handling of the in/out shadow and separate it frmo
866             widget->state.
867
868           - Lots of code cleanup and simplification of state handling
869             for GtkButton/GtkToggleButton.
870  
871         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
872         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
873
874 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
875
876         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
877         and make gtk_image_new() take no arguments. The compiler will
878         catch it, and it is vastly more useful than having
879         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
880
881         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
882         to add tearoff-title property (#51319, Lee Mallabone)
883
884 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
885
886         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
887         gtk_menu_item_configure(). (#58925)
888
889 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
890
891         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
892         "use_align" to give people the option to just make a cell visible.
893
894         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
895         we were scrolling past the end of the tree.
896
897         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
898         rename gtk_tree_view_column_pack_start_cell_renderer to
899         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
900
901 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
902
903         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
904         a stray g_object_ref() left over from gtk_object_ref/sink.
905         (Pointed out by Josh Pritikin.)
906
907 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
908
909         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
910         to gtk_container_get_children. Added deprecated compatibility
911         macro. (Suggested by Vitaly Tishkov, #59051)
912
913         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
914         calls.
915
916 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
917
918         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
919         gtk_menu_bar_append/prepend/insert, forgot to do this
920         when we deprecated gtk_menu_append/prepend/insert.
921
922         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
923         compat macros.
924
925         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
926         renamed by compat macro.
927
928         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
929         gtk_font_selection_dialog_get_font(). (Suggested by
930         Vitaly Tishkov, #59383)
931
932 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
933
934         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
935         Rename from gtk_text_tag_table_size(). (#59366)
936
937 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
938
939         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
940         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
941         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
942         (#59173).
943
944 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
945
946         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
947         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
948         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
949
950 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
951
952         [ Patch from Sebastian Wilhelmi, 52790 ]
953
954         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
955
956         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
957         Move compatibility macros from g[dt]kcompat.h to within 
958         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
959
960         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
961
962         * demos/Makefile.am demos/gtk-demo/Makefile.am 
963           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
964           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
965
966         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
967                  testpixbuf.c}: Fix usages of deprecated functions.
968
969 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
970
971         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
972         when changing models.
973
974 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
975
976         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
977         We check the current event for modifiers rather than try to trap
978         all presses.
979
980 2001-08-22  Anders Carlsson  <andersca@gnu.org>
981
982         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
983         It's LIST_STORE, not LISTSTORE.
984
985 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
986
987         * gtk/gtk.h: Remove commented out gtkpacker reference.
988
989 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
990
991         * configure.in (all_loaders): Add tga loader, 
992         patch by Nicola Girardi. (#56067)
993
994 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
995
996         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
997         a little.  More needs to be done tomorrow.
998
999 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
1000
1001         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
1002
1003 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
1004
1005         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
1006         reported by Kristian Rietveld <kristian@planet.nl> to handle row
1007         == NULL.
1008         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
1009         <kristian@planet.nl> to change destroy order.
1010
1011 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
1012
1013         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
1014         correct marshaller.
1015
1016 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
1017
1018         * gtk/gtkliststore.c: Fix up warnings, #58928.
1019
1020         * gtk/gtktreeselection.h: Change signal prototype, #58647
1021
1022         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
1023         #59221.
1024
1025         * gtk/gtkstyle.c: Actually prelight arrow, #50981
1026         
1027 2001-08-18  Hans Breuer  <hans@breuer.org>
1028
1029         * gdk/gdk.def : updated externals
1030
1031         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
1032         is required to get (at least) visible in entry fields. Some selections
1033         are really handled now - even on win32 - but copying via middle
1034         mouse button into a different app needs to wait ... 
1035
1036         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
1037         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
1038
1039         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
1040         handling. I'm not sure if it is better now, but at least not worse
1041
1042         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
1043         with SetWindowPos () which allows more fine-tuning backing-store wise
1044
1045         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
1046         Also changed move/resize to be more like the X version.
1047
1048         * gtk/gtk.def : updated externals
1049
1050 2001-08-19  Sven Neumann  <sven@gimp.org>
1051
1052         * gtk/gtktooltips.c
1053         * tests/testtreesort.c
1054         * tests/treestoretest.c: inserted some casts to get rid of compiler
1055         warnings.
1056
1057 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>>
1058
1059         * gtk/gtktreeviewcolumn.c
1060         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
1061
1062         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
1063         (_gtk_tree_view_find_node): If *node is NULL,
1064         *tree should be NULL too.
1065
1066         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
1067         column/renderers.
1068         * tests/testtreecolumns.c: ditto
1069         * tests/testtreefocus.c: ditto
1070         * tests/testtreesort.c: ditto
1071         * tests/testtreeview.c: ditto
1072         * tests/treestoretest.c: ditto
1073
1074 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
1075
1076         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
1077         signals; is_expander/is_expanded.
1078
1079         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
1080         pixbufs.
1081
1082         * gtk/gtktreeview.c: set above properties.
1083
1084 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
1085
1086         * gtk/gtkwidget.h: Really remove set_default_style().
1087
1088         * docs/Changes-2.0.txt: added a note about
1089         gtk_widget_push/pop/set_default_style.
1090
1091 2001-08-18  Havoc Pennington  <hp@pobox.com>
1092
1093         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
1094         hints_changed in addition to the other cases.
1095         (gtk_window_move_resize): include last position from configure
1096         notify in debug spew
1097
1098 2001-08-18  James Henstridge  <james@daa.com.au>
1099
1100         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
1101         second argument to the weak ref notify, cleaning up some uglyness.
1102         (gtk_accel_group_attach): remove and add the weak notifier when
1103         changing the accel groups slist.
1104         (gtk_accel_group_detach): same here.
1105
1106 2001-08-17  Darin Adler  <darin@bentspoon.com>
1107
1108         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
1109         missing parameters to utf8 functions to make it compile.
1110
1111 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
1112
1113         * gtk/gtktreeprivate.h:
1114         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
1115         (gtk_tree_view_init), (gtk_tree_view_set_property),
1116         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
1117         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
1118         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
1119         (gtk_tree_view_set_destroy_count_func),
1120         (gtk_tree_view_set_enable_search),
1121         (gtk_tree_view_get_enable_search),
1122         (gtk_tree_view_get_search_column),
1123         (gtk_tree_view_set_search_column),
1124         (gtk_tree_view_get_search_equal_func),
1125         (gtk_tree_view_set_search_equal_func),
1126         (gtk_tree_view_search_dialog_destroy),
1127         (gtk_tree_view_search_position_func),
1128         (gtk_tree_view_interactive_search),
1129         (gtk_tree_view_search_delete_event),
1130         (gtk_tree_view_search_button_press_event),
1131         (gtk_tree_view_search_key_press_event),
1132         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
1133         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
1134         * gtk/gtktreeview.h:
1135         Add heavily modified patch from Kristian Rietveld to handle
1136         interactive searching.
1137
1138 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
1139
1140         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
1141         string parameter.
1142
1143         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
1144         GtkMenuShell::selection_done, now that we have it, instead of 
1145         ::deactivate so we're not tearing the menu apart and notify
1146         the user prematurely.
1147
1148 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
1149
1150         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
1151         window, clear window->need_default_position to avoid infinite loops.
1152         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
1153
1154 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
1155
1156         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
1157         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
1158         (gtk_tree_view_set_property): don't cast possible NULL objects.
1159         (gtk_tree_view_destroy): reset the model to NULL.
1160
1161         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
1162         parent_class handler.
1163
1164 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1165
1166         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
1167
1168 >>>>>>> 1.2276
1169 2001-08-17  Anders Carlsson  <andersca@gnu.org>
1170
1171         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
1172         point numbers so that the result will be floating point.
1173
1174 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1175
1176         * tests/testgtk.c (create_handle_box): 
1177         (create_toolbar): Replace gtk_window_set_policy calls by
1178         gtk_window_set_resizable.
1179
1180 2001-08-16  Jakub Steiner <jimmac@ximian.com>
1181
1182         * gtk/stock-icons/dialog_info.png: new style bulb
1183         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
1184         * gtk/stock-icons/dialog_warning.png: need a hand?
1185         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
1186           the aa border gets chopped off ok
1187         * gtk/stock-icons/stock_colorselector.png: using the new hand
1188         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
1189           this one is for, but the old icon was butt ugly.
1190         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
1191         * gtk/stock-icons/stock*_insert_object.png: "
1192         * gtk/stock-icons/stock_index.png: using new hand icon
1193         * gtk/stock-icons/stock*_new.png: the document template being used 
1194           elsewhere too
1195         * gtk/stock-icons/stock*_print*.png: new print and print preview 
1196           icons (panel/menu)  
1197         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
1198           icons based on Tuomas' floppy image.
1199         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
1200         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
1201         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
1202         * gtk/stock-icons/stock*_undelete.png: "
1203         * gtk/stock-icons/stock_preferences.png: I have a version with a 
1204           document base if the sliders are no good.
1205         * gtk/stock-icons/stock_properties.png: properties 
1206         
1207
1208         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
1209           (tigert@ximian.com) clipboard icons
1210         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
1211         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
1212         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
1213           little bigger IMHO
1214
1215 2001-08-16  Sven Neumann  <sven@gimp.org>
1216
1217         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
1218
1219 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
1220
1221         * gtk/gtkcellrenderertext.c:
1222         Avoid warning when specifying NULL for "attributes" property
1223
1224 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1225
1226         * docs/debugging.txt: Add a warning about --enable-debug=no,
1227         some editorial changes.
1228
1229 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1230
1231         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
1232         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
1233         debugging info, remove unused debug flags. (#58330)
1234
1235 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
1236
1237         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
1238         (gtk_tree_selection_select_all): Remove strict checking for rows.
1239
1240 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1241         
1242         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
1243         Don't remove the tooltip window when the tip text changes. (#15891)
1244
1245 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
1246
1247         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
1248         $(srcdir).
1249
1250 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
1251
1252         * Makefile.am (EXTRA_DIST): Fix problem with trying to
1253         dist files from intl/, which is no longer there.
1254
1255 2001-08-11  Hans Breuer  <hans@breuer.org>
1256
1257         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
1258           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
1259           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
1260           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
1261           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
1262           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
1263
1264         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
1265           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
1266         GDK_TYPE_EVENT signals
1267
1268         * gtk/gtkalignment.c : removed 'direct allocation bug',
1269         which Tim discovered while reading the patch
1270
1271 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
1272
1273         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
1274         compat macros for push/pop/set_visual that were supposed
1275         to be added a long time ago, but got dropped. 
1276
1277 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
1278
1279         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
1280         property notifies.
1281
1282 2001-08-07  Havoc Pennington  <hp@pobox.com>
1283
1284         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
1285
1286         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
1287         some fixage is needed here, but nothing simple. Owen understands
1288         it. ;-)
1289
1290         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
1291         sizing and positioning.  Also, fix bug in compute_geometry_hints
1292         (width/height confusion for setting min size). 
1293         (gtk_window_move): new function
1294         (gtk_window_resize): new function
1295         (gtk_window_get_size): new function
1296         (gtk_window_get_position): new function
1297         (gtk_window_parse_geometry): new function
1298         
1299         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
1300         (gtk_widget_get_size_request): new function
1301         (gtk_widget_get_usize): delete, that was a short-lived function
1302         ;-)
1303         (gtk_widget_set_usize): deprecate
1304         (gtk_widget_set_uposition): deprecate, make it a trivial 
1305         gtk_window_move() wrapper
1306         (gtk_widget_class_init): remove x/y/width/height properties,
1307         add width_request height_request
1308         
1309         * demos/*: update to avoid deprecated functions
1310         
1311         * gtk/gtklayout.c: add x/y child properties
1312
1313         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
1314         uses of "gint16"
1315
1316         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
1317         sizing test
1318
1319         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
1320         configure events on toplevel windows are always in root window
1321         coordinates, following ICCCM spec that all synthetic events 
1322         are in root window coords already, while real events are 
1323         in parent window coords. Previously the code assumed that 
1324         coords of 0,0 were parent window coords, which was 
1325         really broken.
1326   
1327         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
1328         warning
1329  
1330         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
1331         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
1332         hints in gtk_window_parse_geometry()
1333  
1334         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
1335         new USER_POS USER_SIZE hints    
1336
1337 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1338
1339         * tests/prop-editor.c (properties_from_type): Use 
1340         g_object_class_list_properties to get the param specs 
1341         for a given type. (#58609)
1342
1343 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1344
1345         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
1346         free the text_aa parts. (#57549)
1347
1348 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1349
1350         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
1351         not the foreground color. (#57621)
1352
1353 2001-08-09  Alexander Larsson <alexl@redhat.com>
1354
1355         * gdk/win32/gdkfont-win32.c:
1356         Update to the new pango win32 api.
1357
1358 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
1359
1360         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
1361         COMPOUND_TEXT instead of TEXT
1362         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
1363         interpret the return value of g_string_to_compound_text()
1364         (#55152)
1365
1366 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1367
1368         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
1369         fail if iter is NULL. (#58347)
1370
1371 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1372
1373         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
1374         some off-by-one issues, fixing selection of line-ends. (#50323)
1375
1376 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
1377
1378         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
1379         functions in order to make mouse operation work again in the
1380         color wheel. (#58604)
1381
1382 2001-08-07  James Henstridge  <james@daa.com.au>
1383
1384         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
1385         the accelerator when the accel object is changed.  Fixes bug
1386         #58628.
1387
1388 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
1389
1390         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
1391         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
1392         (gnome bugzilla #58202)
1393
1394 2001-08-06  Havoc Pennington  <hp@pobox.com>
1395  
1396         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
1397         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
1398         it was expecting a GdkWindow, not a GdkWindowImplX11.
1399  
1400         Also, we were getting the window rect in screen coords 
1401         and the screen rect in window coords then intersecting 
1402         them; instead, get window rect in window coords.
1403  
1404         Finally, there were codepaths that resulted in a stuck server grab
1405         (when the window was fully onscreen, or on gdk_image_new()
1406         failure); make the server ungrab thing a bit more
1407         robust/consistent.
1408
1409 2001-08-06  Sven Neumann  <sven@gimp.org>
1410
1411         * gdk/gdkpango.c (gdk_pango_context_destroy): 
1412         check if info->colormap != NULL before unref'ing it. It might have
1413         been set to NULL using gdk_pango_context_set_colormap().
1414
1415 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
1416
1417         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
1418         Fix conversion from float to int so that we don't get
1419         skew in the int => float => int roundtrip. 
1420         (#58120, reported by Vitaly Tishkov). Also fix problem
1421         where if no alpha was set, the returned alpha
1422         from (say) set_current_alpha() was returned as 1, not 65535.
1423
1424 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
1425
1426         * gtk/gtklist.c (gtk_list_clear_items): Fix
1427         problem with selecting a new focus child.
1428
1429         * gtk/gtklist.c (gtk_list_clear_items): Clear 
1430         list->undo/list_focus_child after unparenting
1431         child, since unparenting the child can result
1432         in list->last_focus_child being set. (#58024)
1433
1434         * Makefile.am (SUBDIRS): Add target specific pc
1435         files to DISTCLEANFILES.
1436
1437         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
1438         (58327, Matthias Clasen)
1439
1440 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
1441
1442         * tests/testgtk.c: Patch from Hans (with various modifications),
1443         to add the ability to use testgtk as a rough-and-ready
1444         benchmark. Try, 'testgtk --bench all:5' (if you want decent
1445         numbers, run without a window manager)
1446
1447 2001-08-04 Alexander Larsson <alexl@redhat.com>
1448
1449         * gdk/win32/gdkinput.c:
1450         Add #ifdef HAVE_WINTAB around wintab.h include.
1451
1452         * gtk/gtk.def:
1453         Removed marshals that have been moved to glib.
1454         Commented out plug and socket. They didn't compile for me 
1455         on win32.
1456
1457 2001-08-04  Hans Breuer  <hans@breuer.org>
1458
1459         * gtk/stocks-icons/makefile.msc : new file
1460         * gtk/makefile.msc.in : use it
1461
1462         * gtk/gtkstyle.c : not all platforms do provide M_PI and
1463         friends, but luckily there is G_PI
1464
1465         * gtk/gtk.def : updated
1466
1467         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
1468         windows WS_POPUP, but only those without a parent. This fixes the 
1469         mis-alignment between the selectable (temp, input only) window and 
1470         the window text of GtkLabel.
1471
1472         (gdk_window_show) : respect private->state when actually showing
1473         the window.
1474
1475         (gdk_window_set_transient_for) : Implementation from Wolfgang 
1476         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
1477         error handling. Should fix #50586.
1478
1479         * gdk/win32/gdkevents-win32.c : beautify log output
1480
1481 2001-08-04  Michael Natterer  <mitch@gimp.org>
1482
1483         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
1484         Need to show the image after adding it to the GtkImageMenuItem.
1485         This used to work without in testgtk because of the
1486         gtk_widget_show_all() at the end of the function.
1487         (Closes #54978).
1488
1489 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
1490
1491         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
1492         (gtk_notebook_set_child_property): fix finding of child's page,
1493         since we have to validly deal with labels and menus here as well.
1494         (gtk_notebook_get_child_property): fix warning.
1495         (gtk_notebook_class_init): property tab_pack is of type
1496         GTK_TYPE_PACK_TYPE (enum) not boolean.
1497         (gtk_notebook_find_child): don't always warn, we might be looking
1498         for a label or menu child.
1499         (gtk_notebook_map): fix mapping of panel.
1500
1501         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
1502         widget's mapped state, regardless of the value being set equals
1503         old settings, since things like REALIZED(parent) or MAPPED(parent)
1504         may have changed since the old value was set. make it an error to
1505         invoke this function on a toplevel widget.
1506
1507 2001-07-31  Darin Adler  <darin@bentspoon.com>
1508
1509         * gdk/gdkprivate.h:
1510         * gdk/x11/gdkx.h:
1511         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
1512
1513         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
1514         GTK_OBJECT.
1515
1516 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
1517
1518         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
1519         scoping error pointed out by matthiasc@poet.de.
1520
1521 2001-07-31  Sven Neumann  <sven@gimp.org>
1522
1523         * demos/gtk-demo/appwindow.c
1524         * demos/gtk-demo/item_factory.c
1525         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
1526
1527 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
1528
1529         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
1530         argument order for g_signal_has_handler_pending.
1531
1532 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
1533
1534         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
1535         instead of long deprecated g_scanner_stat_mode().
1536
1537 2001-07-29  Hans Breuer  <hans@breuer.org>
1538
1539         * gdk/makefile.msc : build in the backend dir after
1540         auto-generating files
1541
1542         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
1543         with code from win32-production-branch.
1544
1545         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
1546         before calling DestroyWindow, which indirectly calls 
1547         gdk_window_destroy_notify ()
1548
1549         (performance patch merged from win32-production-branch)
1550         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
1551         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
1552         R2_COPYPEN rop). It is claimed to be much faster.
1553
1554 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
1555
1556         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
1557         add an "attributes" property to the text renderer for ATK.
1558
1559 2001-07-26  Alex Larsson  <alexl@redhat.com>
1560
1561         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
1562         Initialize image->bits_per_pixel from the drawable, not from
1563         the root window.
1564
1565         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
1566         Fix cast. argument is an IMPL already.
1567
1568 2001-07-15  James Henstridge  <james@daa.com.au>
1569
1570         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
1571         (gtk_window_remove_accel_group): same here.
1572         (gtk_window_key_press_event): same here.
1573
1574         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
1575         (gtk_widget_remove_accelerator): same here.
1576         (gtk_widget_remove_accelerators): same here.
1577
1578         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
1579
1580         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
1581         instead of GtkObject.
1582
1583         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
1584         now takes GObjects.
1585
1586         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
1587         pass a GObject to gtk_accel_group_entries_from_object.
1588         (gtk_item_factory_create_item): s/accel_widget/accel_object/
1589
1590         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
1591
1592         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
1593
1594         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
1595         GObjects can have accelerators set now.  Add compatibility
1596         defines.
1597
1598         * gtk/gtkmarshal.list: add missing marshallers.
1599
1600         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
1601         accelerators on plain GObjects.  gtk_accel_group_object_destroy
1602         has been converted into a weak reference, and
1603         gtk_accel_group_delete_entries is now a destroy notify for that
1604         piece of data.
1605
1606 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
1607
1608         * gdk/gdkdraw.c: Added a check on the colormap depth to
1609         gdk_drawable_set_colormap()
1610         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
1611         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
1612         for pixmaps without visuals (more specifically, bitmaps)
1613         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
1614         doesn't set a colormap with the wrong depth
1615
1616
1617 2001-07-22  Anders Carlsson  <andersca@gnome.org>
1618
1619         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
1620         expander_height and expander_width properties with a single
1621         property, expander_size.
1622         (gtk_tree_view_init): Set the tab_offset to expander_size
1623         plus some padding.
1624         (gtk_tree_view_unrealize): Remove the expand/collapse
1625         timeout if it exists.
1626         (coords_are_over_arrow): Fix a small bug.
1627         (gtk_tree_view_motion_draw_column_motion_arrow): Use
1628         expander_size.
1629         (gtk_tree_view_draw_focus): Use "treeview" instead of
1630         "add-mode" as detail when drawing the focus.
1631         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
1632         instead of "add-mode" as detail when drawing the focus.
1633         (gtk_tree_view_deleted): If we have a node currently being
1634         expanded or collapsed, remove the timeout and set the node 
1635         to NULL.
1636         (gtk_tree_view_queue_draw_arrow): New function that just
1637         redraws the arrow of a node.
1638         (gtk_tree_view_draw_arrow): Use expander_size instead of
1639         expander_width/expander_height, also pass a different
1640         expander_style to gtk_paint_expander depending on the 
1641         state of the node being drawn.
1642         (expand_collapse_timeout): New function for expanding 
1643         or collapsing a node depending on the previous state.
1644         (gtk_tree_view_real_expand_row): Add timeout and set 
1645         correct state for node being expanded.
1646         (gtk_tree_view_real_collapse_row): Add timeout and set
1647         correct state for node being collapsed.
1648
1649         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
1650         information about the node currently being expanded or
1651         collapsed, and also a timeout id.
1652
1653         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
1654         with expander_style for draw_expander.
1655
1656         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
1657         expander_style.
1658         (create_expander_affine): New function for creating an 
1659         expander affine.
1660         (apply_affine_on_point): New function for applying an 
1661         affine to a point.
1662         (gtk_default_draw_expander): Modified to take expander_style
1663         instead of is_open, and to draw the rectangle rotated differently
1664         depending on the expander style.
1665         (gtk_paint_expander): Replace is_open with expander_style.
1666
1667         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
1668
1669         * gtk/gtkenums.h: Add expander style enum.
1670
1671 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
1672
1673         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
1674         value from gtk_tree_model_get_iter, the model might be empty.
1675
1676 2001-07-20  Hans Breuer  <hans@breuer.org>
1677
1678         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
1679         gdk/gdkinput.c like the other backends
1680
1681         * gdk/win32/gdkinput-win32.h :
1682         * gdk/win32/gdkinput.c :
1683         * gdk/win32/gdkvisual-win32.c :
1684         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
1685         GdkVisual GObjectification. UNTESTED for pen-devices because
1686         I simply have none.
1687
1688         * gdk/gdk.def :
1689         * gtk/gtk.def : updated externals
1690
1691         * gtk/gtkiconfactory.c :
1692         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
1693         before passing &error to functions to avoid strange crashes
1694         
1695         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
1696
1697         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
1698
1699         * gtk/makefile.msc.in : updated
1700
1701 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
1702
1703         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
1704         Add property support. (#51858)
1705
1706 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
1707
1708         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
1709         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
1710         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
1711
1712 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
1713
1714         * gtk/gtkcolorsel.c: Add propery support (roughly
1715         based on patch from Lee Mallabone, #51014)
1716
1717         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
1718         deprecated, since we already g_warning() on it.
1719
1720 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
1721
1722         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
1723         typo that sometimes caused selection not to work properly.
1724
1725         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
1726         entry when tabbing in. (#57743)
1727         
1728         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
1729         user drags up above or down below the entry, move
1730         to the end or the beginning of the entry. (Suggestion
1731         from Jay Cox, #50940)
1732
1733         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
1734         a current selection, then when moving by chars or
1735         words, move to the end of the selection rather than
1736         from entry->current_pos. (Suggestion from Jay Cox,
1737         #50942)
1738         
1739 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
1740
1741         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
1742         set window->decorated. (Patch from Hidetoshi Tajima,
1743         #55846)
1744
1745 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
1746
1747         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
1748         the widget/child realization/mapping invariants.
1749
1750         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
1751         gtk_widget_[get/set]_child_visible() to control
1752         whether visible children of a mapped window are
1753         mapped.
1754
1755         * docs/widget_system.txt: Updated for changes in
1756         container contract, and addition of GTK_CHILD_VISIBLE.
1757
1758         * gtk/gtkcontainer.c: Add generic map()/unmap()
1759         functions that work for almost all containers.
1760
1761         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
1762         gtk_widget_set_child_visible() where necessary.
1763
1764         * gtk/*.c: Remove excess map(), unmap(), and 
1765         realization/mapping invariant enforcing code
1766         from many containers.
1767
1768 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
1769
1770         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
1771         Get the foreground color from 'text', nor 'fg'. (#57568)
1772
1773 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
1774
1775         * gtk/*.c: Patch from Matthias Clasen to remove remove
1776         all instances of g_return_if_fail (foo != NULL); that are
1777         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
1778         since the second check catches the NULL anyways.
1779
1780 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
1781
1782         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
1783         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
1784         GDK_THREADS_ENTER()/LEAVE() pairs.
1785
1786         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
1787         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
1788         pairs. (Problem found by M. Meeks)
1789
1790 2001-07-18  Darin Adler  <darin@bentspoon.com>
1791
1792         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
1793         that we don't get a g_warning message every time we register a new
1794         icon size.
1795
1796         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
1797         using pixel variable of the correct type.
1798         
1799 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
1800
1801         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
1802         so that using X functions on a GdkWindow is possible, if
1803         a little hairy.
1804
1805         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
1806         and ts_origin of a GC, so that external parties can offset/restore
1807         a GC, when using gdk_window_get_internal_paint_info().
1808
1809 2001-07-17  Darin Adler  <darin@bentspoon.com>
1810
1811         * .cvsignore: Ignore the sgml directory made by gtkdoc.
1812         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
1813         instead of the deprecated gtk_window_set_policy.
1814         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
1815         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
1816         function to get rid of warning and some code too.
1817         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
1818         missing const.
1819         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
1820         unused local.
1821         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
1822         const.
1823         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
1824         (gdk_utf8_to_compound_text): Add missing const.
1825         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
1826         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
1827         cast and get rid of an unnecessary one.
1828         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
1829         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
1830         local.
1831         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
1832         Remove unused local.
1833         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
1834         missing const.
1835         * tests/testsocket.c: (add_child): Add cast so the printf format
1836         doesn't make us implicitly depend on what integer type
1837         gtk_socket_get_id returns.
1838         * tests/testtextbuffer.c: Add missing const.
1839         * tests/testtreefocus.c: (main): Remove unused local.
1840         * tests/treestoretest.c: (iter_remove): Remove unused local.
1841         (uppercase_value): Remove unused function.
1842         (make_window): Add statement to quiet the compiler's uninitialized
1843         variable warning.
1844
1845 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
1846
1847         * gtk/gtkrange.c:
1848         (second_timeout): 
1849         (initial_timeout): 
1850         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
1851         (gtk_range_calc_layout): compute the new layout based on an
1852         adjustment->value being passed in as argument.
1853         (gtk_range_button_press): for button2 slider warps, first recalc
1854         the layout, then adjust the value. also, use update_slider_position()
1855         for adjusting the value, so we keep pixel quantisation at which we
1856         usually operate (upon motion or button releases). the reason for this
1857         is that, we can't change the adjustment upon button2 presses to a non
1858         quantised value and upon button2 release re-quantise the value since
1859         that'd alter the value even if we didn't get any motion events (causing
1860         unexpected scroll area warps upon release and/or slider pixel-jitter).
1861         (gtk_range_motion_notify): update the slider position from queried
1862         coordinates, not event coordinates.
1863
1864 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
1865
1866         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
1867         the default gc values are: width=0, CapBut, JoinMiter.
1868
1869 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
1870
1871         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
1872         into account the xpad and ypad when calculating the width and the
1873         height of the pixbuf cel.
1874
1875 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
1876
1877         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
1878         Rename to gtk_radio_menu_item_get_group(), add deprecated
1879         alias. (#57044)
1880
1881         * gtk/gtkfilesel.c: Indentation fix.
1882
1883 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
1884
1885         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
1886         Hasselmann to fix warnings in compat macros. 
1887         (#56773)
1888
1889         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
1890         stupid wrong cast added in last patch.
1891
1892 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
1893
1894         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
1895         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
1896
1897 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
1898
1899         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
1900         missing cast.
1901
1902         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
1903         NULL/FALSE return value confusion.
1904
1905         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
1906         problem when scrollbar completely fills range. (Patch
1907         from  Matthias Clasen, #57047)
1908
1909 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
1910
1911         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
1912         clean up when handling events for move-resize emulation.
1913         (Problem traced down by Matthias Clasen, #57271)
1914
1915 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
1916
1917         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
1918           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
1919           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
1920           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
1921           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
1922           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
1923           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
1924         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
1925
1926 2001-07-09  Peter Williams  <peterw@ximian.com>
1927
1928         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
1929         for when srcdir != builddir
1930
1931 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1932
1933         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
1934         gtk_tree_model_get_iter_root.
1935
1936         * gtk/gtkliststore.c: Add a bunch of g_return statements.
1937         (gtk_list_store_iter_n_children): Fix up.
1938
1939         * gtk/gtktreestore.c: Add a bunch of g_return statements.
1940
1941 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
1942
1943         * gtk/gtkwidget.c (gtk_widget_class_init):
1944         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
1945         restore some workingness.
1946
1947         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
1948         handle of window type for input-only windows.
1949
1950 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
1951
1952         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
1953         Patch from Gregory Merchan to add 
1954         gtk_button_box_set_secondary(), which separates
1955         the child into a separate group from the normal
1956         buttons. (#56331)
1957
1958         * gtk/gtkdialog.c: Make help buttons secondary by
1959         default.
1960
1961         * gtk/gtkbbox.c: Added a child property "secondary".
1962
1963         * gtk/testgtk.c: Turn on the help button for the 
1964         color selector to check that it properly appears
1965         as secondary.
1966
1967 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
1968  
1969         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
1970         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
1971         Add gdk_set_pointer_hooks() to allow pointer-querying to
1972         be hooked by an event record/playback system like GERD.
1973         (#56914)
1974         
1975 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
1976
1977         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
1978         in the right value of initial_emission to
1979         gtk_widget_set_style_internal (#57091)
1980
1981 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
1982
1983         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
1984         Make compile.
1985
1986         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
1987         with calling gtk_widget_set_style_internal() with
1988         the old style, not the new style. (#56989)
1989
1990 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
1991
1992         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
1993           gtk/gtkwidget.c:
1994         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
1995         not GTK_WIDGET_GET_ANCESTOR ... see 
1996         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
1997         Indicate the best practice in the docs for gtk_widget_get_toplevel().
1998
1999         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
2000         so GtkPlug can give the correct signals when transforming
2001         from a child to a toplevel.
2002         
2003         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
2004         reparentation correctly.
2005
2006         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
2007         Propagate the previous_toplevel argument down properly.
2008
2009         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
2010         of wrong atr list.
2011
2012         * gtk/gtkplug.[ch]: Add an "embedded" signal.
2013
2014         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
2015         signals.
2016
2017         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
2018         functions gtk_plug_get_id(), gtk_socket_get_id(),
2019         to avoid the user having to worry about realization,
2020         and gdkx.h.
2021
2022         * tests/testsocket.c: Extend to try out the new signals
2023         and gtk_plug/socket_get_id().
2024
2025         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
2026         setting of underline attributes.
2027
2028         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
2029         DestroyNotify events from SubstructureNotifyMask
2030
2031         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
2032         Switch GDK_WINDOW_TYPE (window) as needed.
2033
2034         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
2035         allow creation of toplevel windows as children of
2036         foreign windows.
2037
2038         * gtk/gtkplug.c: Remove hacks involving changing private
2039         fields of GdkWindow.
2040
2041         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
2042         exactly the same signals and notification
2043         be emitted for local embedding as for inter-process
2044         embedding.
2045
2046 2001-07-04  James Henstridge  <james@daa.com.au>
2047
2048         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
2049
2050 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
2051
2052         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
2053         XEMBED embedding add a _XEMBED_INFO property to the
2054         client with version number and a "mapped" flags.
2055         Use the mapped flag instead of the racy MapRequestEvent
2056
2057         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
2058         code to reliably set things (when the child is a passive
2059         embedder participating in the XEMBED protocol) intead
2060         of just being a hack for embedding non-participating
2061         programs. Fix various bugs and race conditions.
2062         
2063         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
2064         work by simply making the GtkSocket the gtk parent
2065         of the GtkPlug. Set a flag in this case and make
2066         the GtkPlug work like a normal container by overriding
2067         methods such as check_resize and "chaining past" GtkWindow
2068         to GtkBin.
2069
2070         * gtk/gtkentry.c (gtk_entry_real_activate)
2071           gtk/gtkmain.c (gtk_propagate_event): 
2072         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
2073         
2074         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
2075         gtk_widget_get_ancestor):
2076         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
2077         might not give the expected result and recommend
2078         an alternative.
2079
2080         * tests/testsocket.c tests/testsocket_child.c
2081         tests/testsocket_common.c tests/Makefile.am: Extended
2082         to test different type of adding plugs to sockets
2083         (local,active,passive), and to test mapping/unmapping
2084         the plug.
2085
2086         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
2087         mark the window as destroyed until after we
2088         called _gdk_windowing_window_destroy().
2089         (_gdk_windowing_window_destroy() may use GDK functions
2090         on the window.)
2091
2092         * gdk/x11/gdkinput.c: Remove the check for finalization - 
2093         devices can be finalized under some circumnstances.
2094  
2095         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
2096         small problem with GDK_TYPE_DEVICE.
2097  
2098 2001-07-02  Havoc Pennington  <hp@pobox.com>
2099
2100         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
2101         use constants not atoms.
2102
2103 2001-07-02  James Henstridge  <james@daa.com.au>
2104
2105         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
2106         PANGO_TYPE_TAB_ARRAY.
2107
2108         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
2109         for PANGO_TYPE_TAB_ARRAY.
2110
2111         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
2112         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
2113
2114         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
2115         the file.  Remove Pango types from defs -- they are now defined in
2116         libpango.
2117
2118 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
2119
2120         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
2121
2122         * gtk/gtkobject.c (gtk_object_destroy): invoke
2123         g_object_run_dispose().
2124
2125         * gtk/gtkwindow.c: 
2126         * gtk/gtkwidget.c: 
2127         * gtk/gtkobject.c:
2128         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
2129         method.
2130
2131 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
2132
2133         * gtk/gtktypeutils.c (gtk_type_class): Remove
2134         change check for GTK_TYPE_OBJECT derivation to
2135         G_TYPE_OBJECTS - it's Tim-approved to use this 
2136         for arbitary objects.
2137
2138         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
2139         prefix gtk_container_dequeue_resize_handler().
2140
2141         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
2142         to the hierarachy_changed signal, since you otherwise
2143         have to always keep that around.
2144
2145         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
2146         for extra argument to hierarchy_changed.
2147
2148 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
2149
2150         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
2151         for style to mean "revert to default style"
2152
2153         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
2154           gtk_widget_restore_default_style): Make this functions
2155         deprecated aliases for gtk_widget_set_style (widget, NULL).
2156
2157         * gtk/gtkwidget.[ch]: Remove:
2158            gtk_widget_set_default_style ()
2159            gtk_widget_push_style ()
2160            gtk_widget_pop_style ()
2161         These functions interact are overriden by RC files, and
2162         thus virtually useless, and complicated.
2163
2164 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
2165
2166         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
2167         most of the previous global variables in gtkrc.c. This is
2168         in preparation for multi-head, since each screen can
2169         have different GtkSettings and RC information.
2170
2171         * gtk/gtkrc.[ch]: 
2172
2173         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
2174         GtkSettings parameter to GtkRcStyle::parse.
2175
2176         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
2177         Add two new settings gtk-theme-name, gtk-key-theme-name,
2178         for RC files that are loaded by name after reading
2179         the default RC files.
2180         
2181         * gtk/gtkrc.c: Allow priorities for styles, as wll as
2182         bindings.
2183
2184         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
2185         and use it by default for RC files loaded via 
2186         gtk-theme-name, gtk-key-theme-name.
2187
2188         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
2189         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
2190         tests/testgtkrc: Require pathnames to be absolute.
2191
2192         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
2193         the source when parsing, since the operation of looking up a
2194         pixmap from an RC file depends on the parsing context.
2195
2196         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
2197         reset RC styles on all widgets when files are reparsed.
2198
2199         * tests/testgtk.c (create_rc_file) 
2200           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
2201         Simplify, now that gtk_rc_reparse_all() resets styles on
2202         all widgets itself.
2203
2204         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
2205         return value.
2206
2207         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
2208         GtkSettings argument.
2209
2210         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
2211         gtk_settings_get_global().
2212
2213         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
2214         to get the appropriate GtkSettings for a widget. (For now,
2215         just gets the default GtkSetttings.) 
2216
2217         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
2218           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
2219         changes.
2220
2221         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
2222         getting a style for a path without actually having a widget.
2223         (Allows using a style for a subpart of a widget, for
2224         example.)
2225
2226         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
2227         the RC files to be reloaded for just one GtkSettings
2228         (not sure how useful this really is.)
2229
2230         * gtk/gtkrc.h: Deprecate
2231         gtk_rc_add_widget_name/widget_class/class_style
2232
2233 2001-06-30  Alex Larsson  <alexl@redhat.com>
2234
2235         * gdk/linux-fb/gdkinput-none.c:
2236         * gdk/linux-fb/gdkinput.c:
2237         * gdk/linux-fb/gdkinputprivate.h:
2238         Convert GdkDevice to a GObject.
2239
2240         * linux-fb/gdkprivate-fb.h:
2241         * linux-fb/gdkvisual-fb.c:
2242         Convert GdkVisual to a GObject.
2243
2244 2001-06-29  Alex Larsson  <alexl@redhat.com>
2245
2246         * gdk/gdkvisual.h:
2247         * gdk/gdkcolor.c:
2248         * gdk/x11/gdkx.h:
2249         * gdk/x11/gdkvisual-x11.c:
2250         Convert GdkVisual to a GObject.
2251
2252         * gdk/gdkinput.h:
2253         * gdk/gdkevents.c:
2254         * gdk/x11/gdkinputprivate.h:
2255         * gdk/x11/gdkinput-gxi.c:
2256         * gdk/x11/gdkinput-none.c:
2257         * gdk/x11/gdkinput-x11.c:
2258         * gdk/x11/gdkinput-xfree.c:
2259         * gdk/x11/gdkinput.c:
2260         Convert GdkDevice to a GObject.
2261
2262 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
2263
2264         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
2265         to just plain new, fixing the number of columns, and column types
2266         at creation time.
2267
2268         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
2269
2270         * gtk/gtkcellrenderertext.c
2271         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
2272         height to a specific font.
2273
2274         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
2275
2276         * tests/*c: change to work with new store models.
2277
2278 2001-06-29  Havoc Pennington  <hp@redhat.com>
2279
2280        * Throughout: fixes to compile with G_DISABLE_COMPAT
2281         (s/g_signal_connectc/g_signal_connect/,
2282         s/g_signal_newc/g_signal_new/,
2283         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
2284
2285 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
2286
2287         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
2288         add path argument to selection callbacks.
2289
2290 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
2291
2292         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
2293         walk through a model in a depth first manner, with the option to
2294         break out.
2295
2296 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
2297
2298         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
2299         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
2300         column and follow it when draged, rather than a location in the
2301         view. "expander_column" property and drawing functions changed
2302         accordingly.  Fixes bug #55942.
2303
2304         (gtk_tree_view_{set,get}_expander_column): Now works with a
2305         GtkTreeViewColumn* instead of int.
2306
2307 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
2308
2309         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
2310
2311 2001-06-28  Havoc Pennington  <hp@pobox.com>
2312
2313         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
2314         image data to the screen, using a server grab to avoid race
2315         conditions.
2316
2317         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
2318         check for NULL return from gtk_image_new_from_stock(), it never
2319         returns NULL.
2320         (gtk_item_factory_create_item): fix bug where we parsed the stock
2321         ID as an inline pixbuf
2322
2323         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
2324
2325         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
2326         support (should be using binding set here)
2327
2328         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
2329         support (should be using binding set here)
2330
2331         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
2332         support
2333
2334         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
2335
2336         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
2337
2338         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
2339
2340         * gtk/gtkimcontextsimple.c
2341         (gtk_im_context_simple_filter_keypress): keypad
2342
2343         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
2344
2345         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
2346
2347         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
2348
2349         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
2350         should be binding-setted)
2351
2352         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
2353
2354         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
2355
2356         * gtk/gtkcalendar.c: numeric keypad fixes
2357
2358         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
2359         support
2360
2361         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
2362         screwup
2363
2364         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
2365         clip the render area to the drawable's clip region in advance,
2366         so we don't get data from the server that we don't need.
2367
2368         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
2369         check return value of gdk_pixbuf_get_from_drawable(), fall back 
2370         to bilevel alpha if we can't get the pixbuf to composite against.
2371
2372         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
2373
2374         * gdk/gdkimage.c (gdk_image_get_colormap): add
2375         gdk_image_set_colormap, gdk_image_get_colormap
2376
2377         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
2378         take a region of the image, instead of converting the entire
2379         image.
2380
2381         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
2382         keybinding signal. Add default bindings for it. Add default
2383         handler for show_help that shows the tooltip for the widget.
2384
2385         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
2386         "close" keybinding signal, remove key press handler.
2387
2388         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
2389         it's not our usual practice to leave a deprecated function around
2390         with a runtime warning, plus we don't want it to appear in docs,
2391         plus if we make them yellow no one will want to change them
2392         anyhow.
2393
2394 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
2395
2396         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
2397         GTK_WIDGET_REALIZE() for resize queueing.
2398
2399         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
2400         GTK_WIDGET_REALIZE() for post event delivery destruction upon
2401         GDK_DESTROY.
2402         
2403         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
2404         sompensate for former (pre-2.0) connect_after() facility.
2405         (gtk_widget_send_expose): 
2406         (gtk_widget_event): assert the widget is realized, since event delivery
2407         to non-realized widgets is essentially a bug. event handlers should
2408         be able to unconditionally rely on widget->window (unless they
2409         emit events on their own which can trigger widget destruction).
2410         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
2411         logic. event delivery happens as follows:
2412         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
2413         b) if !was_handled in (a) and the widget is still realized, emit event-
2414            specific signal (RUN_LAST handler). returns was_handled.
2415         c) emission of GtkWidget::event-after for notification if the widget is
2416            still realized (regardless of was_handled from previous stages, no
2417            class handler). no return value.
2418         d) was_handled gets passed on to caller, to determine further
2419            propagation. if the widget got unrealized meanwhile, was_handled
2420            is returned as TRUE.
2421
2422         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
2423         gdk_event_get_coords().
2424
2425 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
2426
2427         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
2428         age 0, binary age 0. depend on glib 1.3.7.
2429
2430         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
2431
2432         * gtk/gtkmenubar.c: same here.
2433         
2434         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
2435
2436         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
2437
2438         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
2439         
2440         * gtk/gtkmenubar.c (add_to_window): likewise.
2441         
2442         * gtk/gtktextbtree.c: and here...
2443         
2444         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
2445         
2446         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
2447         
2448         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
2449         
2450         * gtk/gtktreeviewcolumn.c:
2451         (_gtk_tree_view_column_set_tree_view): yet again.
2452
2453         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
2454         signal connections without g_signal_connect_data().
2455         
2456         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
2457         demo of the matter.
2458         
2459         * demos/testpixbuf.c (main): running out of equality phrases for the
2460         ChangeLog, but had to adapt connections here as well.
2461         
2462         * demos/testanimation.c (progressive_timeout): and for the fun of it,
2463         tackled this the same way.
2464         
2465         * tests/testtext.c (create_view): ok, it's becoming a pain at this
2466         point, but had enough enery for one more fix.
2467
2468         * tests/testtreecolumns.c (main): stand up man, do your work!
2469
2470         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
2471         fix, either that's been all of it or CVS gtk is broken yet again.
2472         
2473 2001-06-29  James Henstridge  <james@daa.com.au>
2474
2475         The following changes correspond to bug #56812
2476
2477         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
2478         code for GdkDevice.
2479
2480         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
2481         GdkCursor.
2482
2483 2001-06-19  Havoc Pennington  <hp@pobox.com>
2484
2485         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
2486         for mapping a window without fooling with stacking order, but
2487         updating the "withdrawn" flag
2488
2489         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
2490         filtering as soon as possible, moving move resize and wmspec_check
2491         handling after the event filter.  Make default filter apply to all
2492         events, not just those with no GdkWindow wrapped around the X
2493         window. Fix a FIXME about how the window could be a pixmap using 
2494         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
2495
2496         Also, be robust against events not on a known GdkWindow.
2497
2498         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
2499         gdk_x11_ungrab_server): export reference-counted server grabs, so
2500         other people can grab server over a GDK function that also does
2501         so.
2502
2503 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
2504
2505         * gtk/gtktreeviewcolumn.c
2506         (gtk_tree_view_column_pack_start_cell_renderer): New function to
2507         reflect that you can (hypothetically) pack cell renderers into a
2508         column.
2509         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
2510         (gtk_tree_view_column_cell_is_visible): Move more functionality to
2511         the column.
2512         (gtk_tree_view_column_cell_can_focus): Move more functionality to
2513         the column.
2514
2515         * gtk/gtktreeview.c: Move to use new column-packing code.
2516         (gtk_tree_view_real_expand_row): remove totally braindead code.
2517         (gtk_tree_view_real_collapse_row): ditto.
2518
2519 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
2520
2521         * gtk/gtktreeviewcolumn.c: Fix a typo.
2522         
2523 2001-06-26  Joel Becker  <jlbec@evilplan.org>
2524
2525         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
2526           at the end of the file
2527
2528 2001-06-26  Havoc Pennington  <hp@redhat.com>
2529
2530         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
2531
2532 2001-06-26  Havoc Pennington  <hp@redhat.com>
2533
2534         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
2535         property
2536
2537 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
2538
2539         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
2540         stupid missing statement
2541
2542         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
2543         private function for ATK.  It notifies you of how many _visible_
2544         children are deleted when a node is deleted.  Should be used by
2545         atk only.
2546
2547 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
2548
2549         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
2550         Use new pango_context_get_metrics() to fix problems
2551         with font lists in descriptions. (#56184, reported by
2552         Jonas Borgström)
2553
2554 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
2555
2556         * gtk/gtkiconfactory.c:
2557         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
2558         item factory so inlined pixbufs actually work.
2559
2560 2001-06-25  Havoc Pennington  <hp@redhat.com>
2561
2562         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
2563         s/RESIZEABLE/RESIZABLE/
2564
2565         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
2566
2567 2001-06-25  Alexander Larsson  <alexl@redhat.com>
2568
2569         * configure.in:
2570         Added --enable-fbmanager. This is some experimental code
2571         that lets several GtkFB apps coordinate their access to the
2572         framebuffer.
2573         
2574         * acconfig.h:
2575         Added ENABLE_FB_MANAGER.
2576
2577         * gdk/linux-fb/Makefile.am:
2578         Added gdkfbmanager and gdkfbswitch.
2579
2580         * gdk/linux-fb/gdkkeyboard-fb.c:
2581         * gdk/linux-fb/gdkmouse-fb.c:
2582         * gdk/linux-fb/gdkprivate-fb.h:
2583         Split device init and open so that
2584         they can be opened and closed while switched
2585         away.
2586
2587         * gdk/linux-fb/gdkmain-fb.c:
2588         Add the basic manager communication.
2589
2590         * gdk/linux-fb/gdkrender-fb.c:
2591         Don't update to the shadow fb if we're
2592         blocked by the fb manager.
2593
2594 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2595
2596         * docs/Changes-2.0.txt: Add note about child property
2597         changes.
2598
2599 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
2600
2601         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
2602         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
2603
2604         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
2605         with un'reffing wrong list reported by Jeff Franks.
2606
2607         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
2608
2609         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
2610         for the default icon. Remove inline XPM.
2611
2612         * gtk/gtkstock.h gtk/gtkiconfactory.c:
2613         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
2614         is used for GTK_STOCK_DND, but it is a bit too small.)
2615
2616         * gtk/stock-icons/stock_dnd_multiple.png
2617         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
2618
2619         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
2620         TRUE when starting a drag. In other cases, we are
2621         just observing. (#52995)
2622
2623         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
2624         function to set the icon for a drag from a GdkPixbuf
2625         or stock ID.
2626
2627         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
2628         Likewise, for drag sources.
2629
2630         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
2631         (Now should be done using the stock system.)
2632
2633 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
2634
2635         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
2636         Removed - didn't work and not particularly useful anyways
2637         if it did. 
2638
2639 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
2640
2641         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
2642         introduced last night that was making things decidedly not work.
2643
2644         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
2645         so that we have getter/setter pairing everywhere it makes
2646         sense. (#55767)
2647
2648         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
2649         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
2650         deprecated compat macro. (#55516)
2651
2652         * gtk/gtklabel.[ch]: Add functions
2653         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
2654         gtk_label_set_label(), which mirror the property API for GtkLabel.
2655         Make gtk_label_get_attributes() only reflect the attributes
2656         set by gtk_label_set_attributes.
2657
2658         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
2659         from gtk_notebook_set_page().
2660
2661 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
2662
2663         * configure.in: Fix tests for XShm.h.
2664
2665         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
2666         gdk_image_new() by use of goto, properly use g_object_unref().
2667
2668 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
2669
2670         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
2671         calls, as GdkImage is an object. these should be g_obejct_unref()
2672         instead but that won't work because of the g_error() statement
2673         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
2674         to spot these places.
2675
2676 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
2677
2678         * modules/input/gtkimcontextxim.c: Fixup some problems with 
2679         text length handling in error cases.
2680
2681         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
2682         a bit to make test actually warn on attempt to allocation
2683         a negative size. (#56101, Matthias Clasen)
2684
2685 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
2686
2687         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2688         noticed by Brian Cameron.
2689         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
2690         Cameron.
2691
2692 2001-06-22  Hans Breuer  <hans@breuer.org>
2693
2694         * gdk/gdk.def : updated externals
2695
2696         * gdk/win32/gdkdrawable-win32.c : corrected some casts
2697         in GDK_NOTEs
2698
2699         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
2700         to translate coordinates to the internal > 16 bit system
2701         Try to handle WM_WINDOWPOSCHANGED to get better performance for
2702         when moving/resizing
2703
2704         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
2705         and gdk_keymap_get_direction (). The latter is untested for
2706         the RTL case
2707
2708         * gtk/gtk.def : updated externals
2709
2710         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
2711         from pango_language_from_string (), not an already freed pointer
2712
2713         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
2714         binary (-kb) to be useable on windoze
2715  
2716 2001-06-21  Alexander Larsson  <alexl@redhat.com>
2717
2718         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
2719         Update to new PangoLanguage changes.
2720         
2721         * gtk/gtkwindow-decorate.c:
2722         * gtk/gtkwindow.[ch]:
2723         Added setting argument to gtk_window_set_has_frame ()
2724         
2725 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
2726
2727         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
2728         the case without XKB properly.
2729
2730         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
2731         unused gtk_rc_auto_parse variable.
2732
2733         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
2734         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
2735         longer needed with GdkPixbuf.
2736
2737         * gtk/gtkrc.c (_gtk_rc_init): Make private.
2738
2739 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
2740
2741         * gtk/gtkentry.h: Mark deprecated functions with
2742         GTK_DISABLE_DEPRECATED.
2743
2744 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
2745
2746         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
2747
2748         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
2749
2750         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
2751           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
2752           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
2753           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
2754           to recent changes in Pango.
2755
2756         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
2757           to test whether the basic engine honors them.
2758
2759 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
2760
2761         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
2762         gtk_container_child_get_property().
2763
2764 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
2765
2766         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
2767         (gtk_tree_view_move_cursor_page_up_down): implement.
2768
2769 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
2770
2771         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
2772         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
2773         don't use automatic fixed size buffer for printf-ing floats, doubles
2774         can expand to really _huge_ strings, use g_strdup_printf() instead.
2775
2776 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
2777
2778         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
2779         construct property in 1.2 and still needs to be.
2780
2781         * gtk/gtkwidget.c: "composite_child" is not a settable property.
2782
2783 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
2784
2785         * gtk/gtkliststore.c (gtk_list_store_clear): 
2786         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
2787         clear a model.
2788
2789 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
2790
2791         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
2792
2793         * gtk/Makefile.am:
2794         * gtk/gtk.h: disabled GtkPacker compilation.
2795
2796         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
2797
2798         * gtk/gtknotebook.c:
2799         * gtk/gtktable.c:
2800         * gtk/gtkbox.c: ported this over to child properties.
2801
2802         * gtk/gtksettings.c: fetch class properties via
2803         g_object_class_list_properties().
2804
2805         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
2806         child arg interface. use gobjectnotifyqueue.c for child property
2807         notification.
2808
2809         * gtk/gtkwidget.[hc]: provide necessary means for container child
2810         properties, i.e. ::child_notify signal,
2811         gtk_widget_freeze_child_notify(),
2812         gtk_widget_child_notify(),
2813         gtk_widget_thaw_child_notify().
2814
2815         * tests/testgtk.c: removed inferior property handling code, for
2816         property editing, a generic module should be used, and GLE
2817         coincidentally fullfills that purpose.
2818
2819         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
2820         needs to be adapted to g_object_class_list_properties() before this
2821         builds again.
2822
2823 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
2824
2825         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
2826         test if a node is expanded.
2827
2828 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
2829
2830         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
2831         where collapsing a selected row would result in the cursor/anchor
2832         getting screwed up.
2833
2834 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
2835
2836         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
2837         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
2838         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
2839         Now I can really reorder/sort all Store widgets.  treesorttest
2840         seems to just work now.
2841         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
2842         testtreesort worked through a big coincidence all this time.
2843         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
2844         code.
2845         * tests/testtreecolumns.c: Big 'ol warning at the top letting
2846         people know that this code should never ever ever be copied.
2847
2848 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
2849
2850         * gtk/gtkwindow.h: Fixed a small typo, it should be
2851         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
2852         on line 134.
2853
2854 2001-06-14  Havoc Pennington  <hp@redhat.com>
2855
2856         Docs fixups, and:
2857         
2858         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
2859         GTK_DISABLE_DEPRECATED
2860
2861 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
2862
2863         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
2864         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
2865         finish it off tonight, though it basically works now when it's a
2866         list.  Also, I have a sinking feeling neither GtkTreeStore or
2867         GtkListStore actually resort when adding a new item.  I'll look
2868         into it.
2869
2870 2001-06-14  Havoc Pennington  <hp@redhat.com>
2871
2872         * demos/gtk-demo/main.c (load_file): fix bug identified by
2873         warnings I just added to gtktextbuffer
2874
2875 2001-06-14  Havoc Pennington  <hp@redhat.com>
2876
2877         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
2878
2879         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
2880
2881         * gtk/gtktextbtree.c: don't leak node data all over the place.
2882
2883         * demos/gtk-demo/main.c (main): create fontify tags for the right
2884         buffer
2885
2886         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
2887         to mention tags in the same table can't have the same name,
2888         suggested by Skip Montanaro
2889
2890 2001-06-11  Havoc Pennington  <hp@redhat.com>
2891
2892         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
2893         for trying to add two tags with same name to the tag table
2894
2895         * demos/gtk-demo/main.c (main): fix colors ;-)
2896
2897 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
2898
2899         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
2900         that allows grouping together multiple windows so that grabs
2901         within that set of windows only affect those windows.
2902
2903         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
2904         signal for notification when a widget becomes shadowed
2905         by a grab or is no longer shadowed by a grab.
2906
2907         * gtk/gtkwidget.c (gtk_widget_propagate_state)
2908           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
2909         insenstive widgets to maintain a grab.
2910
2911 2001-06-14  Alexander Larsson  <alexl@redhat.com>
2912
2913         * docs/README.linux-fb:
2914         Add some example config files that can be used with the URW fonts.
2915         
2916         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
2917         Set up the color ramps for DirectColor mode.
2918
2919 2001-06-11  Havoc Pennington  <hp@redhat.com>
2920
2921         * Release 1.3.6
2922          
2923 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2924
2925         * gdk/linux-fb/gdkwindow-fb.c:
2926         Unify shaped window code and make it repaint the area that used
2927         to be part of the shape, but isn't anymore.
2928
2929 2001-06-11  Havoc Pennington  <hp@redhat.com>
2930
2931         * NEWS: Updates
2932
2933         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
2934
2935         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
2936         
2937 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2938
2939         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
2940         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
2941         passes zero instead, so do we.
2942         
2943 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
2944
2945         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2946         Deep copy dash_list too.
2947         (_gdk_fb_gc_new): Set default cap_style before
2948         setting values.
2949
2950 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
2951
2952         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
2953         gdk_keymap_get_direction): New functions.
2954
2955 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
2956
2957         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
2958         gtk_tree_model_get_flags by adding a second flag for atk.
2959
2960         * gtk/gtktreemodel.c: make cursor behavior interact better with
2961         mouse presses.
2962
2963 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
2964
2965         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
2966         expand_row/collapse_row to be 2 signals each -- test_expand_row
2967         and row_expanded as well as test_collapse_row and row_collapsed.
2968
2969 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
2970
2971         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
2972         signal name to be changed instead of selection_changed.
2973
2974 2001-06-08  Havoc Pennington  <hp@redhat.com>
2975
2976         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
2977         "scroll_offset" property for notification when the layout offsets
2978         may have changed
2979         (gtk_entry_adjust_scroll): add notify for scroll_offset
2980         (gtk_entry_layout_index_to_text_index): function to compensate for
2981         preedit string when doing coordinate stuff on the entry's layout
2982         (gtk_entry_text_index_to_layout_index): inverse function
2983         (gtk_entry_get_layout_offsets): hook to get current position of
2984         the layout      
2985         (gtk_entry_get_layout): hook to get the layout itself.
2986
2987         * gtk/gtklabel.c (gtk_label_get_layout): new function
2988
2989 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
2990
2991         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
2992         keybinding.
2993         (gtk_tree_view_focus): Fix merge conflict.
2994
2995 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
2996
2997         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
2998         clean up cursor handling.
2999
3000 2001-06-08  Havoc Pennington  <hp@redhat.com>
3001
3002         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
3003         function
3004
3005         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
3006         this function
3007
3008 2001-06-08  Alex Larsson  <alexl@redhat.com>
3009
3010         * gtk/gtkcompat.h.in:
3011         Added compat macros for all old GTK_TYPE_GDK_xxx types.
3012         Fixes bug #52892
3013
3014 2001-06-08  Havoc Pennington  <hp@redhat.com>
3015         
3016         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
3017         parent still
3018
3019 2001-06-08  Havoc Pennington  <hp@redhat.com>
3020
3021         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
3022         don't call g_list funcs on GSList
3023
3024         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
3025         gtk_container_focus(), since some widgets have focusable locations
3026         which are not other widgets. These widgets should not have to be 
3027         containers just to manage the focus. For example, GtkHSV is
3028         currently a container for no good reason. Also, this cleans
3029         up the "if (is_container && is_sensitive && is_drawable)
3030         container_focus ()" mess in widget implementations.
3031
3032         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
3033         function, and have it just call gtk_widget_child_focus().
3034
3035         * gtk/gtkhsv.c: derive from widget not container
3036         
3037         Throughout: fix to reflect GtkContainer::focus change
3038         
3039 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
3040
3041         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
3042         range.  Fix bug #55921
3043
3044         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
3045         (#55920).
3046
3047 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
3048
3049         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
3050         and gdk_keymap_get_current_direction().
3051
3052         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
3053           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
3054         the current locked group, use it to set the keymap
3055         direction.
3056
3057         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
3058         to determine whether we draw a split cursor or use
3059         a jumping cursor based on the current direction.
3060
3061         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
3062         Obey the split cursor setting. 
3063
3064 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
3065
3066         * gtk/gtkimmulticontext.c (activate_cb): Only activate
3067         when toggling on, not when toggling off... (#55906)
3068
3069 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
3070
3071         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
3072         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
3073         in docs. (#55812, Vitaly Tishkov)
3074
3075 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
3076
3077         * demos/gtk-demo/main.c (create_tree): Changed signal name from
3078         selection_changed to changed in signal connection to GtkTreeSelection,
3079         also used g_signal_connectc since GtkTreeSelection is now a GObject.
3080
3081 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
3082
3083         * gtk/gtktreeselection.c: Now it's a GObject instead of a
3084         GtkObject.  The GtkTreeSelection::selection_changed signal is now
3085         the GtkTreeSelection::changed signal.
3086
3087         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
3088         object.
3089
3090         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
3091         object.
3092
3093 2001-06-07  Havoc Pennington  <hp@redhat.com>
3094
3095         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
3096
3097 2001-06-07  Havoc Pennington  <hp@redhat.com>
3098         
3099         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
3100         (not tested yet because with absolute path to srcdir I can't build
3101         atk, but it was broken anyway so this may help) 
3102
3103 2001-06-07  Havoc Pennington  <hp@redhat.com>
3104
3105         * configure.in: output m4macros/Makefile
3106         
3107 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
3108
3109         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
3110         buttons.  Fixes #55460 reported by matthiasc@poet.de.
3111
3112 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
3113
3114         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
3115         expansion/collapsing so it only happens in one place.
3116         (gtk_tree_view_real_expand_row): ditto.
3117
3118 2001-06-07  Havoc Pennington  <hp@redhat.com>
3119
3120         * tests/Makefile.am: add missing -I flag
3121
3122         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
3123
3124         * configure.in: use pkg-config to see if GModule is
3125         supported; fix to properly turn on included loaders 
3126         when GModule isn't supported; don't use AC_CHECK_LIB 
3127         when libs are not installed yet
3128
3129         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
3130
3131         * Makefile.am (SUBDIRS): add m4macros subdir
3132
3133         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
3134         dependencies also.
3135
3136 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
3137
3138         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
3139         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
3140
3141 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
3142
3143         * gtk/gtktreeview.c
3144         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
3145         bindings to expand and collapse rows.
3146         (gtk_tree_view_real_select_cursor_parent): New key binding.
3147         (gtk_tree_view_real_toggle_cursor_row): New key binding.
3148
3149         * gtk/gtkmarshal.list: new
3150         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
3151
3152 2001-06-06  Havoc Pennington  <hp@redhat.com>
3153
3154         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
3155
3156         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
3157         Down to move visually rather than logically, since it confuses 
3158         people. Add -/+ and Ctrl--/+ bindings for logical movement.
3159
3160 2001-06-06  Alex Larsson  <alexl@redhat.com>
3161
3162         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
3163         Fix up error messages.
3164
3165 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
3166
3167         * gtk/gtktooltips.h: Include gtkwidget.h 
3168         (#55798, Karl Nelson)
3169
3170         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
3171         a valid latin-1 character. (Marc Lehmann, #35467)
3172
3173         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
3174         (Marc Lehmann, #35467)
3175         
3176 2001-06-05  Alex Larsson  <alexl@redhat.com>
3177
3178         * demos/gtk-demo/appwindow.c (do_appwindow):
3179         Don't swap the order of the args to gtk_widget_destroyed.
3180
3181         * tests/testgtk.c (destroy_properties):
3182         Don't crash when the properties window is destroyed.
3183
3184         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
3185         Use with_mnemonics to handle the case of stock items with
3186         underscores in them.
3187
3188 2001-06-05  Havoc Pennington  <hp@redhat.com>
3189
3190         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
3191         gtk_text_iter_reorder
3192
3193 2001-06-05  Havoc Pennington  <hp@redhat.com>
3194
3195         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
3196
3197 2001-06-05  Havoc Pennington  <hp@redhat.com>
3198
3199         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
3200         to the range that was set
3201
3202         * gtk/gtkrange.c: add value_changed signal, primarily 
3203         intended for use with GtkScale
3204         (gtk_range_set_increments): new function
3205         (gtk_range_set_range): new function with weird name
3206         (gtk_range_set_value): new function
3207         (gtk_range_get_value): new function
3208
3209         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
3210         from gtk_spin_button_get_value_as_float(). Compat #define
3211         added for get_value_as_float.
3212
3213         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
3214
3215         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
3216
3217 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
3218
3219         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
3220
3221 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
3222
3223         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
3224
3225         * tests/testgtk.c (create_tooltips): Remove usage of
3226         gtk_widget_set().
3227
3228 2001-06-05  Havoc Pennington  <hp@redhat.com>
3229
3230         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
3231
3232         Applying patch from Jeff Franks, with function docs added.
3233         
3234         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
3235         remove call to set_mnemonic_widget, change docs a bit.  
3236
3237         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
3238         new function
3239
3240         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
3241         new function
3242
3243         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
3244
3245         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
3246         function
3247         (gtk_radio_button_new_with_mnemonic_from_widget): new function
3248
3249         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
3250         new function
3251
3252         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
3253         function        
3254
3255         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
3256         auto-selection of mnemonic widget.
3257
3258 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
3259
3260         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
3261         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
3262         (gtk_tree_view_column_set_min_width): ditto.
3263
3264 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
3265
3266         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
3267         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
3268
3269 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
3270
3271         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
3272         gtk_clist_thaw().
3273
3274 2001-06-04  Havoc Pennington  <hp@pobox.com>
3275
3276         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
3277         releases for buttons 6, 7
3278
3279 2001-06-04  Havoc Pennington  <hp@redhat.com>
3280
3281         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
3282         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
3283         #55562
3284
3285 2001-06-04  Havoc Pennington  <hp@redhat.com>
3286
3287         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
3288         where text_view->layout == NULL by assuming its size is 0, 
3289         i.e. same as if we haven't done any reflow. Reported by 
3290         Hidetoshi Tajima #55448 
3291
3292 2001-06-04  Havoc Pennington  <hp@redhat.com>
3293
3294         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
3295         and 7 for scroll left/right, from Thomas Broyer
3296
3297 2001-05-10  Havoc Pennington  <hp@redhat.com>
3298
3299         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
3300         we need to parse the xsetting as if it were an RC file string.
3301
3302         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
3303         value of palette from settings, not from static variable
3304
3305         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
3306         xsettings translation table
3307
3308         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
3309         hardcoding the toolbar style conflicts with new customizable 
3310         toolbar style philosophy
3311         (gtk_toolbar_class_init): add settings for default toolbar style;
3312         these are used unless the app specifically forces a toolbar style
3313
3314         * gtk/gtksettings.c (settings_install_property_parser): only
3315         return at the start if we warn and parser == NULL
3316
3317         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
3318         palette changed handler so we don't notify dead color selections
3319
3320         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
3321         xthickness/ythickness of 0 or 1 properly 
3322         (gtk_default_draw_resize_grip): clear the background behind the
3323         resize grips, and align to bottom right if we square the 
3324         area to be drawn.
3325
3326         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
3327         statusbar label to 1, so it doesn't make toplevels resize oddly
3328         (gtk_statusbar_size_request): add grip size to request
3329         (gtk_statusbar_size_allocate): hack so the hbox still works with 
3330         the grip size in the request
3331
3332         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
3333         bug where showing all on a toplevel makes the toolbar 
3334         button text appear despite the toolbar mode
3335
3336         * gtk/gtkmenubar.c: add internal padding style property
3337
3338         * gtk/gtktoolbar.c: Add internal padding style property; add
3339         shadow type style property
3340
3341         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
3342         state; and put Container::border_width outside the frame
3343
3344         * gtk/gtktextview.c: don't draw focus rectangle if we're in
3345         interior focus mode, we just use blinking cursor
3346
3347 2001-06-04  Havoc Pennington  <hp@redhat.com>
3348
3349         * configure.in: Make gdk-pixbuf have same version number as GTK
3350
3351 2001-06-04  Havoc Pennington  <hp@redhat.com>
3352
3353         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
3354         digits greater than 6. If there actually are limits (which there
3355         likely aren't), should clamp to them not warn.
3356         (gtk_spin_button_new_with_range): don't take log of 0
3357         (gtk_spin_button_size_request): use digits to compute size
3358         request, rather than step increment.
3359
3360         * tests/testgtk.c (create_spins): test larger values of digits
3361         
3362         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
3363         font on map not expose, so we don't get weirdness during scrolling
3364
3365 2001-06-04  Havoc Pennington  <hp@redhat.com>
3366
3367         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
3368         Sam Solon, bug #54577, update value even if not drawable.
3369
3370 2001-06-04  Havoc Pennington  <hp@redhat.com>
3371
3372         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
3373         SCROLL_LEFT, reported by Thomas Broyer.
3374
3375 2001-06-04  Havoc Pennington  <hp@redhat.com>
3376
3377         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
3378         Process updates immediately, to prevent funny lag effect
3379         when scrolling, at some mild potential efficiency cost.
3380
3381 2001-06-04  Havoc Pennington  <hp@redhat.com>
3382
3383         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
3384         slider on the click.
3385
3386 2001-06-03  Havoc Pennington  <hp@pobox.com>
3387
3388         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
3389         hscale/vscale details, so we can use it for scrollbar as well.
3390
3391         * tests/testgtk.c (reformat_value): honor digits from GtkScale
3392
3393         * gtk/gtkenums.h (GtkTroughType): Remove this enum
3394         (GtkScrollType): add START and END from GtkTroughType
3395
3396         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
3397         its x/y arguments
3398
3399         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
3400         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
3401         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
3402         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
3403         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
3404
3405         Notable changes in the process:
3406          
3407         - stepper_size style property is the height for vertical 
3408           ranges, width for horizontal; the other dimension matches
3409           the trough size
3410         - add ability to do NeXT-style steppers (and several other styles
3411           that don't make any sense)
3412         - added min_slider_length, fixed_slider_length properties to
3413           GtkScrollbar
3414         - cleaned some private (or at least useless) functions out of
3415           gtkscale.h    
3416         - moved bindings to GtkScale from subclasses, even arrow keys,
3417           since blind users don't know scale orientation.
3418         - change move_slider action signal to use new GtkScrollType,
3419           remove GtkTroughType argument
3420         - digits rounds the values a range will input to the given 
3421           number of decimals, but will not try to force adjustment 
3422           values set by other controllers. That is, we no longer
3423           modify adjustment->value inside a value_changed handler.
3424         - added getters for GtkScale setters
3425         - middle-click begins a slider drag
3426         
3427 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
3428
3429         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
3430         getting the focus code to work.
3431         (gtk_tree_view_class_init): Add a bunch of keybindings.
3432
3433         * gtk/gtktreeviewcolumn.c
3434         (gtk_tree_view_column_set_cell_data_func):
3435         s/GtkCellDataFunc/GtkTreeCellDataFunc.
3436         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
3437         of "properties_changed" to help justify the death of the latter
3438         signal. (-:
3439
3440         * tests/testtreefocus.c (main): Let some columns be focussable to
3441         test focus better.
3442
3443 2001-06-01  Havoc Pennington  <hp@redhat.com>
3444
3445         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
3446         
3447         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
3448         overwrite in overwrite mode if we already deleted the selection
3449         and replaced it with new text.  
3450
3451         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
3452         selection to an empty range, clear the clipboard if we owned it.
3453         (gtk_label_set_selectable): give up selection if we become
3454         unselectable.
3455         (gtk_label_state_changed): override state changed to unselect text
3456         when insensitive
3457         (get_text_callback): add paranoia check that indexes aren't
3458         outside of label->text
3459         (gtk_label_select_region): make -1 for start_offset mean "end of
3460         label," for consistency with GtkEditable
3461
3462         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
3463         GTK_DIALOG_NO_SEPARATOR flag
3464
3465 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
3466
3467         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
3468         notifications on non-existant "enable_arrow_keys".
3469         (#53753, Skip Montanaro)
3470
3471 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
3472
3473         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
3474         GDK_TYPE_RECTANGLE.
3475
3476         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
3477         of allocation argument be GDK_TYPE_RECTANGLE.
3478
3479 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
3480
3481         * gtk/gtkoptionmenu.c: Account for the fact that the border
3482         width is _outside_ the window. (Fixes #54585, bug found
3483         by Bastien Nocera.)
3484
3485 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
3486
3487         * gtk/gtksettings.c (gtk_settings_get_property): Validate
3488         value from GDK settings against parameter spec.
3489
3490         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
3491         to temporary values and use g_value_transform(), since
3492         thinking that GValue was going to be easy or efficient
3493         to use was, of course, a mistake.
3494
3495         * gtk/gtksettings.c: Add cursor blink setting.
3496         
3497         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
3498
3499         * gtk/gtkentry.c: Add cursor blinking.
3500
3501         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
3502         cursor blink global settings.
3503
3504         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
3505         for :text_position in places where it is missing.
3506
3507 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
3508
3509         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
3510
3511 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
3512
3513         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
3514         not pkg-config. (#51032)
3515
3516         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
3517         (fixes #51952, James Henstridge)
3518         
3519 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
3520
3521         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
3522         Rename to the more correct gtk-go-up.
3523
3524         * gtk/stock-icons/stock_menu_sort_ascending.png:
3525         Added new file.
3526         
3527         * gtk/stock-icons/stock_menu_sort_descending.png:
3528         Changed to show descending instead of ascending.
3529
3530         * gtk/gtkiconfactory.c:
3531         Added menu size icon to sort ascending.
3532
3533         * gtk/stock-icons/Makefile.am:
3534         Added stock_menu_sort_ascending.png.
3535         
3536         * gtk/gtkseparatormenuitem.c:
3537         Use correct typenames.
3538
3539 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
3540
3541         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
3542         gulong as in GSignal.
3543
3544 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
3545
3546         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
3547         instances of GtkCellRenderer in code (all but dnd icon code).
3548         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
3549         there, and I can do multiple Cells per column.
3550
3551         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
3552
3553         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
3554         when model was unreffed prior to removing the row reference.
3555
3556 2001-05-25  Havoc Pennington  <hp@redhat.com>
3557
3558         * gtk/gtkiconfactory.c: fix so that default icons are created if 
3559         you call gtk_stock_list_ids()
3560
3561         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
3562         in list
3563
3564 2001-05-25  Havoc Pennington  <hp@redhat.com>
3565
3566         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
3567         set can render without falling back to missing image icon
3568
3569         * gtk/gtktextview.c (gtk_text_view_size_request): request full
3570         size of text, instead of random values
3571
3572         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
3573         size of tree view, instead of random values
3574
3575         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
3576         image in an appropriate size
3577
3578         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
3579         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
3580
3581         Throughout: fix GTK_STOCK_BUTTON_ instances
3582         
3583         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
3584         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
3585         Add a bunch of new stock items/icons
3586
3587         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
3588         new function, convenience for inserting columns with a data func
3589
3590         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
3591         (_gtk_icon_factory_list_ids): use list of all factories to
3592         generate a list of all known IDs
3593
3594         * gtk/gtkstock.c (gtk_stock_list_ids): replace
3595         gtk_stock_list_items() with a function that returns all IDs known
3596         including those for GtkIconFactory.
3597
3598 2001-05-25  Hans Breuer  <hans@breuer.org>
3599
3600         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
3601         work -> check boxes and radio buttons are drawn now, even on win9x.
3602         Improved line settings a bit, still no clue how to get really dotted
3603         lines on win9x, on NT it's PS_ALTERNATE.
3604
3605         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
3606         GDK_HINT_MIN_SIZE as well
3607
3608         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
3609
3610         * gtk/gtk.def : updated
3611
3612         * gtk/gtktreeprivate.h : change column_drop_func to be a function
3613         pointer not a function pointer pointer
3614
3615         * tests/testdnd.c : include <stdlib.h> for putenv prototype
3616
3617         * tests/testsocket.c : made it compile on win32 again
3618
3619         * tests/makefile.msc : one more test-app uses prop-editor.obj
3620
3621 2001-05-22  Havoc Pennington  <hp@pobox.com>
3622
3623         * gtk/gtkbin.c (gtk_bin_get_child): New function
3624
3625 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
3626
3627         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
3628         to ignore when doing compose processing.
3629
3630 2001-05-22  Joe Shaw  <joe@ximian.com>
3631
3632         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
3633         Simplify as suggested by Havoc. Just get the last iter and work
3634         backward to the tag instead of getting a line and working back from
3635         there. Fixes passing in an invalid offset to
3636         iter_init_from_byte_offset().
3637
3638 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
3639
3640         * gtk/gtktreeview*.h: 
3641         * gtk/gtkcell*.h:
3642         * gtk/gtk*store.h:
3643         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
3644         macros to all objects.
3645
3646 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
3647
3648         * gtk/gtkcellrenderertext.c
3649         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
3650         with very large (TM) amounts of text.  May be moved to
3651         GtkCellRenderer in the future, though I'm not sure it wants to be
3652         this accessible.
3653
3654         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
3655         More sanity brought to this class.  I like it.
3656
3657         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
3658         case.  Kids, don't try this at home.
3659
3660         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
3661         convenience function.
3662
3663         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
3664
3665 2001-05-21  Alexander Larsson  <alexl@redhat.com>
3666
3667         * gtk/gtkfontsel.c:
3668         Added properties. Based on patch by Lee Mallabone.
3669
3670         * gtk/gtkruler.c:
3671         * gtk/gtkhruler.c:
3672         * gtk/gtkvruler.c:
3673         * gtk/gtktext.c:
3674         * gtk/gtktextview.c:
3675         Converted GtkArg to GParam. Based on patches by John Margaglione.
3676
3677         * tests/Makefile.am:
3678         * tests/testtext.c:
3679         Add a property editor to testtext.
3680         
3681 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
3682
3683         * gtk/gtk{h,v,}paned.c: Only show the separator if 
3684
3685         * configure.in: Fixed reversed conditional causing all image
3686         libraries to be linked in.
3687
3688 2001-05-21  Joe Shaw  <joe@ximian.com>
3689
3690         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
3691         that top_y needs to be >= 0.
3692
3693 2001-05-11  Havoc Pennington  <hp@pobox.com>
3694         
3695         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
3696         losing connection to the X server.
3697
3698 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
3699
3700         * configure.in: Start checks for X from pangox/pangoxft
3701         CFLAGS to avoid duplicate libraries.
3702
3703         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
3704
3705         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
3706         to include gobject.
3707         
3708 2001-05-18  Alexander Larsson  <alexl@redhat.com>
3709
3710         * gtk/gtkspinbutton.c:
3711         Convert GtkArgs to GParams. Based on patch by John Margaglione.
3712         Also do size request reasonable for MAXDOUBLE. Previously it printed
3713         the limits to a buffer and overran it. Instead do it using log10() and
3714         limit the width to 10 digits.
3715         
3716         * gtk/gtkwidget.c (gtk_widget_get_property):
3717         Correctly handle setting the parent property to NULL.
3718
3719 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
3720
3721         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
3722         style attributes even if the widget isn't realized.
3723
3724         * demos/gtk-demo/main.c: Use a slightly smaller font.
3725
3726 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
3727
3728         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
3729         This is something that only a widget writer would ever want
3730         to change.
3731
3732         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
3733         gtk_signal_emit_by_name().
3734
3735         * gtk/gtkviewport.c: Fix some warnings.
3736
3737         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
3738         allowing the requisitions of multiple widgets to be grouped
3739         together.
3740
3741         * tests/testgtk.c: Add GtkSizeGroup test
3742
3743         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
3744
3745         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
3746         warnings.
3747
3748         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
3749
3750 2001-04-28  Martin Baulig  <baulig@suse.de>
3751
3752         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
3753         to gtk_image_menu_item_set_icon() and made it work if there's already
3754         an image.
3755         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
3756         (gtk_image_menu_item_new_with_label): New function.
3757
3758 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
3759
3760         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
3761         highlighting code!!!!  The result is okay so long as you don't try
3762         to stress it.  It also highlights a bug in the TextView so it's in
3763         an unproportional font right now until it's fixed.
3764
3765         *demos/gtk-demo/*.c: Clean up code a bit to make it
3766         ugly-parser(TM) friendly. (-:
3767
3768 2001-05-17  Joe Shaw  <joe@ximian.com>
3769
3770         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
3771         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
3772         if it is only partially onscreen.
3773
3774 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
3775
3776         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
3777         not by characters.
3778
3779         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
3780         are not zero or one; that is, when graphemes of multiple characters
3781         are involved.
3782
3783         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
3784         FIXME.
3785
3786 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
3787         
3788         * gtk/gtkbbox.c:
3789         Add properties, based on patch by Lee Mallabone.
3790
3791         * gtk/gtknotebook.c:
3792         * gtk/gtktoolbar.c:
3793         Convert from GtkArg to GParam, based on patch by John Margaglione.
3794         
3795         * gtk/gtkhscale.c:
3796         * gtk/gtkvscale.c:
3797         * gtk/gtkhscrollbar.c:
3798         * gtk/gtkvscrollbar.c:
3799         * gtk/gtkrange.c:
3800         Move adjustment property to GtkRange.
3801
3802         * gtk/gtklabel.c:
3803         Setup mnemonics on property changes
3804
3805         * gtk/gtkwidget.c (gtk_widget_get_property):
3806         GdkExtensionMode is an enum, not a flag. Set it with
3807         g_value_set_enum ().
3808
3809         * tests/prop-editor.c:
3810         Better propery editor.
3811
3812         * tests/testgtk.c:
3813         Add new property test. Pass zero to the property editor to
3814         get properties from all derived types.
3815         
3816 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
3817
3818         * autogen.sh (have_automake): Require libtool-1.4,
3819         automake-1.4p1.
3820
3821         * acinclude.m4: Remove libtool macros.
3822
3823         * gdk-pixbuf/Makefile.am: Add dependencies to loade
3824         modules.
3825
3826         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
3827         for libgdk.
3828
3829         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
3830         libgdk.la for libgtk.
3831
3832         * modules/input/Makefile.am: Make modules have full
3833         dependencies.
3834
3835 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
3836
3837         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
3838         #54699 where paths weren't being checked for correctness.
3839
3840 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
3841
3842         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
3843         in any order you wan, whether or not the column is added to the
3844         tree, or the tree is realized.  Yay!
3845
3846         * gtk/gtktreeviewcolumn.c
3847         (gtk_tree_view_column_setup_sort_column_id_callback): handle
3848         sorting columns a lot saner
3849
3850         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
3851         new function to actually set wether or not a column is
3852         reorderable.
3853
3854         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
3855         if we have 'em.
3856
3857         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
3858         Fix nasty bug where we were showing the button just before
3859         realizing it.  As a result, the parent window was
3860         tree_view->window instead of tree_view->priv->header_window.
3861
3862         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
3863         to let you easily reorder a list or tree.
3864
3865 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
3866
3867         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
3868         from args to properties.
3869
3870 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
3871
3872         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
3873         from args to properties. (#51957)
3874
3875         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
3876         calls to after ->set_property call.
3877
3878 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
3879
3880         * tests/prop-editor.c: Block against redundant changes.
3881
3882         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
3883         properties.
3884
3885 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
3886
3887         * gdk/gdkpixmap.h: Remove creative formatting.
3888
3889 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
3890
3891         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
3892         property API. (#51669)
3893
3894         * gtk/gtkscale.c: Patch from John Margaglione converting to
3895         property API. (#51891)
3896
3897         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
3898         to property API. (#50985)
3899
3900 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
3901
3902         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
3903         buffering state across expose event, so we still call end_paint().
3904
3905 2001-05-11  Alexander Larsson  <alexl@redhat.com>
3906
3907         * gtk/gtkhsv.c (paint_triangle):
3908         Expose the ring in the triangle at the correct place when
3909         exposing just a part of the triangle.
3910
3911         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
3912         Return FALSE, or window focusing will not work.
3913
3914 2001-05-11  Havoc Pennington  <hp@pobox.com>
3915
3916         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
3917         #54144
3918
3919         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
3920         bug #54330
3921
3922 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
3923
3924         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
3925         propagate exposes to NULL child.
3926
3927         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
3928         against not having one of the scrollbars.
3929
3930         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
3931         we don't keep a mnemonic window if we have no mnemonic installed.
3932
3933 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
3934
3935         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
3936         it has the _important_ side effect of initializing a class.
3937
3938 2001-05-10  Alexander Larsson  <alexl@redhat.com>
3939
3940         * gdk/linux-fb/gdkprivate-fb.h:
3941         Make sure you can compile out the implementation/wrapper assert
3942         macros.
3943
3944         * gdk/linux-fb/gdkdrawable-fb2.c:
3945         Check implementation/wrappers, initialize type for pixmap dummys.
3946
3947         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
3948         Hide the cursor if reading from the screen.
3949
3950         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
3951         Fix sign bug in tiling code.
3952
3953         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
3954         Handle background pixmaps.
3955
3956 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
3957
3958         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
3959         function to let user control where columns are dragged.
3960
3961         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
3962         Escape is pressed.
3963
3964 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
3965
3966         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
3967         "columns_changed" signal.
3968         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
3969         motion code to draw arrows to the side if indicator is outside the
3970         widget.
3971         (gtk_tree_view_map_expanded_rows): Implement.
3972
3973 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3974
3975         * demos/testpixbuf-save.c: 
3976         * demos/testpixbuf-drawable.c:
3977         Include gdkfb.h on linux-fb.
3978
3979 2001-05-07  Alexander Larsson  <alexl@redhat.com>
3980
3981         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
3982         New function for getting toplevel window at position.
3983         (gdk_drag_find_window): Use get_toplevel_window () instead
3984         of gdk_window_get_pointer(). (gdk_drag_status): Use
3985         correct context for getting window.
3986
3987         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
3988         g_strdup the atom name.
3989
3990         * gdk/linux-fb/gdkwindow-fb.c:
3991         Costmetic fix.
3992
3993         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
3994         Add code for changing cursor on linux-fb backend (same as
3995         win32).
3996
3997 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
3998
3999         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
4000         present before doing anything with it.  Patch from Håvard Kvålen
4001         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
4002         report was not for the development branch of GTK+, but it applies
4003         anyways).
4004
4005 2001-05-04  Havoc Pennington  <hp@redhat.com>
4006
4007         * configure.in: fix some shell typos
4008
4009         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
4010
4011         * gtk/gtkimage.c: handle animations
4012
4013         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
4014         border_width * 2, not just border_width
4015
4016         * gtk/gtkscale.c: add "format_value" signal to allow people
4017         to override the way values are drawn.
4018         (gtk_scale_get_value_size): fix width/height mistake,
4019         and compute size from actual displayed text, not 
4020         from made-up text.
4021
4022         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
4023         signal registration
4024
4025         * tests/testtext.c: Add "Remove all tags" menu item for testing
4026
4027         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
4028
4029         * demos/gtk-demo/main.c (main): add hack so we can find modules
4030         without installing gtk
4031
4032         * demos/gtk-demo/textview.c (insert_text): demo font scaling
4033
4034         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
4035         factor)
4036         (gtk_cell_renderer_text_set_property): remove some bogus
4037         g_object_notify
4038
4039         * gtk/gtktexttag.c: add "scale" property which is a font scaling
4040         factor
4041
4042         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
4043         to layout
4044
4045         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
4046         gtk_text_iter_is_first
4047
4048 2001-01-06  Hans Breuer  <hans@breuer.org>
4049
4050         * gdk/gdk.def : updated exports
4051
4052         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
4053         gdk won't compile anymore
4054  
4055         * gdk/win32/gdkevents-win32.c : initialize ret_val when
4056         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
4057         Improved gdk_flush () to not only do pending drawing operations
4058         but also process all currently pending events. This should make
4059         the behaviour more similar to the X11 version.  
4060
4061         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
4062         option needs to be set even if there is no GDK_GC_BACKGROUND.
4063         (gdk_win32_hdc_get) : use predraw_set_background () independent
4064         of value_mask. This allows to draw dashed lines leaving the original
4065         background intact.
4066
4067         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
4068         after processing, because we can't reuse it as the X11 version does.
4069
4070         * gtk/gtk.def : updated exports
4071
4072         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
4073         would like to get rid of this file again, and use straight
4074         makefile.msc again, as the other Gtk+ subdirs do)
4075
4076         * test/makefile.msc (new file) : build the test apps here
4077
4078 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
4079
4080         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
4081         strike-through setting
4082         (gdk_draw_layout_line_with_colors): Render strike-through
4083
4084 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
4085
4086         * Release 1.3.5
4087
4088         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
4089
4090         * NEWS: Updated
4091
4092         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
4093         Makefile breakage.
4094
4095 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
4096
4097         * demos/gtk-demo/images.c (progressive_timeout): Fix
4098         typo in filename.
4099
4100         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
4101         out FIXME warning; just too annoying.
4102
4103 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
4104
4105         * gdk/linux-fb/gdkcolor-fb.c:
4106         Better error messages.
4107
4108         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
4109         Initialize abs_x and abs_y.
4110         
4111         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
4112         Correct handling of stipple offset.
4113
4114         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
4115         Treat directcolor framebuffers as truecolor.
4116         
4117 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
4118
4119         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
4120         dependency on Atk for accessibility support.
4121
4122         * configure.in **/Makefile.am: Major reworking of substituted
4123         variables for CFLAGS/LIBS to make a lot more sane and 
4124         keep the the compile/link lines a bit shorter.
4125
4126         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
4127
4128 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
4129
4130         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
4131         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
4132         use _gtk_boolean_handled_accumulator.
4133
4134 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
4135
4136         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
4137         to fix things so clicking inside selection leaves cursor
4138         at point where clicked. (#50324)
4139
4140         * gtk/gtksettings.c (gtk_settings_class_init): Restore
4141         sane value for default double click time.
4142
4143         * tests/testtext.c (test_init): Really path to input modules.
4144
4145 2001-05-03  Sven Neumann  <sven@convergence.de>
4146
4147         * demos/testpixbuf-save.c: include target-specific headers as
4148         done in testpixbuf-drawable.c
4149
4150 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
4151
4152         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
4153         new_text_length appropriately when we run into the 
4154         size limit for the entry. (#53445, reported by Jeff Franks)
4155
4156         * tests/testgtk.c (create_entry): Remove most of the
4157         property toggle buttons. Replace with a "Props" button
4158         that brings up a property editor.
4159
4160         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
4161         Split the property editor code out for reuse, improve.
4162
4163 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
4164
4165         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
4166         trap errors around calls to XSetInputFocus since we have
4167         no way of knowing reliably whether we are viewable or
4168         not. (#53947)
4169
4170 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
4171
4172         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4173         fix bug in dropping columns.  Moving columns now basically works
4174         modula some fine tuning.
4175
4176 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
4177
4178         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
4179         autoscroll support.  It mostly works, but could use some fine
4180         tuning.
4181         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
4182         Actually move the column.
4183
4184 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
4185
4186         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
4187           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
4188           New default theme! A slighly improved version of the 2.0 Raleigh
4189           theme, with Windows-esque focus/drawing default. 
4190           (GtkWidget::interior_focus defaults to TRUE.)
4191
4192         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
4193
4194 2001-04-30  Havoc Pennington  <hp@pobox.com>
4195
4196         * tests/testtext.c (line_numbers_expose): fix to work with
4197         gtk_paint_layout change
4198
4199 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4200
4201         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
4202           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
4203           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
4204           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
4205
4206         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
4207           with GtkWidget::interior_focus = TRUE better.
4208
4209         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
4210         ::default_outside_border for more flexibility.
4211
4212         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
4213         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
4214         change that had to be made with g_object_get.
4215
4216 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
4217
4218         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
4219         (gtk_tree_view_move_column_after): Clean up interface. 
4220
4221 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
4222
4223         * gtk/gtkpacker.h:
4224         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
4225          to gtkenum.h.
4226
4227         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
4228         handled in switch).
4229
4230         * gtk/Makefile.am:
4231         (gtk.defs): generate enum portions with  glib-mkenums.
4232         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
4233         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
4234         
4235         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
4236         addition.
4237
4238         * docs/Changes-2.0.txt: keep a note on signal handlers now
4239         not getting emitted during the emission they were connected within.
4240
4241 2001-04-28  Havoc Pennington  <hp@pobox.com>
4242
4243         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
4244
4245 2001-04-24  Havoc Pennington  <hp@redhat.com>
4246
4247         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
4248         (gtk_text_layout_move_iter_to_next_line): fix these two for
4249         invisible text, lots of other stuff still hosed.
4250
4251         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
4252         new function, replaces the get/set palette stuff. This function 
4253         is intended for use by libgnomeui which should set the hook to a
4254         thing which sets the palette in GConf, and we need the
4255         GConf-to-xsettings proxy which will result in the change being
4256         propagated back to the GTK app.
4257
4258         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
4259         about unusable signals that it may be because the signal has 
4260         parameters.
4261
4262         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
4263         style, otherwise gtkrc.c won't know to create a new GtkStyle for
4264         it.
4265         (gtk_widget_modify_color_component): call
4266         gtk_widget_modify_style() so the rc style will get copied.
4267         (gtk_widget_modify_font): ditto
4268
4269         * gtk/gtkrc.c: make a couple variables static
4270
4271         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
4272         help button by default, since it does nothing
4273
4274         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
4275         around with UI
4276
4277         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
4278         so we can have tooltips
4279
4280         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
4281         can have tooltips
4282
4283         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
4284         GDK_ENABLE_BROKEN, because its memory behavior is completely
4285         hosed.
4286
4287         * gtk/gtknotebook.c: remove key press handler, replace with
4288         binding set, add numeric keypad support
4289
4290         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
4291
4292         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
4293
4294         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
4295         addition to plain Delete
4296
4297         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
4298         GDK_KP_Enter in addition to GDK_Return
4299
4300         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
4301         activate on entry instead of key press
4302         (gtk_font_selection_on_clist_key_press): get
4303         rid of this signal handler, not needed with new font sel.
4304
4305         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
4306         no-longer-needed emit_stop_by_name(), just return TRUE
4307
4308         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
4309         cruft, this widget is no longer focusable.
4310
4311         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
4312         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
4313         move_slider action signal, add binding set for vscale/hscale, in
4314         the process support numeric keypad
4315
4316         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
4317         make GDK_Return and GDK_KP_Enter activate the entry via 
4318         binding set, instead of hardcoded.
4319
4320 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
4321
4322         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
4323         code.  Some documentation added.
4324
4325 2001-04-27  Havoc Pennington  <hp@redhat.com>
4326
4327         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
4328
4329         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
4330
4331         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
4332         line/para separators
4333         (gtk_entry_create_layout): set single paragraph mode on the layout
4334
4335         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
4336         spacing between the image and label; instead, inside a button box 
4337         the button will get extra space that will go there, but if people 
4338         configure button box for 0 chubbiness, then there's no spacing.
4339
4340         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
4341         and min/max size style properties, so people can tune their
4342         chubbiness.
4343
4344         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
4345         functions
4346
4347         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
4348         space_style, and button_relief into style properties, remove
4349         functions for setting them
4350         
4351         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
4352         it back down
4353
4354         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
4355         types from gtk_widget_style_get
4356
4357         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
4358         with a style property.
4359
4360         * gdk/x11/gdkevents-x11.c: namespace the settings
4361
4362         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
4363
4364         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
4365         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
4366         be used. Also, translate doc strings for settings. Also, namespace
4367         the double-click-time property. Also, remove bell properties crap.
4368
4369 2001-04-27  Sven Neumann  <sven@gimp.org>
4370
4371         * Makefile.am: before creating links, check if pkg-config files
4372         exist for the default target. Otherwise link to the pkg-config files
4373         that got installed with this build.
4374
4375 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
4376
4377         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
4378         dragging code.  Revealed some (potential) GdkWindow bugs.
4379
4380         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
4381         _gdk_window_init_position to the end of reparent to fix the case
4382         of reparenting when new_x != old_x and new_y != old_y.
4383
4384 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
4385
4386         * gtk/gtkentry.c (strstr_len): Fix optimization that
4387         was correct for the use here, but completely incorrect
4388         in general.
4389
4390 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
4391
4392         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
4393         until patch adding gtk_window_set_size() is recommitted. 
4394
4395         * **Makefile.am configure.in gdk/x11/gdkim-11.c
4396           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
4397           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
4398           (#10784)
4399
4400 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
4401
4402         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
4403         window == NULL in a number of cases.
4404
4405         * tests/testdnd.c: Set module path for gdk-pixbuf.
4406
4407 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
4408
4409         * gtk/Makefile.am xembed.h: File containing #defines
4410         for XEMBED protocol.
4411
4412         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
4413
4414         - Change protocol from old plug/socket specific protocol
4415           to XEMBED draft
4416         - Various fixes to work with GTK+-2.0
4417
4418         Still quite a bit of work to do here to handle initiation
4419         from the socket side (as specified by XEMBED), to handle
4420         the more advanced features of XEMBED, and to figure out
4421         a good way to handle same-app embedding with less overhead
4422         than using full XEMBED.
4423
4424 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
4425
4426         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
4427         track of whether the toplevel has the focus; only send
4428         focus-in events to the focus widget when the window
4429         actually has the focus.
4430
4431 2001-04-25  Havoc Pennington  <hp@pobox.com>
4432
4433         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
4434         were still in the header
4435
4436 2001-04-24  Alexander Larsson  <alexl@redhat.com>
4437
4438         * gtk/gtkclist.[ch]:
4439         * gtk/gtkctree.c:
4440         When there is a row highlighted for D'n'D it must alse
4441         be painted hightlighted on exposes. Otherwise exposes from
4442         the icon being dragged will mess up the hightlight.
4443
4444         * gtk/gtkfontsel.c:
4445         Don't recenter selected font when exposing the font family
4446         clist. This means you can now actually scroll the font family
4447         list.
4448
4449         * gtk/gtknotebook.c:
4450         Fix focus movement on scrolling tabs that are placed on the left
4451         and right.
4452
4453 2001-04-21  Havoc Pennington  <hp@pobox.com>
4454
4455         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
4456         empty/invisible lines.
4457
4458         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
4459         (gtk_text_iter_set_visible_line_index): new functions to set
4460         indexes excluding invisible text
4461
4462         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
4463         index
4464
4465         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
4466         (gtk_text_iter_get_visible_line_offset): new functions to 
4467         get indexes excluding invisible text
4468
4469         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
4470         bunch of extra padding that served no purpose
4471
4472         * gtk/gtkdialog.c: Make all the spacings configurable via style
4473         properties, for chubbiness configuration in themes
4474
4475         * tests/testtext.c: fix path to the immodules.
4476         
4477 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
4478
4479         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
4480         got munched by #endif.
4481
4482         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
4483
4484         * gtk/gtktreeview.c: Refactored code to clean up a number of
4485         events.
4486
4487         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
4488         values to make consistent with other functions.  Spotted by Jeff
4489         Franks <jcf@tpg.com.au>.
4490
4491         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
4492         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
4493
4494 2001-04-23  Sven Neumann  <sven@gimp.org>
4495
4496         * gtk/Makefile.am
4497         * gtk/gtkplug.c
4498         * gtk/gtksocket.c: on request of Owen, reverted my last change 
4499         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
4500
4501 2001-04-23  Sven Neumann  <sven@gimp.org>
4502
4503         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
4504         compile for non-X11 targets again
4505
4506 2001-04-20  Alexander Larsson  <alexl@redhat.com>
4507
4508         * gtk/gtkcolorsel.[ch]:
4509         API Change. Take GdkColor arguments instead of gdouble *.
4510         Leave the old gtk_color_selection_set_color for compatibility,
4511         but marked deprecated.
4512         Do correct rounding when converting RGB <-> HSV.
4513         
4514         * gtk/gtkcolorseldialog.c:
4515         * tests/testgtk.c:
4516         Use new GtkColorSelection API.
4517
4518         * gtk/gtkhsv.c:
4519         Fix problem selecting colors in triangle when Hue is 330.
4520         Fix some black dots around the HSB triangle.
4521         
4522         * gtk/gtkfilesel.c:
4523         return FALSE from the focus_in_event handler to fix focus problems.
4524
4525 2001-04-18  Havoc Pennington  <hp@redhat.com>
4526
4527         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
4528         set, so keybindings are configurable    
4529         (gtk_window_activate_default): Change to activate the focus widget
4530         instead if there's a focus widget, to be consistent with the
4531         behavior that previously existed in key_press_event
4532
4533 2001-04-18  Havoc Pennington  <hp@redhat.com>
4534
4535         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
4536
4537 2001-04-18  Havoc Pennington  <hp@redhat.com>
4538
4539         Close bug #50615:
4540         
4541         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
4542         the layout
4543
4544         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
4545
4546         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
4547
4548         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
4549         
4550         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
4551         to blue for base, in addition to bg
4552         
4553 2001-04-18  Havoc Pennington  <hp@redhat.com>
4554
4555         * tests/testgtk.c (create_image): allow shrinking the image window
4556         to test that we clip to allocation.
4557
4558         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
4559         #9845
4560
4561         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
4562
4563 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
4564
4565         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
4566         mode on shm segments to 0600. We'll see who complains.
4567
4568         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
4569         _gdk_windowing_window_destroy() AFTER recursing through
4570         children.
4571
4572         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
4573         testsocket_child on X.
4574
4575         * tests/testsocket[_child].c: Fix uses of
4576         gtk_window_get_default_accel_group().
4577
4578         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
4579
4580         * gdk/gdkimage.c: (gdk_image_get):
4581         Deal with the possibility that XGetImage() might return NULL.
4582         Allocate the GdkImagePrivate structure only after XGetImage()
4583         succeeds in order not to dereference a NULL ximage pointer.  This
4584         prevents a core dump when XGetImage() fails - which is unlikely,
4585         but can happen due to race conditions accessing the geometries of
4586         drawables.  An x error will still be triggered, but the gdk image
4587         wrapper at least wont seg fault.
4588         
4589 2001-04-18  Havoc Pennington  <hp@redhat.com>
4590
4591         * gtk/gtkimage.c: fix to properly queue resizes when the image is
4592         set
4593
4594         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
4595         if the insertion point isn't editable
4596
4597         * demos/gtk-demo/images.c: Added a GtkImage demo
4598
4599         * demos/gtk-demo/drawingarea.c: drawing area demo
4600         
4601         * demos/gtk-demo/menus.c (create_menu): cleanups
4602
4603 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
4604
4605         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
4606           gdk/x11/gdkevents-x11.c: Introduce an extra child
4607         of toplevel windows that serves to hold the focus to
4608         avoid events being delivered to embedded windows.
4609
4610         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
4611         some extra variables to clean up code and reduce the
4612         number of casts.
4613
4614         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
4615         guint for 1 bit bit fields, not gboolean.
4616
4617 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
4618
4619         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
4620         not TRUE. (Fixes #52925)
4621
4622 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
4623
4624         * Released 1.3.4
4625
4626         * NEWS: Updated
4627
4628         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
4629         use GTK_TYPE_ENUM.
4630
4631 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
4632
4633         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4634
4635         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
4636         names to compatibility #defines so docs work.
4637
4638         * gtk/gtkenums.h: Remove GtkMenuFactoryType
4639
4640         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
4641
4642         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
4643
4644         * tests/testgtkrc: No magenta cursors, please.
4645
4646         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
4647
4648         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
4649         
4650 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
4651
4652         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
4653         grabs, since they are no longer necessary.
4654
4655         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
4656         by signal_connect() and call gtk_button_pressed() rather
4657         than signal_connect_after().
4658
4659         * tests/testgtk.c: Restore radio menu items to combos 
4660         since they'll look OK with Raleigh, and it is easier
4661         than finishing the process of removing them that was
4662         started earlier.
4663
4664 2001-04-16  Hans Breuer  <hans@breuer.org>
4665
4666         * gdk/gdk.def :
4667         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
4668
4669         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
4670         we are interested in the functions return value not the function address
4671         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
4672
4673         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
4674
4675 2001-04-14  Hans Breuer  <hans@breuer.org>
4676
4677         * gdk/gdk.def :
4678         * gdk/makefile.msc : updated
4679
4680         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
4681         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
4682         (the testgtk::text backgound pixmap is drawn again)
4683         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
4684         Win32 Pango change
4685         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
4686
4687         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
4688         Not sure if the returned settings have the right unit, because I couldn't
4689         find any docs for the X version ...
4690
4691         * gtk/gtk.def :
4692         * gtk/makefile.msc.in : updated
4693
4694 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
4695
4696         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
4697         wording problems. (Compared to version from Johannes Stezenbach to
4698         check correctness.)
4699
4700 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
4701
4702         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
4703         this to compile.
4704
4705 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
4706
4707         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
4708         not pixbufpos.
4709
4710         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
4711
4712         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
4713         are unsigned insts, therefore use g_value_set_uint.
4714         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
4715
4716 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
4717
4718         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
4719
4720         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
4721         GTK_TYPE_STRING.
4722
4723         * gtk/gtktreeview.c: New functions to allow initial column
4724         dragging work.
4725
4726         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
4727
4728         * tests/testtreefocus.c: give dave some love.
4729
4730         * tests/testtreesort.c: Modify test to check really long samples.
4731
4732 2001-04-11  Alexander Larsson  <alexl@redhat.com>
4733
4734         * gtk-2.0.m4: Pass pkg-config options
4735         before the other args so it works even if
4736         POSIXLY_CORRECT is set.
4737
4738 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
4739
4740         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
4741         0, interface 0).
4742
4743 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
4744
4745         * gtk/gtkcalendar.c (gtk_calendar_button_press):
4746         check for action_func != NULL
4747
4748 2001-04-04  Sven Neumann  <sven@gimp.org>
4749
4750         * tests/testgtk.c (test_init): corrected path to gtk.immodules
4751
4752 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
4753
4754         * Released Gtk+-1.3.3.
4755
4756 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
4757
4758         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
4759
4760 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
4761
4762         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
4763         files to/from source dir. (if we don't stay in builddir, we
4764         can't reach make-inline-pixbuf.
4765
4766         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
4767         deps.
4768
4769         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
4770         ages 0).
4771
4772 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
4773
4774         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
4775         moved to the GtkTreeSortable interface.
4776
4777         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4778         Make more efficient (fixes #50262).
4779
4780 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
4781
4782         * NEWS: Updated.
4783
4784         * configure.in: Remove support for uninstalled glib.
4785
4786         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
4787         so as not to stop emission.
4788
4789         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
4790         is no longer supported.
4791
4792         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
4793         into tests, change build order to build modules before
4794         gtk/.
4795
4796         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
4797         to here.
4798
4799 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
4800
4801         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
4802         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
4803         GPatternSpec. this is actually unlikely to cause breakage in
4804         third-party apps since except for gle, pretty much ever caller
4805         passes NULL here.
4806
4807         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
4808
4809         * *.c: use g_pattern_*() API.
4810
4811         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
4812
4813         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
4814         directions aren't passed in.
4815
4816         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
4817         functionality to be usable from gtkstyle.c as well, give precedence
4818         for conversion to user-supplied parsers.
4819         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
4820
4821         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
4822         _gtk_settings_parse_convert() for rcporperty value conversion.
4823
4824 2001-04-03  Alexander Larsson  <alexl@redhat.com>
4825
4826         * gdk/linux-fb/gdkevents-fb.c:
4827         Add empty gdk_setting_get().
4828
4829 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
4830
4831         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
4832         variable names.
4833         
4834         * gtk/makeenums.pl: touch this so enum files get remade.
4835
4836 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
4837
4838         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
4839         work again when not sorted.
4840
4841         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
4842         and "expand_row" signal, closing bug 52578.
4843
4844         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
4845         support.
4846
4847         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
4848         support.
4849
4850 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
4851
4852         * gdk/gdkevents.h: Add GdkEventSetting event for notification
4853         of changes to system settings, gdk_setting_get() to retrieve
4854         a single system setting.
4855
4856         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
4857         to the draft XSETTINGS mechanism.
4858
4859         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
4860         XSETTINGS.
4861
4862         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
4863         of GDK settings changes to the GtkSettings object.
4864
4865         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
4866         double-click-timeout property to GDK.
4867
4868         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
4869         Define GDK boxed types here.
4870
4871         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
4872         gdk/gdkenumtypes.[ch] for enum definitions.
4873
4874         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
4875         * gtk/gtk-boxed.defs: Comment out GDK types
4876         * gtk/gtktypeutils.h: Remove GDK types
4877         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
4878
4879 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
4880
4881         * Applied patch from Ron Steinke to add signal accumulators
4882         so that signals with the convention 'TRUE return means
4883         handled' stop emission on a TRUE return.
4884
4885         * gtk/gtkmain.[ch]: Add private accumulator 
4886         _gtk_boolean_handled_accumulator, used throughout GTK+.
4887         
4888         * gtk/gtkspinbutton.c: Add accumulator for ::output.
4889
4890         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
4891         
4892         * gtk/gtkwidget.c: Add accumulators for event signals,
4893         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
4894         for ::mnemonic-activate.
4895
4896         * gtk/gtkwindow.c: Add accumulator for ::frame_event
4897
4898 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
4899
4900         * gtk/gtkwidget.c: Add missing include.
4901
4902 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
4903
4904         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
4905         marshaller.
4906
4907         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
4908         "changed" signal to "range_changed".
4909
4910         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
4911         removing a tree from one model would remove all trees from that
4912         model.
4913         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
4914         changed signal instead.
4915
4916 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
4917
4918         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
4919         chaining up to parent impl, since we have a INPUT_ONLY
4920         window.
4921
4922         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
4923         foreground color for the cursor.
4924
4925 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
4926
4927         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
4928         param spec when caching property values, since we unref it
4929         later when we free the style.
4930
4931         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
4932         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
4933
4934 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
4935
4936         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
4937         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
4938         stupidity.
4939
4940 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
4941
4942         [ First pass at adding style properties. Still needs some definite
4943         fine-tuning. ]
4944
4945         * gtk/gtkbutton.c: Add ::default_spacing style property.
4946          
4947         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
4948         ::indicator_spacing style properties.
4949
4950         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
4951         style properties.
4952
4953         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
4954         rather than a normal property.
4955
4956         * gtk/gtkwidget.c: Add an ::interior_focus style property to
4957         draw focus inside buttons, in the Windows/Java Metal/etc. style.
4958
4959         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
4960         Honor ::interior_focus.
4961         
4962         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
4963         TRUE.
4964
4965         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
4966         Add ::slider_width, ::trough_border, ::stepper_size,
4967         ::stepper_spacing style properties.
4968
4969         * gtk/gtkscale.[ch] Add ::slider-length style property.
4970
4971 2001-04-02 Alexander Larsson   <alexl@redhat.com>
4972
4973         * gdk/linux-fb/gdkwindow-fb.c:
4974         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
4975         warnings that were spewed on startup.
4976
4977         * gtk/gtkwindow-decorate.c:
4978         gtk_window_reposition -> _gtk_window_reposition
4979
4980 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
4981
4982         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4983         Add boxed type for GtkRequistion. Use it for ::size-request.
4984
4985         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
4986         Add a new GtkBorder structure useful for geometry properties
4987         for widgets. Add corresponding GTK_TYPE_BORDER.
4988         
4989         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
4990         Support automatic parser selection like
4991         gtk_settings_install_property_parser().
4992
4993         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
4994         functionality for use by gtk_widget_class_install_style_property.
4995         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
4996
4997 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
4998
4999         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
5000         g_param_spec_unichar(). 
5001
5002 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
5003
5004         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
5005         _NET window managers.
5006
5007         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
5008
5009 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
5010
5011         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
5012         bad needs to be nuked, not just deprecated.
5013
5014         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
5015         gtk_widget_popup().
5016
5017         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
5018         
5019         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
5020         widget.
5021         
5022         * docs/Changes-2.0.txt: updates.
5023         
5024 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
5025
5026         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
5027         for (i = 0; i < 100; i ++)
5028           g_print ("I will confirm it compile before committing\n");
5029
5030 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
5031
5032         * gtk/gtktreestore.c: Initial work on implementing the
5033         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
5034
5035 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
5036
5037         * gtk/gtkwidget.c: fixed a bunch of notifications, added
5038         reference counts around emissions where the widget is used afterwards.
5039         added freeze/thaws around multiple properties being notified.
5040         (_gtk_widget_get_aux_info): cleanups.
5041         
5042         * gtk/gtksettings.c (gtk_settings_install_property): provide
5043         default parsing functions for gdkcolor, enums and flags.
5044
5045         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
5046         applied by owen.
5047         backed out gtk_window_get_location(), gtk_window_set_location(),
5048         gtk_window_get_size() and gtk_window_set_size(), these
5049         have to be sorted out wrg x/y/width/height/default_with/default_height
5050         properties.
5051         kept a flag in GtkWindowGeometryInfo to handle user
5052         resetting default sizes.
5053         cleaned up ZVT comments.
5054         bunch of assorted bug fixes, notification fixes.
5055         (_gtk_window_reposition): make this a really internal function.
5056         
5057         * gtk/testgtk.c: fixups.
5058         
5059 2001-03-31  Hans Breuer  <hans@breuer.org>
5060
5061         * config.h.win32.in : disable USE_MMX for msvc build cause
5062         the assembler doesn't fit and is out of my scope. Disable
5063         USE_GMODULE for msvc build as wel. The right way to share
5064         binaries on win32 would be to use libtiff.dll etc. To reduce
5065         installation hassles IMO it's better to include all fileformats
5066         builtin to gdk-pixbuf
5067
5068         * gdk-pixbuf/makefile.msc : new file
5069
5070         * gdk/gdk.def : updated
5071
5072         * gdk/win32/gdkevents-win32.c : don't erase the background if
5073         .no_bg is set. It improves the scrolling (e.g. of testgtk main
5074         buttons
5075         * gdk/win32/gdkgeometry-win32.c : added comment about the above
5076
5077         * gdk/win32/gdkwindow-win32.c : added three new functions like
5078         the X version. Only one is implemented, because the other two
5079         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
5080         be default behaviour on win32 anyway ...
5081
5082         * gtk/gtk.def : updated
5083
5084         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
5085         from where it was built and add an additional rule to automagically
5086         build gtkmarshal.[hc]
5087
5088         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
5089         before array access for the current entry isn't finished
5090
5091         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
5092         use g_return_val_if_fail
5093
5094         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
5095         for the static array, but let the compiler calculate it. It
5096         makes me wonder if gcc isn't capable to catch bugs like this ...
5097
5098 2001-03-31  James Henstridge  <james@daa.com.au>
5099
5100         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
5101         constant "-1" in the aux info structure.
5102
5103 2001-03-30  Alexander Larsson  <alexl@redhat.com>
5104
5105         * gtk/gtkbutton.c (gtk_button_get_property):
5106         * gtk/gtklabel.c:
5107         Remove leaks.
5108         
5109         * gtk/gtkcontainer.c:
5110         * gtk/gtkhscale.c:
5111         * gtk/gtkhscrollbar.c:
5112         * gtk/gtklayout.c:
5113         * gtk/gtkmisc.c:
5114         * gtk/gtkprogress.c:
5115         * gtk/gtkprogressbar.c:
5116         * gtk/gtkrange.c:
5117         * gtk/gtktable.c:
5118         * gtk/gtkviewport.c:
5119         * gtk/gtkvscale.c:
5120         * gtk/gtkvscrollbar.c:
5121         * gtk/gtkwidget.c:
5122         Property patches, based on patches from John Margaglione and Lee Mallabone.
5123
5124 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
5125
5126         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
5127         adjustment. Cleaned redundant preconditions (spin != NULL). Added
5128         inline API function docs.
5129         (gtk_spin_button_new_with_range): New convenience constructor.
5130         (gtk_spin_button_set_increments): New adjustment helper.
5131         (gtk_spin_button_set_range): New adjustment helper.
5132
5133         * gtk/testgtk.c : added test of the new convenince constructor and
5134         value_changed signals.
5135
5136 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
5137
5138         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
5139         listen to the reorder signal.
5140
5141 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
5142
5143         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
5144         to get the aux info structure fo the widget.
5145
5146         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
5147         above function.
5148
5149         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
5150
5151         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
5152         to get the size of the window manager frame, basically the same
5153         code that gdk_window_get_root_origin() had
5154         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
5155
5156         * gtk/gtkwindow.c (gtk_window_set_default_size): use
5157         gdk_window_resize() if the window is realized and resizeable
5158
5159         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
5160         typo so that setting gravity works
5161
5162         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
5163         allocation if auto_shrink is on, even if the default size
5164         has not changed.
5165
5166         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
5167         g_return_if_fail
5168
5169 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
5170
5171         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
5172         reordering/sorting work.  Now pretty much works.
5173
5174         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
5175         reorder mostly work.  Still need to get the parity correct.
5176
5177         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
5178         signal, so I can listen for the sort_column_changed signal so I
5179         can change my "sort_indicator" property.  Cool.
5180
5181 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
5182
5183         [ Patch from Havoc Pennington, hp@redhat.com ]
5184
5185         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
5186         Add functions gdk_window_begin_resize_drag/begin_move_drag
5187         to start resizing or moving a toplevel window. This
5188         is done either using the _NET_WM_MOVERESIZE protocol,
5189         or, if that isn't present, by emulation.
5190
5191         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
5192         to export the above to GTK+-land.
5193
5194         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
5195         
5196         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
5197         Move this function into gdkwindow, since we need it
5198         when implementing fallback resizing.
5199
5200         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
5201         Fix typo when setting gravity.
5202
5203         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
5204         Add an optional (but on by default) resize grip for resizing 
5205         the parent window.
5206
5207 01-03-29  Alexander Larsson  <alexl@redhat.com>
5208
5209         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
5210         Don't return TRUE from the event handler, that blocks all
5211         event signals on the tooltip widget. Now you can press buttons
5212         in toolbars again.
5213
5214 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
5215
5216         * gtk/testtext.c (create_buffer): Add missing NULL on
5217         valist.
5218
5219         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
5220         c-n-p problem with INCONSISTENT property.
5221
5222         [ Patch from Havoc Pennington  <hp@redhat.com> ]
5223
5224         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
5225         hook.
5226
5227         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
5228         signal as a hook for extending the default popup menu
5229
5230         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5231         use radio menu items for the input method menuitems
5232
5233         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
5234         inserted unicode from Ctrl-Shift-hex input method
5235
5236         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
5237         validatation here, already done at GtkTextBuffer level.
5238
5239         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
5240         popup_menu run action signal and Shift+F10 and Menu keybindings.
5241
5242         * gtk/gtkentry.c: implement a default handler for popup_menu
5243
5244         * gtk/gtktextview.c: implement a default handler for popup_menu
5245
5246         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
5247         from a key event
5248         
5249         * gtk/gtklabel.c: remove "trailer" cruft
5250
5251 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
5252
5253         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
5254         handle reordering of trees.  Seems to mostly work w/ the exception
5255         of the parity flag.
5256
5257         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
5258         signal.
5259
5260 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
5261
5262         * gtk/gtkwidget.h: c++ fixes.
5263
5264 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
5265
5266         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
5267         memory.
5268
5269 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
5270
5271         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
5272         Nils Barth fixing event return values. (#51041)
5273
5274         * gtk/gtkwidget.c: Fix some return values for default
5275         functions.
5276
5277         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
5278         return values for trough_keys functions.
5279
5280         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
5281         value for add_accelerator (shoudl have been a void
5282         return.)
5283
5284         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
5285         Fix return type of EVENT.
5286
5287         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
5288         signal return a boolean.
5289
5290 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
5291
5292         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
5293         reordered signal.
5294
5295         * tests/testtreesort.c (main): fix spelling.
5296
5297 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
5298
5299         * gtk/gtkliststore.c: More work on implementing sortable
5300         interface.
5301
5302 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
5303
5304         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
5305         reference the widgets in the resulting list. (#11821)
5306         This makes this consistent with gtk_container_children.
5307
5308         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
5309         uses of gtk_window_list_toplevels.
5310
5311 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
5312
5313         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
5314         a virtual function to set whether the IM context should use 
5315         the preedit string. (#51922)
5316         
5317 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
5318
5319         * gdk/gdkpango.h: Remove stale FIXME comment.
5320
5321 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
5322
5323         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
5324         Fixed bug that returned NULL if a filename was selected.
5325
5326 2001-03-24  Havoc Pennington  <hp@pobox.com>
5327
5328         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
5329         to contain the word "theme"
5330
5331 2001-03-24  Havoc Pennington  <hp@pobox.com>
5332
5333         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
5334         slower but finer-grained
5335         (gtk_hsv_focus): get initial focus on the ring or triangle 
5336         according to tab direction
5337
5338         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
5339
5340 2001-03-23  Havoc Pennington  <hp@pobox.com>
5341
5342         * gtk/gtkhsv.c: make this somewhat key-navigable
5343
5344         * gtk/gtkfontsel.c: mnemonics
5345
5346         * gtk/gtkgamma.c: mnemonics
5347
5348         * gtk/gtkcolorsel.c: add mnemonics to labels
5349
5350 2001-03-22  Havoc Pennington  <hp@pobox.com>
5351
5352         Applied big patch from Seth Lytle to fix event handler return
5353         values, slightly modified.
5354
5355         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
5356         handled.
5357         (gtk_calendar_key_press): return TRUE for GDK_space triggers
5358         select_day
5359
5360         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
5361         (gtk_clist_button_release): return TRUE if handled
5362
5363         * gtk/gtkcolorsel.c (mouse_release):
5364         (palette_activate): 
5365         (palette_press): 
5366         (palette_new): 
5367         (mouse_press): 
5368         (get_screen_color): 
5369         fixed return type (void to gboolean), return TRUE,
5370         added GTK_SIGNAL_FUNC cast
5371
5372         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
5373         (void to gboolean), and return TRUE
5374         (gtk_combo_button_release): changed return value to TRUE after
5375         gtk_grab_add on combo->popwin
5376
5377         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
5378         collapse or expand
5379
5380         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
5381         button/motion
5382
5383         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
5384         press/release and motion that trigger act
5385
5386         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
5387
5388         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
5389         for GDK_Return
5390         
5391         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
5392         (gtk_list_button_release): return TRUE if selection
5393
5394         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
5395         press
5396
5397         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
5398         (gtk_menu_shell_button_release): chain parent_menu_shell retval
5399
5400         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
5401         nothing triggered
5402         (gtk_notebook_button_release): return TRUE if we do anything
5403
5404         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
5405         (gtk_spin_button_button_release): return TRUE or chained retval
5406
5407         * gtk/gtktext.c (gtk_text_button_press): 
5408         (gtk_text_button_release): return TRUE
5409         (gtk_text_key_press): remove redundant retval code
5410         
5411         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
5412         and sensitive
5413         (gtk_tree_item_subtree_button_click): changed type to gint, and return
5414         TRUE if sensitive
5415
5416         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
5417         return TRUE
5418
5419 2001-03-23  Havoc Pennington  <hp@redhat.com>
5420
5421         * gtk/testgtk.c: fix warnings
5422
5423         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
5424
5425         * gtk/gtktextview.c: fix warnings
5426
5427         * gtk/gtktext.c (find_cursor_at_line): fix warning
5428
5429         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
5430
5431         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
5432         of this function
5433
5434         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
5435         fix warning
5436
5437         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
5438
5439         * gtk/gtkfontsel.c: fix warning
5440
5441         * gtk/gtkcolorsel.c: fix warnings
5442
5443 2001-03-23  Havoc Pennington  <hp@redhat.com>
5444
5445         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
5446
5447         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
5448
5449         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
5450         and deprecated gtk_check_menu_item_set_show_toggle().
5451         
5452         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
5453
5454         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
5455
5456         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
5457
5458 2001-03-23  Havoc Pennington  <hp@redhat.com>
5459
5460         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
5461         some docs
5462
5463 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
5464
5465         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
5466         this.
5467
5468         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
5469         set_cell to set_value
5470
5471         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
5472         set_cell to set_value
5473
5474 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
5475
5476         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5477         fix braino.
5478         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
5479         support.
5480
5481         * gtk/gtktreeview.c: Addition of initial sortable support.
5482
5483         * gtk/gtktreestore.c: Addition of initial sortable support.
5484
5485         * gtk/gtkliststore.c: Addition of initial sortable support.
5486
5487         * gtk/gtkmarshal.list: yet another marshaller.
5488
5489         * gtk/gtktreedatallist.[ch]: shared code between the store models
5490         for handling sorting headers.
5491
5492 2001-03-22  Havoc Pennington  <hp@redhat.com>
5493
5494         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
5495         (gtk_container_unset_focus_chain): Add ability to override the 
5496         focus chain for a container explicitly
5497
5498 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
5499
5500         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
5501         added PROP_MNEMONIC_WIDGET.
5502
5503         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
5504         (gtk_window_remove_mnemonic): 
5505         (gtk_window_add_mnemonic): fixed assertions.
5506         (gtk_window_activate_mnemonic): constrain modifier checks to those
5507         permitted by gtk_accelerator_get_default_mod_mask().
5508         got rid of gtk_window_get_default_accel_group().
5509
5510         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
5511         activatable widgets either by focussing or a warning.
5512         added a signal accumulator to ::activate_mnemonic which stops the
5513         emission once a handler returned TRUE.
5514
5515 2001-03-22  Havoc Pennington  <hp@pobox.com>
5516
5517         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
5518         the stock item label
5519
5520         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
5521
5522         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
5523
5524         * demos/gtk-demo/*.c: Add mnemonics all over the place
5525
5526         * gtk/gtklabel.h: mark parse_uline deprecated
5527
5528 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5529
5530         * gtk/gtkitemfactory.[ch]:
5531         Add support for stock and normal imagemenuitems.
5532         
5533         * gtk/testgtk.c:
5534         Add some tests for mnemonics, stock toolbars, stock
5535         and image menuitems in itemfactory and gdk_window_scroll.
5536
5537 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5538
5539         * gtk/gtkbutton.[ch]:
5540         * gtk/gtkdialog.c:
5541         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
5542         removed accel_group argument. Renamed gtk_button_new_accel() to
5543         gtk_button_new_with_mnemonic() and removed accel_group argument.
5544
5545         * gtk/gtkcheckbutton.[ch]:
5546         New function gtk_check_button_new_with_mnemonic().
5547
5548         * gtk/gtkentry.c:
5549         Override activate_mnemonic and just grab focus.
5550
5551         * gtk/gtkitemfactory.c:
5552         Don't add menu uline accel group, instead use mnemonics support.
5553
5554         * gtk/gtklabel.[ch]:
5555         New support for mnemonics.
5556
5557         * gtk/gtkmarshal.list:
5558         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
5559
5560         * gtk/gtkmenu.[c]:
5561         * gtkmenushell.c:
5562         Use mnemonics instead of accel groups for uline
5563         support in menu items.
5564         Removed gtk_menu_get_uline_accel_group() and
5565         gtk_menu_ensure_uline_accel_group().
5566
5567         * gtk/gtkmenuitem.c:
5568         Override activate_mnemonic to handle switching between
5569         menu items if there are collisions.
5570         
5571         * gtk/gtknotebook.c:
5572         Connect to activate_mnemonic on the tab_label, so that
5573         activating it switches to that notebook page.
5574
5575         * gtk/gtkwidget.[ch]:
5576         Add activate_mnemonic signal. New function
5577         gtk_widget_activate_mnemonic() to emit it.
5578         Default implementation does activate/grab_focus.
5579
5580         * gtk/gtkwindow.[ch]:
5581         Add support for mnemonics in windows.
5582         New functions:
5583         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
5584         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
5585
5586         * gtk/testgtk.c:
5587         Update to function name changes.
5588         
5589 2001-03-21  Alexander Larsson  <alexl@redhat.com>
5590
5591         * gtk/gtkimagemenuitem.[c]:
5592         Add gtk_image_menu_item_new_from_stock()
5593
5594 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
5595
5596         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
5597         Fix buglet in meeting.
5598
5599 2001-03-19  Havoc Pennington  <hp@redhat.com>
5600
5601         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
5602         add a bunch of accessor functions. This is because we have
5603         reasonable expectations of extending what fields it contains in
5604         the future.
5605
5606         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
5607         changes
5608
5609         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
5610         GtkIconSource   
5611
5612 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
5613
5614         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
5615         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
5616
5617         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
5618           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
5619           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
5620           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
5621         Change float to double everywhere with the exception of 0<->1.0 alignment
5622         and GtkCurve.
5623
5624 2001-03-19  Tor Lillqvist  <tml@iki.fi>
5625
5626         * gdk/win32/gdkdrawable-win32.c
5627         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
5628         output.
5629
5630         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
5631         gdkwin32.h.
5632
5633 2001-03-18  Tor Lillqvist  <tml@iki.fi>
5634
5635         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
5636         print_event_state, print_event): Use preprocessor macro to make
5637         code more compact. Print also GDK_WINDOW_STATE events.
5638         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
5639         
5640         * gtk/gtk.def
5641         * gtk/makefile.mingw.in: Update.
5642
5643         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
5644         to catch also Cygwin.
5645
5646 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
5647
5648         * gtk/gtkspinbutton.[hc]: added rc-style argument
5649         GtkSpinButton::shadow_type.
5650         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
5651         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
5652         rc-style settings.
5653
5654         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
5655
5656         * gtk/gtkwidget.c: quark cleanups.
5657
5658         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
5659         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
5660         to create_rc_style() (we don't do cloning in standard OO sense).
5661         added per rc style properties.
5662         
5663         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
5664         property values and for caching those. some cleanups.
5665         
5666         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
5667         
5668         * gtk/gtksettings.[hc]: new file for global rc-file properties
5669         (at least currently, should get extended to support X properties
5670         and other communication mechanisms).
5671         
5672         * gtk/gtkwidget.[hc]: added style property support:
5673         (gtk_widget_class_install_style_property_parser): install style
5674         property pspec with parser function for rc-file values other
5675         than LONG, DOUBLE or STRING.
5676         (gtk_widget_class_install_style_property): same as above without
5677         parser (parsers are going to be needed quite infrequently).
5678         (gtk_widget_style_get_property): retrive style property value.
5679         (gtk_widget_style_get_valist): same as above with varargs support,
5680         has NOCOPY semantics.
5681         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
5682
5683 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
5684
5685         * demos/gtk-demo/main.c (row_activated_cb): modified to use
5686         "row_activated" signal.
5687
5688         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
5689         stupidity.  Lets actually pass in the row with this signal...
5690
5691 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
5692
5693         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
5694
5695         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
5696
5697         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
5698         everything into the ::destroy function, and freed a lot more.
5699
5700 2001-03-16  Havoc Pennington  <hp@redhat.com>
5701
5702         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
5703         instead of gint16, to avoid overflow issues, since sizes > 16-bit
5704         are now allowed.
5705
5706 2001-03-16  Havoc Pennington  <hp@redhat.com>
5707
5708         * Applied patch from Nils Barth (bug # 51041) to 
5709         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
5710         in various places.
5711
5712 2001-03-15  Havoc Pennington  <hp@redhat.com>
5713         
5714         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
5715         for properties to set on the tag.
5716
5717         * gtk/testtext.c: fixups to reflect create_tag change
5718         
5719         * gtk/gtktexttag.c (gtk_text_tag_set_property):
5720         background/foreground stipple are objects, not boxed.
5721
5722         * demos/gtk-demo/textview.c: intellihancing
5723
5724 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
5725
5726         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
5727         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
5728
5729 2001-03-16  Alexander Larsson  <alexl@redhat.com>
5730
5731         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
5732         Fix sign error with queued region translations.
5733
5734 2001-03-15  HideToshi Tajima  <tajima@happy>
5735
5736         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
5737         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
5738         * gtk/gtkentry.c (update_im_cursor_location): 
5739         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
5740         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
5741         set_cursor_pos to set_cursor_location in GtkInputContext class
5742
5743 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
5744
5745         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
5746         the location of the cell relative to its area.
5747         * gtk/gtkcell*: modified for above change
5748         * gtk/gtktreeview.c: modified for above change.
5749
5750 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
5751
5752         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
5753          (gtk_tree_view_finalize): actually unref the model.  Thanks to
5754         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
5755
5756 2001-03-14  Havoc Pennington  <hp@redhat.com>
5757
5758         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
5759         
5760         * gtk/gtk.h: remove gtkdata.h
5761
5762         * gtk/Makefile.am: remove gtkdata
5763         
5764         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
5765         not "disconnect" on the adjustments.
5766         
5767         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
5768         GtkData
5769
5770         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
5771         not GtkData
5772
5773         * configure.in: handle case where X render exists, but Pango lacks
5774         Xft support.
5775
5776 2001-03-15 Alexander Larsson  <alexl@redhat.com>
5777
5778         * gtk/gtktoolbar.[ch]:
5779         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
5780         to add stock items to toolbars.
5781
5782         * gtk/Makefile.am:
5783         Remove ../gdk/gdkim.h from gdk_headers.
5784
5785 2001-03-15  Sven Neumann  <sven@gimp.org>
5786
5787         * gdk/gdkim.h: removed
5788         
5789         * gdk/gdkprivate.h
5790         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
5791
5792 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
5793
5794         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
5795         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
5796         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
5797         set_cursor_pos() virtual method
5798
5799         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
5800         (gtk_im_context_xim_set_cursor_pos): add implementation for
5801         set_cursor_pos() method
5802
5803         * gtk/gtkentry.c (recompute_idle_func): set current cursor
5804         position to input methods
5805
5806 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
5807
5808         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
5809         code a lot.
5810
5811         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
5812         g_mem_chunk.
5813         (_gtk_tree_data_list_alloc): use g_mem_chunk.
5814         (_gtk_tree_data_list_node_to_value): Fix to switch on
5815         G_TYPE_FUNDAMENTAL.
5816         (_gtk_tree_data_list_value_to_node): Fix to switch on
5817         G_TYPE_FUNDAMENTAL.
5818         (_gtk_tree_data_list_node_copy): Fix to switch on
5819         G_TYPE_FUNDAMENTAL.
5820
5821 2001-03-12  Havoc Pennington  <hp@redhat.com>
5822
5823         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
5824         to convert to new property API. Also, change default_width and
5825         default_height get_property to return 0 as the flag value for
5826         "unset"; -1 is not a valid value for these fields.
5827
5828 2001-03-12  Havoc Pennington  <hp@redhat.com>
5829
5830         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
5831         enum with registration for icon sizes, instead of strings.
5832
5833         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
5834         gtkwidget.c: Fix to reflect GtkIconSize
5835         
5836 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5837
5838         Make GtkFB compile and link.
5839         
5840         * gdk/linux-fb/gdkdrawable-fb2.c:
5841         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5842         
5843         * gdk/linux-fb/gdkwindow-fb.c:
5844         window->mapped to GDK_WINDOW_IS_MAPPED(). 
5845         Added gdk_window_shape_combine_region.
5846         Added assorted placeholders for unimplemented new GdkWindow API calls.
5847
5848 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5849
5850         * gtk/gtkfilesel.c:
5851         Add more test when converting filenames from/to utf-8.
5852         Don't allow entering text in the filename entry which isn't allowed in
5853         a filename. Just beep instead.
5854
5855 2001-03-12  Alexander Larsson  <alexl@redhat.com>
5856
5857         * gtk/gtkclist.c:
5858         Scroll using gdk_window_scroll(). Don't wait for exposes.
5859         Move the column headers in an order that makes them flash less.
5860
5861 2001-03-10  Hans Breuer  <hans@breuer.org>
5862
5863         * gdk/gdk.def : updated
5864
5865         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
5866         to offseting the clip_mask at the right place
5867
5868         * gdk/win32/gdkwindow-win32.c : don't create background brushes
5869         for all the gdkClasses, especially not for the input_only case.
5870         Otherwise flickering wont be avoidable, because we don't get
5871         WM_ERASEBKGND message for these windows.
5872
5873         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
5874         and fixed massive redraw problems apparently triggered by Alexanders 
5875         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
5876         but it seems to work quite well :-)
5877
5878         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
5879         prototype
5880
5881 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
5882
5883         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
5884         (gtk_list_store_set_cell): Fix a stupid typo.
5885
5886 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
5887
5888         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
5889         select_all not work if you're in SINGLE mode (it doesn't make that
5890         much sense, anyway.)
5891
5892         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
5893         handle types more sanely.
5894         (_gtk_tree_data_list_value_to_node): handle types more sanely.
5895         (_gtk_tree_data_list_node_copy): handle types more sanely.
5896
5897         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
5898         GValue better. Converts the type as well.
5899
5900         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
5901         GValue better. Converts the type as well.
5902
5903 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
5904
5905         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
5906         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
5907         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
5908         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
5909
5910         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
5911         gdk_im/gdk_ic.
5912
5913 2001-03-09  Hans Breuer  <hans@breuer.org>
5914
5915         * gdk/gdk.def : updated
5916
5917         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
5918         for their palette
5919
5920         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
5921         removing
5922
5923         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
5924         removing and implemented Havoc's GdkWindow state functions; 
5925         stick/unstick only as no-op, cause I don't know how to emulate 
5926         on win32 ...
5927
5928         * gtk/gtk.def : updated
5929
5930         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
5931
5932         * gtk/gtktypeutils.c : #include <string.h>
5933
5934         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
5935
5936 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
5937
5938         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
5939         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
5940         not a boxed.
5941
5942 2001-03-09  Alexander Larsson  <alexl@redhat.com>
5943
5944         * docs/Changes-2.0.txt:
5945         Document expose event->region change and that gtk_widget_event
5946         doesn't allow passing expose events.
5947
5948         * gdk/gdkevents.h:
5949         Add region to expose event.
5950         
5951         * gdk/gdkevents.c:
5952         Handle event->region in gdk_event_copy() and gdk_event_free().
5953
5954         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
5955         Generate expose_event->region when creating expose events.
5956
5957         * gdk/x11/gdkevents-x11.c:
5958         Generate expose events with regions when translating X events.
5959
5960         * gtk/gtkcontainer.[ch]:
5961         Default expose handler that propagates expose events to NO_WINDOW
5962         children. New function gtk_container_propagate_expose()
5963
5964         * gtk/gtkwidget.[ch]:
5965         Moved gtk_widget_event implementation to gtk_widget_event_internal.
5966         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
5967         expose events. New function gtk_widget_send_expose() to send expose
5968         events. New function gtk_widget_region_intersect() to calculate
5969         window/region intersections.
5970         
5971         * gtk/gtkmain.c (gtk_main_do_event):
5972         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
5973         Use gtk_widget_send_expose() to send expose events.
5974         
5975         * gtk/gtkbin.c:
5976         * gtk/gtkbox.c:
5977         * gtk/gtkfixed.c:
5978         * gtk/gtkimagemenuitem.c:
5979         * gtk/gtklist.c:
5980         * gtk/gtkpacker.c:
5981         * gtk/gtktable.c:
5982         * gtk/gtktree.c:
5983         Remove expose handler, using the default container implementation
5984         instead.
5985         
5986         * gtk/gtkbutton.c:
5987         * gtk/gtkcheckbutton.c:
5988         * gtk/gtkeventbox.c:
5989         * gtk/gtkfixed.c:
5990         * gtk/gtkhandlebox.c:
5991         * gtk/gtklayout.c:
5992         * gtk/gtklistitem.c:
5993         * gtk/gtkmenu.c:
5994         * gtk/gtkmenubar.c:
5995         * gtk/gtkmenuitem.c:
5996         * gtk/gtknotebook.c:
5997         * gtk/gtkoptionmenu.c:
5998         * gtk/gtkpaned.c:
5999         * gtk/gtkscrolledwindow.c:
6000         * gtk/gtktogglebutton.c:
6001         * gtk/gtktoolbar.c:
6002         * gtk/gtktreeitem.c:
6003         * gtk/gtkviewport.c:
6004         Chain expose handler to parent class handler. Use
6005         gtk_container_propagate_expose() to propagate exposes.
6006
6007         * gtk/gtkclist.c (check_exposures):
6008         * gtk/gtktext.c (process_exposes):
6009         Use gtk_widget_send_expose instead of gtk_widget_event.
6010
6011 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
6012
6013         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
6014
6015 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
6016
6017         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
6018         unref the nodes.   Fixes bug #50058.
6019
6020         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
6021         "::ref_iter" to "::ref_node".
6022         (gtk_tree_model_unref_node): change "::unref_iter" to
6023         "::unref_node". Fixes bug #50064.
6024
6025 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
6026
6027         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
6028         support for invisible cells.
6029          (gtk_tree_view_bin_expose): ditto
6030
6031 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
6032
6033         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
6034         on gobjects.
6035
6036         * tests/testtreefocus.c (main): New test file.
6037
6038         * tests/testtreeview.c: update to latest glib changes.
6039
6040         * tests/testtreecolumns.c: update to latest glib changes.
6041
6042 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
6043
6044         * gtk/testgtk.c: re-enabled event watcher emission hooks.
6045
6046 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
6047
6048         * *.c: added accumulator data argument to g_signal_newc()
6049         functions.
6050
6051         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
6052         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
6053         * gtk/treestoretest.c (make_window):
6054         s/g_signal_connect/g_signal_connectc/.
6055
6056         * gtk/gtktextbuffer.c: completed signal arg fixups,
6057         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
6058
6059 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
6060
6061         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
6062         G_CONST_RETURN.
6063
6064         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
6065         ::hierarchy-changed signal when a widget changes
6066         from anchored to unanchored or vice versa.
6067         (anchored means 
6068          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
6069         Use a private flag to keep track of this efficiently.
6070
6071 2001-03-07  Havoc Pennington  <hp@redhat.com>
6072
6073         * gtk/testgtk.c (create_spins): uglify so that size request gets
6074         tested.
6075
6076         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
6077         request on values for upper/lower, completes #6152
6078
6079 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
6080
6081         * Makefile.am: Remove gtk-config-2.0 again.
6082         (Grrrr, pkg-config. And stops make loops.)
6083
6084 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
6085
6086         * gtk/gtksignal.[hc]: removed old emission hook API.
6087         
6088         * docs/Changes-2.0.txt: fixed sections.
6089         
6090         * gtk/gtktextbuffer.c: signal arg fixups.
6091
6092 2001-03-07  Havoc Pennington  <hp@redhat.com>
6093
6094         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
6095
6096         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
6097         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
6098         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
6099         validation and the redraw which is higher priority than the
6100         validation.
6101
6102 2001-03-07  Havoc Pennington  <hp@redhat.com>
6103
6104         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
6105         (gtk_entry_set_property): remove trailer
6106
6107         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
6108         (gtk_entry_get_width_chars): new functions, to set size request to 
6109         a given number of characters
6110
6111         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
6112
6113         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
6114         (gtk_dialog_get_has_separator): new function
6115         (run_delete_handler): fix to not emit "response" signal
6116         because we already did in the delete event handler installed
6117         at dialog creation time.
6118         
6119         * gtk/gtkdialog.h: add a has_separator property,
6120         add GTK_DIALOG_NO_SEPARATOR flag
6121
6122 2001-03-07  Havoc Pennington  <hp@redhat.com>
6123
6124         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
6125         off decorations for a window.
6126
6127         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
6128         changes
6129
6130         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
6131         to get location of PangoLayout inside the label, closes #51198
6132
6133         * gtk/testgtk.c (create_bbox): fix up button box usage
6134
6135         * gtk/testcalendar.c (create_calendar): fix up button box usage
6136
6137         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
6138
6139         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
6140
6141         * gtk/gtkhbbox.h: deprecations
6142
6143         * gtk/gtkvbbox.h: deprecations
6144
6145         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
6146         emulate deprecated gtk_button_box_get_spacing
6147
6148         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
6149         the "set global default" functions
6150         (struct _GtkButtonBox): remove "spacing" field, use the one from 
6151         GtkBox base class
6152
6153         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
6154
6155         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
6156         render the icon, return the missing image icon.
6157
6158         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
6159         image icon if the load fails.   
6160
6161         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
6162         when no image is found; should be the Netscape "missing image"
6163         icon eventually but for now is a random image
6164
6165         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
6166         role for the session manager
6167
6168         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
6169
6170         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
6171         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
6172
6173         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
6174
6175 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
6176
6177         * gtk/*.c: marshaller fixes.
6178         
6179         * gtk/gtkmarshal.list: extreme cleanup.
6180
6181         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
6182         param spec for now.
6183
6184         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
6185         where appliable.
6186
6187         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
6188         special cased autogenerated boxed types from gtktypebuiltins_ids.c
6189         which are not reference counted:
6190         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
6191         PangoFontDescription, GtkTreeIter and GtkTreePath.
6192
6193 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
6194
6195         * gtk/gtktreeselection.h: 
6196         * gtk/gtktreemodel.c:
6197         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
6198         file should be included directly, and gobject/gmarshal.h
6199         as well as gtk/gtkmarshal.h even can't be included directly.
6200
6201         * Makefile.am: grr, install gtk-config-2.0.
6202
6203         * gtk/testgtk.c:
6204         * gtk/simple.c:
6205         * gtk/gtkmenu.c:
6206         * gtk/gtkitemfactory.c: use g_object_connect() instead of
6207         passing "*signal*::*" args to gtk_widget_set().
6208         
6209         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
6210         
6211         * gtk/*.c: removed trailer arg from property setters and getters.
6212         macro fixups.
6213
6214 2001-03-07  Alexander Larsson  <alexl@redhat.com>
6215
6216         * gtk/gtklabel.c (set_markup): Removed warning
6217
6218 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
6219
6220         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
6221         field to allow you to hide cell renderers.
6222
6223         * gtk/gtkcellrenderer.c: Add support for invisible cells.
6224
6225         * gtk/gtktreeview.c: Add support for invisible cells.
6226
6227 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
6228
6229         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
6230         Add "clicked" signal back to columns.
6231
6232         * ChangeLog: remove conflict markers.
6233
6234 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
6235
6236         * gtk/gtkbutton.c: Add animation of activation by, on 
6237         activate, pressing the button, and adding a timeout that 
6238         releases the button after 250ms or on key release and
6239         emits ::clicked. (#51501)
6240
6241         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
6242         action area, we connect to ::clicked instead of ::activate
6243         so the dialog stays up through the animation.
6244
6245 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
6246
6247         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
6248         check the ignore_enter flag for the menu shell that
6249         the item is actually a child of, not for attached
6250         submenus. (#51536)
6251
6252 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6253
6254         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6255         special key-press grab handling for widgets within
6256         GtkWindows. Otherwise, fall through to normal case.
6257
6258         This prevents key events being sent twice to GtkInvisible
6259         widgets, which can cause all sorts of mischief.
6260
6261 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6262
6263         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6264         widget is in effect, give the grab widget a first
6265         crack at KEY_PRESS/RELEASE events. (#424)
6266
6267 2001-03-06  James Henstridge  <james@daa.com.au>
6268
6269         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
6270         offset for the window_state_event to point at window_state_event
6271         rather than no_expose_event.
6272
6273 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
6274
6275         * gtk/gtkimmodule.h: fix busted /* comment */
6276
6277 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
6278
6279         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
6280         object properties.
6281
6282 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
6283
6284         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
6285         add object properties.
6286
6287         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
6288         to add object properties.
6289
6290         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
6291         object properties.
6292
6293         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
6294         add object properties.
6295
6296         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
6297         object properties.
6298
6299 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
6300
6301         * gtk/gtktreemodel.c: renamed "child_toggled" to
6302         "has_child_toggled".
6303
6304         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
6305         handle new signal name.
6306
6307         * gtk/gtktreestore.c: Updated to handle new signal name.
6308         * gtk/gtklisttore.c: Updated to handle new signal name.
6309         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
6310
6311 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6312
6313         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
6314         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
6315
6316 2001-03-05  Michael Natterer  <mitch@gimp.org>
6317
6318         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
6319         pixbuf-engine coincidentially also failed to make one of it's
6320         parent_class pointers static, causing overwriting of GtkLabel's
6321         parent_class pointer in pixbuf_style_class_init().
6322         (Will commit the fix to the pixbuf-engine too).
6323
6324 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6325
6326         * gdk/gdkwindow.h:
6327         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
6328         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
6329         gdk_window_set_icon_list for net wmspec functionality.
6330
6331         * gdk/x11/gdkwindow-x11.c:
6332         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
6333         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
6334         gdk_window_set_icon_list.
6335         Added gdk_wmspec_change_state helper function and used it in the code.
6336         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
6337
6338         * gtk/gtkdialog.c (gtk_dialog_init):
6339         Set GDK_WINDOW_TYPE_HINT_DIALOG.
6340
6341         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
6342         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
6343
6344         * gtk/gtkwindow.c:
6345         new function gtk_window_set_type_hint.
6346         On realize, set type hint and modal hint.
6347
6348         * gtk/gtkwindow.h:
6349         Added type_hint field and gtk_window_set_type_hint.
6350
6351 2001-03-05  Alexander Larsson  <alexl@redhat.com>
6352
6353         * gtk/gtklabel.[ch]:
6354         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
6355         New function gtk_label_get_accel_keyval () to get the underline accelerator
6356         of the label. Setting the label pattern overrides other attributes.
6357
6358 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
6359
6360         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
6361         Added missing initializers to gtk_rc_style_init().
6362
6363 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
6364
6365         * gtk/gtktextview.c: fixed bug #51097 about setting 
6366         gtk_text_view_set_border_window_size() if the widget is 
6367         already realized.
6368
6369 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
6370
6371         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
6372
6373         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
6374         comment. Won't do to have duplicated doc comments between
6375         the platform subdirs.
6376
6377 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
6378
6379         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
6380           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
6381
6382         Detectable auto-repeat - make a repeating key generate
6383         press/press/press/release instead of press/release pairs.
6384
6385         If we have Xkb and XkbSetDectableAutoRepeat supports
6386         that, we do it that way. Otherwise, when we get
6387         a release event, we check ahead with XPending to see
6388         if the next key is a KeyPress with the same keycode
6389         and timestamp. (Not 100% reliable, but pretty close.)
6390           
6391 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
6392         
6393         * gtk/gtkmain.c (gtk_propagate_event): Only do special
6394         special key-press grab handling for widgets within
6395         GtkWindows. Otherwise, fall through to normal case.
6396  
6397         This prevents key events being sent twice to GtkInvisible
6398         widgets, which can cause all sorts of mischief.
6399  
6400 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
6401  
6402         * gtk/gtkmain.c (gtk_propagate_event): When a grab
6403         widget is in effect, give the grab widget a first
6404         crack at KEY_PRESS/RELEASE events. (#424)
6405  
6406 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
6407
6408         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
6409         to extend the selection. (Roughly based on patch
6410         from Jay Cox, #50939)
6411
6412         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
6413         to properly handle previous GDK_BUTTON_PRESS. 
6414         (Patch from Jay Cox, #50938)
6415
6416         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
6417         '\0' back along with the deleted text. (#51148)
6418
6419 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
6420
6421         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
6422         the group when extracting it from the X keyboard event.
6423
6424         * modules/input/Makefile.am modules/input/imipa.c: 
6425         Simple module for entering IPA. (Do we need a 
6426         gtk-stupid-input-tricks CVS module?)
6427
6428 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
6429
6430         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
6431         const.
6432
6433         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
6434
6435         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
6436         is no focus widget for the dialog currently, grab the focus as well
6437         as the default.
6438
6439         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
6440         the action area's children to iterate through, not the
6441         dialog's children.
6442
6443 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
6444
6445         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
6446         Add plug-socket tests. (Won't work worth a darn until I commit
6447         the rest of the plug-socket changes, but no reason these
6448         can't go into CVS now.)
6449
6450 2001-03-02  Havoc Pennington  <hp@redhat.com>
6451
6452         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
6453         _gdk_region_get_xrectangles()
6454
6455         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
6456
6457         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
6458
6459         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
6460         function, contributed by Ron Steinke    
6461
6462         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
6463         gdk_net_wm_supports
6464
6465         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
6466         New function, contributed by Ron Steinke
6467
6468         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
6469         used to line up the text in the entry when using the entry for
6470         editable sheet cell hacks
6471
6472         * gtk/testgtk.c (create_entry): test the activate_default setting
6473         on GtkEntry
6474
6475         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
6476         cause the entry to activate the default button for a dialog when 
6477         activated
6478         (gtk_entry_get_activates_default): new function
6479
6480 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
6481
6482         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
6483         Hwang to move call to sync_selection() up a few lines
6484         to before the row list is modified, to fix crash when
6485         removing rows in the undo_selection list.
6486
6487         (Test case provided by Daniel Elstner:
6488
6489         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
6490
6491 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
6492
6493         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
6494         of tree->root_tree in parent_set rather than _map(), 
6495         fixing #50892 in a bit better manner.
6496
6497 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
6498
6499         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
6500
6501 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
6502
6503         * gtk/gtkstyle.c : Remove duplicate fwd decl for
6504         gtk_default_draw_shadow.
6505
6506 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
6507
6508         * gdk/gdkimage.c (gdk_image_new): Remove excess 
6509         warning, make warnings more verbose, treat a error
6510         in shmat as permanent, and don't try again.
6511         (#51163, Ed Randall.)
6512
6513 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
6514
6515         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
6516         delay for the first click before starting to scroll.
6517         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
6518
6519         * gtk/gtktext.c: GtkText should have I-beam cursor. 
6520         (based on gtk-enf-990513-1.patch, Eric Fisher.)
6521
6522 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
6523
6524         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
6525         cleanup to remove some references to unused
6526         ->xoffset, ->yoffset.
6527
6528 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
6529
6530         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
6531         mask. (#51039, fix from Martin Maierhofer)
6532
6533 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
6534
6535         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
6536         for unshifted + and shifted = for non-us keyboards.
6537         Make <Control>+ and <Control>- work as well as 
6538         <Control>KP_Plus, <Control>KP_Minus for recursive
6539         open/close.  (#2682, René Seindal)
6540
6541 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
6542
6543         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
6544         the active menu item before deactivating the menu,
6545         so gtk_menu_popdown doesn't change the history. (#50964)
6546         
6547 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
6548
6549         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
6550         draw lines with text_gc rather than black_gc.
6551         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
6552
6553 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
6554
6555         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
6556         Move handling of buttons fully in gtktreeviewcolumn.  This code is
6557         less interrelated then it was, but it still requires the
6558         GtkTreeView to map it.
6559
6560         * test/testtreecolumn.c: Now I can add a column to one view,
6561         remove it, add it to the another view, remove it, then re-add it
6562         to the first.  Nifty.
6563
6564 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
6565
6566         * docs/tutorial/gtk-tut.sgml: Minor corrections
6567
6568 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
6569
6570         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
6571         GtkRowReference.
6572
6573 2001-02-28  Havoc Pennington  <hp@redhat.com>
6574
6575         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
6576         draw_default
6577         (gtk_widget_draw_focus): remove this function; we could instead
6578         make it just gtk_widget_draw(), but in most cases I think the
6579         result would be broken user code, so think it's better to have
6580         that code not compile and get fixed
6581         (gtk_widget_draw_default): ditto
6582
6583         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
6584         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
6585         
6586         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
6587         widgets lose/get the default, instead of calling draw_default
6588         
6589         * docs/Changes-2.0.txt: note about all this
6590
6591         Then fixed every widget in GTK, I won't list all the filenames.
6592
6593 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
6594
6595         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
6596         _gtk_tree_row_reference_deleted.
6597         (inserted_callback): Proxy out to
6598         _gtk_tree_row_reference_inserted.
6599         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
6600         get around signal emission ordering problem.
6601
6602         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
6603         fix to work with SINGLE 
6604         (_gtk_tree_selection_internal_select_node): Major sanitization on
6605         selections.  SINGLE now seems to work.
6606
6607         * tests/Makefile.am: add testtreecolumn.c:
6608
6609         * tests/testtreecolumn.c: New test.  Mostly points out selection
6610         bugs currently, but will test columns later.
6611
6612         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
6613         selection bug.  I hate touching this code -- it's scary.
6614
6615 2001-02-26  Havoc Pennington  <hp@redhat.com>
6616
6617         * gtk/testgtk.c: test the window state stuff
6618
6619         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
6620         window come to the user's attention as if it were just created
6621         (gtk_window_iconify): new function
6622         (gtk_window_deiconify): new function
6623         (gtk_window_stick): new function
6624         (gtk_window_unstick): new function
6625         (gtk_window_maximize): new function
6626         (gtk_window_unmaximize): new function
6627
6628         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
6629
6630         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
6631
6632         * gdk/x11/gdkevents-x11.c: create window state events when
6633         appropriate
6634         (gdk_wmspec_supported): new function
6635
6636         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
6637         iconification before showing the window
6638         (gdk_window_deiconify): new function
6639         (gdk_window_stick): new function
6640         (gdk_window_unstick): new function
6641         (gdk_window_maximize): new function
6642         (gdk_window_unmaximize): new function
6643
6644         * gdk/gdkwindow.c: store the window state in the window; 
6645         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
6646         window->mapped.
6647         (gdk_window_get_state): return the current window state
6648
6649         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
6650         (gdk_event_get_state): handle GDK_WINDOW_STATE
6651         (gdk_synthesize_window_state): function to create the window state
6652         events
6653
6654         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
6655         event, for changes to "window state" such as maximized, sticky, 
6656         etc.
6657         
6658         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
6659         focuses a window
6660
6661         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
6662         finds out if we support a given WM spec hint
6663
6664 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
6665
6666         * docs/faq/gtk-faq.sgml: New question re memory leaks.
6667
6668 2001-02-25  Hans Breuer  <hans@breuer.org>
6669
6670         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
6671         cause we want to loose those prototypes only in the latter case
6672
6673         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
6674         GdkPixmapImplWin32 because it itsn't derived from it. Use the
6675         impl member variable instead
6676
6677         * gtk/gtk.def : updated
6678
6679         * gtk/gtklist.c : 
6680         * gtk/gtkmenus.c : include <string.h> for memset ()
6681
6682         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
6683         for everthing built here, but for gtk-x.x.dll only. This solves
6684         problem of indifferent gtk type definitions
6685
6686 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
6687
6688         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
6689
6690 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
6691
6692         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
6693         column that is exposed.
6694
6695         (_gtk_tree_view_update_size): Changed name from set_size, and
6696         changed function to do more work, and not force people calling it
6697         to figure out the size.  Simplifies a lot of code elsewhere.
6698
6699 2001-02-23  Alexander Larsson  <alexl@redhat.com>
6700
6701         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
6702         return solid masks for xpms that have no transparent color.
6703         This makes the ..._create_from_xpm... API backwards
6704         compatible.
6705
6706 2001-02-23  Tor Lillqvist  <tml@iki.fi>
6707
6708         * README.win32: Update. Mention the gtk-1-3-win32-production
6709         branch.
6710
6711         * gdk/win32/bdfcursor.c: New file. A program that generates
6712         xcursors.h. Thanks to Stefan Ondrejicka.
6713
6714         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
6715         compact format.
6716
6717         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
6718
6719         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
6720         function, uses xcursors.h.
6721         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
6722         cursor from inline data instead of using LoadCursor() to generate
6723         it from a resource.
6724
6725         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
6726         event, must check the Windows message for mouse button state, as
6727         the GDK event state might not have been built if it is
6728         undelivered. Remove one goto.
6729
6730         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
6731         SetCursor() if the current cursor as returned by GetCursor() is
6732         the window's previous cursor. The ChildWindowFromPoint() test
6733         apparently didn't work correctly.
6734
6735         * gdk/win32/rc/*.cur: Remove.
6736
6737         * gdk/win32/rc/gdk.rc.in: Remove cursors.
6738
6739         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
6740
6741         * gtk/makefile.{mingw,msc}.in: Updates.
6742
6743 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
6744
6745         * gtk/gtktreemodel.h: add functions for signal emission.
6746
6747         * gtk/gtktreestore.c: move to use above functions instead of
6748         g_signal_emit.
6749
6750         * gtk/gtkliststore.c: ditto
6751
6752 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
6753
6754         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
6755         GObject instead of GtkObject.
6756
6757         * gtk/gtkliststore.c: ditto.
6758
6759         * gtk/gtktreemodelsort.c: ditto.
6760
6761         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
6762         GtkTreeModelIface, instead of in each model.
6763
6764 2001-02-21  Havoc Pennington  <hp@redhat.com>
6765
6766         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
6767         unbreak this function
6768
6769         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
6770         properties
6771
6772         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
6773         properties
6774
6775         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
6776         properties
6777
6778         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
6779         mean unset the max length
6780
6781 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
6782
6783         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
6784         Changed name to be set_cell_data_func to make it clear what
6785         the functino does.  Close bug #51069.
6786
6787 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
6788
6789         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
6790         have memory actually freed.  Keeps box running longer.
6791
6792 2001-02-21  Alexander Larsson  <alexl@redhat.com>
6793         
6794         * gtk/gtkseparatormenuitem.[ch]:
6795         Added new menu separator item. The drawing and size handling
6796         is still done in GtkMenuItem, but the API is a bit more sane.
6797         
6798         * gtk/Makefile.am:
6799         Add gtkseparatormenuitem.[ch].
6800
6801         * gtk/gtk.h:
6802         Add gtkseparatormenuitem.h.
6803         
6804         * gtk/gtkentry.c:
6805         * gtk/gtkmenufactory.c:
6806         * gtk/gtktextview.c:
6807         Use the new API for menu separators.
6808         
6809         * demos/gtk-demo/menus.c (create_menu):
6810         Add some GtkSeparatorMenuItem demo code.
6811
6812 2001-02-20  Havoc Pennington  <hp@redhat.com>
6813
6814         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
6815         Lee Mallabone
6816
6817         * gtk/gtkarrow.c: Convert to new property API, patch from 
6818         Lee Mallabone
6819
6820 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
6821
6822         * tests/testtreeview.c (toggled_callback): fix to reflect change
6823         in GtkTreeModelStore.
6824
6825 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
6826
6827         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
6828         function to create an icon set from a pixbuf.
6829
6830 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6831
6832         * gtk/gtkcellrenderertext.[ch]:
6833         Add a "markup" property.
6834
6835         * gtk/treestoretest.c:
6836         Use the markup property, remove some leftover stuff from
6837         GtkTreeModelMapping.
6838
6839 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6840
6841         * gtk/gtklabel.c (gtk_label_set_selectable):
6842         Queue a redraw if the selectable setting was changed.
6843
6844 2001-02-20  Alexander Larsson  <alexl@redhat.com>
6845
6846         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6847         Actually copy the whole gc, not just the public parts.
6848         
6849         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
6850         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
6851         labels.
6852
6853 2001-02-19  Havoc Pennington  <hp@pobox.com>
6854
6855         * gdk/gdkwindow.c: docs
6856
6857         * gdk/gdkrgb.c: docs
6858
6859         * gdk/gdkregion-generic.c: docs
6860
6861         * gdk/gdkgc.c (gdk_gc_set_values): docs
6862
6863         * gdk/gdkdraw.c: docs
6864
6865         * gdk/gdkdrawable.h: deprecate drawable get/set data
6866
6867 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
6868
6869         * demos/gtk-demo/dialog.c: Add simple new demo.
6870
6871 2001-02-19  Havoc Pennington  <hp@redhat.com>
6872
6873         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
6874         insert_child_anchor signal, bug #50245
6875
6876         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
6877         from create_child_anchor, so the anchor is passed in
6878
6879         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
6880         (_gtk_widget_segment_new): have the child anchor object passed in, 
6881         instead of creating it.
6882
6883         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
6884         to gtk_text_buffer_get_modified
6885
6886 2001-02-19  Havoc Pennington  <hp@redhat.com>
6887
6888         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
6889         changed GLib without fixing GTK
6890
6891         * gtk/gtkrange.h: Rename all the stupid implementation detail 
6892         functions to have an underscore in front. Most of them should 
6893         probably just go away, but for starters don't export them.
6894         Bug #50482
6895
6896 2001-02-19  Havoc Pennington  <hp@redhat.com>
6897
6898         * gdk/gdkcolor.h: test was backward, so deprecated functions were
6899         excluded by default
6900
6901         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
6902         clean up the old code a bit
6903
6904         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
6905         inconsistent state
6906
6907         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
6908         draw inconsistent state
6909
6910         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
6911         (create_menu): add inconsistent test
6912
6913         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
6914         new function
6915         (gtk_check_menu_item_get_inconsistent): new function
6916         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
6917         state (using etched in for now)
6918
6919         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
6920         draw inconsistent state
6921
6922         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
6923         function, used when the user has selected a range of stuff in
6924         different states
6925         (gtk_toggle_button_get_inconsistent): accessor for that
6926         (gtk_toggle_button_paint): draw inconsistent state (etched in?
6927         don't know what else to do)
6928
6929 2001-02-19  Hans Breuer <hans@breuer.org>
6930
6931         * gtk/gtk.def : updated exported symbols
6932
6933         * gtk/makefile.msc.in : updated
6934
6935         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
6936         a colormap, when invoked from testgtk::entry. I'm not sure where
6937         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
6938         avoids immediate crashing ...
6939
6940         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
6941         any objections ?
6942
6943         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
6944         0 parameter. At least msvc doesn't like macros with var args. 
6945         I simply removed the extra 0, was it a feature or a typo ?
6946
6947         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
6948         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
6949         because the value assignment to the internal struct wasn't working.
6950         I'm not absolutely sure. The problem could have been resolved by
6951         changing the "func" declartion in the struct, but was the pointer
6952         to the function pointer intended ?
6953
6954         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
6955
6956         * gdk/gdk.def : updated exported symbols
6957
6958         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
6959         only use SetDIBitsToDevice if there is a palette at the drawable
6960         and the image is GDK_VISUAL_PSEUDO_COLOR
6961
6962         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
6963
6964         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
6965
6966         * gdk/*/makefile.msc : updated
6967
6968 2001-02-19  Havoc Pennington  <hp@redhat.com>
6969
6970         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
6971         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
6972
6973         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
6974         (gdk_key_repeat_restore): nuke
6975
6976         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
6977         (gdk_init_check): no atexit func
6978
6979         * gdk/gdkrgb.h: mark some stuff deprecated
6980
6981         * gdk/gdkcolor.h: mark some stuff deprecated
6982         
6983         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
6984
6985         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
6986
6987 2001-02-16  Havoc Pennington  <hp@redhat.com>
6988
6989         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
6990         scroll steps.
6991
6992         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
6993         steps, and add Ctrl-arrow shortcuts for paging visually as with
6994         HScale, since Page Up and Page Down move logically.
6995
6996         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
6997         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
6998         
6999         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
7000         steps
7001         (gtk_range_scroll): handle the visual steps
7002
7003         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
7004         scroll steps
7005
7006         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
7007         steps, not the logical ones.
7008
7009         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
7010         (scroll_vertical): handle up/down steps
7011
7012 2001-02-19 Alexander Larsson  <alexl@redhat.com>
7013
7014         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
7015         Copy data and free data with free().
7016
7017         * gdk-pixbuf/gdk-pixbuf.c:
7018         * gdk-pixbuf/io-jpeg.c:
7019         * gdk-pixbuf/io-png.c:
7020         Use g_try_malloc/g_free instead malloc/free.
7021         
7022         * gdk-pixbuf/test-gdk-pixbuf.c:
7023         Must... initialize... gobject...
7024         
7025         * gdk-pixbuf/pixops/timescale.c:
7026         * gtk/gtkcalendar.c:
7027         Use g_malloc instead of malloc.
7028         
7029 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
7030
7031         * gtk/testgtkrc:
7032         Comment out property assignments, these don't work yet.
7033
7034 2001-02-17  Havoc Pennington  <hp@pobox.com>
7035
7036         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
7037         bit.
7038
7039 2001-02-17  Havoc Pennington  <hp@pobox.com>
7040
7041         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
7042         shadowed variables that had broken size request in some cases,
7043         leading to bogus tooltips (#50996)
7044
7045 2001-02-06  Jon K Hellan  <hellan@acm.org>
7046
7047         Implement fast browsing of tooltips, bug #50619
7048         
7049         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
7050         and last_popdown
7051         
7052         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
7053         use_sticky_delay and last_popdown.
7054         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
7055         time of popdown.
7056         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
7057         is NULL.
7058         (gtk_tooltips_recently_shown): New static function.  Return true
7059         if < sticky_delay has elapsed since last popdown.
7060         (gtk_tooltips_event_handler): Display window after sticky_delay
7061         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
7062         since last popdown.
7063         
7064 2001-02-17  Havoc Pennington  <hp@pobox.com>
7065
7066         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
7067         instead of (). #6394
7068
7069         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
7070         G_CONST_RETURN, make it return by reference, #50473
7071         
7072 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
7073
7074         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
7075         generated ENTER_NOTIFY event with 0, otherwise not explicitely
7076         setup fields contain garbage (e.g. subwindow, breaking
7077         gdk_drawable_ref() upon event copy).
7078         (gtk_menu_stop_navigating_submenu_cb): same here.
7079
7080         * gtk/gtklist.c (gtk_list_vertical_timeout): 
7081         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
7082         * gtk/gtkclist.c (vertical_timeout): 
7083         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
7084         default-zero-intialization for unions to memset(,0,), as unions are
7085         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
7086         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
7087
7088         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
7089         g_closure_sink() warning.
7090
7091         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
7092         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
7093         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
7094         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
7095         
7096 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
7097
7098         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
7099         gtk_*_store_get, and moved to GtkTreeModel.
7100
7101         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
7102
7103         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
7104
7105         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
7106
7107         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
7108         set the func.
7109
7110         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
7111         freeze/thaw notify between setting all the properties for a cell.
7112
7113         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
7114
7115 2001-02-15  Havoc Pennington  <hp@redhat.com>
7116
7117         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
7118         the X coordinates so they're with respect to the line, rather than 
7119         with respect to the layout.
7120
7121         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
7122         Mallabone
7123
7124         * gtk/testgtk.c (create_range_controls): add vscale tests, 
7125         and inverted test
7126
7127         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
7128         #50806
7129
7130         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
7131
7132         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
7133         gtk_text_iter_is_end
7134
7135         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
7136         rename gtk_text_buffer_get_end_iter
7137
7138         * gtk/testgtk.c (create_labels): Add test for selectable
7139
7140         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
7141         the selection stuff. This code is kind of broken since it doesn't 
7142         use the theme engine.
7143
7144         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
7145         fix infinite loop and y offset problem
7146         (gdk_draw_layout_line_with_colors): fix foreground color handling
7147
7148         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
7149         that makes the label selectable.
7150         
7151         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
7152         layout when the style is set, since fonts etc. could have changed.      
7153
7154 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
7155
7156         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
7157
7158         * gtk/gtktreemodelsimple.[ch]: removed.
7159
7160 2001-02-16  Alexander Larsson  <alexl@redhat.com>
7161
7162         * gtk/gtktreemodelmapping.[ch]:
7163         New files. Implement GtkTreeModelMapping.
7164         
7165         * gtk/Makefile.am:
7166         Add gtktreemodelmapping.[ch].
7167         
7168         * gtk/gtk.h:
7169         Add gtktreemodelmapping.h
7170
7171         * gtk/treestoretest.c:
7172         Test the GtkTreeModelMapping
7173
7174 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
7175
7176         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
7177         have a demo, we might as well pass in real values.  Thanks to
7178         clahey for pointing this out.
7179
7180 2001-02-14  Havoc Pennington  <hp@pobox.com>
7181
7182         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
7183         "static" to a private function
7184         (gtk_image_menu_item_class_init): remove destroy handler,
7185         add "image" object property
7186
7187 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
7188
7189         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
7190         Add a shortcut if the window and the current clip_region doesn't
7191         overlap. This is needed when there are a lot of windows in a
7192         window. The layout test in testgtk is a good test.
7193
7194         * gdk/linux-fb/gdkwindow-fb.c:
7195         Whitespace fix.
7196
7197 2001-02-13  Sven Neumann  <sven@convergence.de>
7198
7199         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
7200
7201 2001-02-13  Alexander Larsson  <alexl@redhat.com>
7202
7203         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
7204         Don't reference last_cursor if it is null. Fixes crash when rotating
7205         the screen before having moved the mouse.
7206
7207         * gdk/linux-fb/gdkcc-fb.c: Zapp!
7208
7209         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
7210
7211         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
7212         when using 90 or 270 degrees rotation.
7213
7214 2001-02-12  Havoc Pennington  <hp@pobox.com>
7215
7216         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
7217         it always set the foreground, even if we were only using
7218         a stipple.
7219         (gdk_draw_layout_line_with_colors): new function, allow
7220         override colors
7221         (gdk_draw_layout_with_colors): new function, allow override
7222         colors
7223         (gdk_pango_layout_line_get_clip_region): function to get the clip
7224         region for a logical text range
7225         (gdk_pango_layout_get_clip_region): get the clip region for a
7226         logical text range
7227
7228         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
7229         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
7230         the right number of arguments.
7231
7232         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
7233         enhance the function to check that node data corresponds to a 
7234         view still belonging to the tree.
7235
7236         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
7237         GtkTreePath
7238         (gtk_tree_view_inserted): ditto
7239         (gtk_tree_view_child_toggled): ditto
7240
7241         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
7242         simplify this code.
7243
7244         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
7245         a PangoAttrList
7246
7247         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
7248
7249         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
7250
7251         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
7252         size in the size request 
7253         (gtk_menu_bar_size_allocate): consider toggle size here
7254
7255         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
7256         that displays a widget in the toggle slot
7257
7258         * gtk/testgtk.c: test GtkImageMenuItem
7259
7260         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
7261         
7262         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
7263         request and allocation
7264
7265         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
7266
7267         * gtk/gtkcheckmenuitem.c
7268         (gtk_check_menu_item_toggle_size_request): ditto
7269         
7270 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
7271
7272         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
7273         reference.
7274
7275         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
7276         and refuse to initialize GTK+ if they fail.
7277
7278 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
7279
7280         * configure.in: Add check for gtk-doc version.
7281
7282 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
7283
7284         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
7285         where the xpad/ypad was only being used on one side!
7286
7287 2001-02-11  Tor Lillqvist  <tml@iki.fi>
7288
7289         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
7290         function, copied from X11 version.
7291
7292         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
7293         DestroyCursor failures. The reason for the problem (despite the
7294         inconsistent messages from GetLastError()) was that
7295         DestroyCursor() cannot be called while a cursor is set in a
7296         window. Set the new cursor first and then destroy the old one.
7297         Thanks to jpe@archaeopteryx.com.
7298
7299         * gdk/win32/gdkcc-win32.c: Remove.
7300
7301         * gdk/win32/Makefile.am: Remove from here, too.
7302         
7303         * gdk/gdk.def
7304         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
7305
7306         * gtk/gtk.def
7307         * gtk/makefile.mingw.in: Updates.
7308
7309 2001-02-08  Havoc Pennington  <hp@redhat.com>
7310
7311         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
7312         add a widget to a bin that already has a child.
7313
7314         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
7315
7316         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
7317         
7318         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
7319
7320         * gdk/gdk.h: remove gdkcc.h
7321
7322         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
7323
7324         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
7325         GdkPixbuf, since the previous implementation was GdkColorContext
7326         dependent.
7327
7328         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
7329         
7330 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
7331
7332         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
7333         a sane value!
7334
7335 2001-02-08  Havoc Pennington  <hp@redhat.com>
7336
7337         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
7338         lighten them.
7339
7340 2001-02-08  Havoc Pennington  <hp@redhat.com>
7341
7342         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
7343         validation idle
7344
7345         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
7346         cell renderer
7347
7348         * demos/pixbuf-demo.c (timeout): remove deprecated
7349         gtk_widget_draw
7350
7351         * demos/testpixbuf-save.c (main): remove deprecated
7352         gtk_drawing_area_size
7353
7354         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
7355         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
7356         at the start of the allocation.
7357         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
7358         unsetup or NULL model.
7359
7360         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
7361         even/odd/sorted cells in the tree view.
7362
7363         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
7364         bugfixes
7365
7366         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
7367         backgrounds with draw_flat_box using different detail for even/odd
7368         rows.
7369
7370         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
7371         row, so we can draw the alternating colors thing
7372
7373         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
7374         property from a synonym property, notify for the synonym.
7375         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
7376         (gtk_text_tag_get_property): Always return the font, even if
7377         all its fields aren't set
7378
7379         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
7380         store the attr list; it leaves us with no way to change attributes
7381         in _render according to the render flags, and no way to implement
7382         get_property. Instead store all the specific text attributes. 
7383         Separate whether an attribute is enabled from its value. Sync all
7384         properties with GtkTextTag, make them all consistent, etc.
7385
7386         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
7387         renderers can highlight the sort row/column     
7388
7389         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
7390         accessor functions to get values; this has the side effect of
7391         showing up which accessor functions were missing. Added those.
7392
7393         * gtk/gtktreeviewcolumn.h: Replace set_justification with
7394         set_alignment, to be consistent with GtkLabel, GtkMisc
7395
7396         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
7397         arrow.
7398
7399         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
7400
7401         * gtk/gtktreesortable.h: updates in here
7402
7403 2001-02-07  Sven Neumann  <sven@convergence.de>
7404
7405         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
7406         pango dimensions after painting the background. We used to draw
7407         gigantic flat boxes here.
7408
7409 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
7410
7411         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
7412         error introduced with earlier commit) (pointed out by
7413         Ollie Lho)
7414
7415 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
7416
7417         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
7418         which are no longer necessary.
7419
7420 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
7421
7422         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
7423
7424 2001-02-04  Tor Lillqvist  <tml@iki.fi>
7425
7426         * gdk/gdk.def
7427         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
7428         Provide dummy implementations.
7429
7430 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
7431
7432         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
7433
7434         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
7435         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
7436         deprecated this function.
7437
7438         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
7439         argument.
7440
7441 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
7442
7443         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
7444
7445 2001-02-03  Havoc Pennington  <hp@pobox.com>
7446
7447         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
7448         Mikael Hermansson with patch from Mikael (if there was a toggle
7449         start one after the first character in the range, this function
7450         was broken). Bug #50380
7451
7452 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
7453
7454         * configure.in: Remove confusing comment about X11.
7455
7456 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
7457
7458         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
7459         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
7460         
7461 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
7462
7463         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
7464         it breaks things on BSD. If you want to compile GTK+ with
7465         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
7466         when configuring, since GTK+ simply can't be "pure ANSI" 
7467         in the header files it uses. (#8170, Greg Hudson)
7468
7469 2001-02-02  Havoc Pennington  <hp@redhat.com>
7470
7471         * gtk/gtkwindow.c: docs
7472
7473         * gtk/gtkwidget.c: docs
7474         (gtk_widget_set_colormap): add a reference to the colormap
7475         (gtk_widget_get_default_colormap): add a reference to the colormap
7476
7477         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
7478
7479         * gtk/gtktextiter.c: docs
7480
7481         * gtk/gtkmain.c (gtk_propagate_event): docs
7482
7483         * gtk/gtkpaned.c (gtk_paned_get_position): docs
7484         (gtk_paned_set_position): docs
7485
7486         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
7487         sort interface, no implementation yet.
7488
7489         * demos/testpixbuf.c (new_testrgb_window): replace
7490         gtk_drawing_area_size() with gtk_widget_set_usize()
7491
7492         * demos/testpixbuf-drawable.c (main): ditto
7493         
7494         * gtk/testgtk.c: remove use of GtkStatusbarMsg
7495
7496         * gtk/gtktextbuffer.c: docs
7497
7498         * gtk/gtkstock.c: docs
7499
7500         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
7501
7502         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
7503
7504         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
7505         
7506         * gtk/gtkimage.c: add some docs in here
7507         (gtk_image_size_request): change name of
7508         gtk_widget_render_stock_icon
7509         (gtk_image_get_icon_set): don't dup returned string
7510         (gtk_image_get_icon_set): don't dup returned string
7511
7512         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
7513         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
7514         and gtkiconfactory.h functions
7515
7516         * gtk/gtkiconfactory.c: add some docs in here
7517
7518         * gtk/gtkmain.c (gtk_get_default_language): document
7519         (gtk_get_current_event): document
7520         (gtk_get_current_event_state): document
7521         (gtk_get_event_widget): document
7522
7523         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
7524
7525         * gtk/gtkcontainer.c: Add some documentation
7526         (gtk_container_add): give a more explanatory warning on adding an
7527         already-parented widget, this is kind of a FAQ and also a common
7528         typo that's easier to debug with a nice warning 
7529
7530         * gtk/gtkcellrenderertoggle.c
7531         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
7532         adding this, it's useless
7533         (gtk_cell_renderer_toggle_set_active): remove
7534         (gtk_cell_renderer_toggle_get_radio): add
7535
7536         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
7537         the NULL cell renderer, that doesn't make any sense to me. 
7538
7539         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
7540         demo code should never use deprecated features.
7541
7542         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
7543         code should never use deprecated features.
7544
7545         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
7546         gtk_widget_queue_clear_area deprecated
7547
7548         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
7549         deprecated
7550
7551         * gtk/gtklabel.h: mark gtk_label_get() deprecated
7552
7553         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
7554         a GdkImage deprecated, replaced by new consistently-named
7555         functions       
7556
7557         * gtk/gtkmain.h: Mark gtk_exit() deprecated
7558
7559         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
7560
7561         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
7562         deprecated
7563
7564         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
7565         so it won't appear in docs and confuse people.
7566
7567         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
7568
7569         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
7570         macros deprecated. (can't mark the type itself deprecated, since
7571         GtkProgressBar is not deprecated and we need the type decl to use
7572         GtkProgressBar)
7573
7574         * gtk/gtkpixmap.h: Mark deprecated
7575
7576         * gtk/gtkoldeditable.h: Mark deprecated
7577
7578         * gtk/gtklist.h: Mark deprecated
7579
7580         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
7581         for anything anymore.
7582
7583         * gtk/gtkctree.h: Mark deprecated
7584
7585         * gtk/gtkclist.h: Mark deprecated
7586
7587         * gtk/gtkpreview.h: Mark deprecated
7588
7589         * gtk/gtkpacker.h: Mark deprecated
7590
7591         * gtk/gtktipsquery.h: Mark deprecated
7592
7593         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
7594
7595         * gtk/gtkvruler.h: Add comment that it will move out of GTK
7596
7597         * gtk/gtkhruler.h: Add comment that it will move out of GTK
7598
7599         * gtk/gtkruler.h: Add comment that it will move out of GTK
7600
7601         * gtk/gtkgamma.h: Add comment that it will move out of GTK
7602
7603         * gtk/gtkcurve.h: Add comment that it will move out of GTK
7604
7605 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
7606
7607         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
7608         gdk_colormap_sync private since it was never exported
7609         in a header file.
7610
7611         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
7612         colormap->colors[] for StaticGray, StaticColor colormaps.
7613
7614         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
7615         was being used as if it was image->bits_per_pixel.
7616
7617         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
7618         for the image in the GdkImage structure since it isn't
7619         reconstructable, and we need it to handle packed types
7620
7621         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
7622         the assumption that on Win32 image->bits_per_pixel == image->depth,
7623         always.
7624
7625         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
7626
7627         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
7628         warning message if no converter can be found. 
7629
7630 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
7631
7632         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
7633         chars to isupper() / tolower(). (#567)
7634
7635         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
7636         to clear up 64-bit warnings. (#567)
7637
7638 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
7639
7640         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
7641         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
7642
7643         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
7644         since some people set $(libdir) separately. (#1290, David Kaelbling)
7645
7646 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
7647
7648         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
7649         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
7650         MAXPATHLEN, but the code here depends on a fixed value.)
7651         (#4524)
7652
7653 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
7654
7655         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
7656         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
7657
7658 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
7659
7660         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
7661         viewable there is no way that moving the node will cause the 
7662         focus row to become not viewable, so omit check on the visibility
7663         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
7664
7665 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
7666
7667         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
7668         selection before inserting new text.
7669
7670 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
7671
7672         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
7673         Make the sensitivity of the reparented child track that of
7674         the original parent menu item. (#34218, David Hodson)
7675
7676         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
7677         the case where the current item is destroyed properly.
7678
7679         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
7680         some edge cases with child-less menuitems.
7681         
7682 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
7683
7684         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
7685         key pop down window. (#12074, Jon K Hellan)
7686
7687 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
7688
7689         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
7690         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
7691         The solution here isn't perfect - you get an extraneous
7692         emission of "toggle", which could conceivably confuse an app,
7693         but better than the current situation. LXR search seems to
7694         indicate that no apps in GNOME CVS connect to "toggle".
7695
7696 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
7697
7698         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
7699         gtk_public_h_sources to directly here to avoid warning when
7700         building srcdir != builddir. (#9656)
7701
7702 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
7703
7704         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
7705         handlers in gtkrange.c return the proper values (TRUE == handled)
7706         (#10316).
7707
7708         This is just the tip of the iceberg, but gtkrange.c is the
7709         most common place where the propagation is problematical,
7710         and also a place where it is almost certainly safe to change
7711         this in the stable branch.
7712
7713         (You don't want right click popups on a range control or anything...)
7714
7715 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
7716
7717         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
7718         area on focus out, even if a background pixmap isn't set.
7719         (#13941)
7720         
7721 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
7722
7723         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
7724         to deal with setting the shape properly when scrolling arrows are
7725         turned on, but not visible because there is sufficient space.
7726         (#13432)
7727
7728 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
7729
7730         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
7731         items with submenus, destroy the item along with the submenu.
7732         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
7733         properly.
7734
7735         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
7736         later.
7737
7738 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
7739
7740         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
7741         the focus widget sometimes wasn't drawn with the default if there
7742         was no default widget.
7743
7744         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
7745         unreference pixmaps. 
7746
7747         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
7748         for some extra safety.
7749
7750 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
7751
7752         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
7753         the text of a cell to the old pointer value better, by
7754         copying the new text before freeing the old text. Some code
7755         cleanup. (#8079, Karl Nelson)
7756
7757 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
7758
7759         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
7760         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
7761
7762 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
7763
7764         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
7765         item from a menu, check to see if it matches 
7766         menu->old_active_menu_item, and if so, unref and clear
7767         old_active_menu_item (Patch from Pavel Cisler)
7768
7769         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
7770         menu_shell->active_menu_item, if it is the child being
7771         removed. (Patch based on that of Gene Ragan, #50337)
7772
7773 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
7774
7775         * gdk/linux-fb/gdkselection-fb.c: 
7776         * gdk/linux-fb/gdkcolor-fb.c: 
7777         * gdk/linux-fb/gdkdrawable-fb2.c: 
7778         * gdk/linux-fb/gdkfont-fb.c: 
7779         * gdk/linux-fb/gdkim-fb.c: 
7780         * gdk/linux-fb/gdkinput.c: 
7781         * gdk/linux-fb/gdkkeyboard-fb.c: 
7782         * gdk/linux-fb/gdkmain-fb.c: 
7783         * gdk/linux-fb/gdkrender-fb.c: 
7784         A bunch of whitespace cleanup.
7785         
7786 2001-01-30  Havoc Pennington  <hp@pobox.com>
7787
7788         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
7789         #ifdef GTK_ENABLE_BROKEN.
7790
7791         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
7792         GTK_ENABLE_BROKEN just before including the broken headers.
7793         
7794         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
7795         deprecated types registered.
7796
7797         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
7798         we have to test the broken stuff.
7799
7800         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
7801         
7802 2001-01-30  Havoc Pennington  <hp@redhat.com>
7803
7804         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
7805         here where prev pointer was set to the wrong thing
7806
7807         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
7808         (gtk_tree_path_is_descendant): new function
7809
7810         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
7811         cached length
7812         (gtk_list_store_get_iter): don't modify iter if we can't get the
7813         path.
7814
7815         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
7816         
7817         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
7818         GtkTreeDragDest
7819
7820         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
7821         was causing segfault
7822
7823         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
7824         pointer to NULL
7825
7826         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
7827
7828         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
7829         on returning FALSE
7830         (gtk_list_store_iter_children): ditto
7831         (gtk_list_store_iter_nth_child): ditto
7832         (gtk_list_store_iter_nth_child): ditto
7833         (gtk_list_store_iter_parent): ditto
7834
7835         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
7836         on iter->user_data != NULL instead of silently accepting it.
7837         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
7838         we are returning TRUE.
7839         (gtk_tree_store_iter_children): ditto
7840         (gtk_tree_store_iter_nth_child): ditto
7841         (gtk_tree_store_iter_parent): ditto
7842         (gtk_tree_store_insert): remove handling of parent->user_data ==
7843         NULL, replace with parent == NULL       
7844
7845         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
7846         and a comment explaining things
7847
7848         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
7849         interface support to GtkTreeStore.
7850
7851         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
7852         FALSE if no prev, fix
7853
7854         * gtk/gtktreeview.c (set_source_row): use a row reference
7855         (set_dest_row): use a row reference
7856
7857 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
7858
7859         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
7860         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
7861         (gtk_tree_selection_select_iter): The same as above.
7862
7863 2001-01-26  Havoc Pennington  <hp@redhat.com>
7864
7865         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
7866         which holds a handle to a specific row (particular set of values
7867         in the model, i.e. pointer-identity row).
7868
7869         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
7870         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
7871         Still need to use it for the src/dest row saved on the drag context.
7872
7873 2001-01-26  Havoc Pennington  <hp@redhat.com>
7874
7875         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
7876
7877         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
7878         not offset by TREE_VIEW_HEADER_HEIGHT
7879         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
7880         TREE_VIEW_HEADER_HEIGHT
7881
7882         * configure.in (included_loaders): for me, --with-included-loaders
7883         generates the error "the specified loader yes does not exist",
7884         i.e. the arg defaults to "yes", so change test for value ""
7885         to test for value "yes", and include all loaders in that case.
7886
7887         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
7888
7889         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
7890         handle TREE_VIEW_VERTICAL_SEPARATOR
7891         (gtk_tree_view_bin_expose): fix to consider the row offset as
7892         pointing halfway into vertical separator.       
7893         (gtk_tree_view_draw_node_focus_rect): ditto
7894
7895         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
7896         --gtk-debug=updates, which causes gdk_window_set_debug_updates
7897         (TRUE) to be called.
7898
7899         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
7900         debug mode where the invalid region is colored in on invalidate,
7901         so you can see the flicker and know whether your redraw code is 
7902         doing a good job.
7903
7904         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
7905         tree window coordinates (clip rect is in tree window coords)
7906
7907         * gtk/Makefile.am: add gtktreednd.[hc]
7908
7909         * gtk/gtkliststore.c: implement gtktreednd interfaces.
7910
7911         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
7912         drag-and-drop data operations on a model (so we can set up tree
7913         drag-and-drop automatically)
7914
7915         * gtk/testgtk.c: Add a window to change sensitivity in the
7916         GtkLabel test; add a way to change the entry frame in GtkEntry
7917         test
7918
7919         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
7920         (gtk_entry_get_has_frame): new functions to remove the frame
7921         around an entry
7922         (gtk_entry_size_request): shrink requisition if no frame
7923         (gtk_entry_draw_focus): don't draw frame if no frame
7924
7925         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
7926         checks inside a cell renderer
7927         (gtk_default_draw_option): ditto for options
7928
7929         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
7930         children from the alignment, not the button
7931         (gtk_tree_view_column_init): ref/sink the column, to emulate
7932         GObject refcounting.
7933
7934         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
7935         
7936         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7937         Use theme functions to draw the toggles 
7938
7939         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
7940
7941         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
7942         GdkPangoAttrEmbossed to use in rendering insensitive text
7943
7944         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
7945
7946         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
7947         using new GDK features
7948         
7949 2001-01-24  Alexander Larsson  <alexl@redhat.com>
7950
7951         * gtk/gtkimage.c:
7952         Splitted gtk_image_clear into gtk_image_clear() and
7953         gtk_image_reset(). Call gtk_image_clear() in ::destroy
7954         to avoid leaks.
7955
7956         * gtk/gtklabel.c (set_markup):
7957         Don't leak text.
7958
7959         * gtk/gtktextlayout.c:
7960         Always free display->shaped_objects.
7961
7962         * gtk/testgtk.c (create_clist):
7963         Don't leak custom style.
7964
7965 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7966
7967         * gtk/gtkcolorsel.c (grab_color_at_mouse):
7968         Don't leak image. Simplify using gdk_colormap_query_color().
7969         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
7970
7971         * linux-fb/gdkcolor-fb.c:
7972         Implemented gdk_colormap_query_color.
7973
7974 2001-01-23  Alexander Larsson  <alexl@redhat.com>
7975
7976         * linux-fb/gdkcursor-fb.c:
7977         Don't leak built-in cursors.
7978
7979         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
7980         Don't leak tmp_points.
7981
7982         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
7983         Don't modify desc. Don't leak font if the PangoFont
7984         isn't found.
7985         
7986         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
7987         Free dash_list.
7988
7989         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
7990         Don't leak string.
7991         
7992 2001-01-20  Havoc Pennington  <hp@pobox.com>
7993
7994         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
7995         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
7996         me, matches Pango
7997
7998 2001-01-22  Havoc Pennington  <hp@redhat.com>
7999
8000         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
8001
8002         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
8003
8004         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
8005         Remove, move back to gdk-pixbuf
8006
8007         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
8008         to all the word functions
8009
8010         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
8011         before doing anything on NULL layout or if we don't have the focus
8012
8013         * gtk/testtext.c (fill_example_buffer): "justification"
8014
8015         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
8016         to be called "justification" not "justify"
8017
8018         * demos/gtk-demo/textview.c (create_tags): "justification"
8019         
8020         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
8021
8022 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8023
8024         * gdk/gdkwindow.c (gdk_window_invalidate_region):
8025         Don't leak visible_region. Use visible_region instead of region.
8026         
8027         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
8028         Don't do extra gdk_drawable_ref(). This is not X.
8029         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
8030         gdk_fb_focused_window is ref:ed.
8031         (gdk_fb_window_send_crossing_events): Watch out for destroyed
8032         windows.
8033
8034 2001-01-22  Alexander Larsson  <alexl@redhat.com>
8035
8036         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
8037         Don't leak the PangoFontDescriptor.
8038
8039 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
8040
8041         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
8042         when not realized.
8043         (gtk_tree_view_scroll_to_cell): Make work when not realized.
8044         (gtk_tree_view_realize): add scroll_to support
8045         (gtk_tree_view_finalize): add a finalize method.  Populate.
8046         (gtk_tree_view_insert_column): ref and sink the column.
8047         (gtk_tree_view_append_column): ref and sink the column.
8048         (gtk_tree_view_queue_draw_node): New function to handle redrawing
8049         individual nodes.  Should make the code much more efficient, if
8050         actually used.
8051
8052 2001-01-19  Havoc Pennington  <hp@redhat.com>
8053
8054         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
8055         byte_offset variable was being used to mean both "offset into
8056         layout" and "offset into buffer line" which was no longer true
8057         with addition of preedit string; fix
8058
8059 2001-01-19  Havoc Pennington  <hp@redhat.com>
8060
8061         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
8062
8063         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
8064         function
8065
8066         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
8067         implement
8068
8069         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
8070         scroll_to_cell, matches TextView scroll functions better
8071         (gtk_tree_view_tree_to_widget_coords): new function
8072         (gtk_tree_view_widget_to_tree_coords): new function
8073         (gtk_tree_view_get_visible_rect): new function
8074         (gtk_tree_view_get_path_at_pos): accept negative coordinates
8075         (gtk_tree_view_draw_node_focus_rect): new function moved from
8076         draw_focus, also, use width of bin_window as width of the focus
8077         rect
8078         (gtk_tree_view_expand_row): fix bug where it didn't recognize
8079         already-expanded rows
8080         (gtk_tree_view_get_cell_rect): new function
8081         (gtk_tree_view_get_path_at_pos): return the click position
8082         relative to the passed-in cell
8083         (gtk_tree_view_set_expander_column): new function
8084
8085         * configure.in: remove gtk-config-2.0 chmod
8086
8087         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
8088         and properly handle drags with targets we don't understand
8089         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
8090         scrolling anyway
8091         (gtk_text_view_drag_drop): stop scrolling here though, and set the
8092         mark invisible
8093
8094         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
8095         function
8096         (gtk_drag_dest_get_target_list): new function
8097         (gtk_drag_dest_set_target_list): new function
8098         
8099         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
8100
8101         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
8102         related to drag-and-drop
8103
8104 2001-01-19  Alexander Larsson  <alexl@redhat.com>
8105
8106         * gdk/linux-fb/gdkprivate-fb.h:
8107         Define EMULATE_GDKFONT.
8108         Add extra pango_font stuff to GfkFontPrivate.
8109         
8110         * gdk/linux-fb/gdkdrawable-fb2.c:
8111         * gdk/linux-fb/gdkfont-fb.c:
8112         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
8113         emulation using PangoFont.
8114
8115 2001-01-17  Havoc Pennington  <hp@pobox.com>
8116
8117         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
8118         all the non-deprecated set_foo functions. Added missing object
8119         properties, and added g_object_notify() to setters. 
8120         Wrote docs.
8121         
8122 2001-01-18  Tor Lillqvist  <tml@iki.fi>
8123
8124         * gtk/gtkmain.c
8125         * gtk/gtkrc.c: (Win32) Use the new
8126         g_win32_get_package_installation_(sub)directory() functions.
8127
8128         * config.h.win32.in: New file.
8129         
8130         * config.h.win32: Removed.
8131
8132         * configure.in: Output config.h.win32.
8133
8134         * Makefile.am: Add it to EXTRA_DIST.
8135
8136         * gtk/gtk.def: Update.
8137
8138 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
8139
8140         * gtk/gtklabel.c (gtk_label_size_request): Set the
8141         attributes onto the PangoLayout even if they are newly
8142         created from label->pattern.
8143
8144 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
8145
8146         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
8147
8148         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
8149         structures in functions. Fixes bug where gtk_dataset_*
8150         was accidentally still being used in one place, causing
8151         every dest side event to be treated independently.
8152
8153         * gtk/gtkdnd.c: Remove last vestages of handling
8154         ::draw (fixes warning)
8155         
8156         * gtk/gtkentry.[ch]: Add drag and drop support.
8157
8158         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
8159         new function gtk_check_drag_threshhold() for checking
8160         to check if (dx,dy) has exceeded the threshhold for starting
8161         a drag and use it everywhere.
8162
8163 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
8164
8165         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
8166         add -I{includedir}/gtk-2.0.
8167
8168         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
8169         gdk/gdk-pixbuf.h: Doc fixups.
8170         
8171         * gtk/gtkobject.h: Remove trailing , from enum
8172
8173 2001-01-17 Alexander Larsson <alexl@redhat.com> 
8174
8175         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
8176         Doh! Mixed up x and y.
8177
8178         * gdk/linux-fb/gdkglobals-fb.c:
8179         Removed gdk_fb_pointer_grab_window_events,
8180         added _gdk_fb_pointer_grab_owner_events and
8181         _gdk_fb_keyboard_grab_owner_events.
8182
8183         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
8184         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
8185         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
8186         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
8187         Send crossing events after ungrab finished.
8188         (gdk_keyboard_grab): Set ..._owner_events
8189         (type_masks): Move out of function.
8190         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
8191         gdk_fb_keyboard_event_window): New functions, return the
8192         window an event should be targeted at. Handles grabs and
8193         event propagation. Can return NULL.
8194         (gdk_event_make): Remove event_mask checking. Now always
8195         returns an event.
8196                 
8197         * gdk/linux-fb/gdkkeyboard-fb.c:
8198         * gdk/linux-fb/gdkproperty-fb.c:
8199         * gdk/linux-fb/gdkselection-fb.c:
8200         Use new event_window/gdk_event_make() behaviour.
8201         
8202         * gdk/linux-fb/gdkmouse-fb.c:
8203         Use new event_window/gdk_event_make() behaviour.
8204         Only send motion events if in the same window.
8205         If grabbed, use cursor from window if sibling of grabbed
8206         window, and cursor from grabbed window otherwise.
8207
8208         * gdk/linux-fb/gdkprivate-fb.h:
8209         Update gdk_fb_window_send_crossing_events, gdk_event_make
8210         and grab varaible declarations. Add gdk_fb_*_event_window().
8211
8212         * gdk/linux-fb/gdkwindow-fb.c:
8213         Use new event_window/gdk_event_make() behaviour.
8214         Keep correct track of focus window.
8215         (gdk_window_set_events): Set all specific button motion masks
8216         if GDK_BUTTON_MOTION_MASK set.
8217
8218         * gtk/gtkdnd.c (gtk_drag_update):
8219         Free info->last_event if gdk_drag_motion returned FALSE.
8220
8221 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8222
8223         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
8224         Eliminate redraws when input-only windows are shown or
8225         hidden. Thanks to jpe@archaeopteryx.com.
8226
8227 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
8228
8229         * docs/faq/gtk-faq.sgml: FAQ update:
8230           - Update to bugzilla
8231           - Add GTK+ and security/SUID/SGID
8232           - Add DnD question
8233
8234 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
8235
8236         * gdk/linux-fb/gdkdnd-fb.c:
8237         Some cleanups.
8238         
8239 2001-01-15  Havoc Pennington  <hp@pobox.com>
8240
8241         * tests/testtreeview.c: add test stuff for CellRendererToggle
8242
8243         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
8244         accessor
8245
8246         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
8247         only toggle on button press (would do release like GtkButton, but
8248         we'd need implicit grab code for treeview cells)
8249
8250 2001-01-16  Tor Lillqvist  <tml@iki.fi>
8251
8252         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
8253
8254         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
8255         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
8256
8257         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
8258         to g_{locale,filename}_{to,from}_utf8 to match current API.
8259
8260         * gtk/makefile.msc.in (gtk_OBJECTS)
8261         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
8262
8263         * gtk/gtk.def: Update.
8264
8265 2001-01-15  Tor Lillqvist  <tml@iki.fi>
8266
8267         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
8268         implementaion that more closely mimics the events that an X server
8269         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
8270         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
8271         with nested preview widgets, for instance, more responsive when
8272         you move the mouse quickly into them.
8273         (find_window_for_pointer_event): Make it actually compile.
8274         (gdk_event_translate): Set send_event to the value of
8275         InSendMessage (). This doesn't really mean the same as X11's
8276         send_event flag, but is close enough, says jpe@archaeopteryx.com
8277
8278 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8279
8280         * gdk/linux-fb/gdkdnd-fb.c:
8281         Implemented drag and drop.
8282         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
8283         when it tries to free and then copy the same event (info->last_event).
8284         I am not sure about why this happens, but will continue looking.
8285
8286 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8287
8288         * gdk/linux-fb/gdkwindow-fb.c:
8289         Use gdk_window_invalidate_rect instead of
8290         gdk_window_invalidate_rect_clear to minimise flashing.
8291         When hiding windows you need to clear the root window though.
8292
8293 2001-01-15  Alexander Larsson  <alexl@redhat.com>
8294
8295         * gdk/linux-fb/gdkdrawable-fb2.c:
8296         For optization, add an full_shapes argument to gdk_fb_clip_region.
8297         If this is false, only the cliprects of the shapes are used.
8298
8299         * gdk/linux-fb/gdkprivate-fb.h:
8300         Export gdk_fb_window_peek_shape.
8301         Add full_shapes to gdk_fb_clip_region.
8302
8303         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
8304         When moving a window, don't clear everything under the it, just the
8305         root window. Makes stuff faster and flash less.
8306         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
8307         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
8308         offset of the shape.
8309         
8310
8311 2001-01-12  Havoc Pennington  <hp@redhat.com>
8312
8313         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
8314         current invalid region, fixes redraw bug while scrolling the 
8315         text widget
8316
8317         * gtk/gtktextview.c, gtk/gtktextview.h:
8318         Rearrange the scrolling/validation/etc. code in a major way, 
8319         so it seems to make sense to me. Probably isn't genuinely that
8320         much better, but...
8321
8322         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
8323         notifies
8324
8325         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
8326
8327 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
8328
8329         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
8330         Hide mouse pointer while rotation. Show it afterwards.
8331
8332 2001-01-12  Alexander Larsson  <alexl@redhat.com>
8333
8334         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
8335         windows in consideration when generating clip region.
8336
8337         * gdk/linux-fb/gdkfb.h:
8338         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
8339
8340         * gdk/linux-fb/gdkprivate-fb.h:
8341         Add shape to GdkWindowFBDatat.
8342         exported gdk_fb_window_get_abs_shape().
8343         removed gdk_fb_draw_lines declaration.
8344
8345         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
8346         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
8347         send focus changes when there is a grabbed window.
8348         (gdk_window_get_pointer): Handle shaped windows.
8349         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
8350         (gdk_fb_window_peek_shape): Returns the shape for a window,
8351         handles GDK_FB_USE_CHILD_SHAPE.
8352         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
8353         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
8354         (gdk_window_shape_combine_mask): Implement.
8355
8356         * gtk/gtkwindow-decorate.c:
8357         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
8358         setting the shape of a window makes the window transparent.
8359
8360 2001-01-11  Havoc Pennington  <hp@redhat.com>
8361
8362         * gtk/gtktreemodelsimple.h: Oops, broke some macros
8363
8364 2001-01-10  Havoc Pennington  <hp@redhat.com>
8365
8366         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
8367         add this function, bug 40251
8368
8369         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
8370         of type macro   
8371
8372 2001-01-11  Alexander Larsson  <alexl@redhat.com>
8373
8374         * acconfig.h:
8375         Added ENABLE_SHADOW_FB
8376
8377         * configure.in:
8378         Added --disable-shadowfb
8379
8380         * gdk/linux-fb/gdkcursor-fb.c:
8381         Update shadowfb when updating cursor
8382
8383         * gdk/linux-fb/gdkdrawable-fb2.c:
8384         Added wrappers for shadowfb that calls  the normal drawable
8385         methods, but calls gdk_shadow_fb_update(bounding box) when
8386         GdkWindows are drawed to.
8387         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
8388         which also returns the bounding box.
8389
8390         * gdk/linux-fb/gdkfb.h:
8391         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
8392
8393         * gdk/linux-fb/gdkgeometry-fb.c:
8394         Update shadowfb when scrolling window.
8395
8396         * gdk/linux-fb/gdkglobals-fb.c:
8397         Add _gdk_fb_screen_angle.
8398         
8399         * gdk/linux-fb/gdkkeyboard-fb.c:
8400         Test code for screen rotation. Shift-F2 in the xlate driver
8401         rotates the screen.
8402
8403         * gdk/linux-fb/gdkmain-fb.c:
8404         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
8405
8406         * gdk/linux-fb/gdkmouse-fb.c:
8407         Use fb_width/height instead of modeinfo.xres/yres.
8408
8409         * gdk/linux-fb/gdkprivate-fb.h:
8410         Added fb_men, fb_width, fb_height & fb_stride. When using
8411         shadow fb these can differ from the framebuffer stuff.
8412         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
8413         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
8414         _gdk_fb_screen_angle. Removed CM, RP.
8415
8416         * gdk/linux-fb/gdkrender-fb.c:
8417         Added code for shadowfb handling and screen rotation using
8418         shadowfb.
8419
8420         * gdk/linux-fb/gdkwindow-fb.c:
8421         Use fb_mem, fb_stride, fb_width, fb_height.
8422         Added recompute_rowstride to reset the rowstride of all windows.
8423         Added gdk_fb_recompute_all() which recomputes rootwindow size,
8424         window abs positions and window rowstrides. Usefull when the
8425         rotation has changed.
8426
8427 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
8428
8429         * docs/faq/gtk-faq.sgml: update to make web site updating easier
8430
8431 2001-01-10  Havoc Pennington  <hp@redhat.com>
8432
8433         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
8434         where sibling == iter
8435         (gtk_tree_store_insert_after): handle sibling == iter
8436         (gtk_tree_store_prepend): remove stamp checks
8437         (gtk_tree_store_insert_before): ditto
8438         (gtk_tree_store_append): ditto
8439         (gtk_tree_store_get_path): ditto
8440         (gtk_tree_store_get_value): ditto
8441         (gtk_tree_store_iter_has_child): ditto
8442         (gtk_tree_store_iter_n_children): ditto
8443         (gtk_tree_store_iter_nth_child): ditto
8444         (gtk_tree_store_insert_after): ditto
8445         (gtk_tree_store_is_ancestor): ditto
8446         (gtk_tree_store_iter_depth): ditto
8447         (gtk_tree_store_insert_before): assert that sibling's parent is
8448         the same as the passed-in parent
8449         (gtk_tree_store_insert_after): assert that sibling's parent is
8450         the same as the passed-in parent
8451
8452         
8453         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
8454         function to get the first iterator in a model
8455         
8456         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
8457         conventionally the "root" in this sense is just NULL afaict.
8458
8459         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
8460         where sibling == iter
8461         (gtk_list_store_insert_after): handle case where sibling == iter
8462
8463         * tests/testtreeview.c (run_automated_tests): fairly lame basic
8464         automated tests for ListStore, TreeStore
8465
8466         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
8467         (gtk_list_store_insert): update tail pointer, and fix it to work
8468         (gtk_list_store_insert_before): update tail pointer, and fix it to work
8469         (gtk_list_store_append): use tail to be faster
8470         (gtk_list_store_prepend): fix it, update tail pointer
8471         (gtk_list_store_insert_after): fix it, update tail pointer
8472
8473         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
8474         the list
8475
8476 2001-01-09  Havoc Pennington  <hp@redhat.com>
8477
8478         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
8479         is NULL due to a pending resize
8480
8481         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
8482         column width to values less than 1
8483
8484         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
8485         width to be between min/max width, and still set the width 
8486         even if autosize is turned on, so the tree view can use this 
8487         function in order to autosize.
8488         (gtk_tree_view_column_init): set initial width to 1 not 0
8489
8490         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
8491         setter function to modify column width, so we get notification
8492         (gtk_tree_view_insert_iter_height): ditto
8493         (gtk_tree_view_calc_size): ditto
8494         (gtk_tree_view_check_dirty): ditto
8495
8496         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
8497         properties to change all the interesting attributes of the tree
8498         view column.
8499         (gtk_tree_view_column_set_header_clickable): rename set_clickable
8500         (gtk_tree_view_column_get_clickable): add
8501         (gtk_tree_view_column_set_cell_renderer): don't unset the current
8502         attributes; assume a cell renderer with equivalent object
8503         properties has been swapped in. Do g_object_notify().
8504         (gtk_tree_view_column_set_visible): g_object_notify
8505         (gtk_tree_view_column_get_sizing): rename from get_col_type
8506         (gtk_tree_view_column_set_sizing): g_object_notify
8507         (gtk_tree_view_column_set_width): add g_object_notify
8508         (gtk_tree_view_column_set_min_width): ditto
8509         (gtk_tree_view_column_set_max_width): ditto
8510         (gtk_tree_view_column_set_title): ditto
8511         (gtk_tree_view_column_set_clickable): ditto
8512         (gtk_tree_view_column_set_widget): ditto
8513         (gtk_tree_view_column_set_justification): ditto
8514
8515 2001-01-09  Havoc Pennington  <hp@redhat.com>
8516
8517         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
8518         there are no rows in the model
8519
8520         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
8521         NULL, then return the start of the list
8522
8523         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
8524         if we can't get any rows from an empty model 
8525
8526         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
8527         extraneous * after function pointer typedef usage
8528
8529         * Makefile.am: don't specify full path to cp and rm
8530
8531         * gtk/gtkcellrenderertextpixbuf.c
8532         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
8533         NULL before dereferencing, fixes a segfault that happened from
8534         time to time
8535
8536         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
8537         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
8538         and reindent the function
8539         (gtk_cell_renderer_pixbuf_get_size): indentation
8540
8541         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
8542         we quit it
8543         (gtk_dialog_add_buttons_valist): add g_return_if_fail
8544         (gtk_dialog_set_default_response): New function, to set default
8545         button
8546         (gtk_dialog_set_response_sensitive): New function, to set 
8547         sensitivity of buttons
8548
8549         * gtk/gtkcellrendererpixbuf.c
8550         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
8551         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
8552
8553         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8554         handle any G_TYPE_OBJECT subclass, not just the base class, and 
8555         also boxed types.
8556         (_gtk_tree_data_list_value_to_node): ditto
8557
8558         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
8559         --gtk-debug=tree
8560
8561         * gtk/gtkmain.c: add GTK_DEBUG_TREE
8562
8563         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
8564
8565 2001-01-09  Tor Lillqvist  <tml@iki.fi>
8566
8567         * gdk/win32/gdkevents-win32.c: Implement better mouse
8568         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
8569         (find_window_for_pointer_event): New function.
8570         (gdk_event_translate): Use it when handling mouse events.
8571
8572 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
8573
8574         * configure.in:
8575         Added --with-included-loaders option
8576
8577         * gdk-pixbuf/Makefile.am:
8578         * gdk-pixbuf/gdk-pixbuf-io.c:
8579         Add support for including selected gdk-pixbuf loaders only.
8580
8581         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
8582         gtk_window_set_has_frame):
8583         Added inline documentation.
8584
8585         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
8586         * docs/reference/gdk/tmpl/windows.sgml:
8587         Added inline documentation.
8588
8589 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
8590
8591         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
8592         realizing buttons that have already been realized.
8593
8594 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
8595
8596         * tests/testtreeview.c (main): Show menu items before adding to
8597         option menu.
8598
8599         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
8600         around if we kill them.
8601
8602         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
8603         Return if we pass in a NULL model.
8604
8605 2001-01-08  Havoc Pennington  <hp@redhat.com>
8606
8607         * tests/testtreeview.c: hack on this some
8608
8609         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
8610         gtk_tree_store_set_valist, v is for arrays, valist for varargs
8611         list
8612         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
8613
8614         * gtk/gtkliststore.h: Add varargs set() and get() convenience
8615         functions
8616
8617 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8618
8619         * gtk/gtkwindow-decorate.[hc]:
8620         * gtk/Makefile.am:
8621         New files. Contains an implementation of a minimal WM for
8622         linux-fb.
8623
8624         * gtk/gtkwindow.h:
8625         Add the possibility for GtkWindows to specify a frame. This
8626         is used for the window decoration code, but could concievably
8627         be used for X programs too (xmms style windows).
8628         GtkWindow->frame is the toplevel window if the window is framed.
8629         The signal frame_event gets all events that are targeted to
8630         GtkWindow->frame.
8631         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
8632         
8633         * gtk/gtkwindow.c:
8634         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
8635         Call out to gtkwindow-decorate.c for WM support in linx-fb.
8636
8637 2001-01-08  Alexander Larsson  <alexl@redhat.com>
8638
8639         * docs/README.linux-fb:
8640         Correct filename ~/.pangoft2_aliases
8641
8642         * gdk/gdkwindow.h:
8643         Added new function gdk_window_get_decorations.
8644
8645         * gdk/linux-fb/gdkfb.h:
8646         Removed _gdk_window_get_decorations declaration.
8647         Renamed _gdk_window_set_child_handler to
8648         gdk_fb_window_set_child_handler.
8649
8650         * gdk/linux-fb/gdkwindow-fb.c:
8651         Renamed _gdk_window_set_child_handler to
8652         gdk_fb_window_set_child_handler.
8653
8654         * gdk/x11/gdkwindow-x11.c:
8655         New function gdk_window_get_mwm_hints().
8656         Implemented gdk_window_get_decorations.
8657
8658         * docs/reference/gdk/tmpl/windows.sgml:
8659         * docs/reference/gdk/gdk-sections.txt:
8660         Added gdk_window_get_decorations docs.
8661         
8662 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
8663
8664         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
8665         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
8666         gdk_fb_window_send_crossing_events):
8667         Possibly send focus events when the mouse moves from one
8668         window to another.
8669
8670 2001-01-07  Tor Lillqvist  <tml@iki.fi>
8671
8672         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
8673         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
8674         to match current API.
8675
8676         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
8677         environment variable is set, don't call g_error when on a
8678         palettized (PseudoColor) display. Some people want to use GTK+ 
8679         in 256-colour mode even though works only partially.
8680
8681         * gdk/gdk.def
8682         * gtk/gtk.def
8683         * gtk/makefile.mingw.in: Update.
8684
8685 2001-01-05  Havoc Pennington  <hp@redhat.com>
8686
8687         * tests/testtreeview.c: hack on this a bit
8688
8689         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
8690         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
8691
8692         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
8693         was spelled incorrectly
8694         (GTK_IS_TREE_MODEL_SIMPLE): ditto
8695
8696         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
8697         from gtk_tree_view_set_headers_active   
8698
8699         * gtk/gtktexttag.c:
8700         (gtk_text_tag_get_property): handle PROP_DIRECTION
8701         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
8702         properties, bug 40235
8703
8704         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
8705         forward_to_line_end
8706
8707 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
8708
8709         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
8710         modules/input/gtkimcontextxim.c: Adapt to new prototypes
8711         for unicode,locale,filename conversion functions.
8712
8713 2001-01-05  Havoc Pennington  <hp@redhat.com>
8714
8715         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
8716         broken if called on the first position in the buffer.
8717
8718         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
8719         forward_to_delimiters to be called only if we aren't already at
8720         the delimiters.
8721
8722 2001-01-05  Havoc Pennington  <hp@redhat.com>
8723
8724         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
8725
8726 2001-01-05  Alexander Larsson  <alexl@redhat.com>
8727
8728         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
8729         colormap in here. Sync from X port.
8730         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
8731         Sync from X port.
8732         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
8733         This happens now and then, and i don't think it is a bug.
8734         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
8735         != endpoint.
8736         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
8737         GDK_LINE_SOLID.
8738
8739         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
8740         some of the fields filled in at least.
8741
8742         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
8743         miLineArcD is no more, remove it from the function definition.
8744
8745 2001-01-04  Havoc Pennington  <hp@redhat.com>
8746
8747         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
8748         this
8749
8750         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
8751         user_data instead of tree_node
8752
8753         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
8754         TREE_VIEW_COLUMN_SIZE
8755
8756         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
8757         "size" field to "width" finishes bug 40061
8758
8759         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
8760         for bitfields, bug 40268
8761
8762 2001-01-04  Havoc Pennington  <hp@redhat.com>
8763
8764         Rename some stuff:
8765         
8766         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
8767
8768         s/GtkModelSimple/GtkTreeModelSimple/g;
8769         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
8770         s/gtk_model_simple/gtk_tree_model_simple/g;
8771         s/gtkmodelsimple/gtktreemodelsimple/g;
8772
8773         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
8774
8775         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
8776         s/column_set_col_type/column_set_sizing/g;
8777
8778         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
8779         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
8780
8781         s/GtkCellRendererType/GtkCellRendererState/g;
8782         
8783         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
8784         (gtk_cell_renderer_toggle_class_init): change "state" property to
8785         "active", to match GtkToggleButton
8786         (gtk_cell_renderer_toggle_get_active): new function, bug
8787         40269
8788         (gtk_cell_renderer_toggle_set_active): new function
8789         (gtk_cell_renderer_toggle_set_property): route changes to toggle
8790         state through gtk_cell_renderer_set_active
8791
8792 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
8793
8794         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
8795         temporarily until they work again.  Brought up to date with
8796         changes in the model.
8797         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
8798         model.
8799
8800 2001-01-04  Havoc Pennington  <hp@redhat.com>
8801
8802         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
8803         equal to the line length, then position iterator before paragraph 
8804         separators. Fixes crash reported by Mikael Hermansson when
8805         pressing left arrow from the start of a line.   
8806
8807         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
8808         about byte indexes off the end
8809         (iter_set_from_char_offset): add g_error about char offsets
8810         off the end
8811
8812 2001-01-03  Havoc Pennington  <hp@redhat.com>
8813
8814         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
8815
8816         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
8817         of private functions; remove inclusion of private headers.
8818
8819         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
8820         function, so we don't need private functions in gtktextdisplay.c
8821
8822         * gtk/gtktextiterprivate.h: underscore-ification
8823
8824         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
8825         to instead say "only useful to implement widgets"
8826
8827         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
8828         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
8829         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
8830
8831         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
8832         This function was completely broken
8833
8834         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
8835
8836         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
8837
8838         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
8839
8840         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
8841
8842         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
8843
8844         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
8845
8846         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
8847         gtk_paint_layout
8848
8849         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
8850         gtk_paint_layout
8851
8852         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
8853         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
8854         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
8855         which were not implemented.     
8856
8857         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
8858         insert_pixbuf signal. Rename delete_text to delete_range since it
8859         also deletes pixbufs and child anchors. This almost closes bug
8860         40245 (still need to deal with child anchors)
8861
8862         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
8863         insert_pixbuf, change signal names as appropriate, change types of
8864         signals taking marks/tags to have the specific type, not just
8865         G_TYPE_OBJECT
8866         
8867         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
8868         closes bug 40051
8869
8870         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
8871         unnecessary remove_contents() call
8872         (gtk_option_menu_class_init): add a "changed" signal, closes
8873         bug 40039
8874         (gtk_option_menu_update_contents): emit "changed" if the 
8875         active menu item changes
8876
8877         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
8878         cast to GtkObject, reported by Jonas Borgstrom
8879         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
8880         we can't do stuff with side effects in finalize. Instead, spew a
8881         warning if the loader isn't closed.
8882
8883         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
8884         colormap in here, non-X ports probably need to sync to this change
8885
8886         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
8887         assertion that colormap != NULL, you can set the colormap to NULL
8888         if you like.
8889         
8890         * Makefile.am: remove gtk-config-2.0
8891
8892         * configure.in: Use pkg-config to locate GLib. Remove
8893         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
8894         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
8895         Use pkg-config to locate Pango. Output correct Pango libs to
8896         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
8897
8898         * Makefile.am (pkgconfig_DATA): install only target-specific pc
8899         files
8900         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
8901         X11 pc files
8902
8903         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
8904         unref from here
8905
8906 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
8907
8908         * configure.in:
8909         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
8910
8911 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
8912
8913         * gtk/gtktextlayout.c
8914         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
8915         variable when moving back onto a single line.
8916
8917 2001-01-01  Havoc Pennington  <hp@redhat.com>
8918
8919         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8920
8921         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
8922
8923         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
8924         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
8925
8926 2001-01-01  Havoc Pennington  <hp@redhat.com>
8927
8928         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
8929
8930         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
8931         GtkTextAttributes
8932
8933         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
8934         #40246
8935         (gtk_text_attributes_copy_values): rename from 
8936         gtk_text_attributes_copy
8937         (gtk_text_attributes_copy): a more standard GTK copy function, 
8938         which returns a new object
8939
8940 2001-01-01  Havoc Pennington  <hp@redhat.com>
8941
8942         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
8943         
8944         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
8945         don't fill in tree_view->priv->selection, kind of an unexpected
8946         side effect
8947
8948         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
8949         gtkintl.h
8950         
8951         * gtk/gtkcellrenderer.c: Remove definition of _ and include
8952         gtkintl.h
8953         (gtk_cell_renderer_get_property): remove calls to g_value_init
8954
8955         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
8956         gtkintl.h
8957
8958         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
8959         and include gtkintl.h
8960         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
8961         property names
8962
8963         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
8964         GtkTreeSelection
8965         (_gtk_tree_selection_new_from_with_view): rename, return
8966         GtkTreeSelection
8967         (_gtk_tree_selection_set_tree_view): rename with uscore
8968         (gtk_tree_selection_get_selected): fill in the "model" out param
8969         first, so it gets filled in even if we return at the top of the 
8970         function
8971         (gtk_tree_selection_real_select_all): add a comment and an else{}
8972         to clarify this a bit
8973         (gtk_tree_selection_real_unselect_all): add the same else{}
8974
8975         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
8976         set_tree_view to have underscore prefixes, move them to the
8977         private header, fix return type of new_with_tree_view
8978         (struct _GtkTreeSelection): mark struct
8979         fields private  
8980
8981         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
8982         GtkTreeModelFlags, not a guint
8983         (gtk_tree_path_prev): return gboolean not gint
8984         (gtk_tree_path_up): return gboolean not gint
8985
8986         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
8987         return GtkTreeModelFlags, not a guint
8988
8989         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
8990         that child model is non-null before unrefing it
8991         (g_value_int_compare_func): make this a qsort compare func, not 
8992         a boolean predicate
8993
8994         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
8995         (add -umn to the end), and mark it unimplemented
8996         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
8997         I don't see what it's for - doesn't the model always sort itself?
8998         (gtk_tree_model_sort_set_compare): this had the wrong signature
8999
9000         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
9001         Fix the docs to say that it destructively replaces existing
9002         attributes (previously said that it added attributes).
9003         (gtk_tree_view_column_set_visible): canonicalize bool before
9004         equality testing. Also, check for realization before
9005         hiding/showing the tree_column->window; if this window could exist
9006         before realization, then it's busted and needs fixing, we can't 
9007         create GDK resources pre-realization. Also, remove
9008         superfluous queue_resize(), since set_size() does that for us.
9009         (gtk_tree_view_column_set_col_type): check realization before 
9010         using tree_column->window
9011
9012         * gtk/gtktreedatalist.c: fix filename in copyright notice
9013
9014 2000-12-31  Havoc Pennington  <hp@pobox.com>
9015
9016         * gtk/gtktextview.c: Rearrange all the
9017         scroll-while-dragging-or-selecting code to be different, not
9018         necessarily better. ;-)
9019         (gtk_text_view_scroll_to_mark): Change this
9020         function to take within_margin as a fraction instead of a pixel
9021         value, and to take alignment arguments (indicating where to align 
9022         the mark inside the visible area)
9023         
9024         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
9025         to GtkObject
9026
9027         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
9028         behavior so that offsets past the end of the line are not 
9029         allowed, and an offset equal to the line length moves the iterator
9030         to the next line
9031         (gtk_text_iter_set_line_index): make parallel change
9032         (gtk_text_iter_get_bytes_in_line): add this function
9033         
9034         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
9035         of byte indexes off the end of the line; byte index at the end of
9036         the line now returns FALSE and doesn't fill in the requested
9037         values, byte index past the end of the line is an error.  Also,
9038         don't allow -1 offset anymore, since its meaning is unclear.
9039
9040         This change exposes some bug in visual cursor motion, where we
9041         end up with a huge invalid byte index; needs fixing. Symptom of 
9042         bug is a crash when you hit up arrow.
9043         
9044         (_gtk_text_line_char_locate): match the change to byte_locate
9045
9046         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
9047         from start of line properly. fixes bug reported by Mikael
9048         Hermansson where backspace would delete all text before the
9049         cursor.
9050
9051 2000-12-30  Tor Lillqvist  <tml@iki.fi>
9052
9053         * gdk/win32/gdkwindow-win32.c
9054         (gdk_window_impl_win32_get_visible_region): New function, as in
9055         the X11 backend.
9056         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
9057         instead of duplicating the same code here.
9058
9059         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
9060         GDK_COLORMAP macro.
9061
9062         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
9063         destroy function.
9064         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
9065         access that.
9066
9067         * gtk/gtk.def: Update.
9068
9069         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
9070
9071 2000-12-30  Havoc Pennington  <hp@pobox.com>
9072
9073         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
9074         colormap on input only windows, to avoid special cases all over
9075         the code for these windows.
9076
9077 2000-12-26  Tor Lillqvist  <tml@iki.fi>
9078
9079         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
9080         we are on a palettized display ("PseudoColor" in X11), as the code
9081         for that doesn't work anyway, and never has.
9082
9083 2000-12-22  Alexander Larsson  <alexl@redhat.com>
9084
9085         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
9086         Don't use isprint() for chars > 255.
9087
9088 2000-12-21  Havoc Pennington  <hp@redhat.com>
9089
9090         * tests/testtreeview.c: more work
9091
9092 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9093
9094         * docs/README.linux-fb:
9095         Update the docs to the new pangoft2 way.
9096
9097 2000-12-21  Alexander Larsson  <alexl@redhat.com>
9098
9099         * configure.in:
9100         For linux-fb get the pangoft2 cflags and libs. This needs a recent
9101         pango version.
9102         Remove modules/linux-fb/Makefile.
9103
9104         * gdk/linux-fb/gdkdrawable-fb2.c:
9105         Render glyphs using freetype.
9106
9107         * gdk/linux-fb/gdkfb.h:
9108         Add new fb-specific functions needed for managing windows.
9109
9110         * gdk/linux-fb/gdkmain-fb.c:
9111         Remove gdk_font_init/fini() calls.
9112
9113         * gdk/linux-fb/gdkpango-fb.c:
9114         Remove old implementation. Use pangoft2 instead.
9115
9116         * gdk/linux-fb/gdkprivate-fb.h:
9117         Remove PangoFBFont and related stuff.
9118
9119         * gdk/linux-fb/gdkwindow-fb.c:
9120         Implement drawable->get_visible_region.
9121         Implement support for _gdk_window_set_child_handler () and
9122         _gdk_window_get_decorations().
9123
9124         * modules/Makefile.am:
9125         Remove linux-fb subdir.
9126
9127         * modules/linux-fb/*:
9128         Removed all.
9129         
9130 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
9131
9132         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
9133         calls, as they are no longer needed.
9134
9135         * gtk/gtktreemodelsort.c: Fix up the comparison code.
9136         
9137         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
9138         figure out how to emit a signal on an interface.
9139
9140 2000-12-20  Havoc Pennington  <hp@redhat.com>
9141
9142         * tests: new directory to contain tests, gtk/test* should move
9143         here sometime (with appropriate on-cvs-server hackery)
9144
9145         * tests/testtreeview.c, tests/Makefile.am: a test
9146         
9147         * configure.in (AC_OUTPUT): add tests/Makefile
9148
9149         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
9150         and "invisible_set" which were missing
9151
9152         * gtk/gtkrbtree.h: some cheesy indentation fix
9153         
9154 2000-12-20  Alexander Larsson  <alexl@redhat.com>
9155
9156         * gtk/gtkinvisible.c (gtk_invisible_realize):
9157         Attach the style to the window so that the style it is not
9158         leaked when unrealizing the window.
9159
9160 2000-12-18  Havoc Pennington  <hp@redhat.com>
9161
9162         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
9163         begin/end user action where appropriate
9164         (gtk_text_view_commit_handler): add begin/end user action
9165
9166         * gtk/gtktextbuffer.c: add begin/end user action signals, and
9167         bracket interactive operations with begin/end user action pair.
9168         
9169         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
9170         "interactive" arg from insert_text and delete_text signals.
9171         Add begin_user_action, end_user_action signals
9172         (gtk_text_buffer_begin_user_action): 
9173         (gtk_text_buffer_end_user_action): New functions to delimit 
9174         a user-visible action
9175
9176         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
9177         signals.
9178         
9179 2000-12-18  Havoc Pennington  <hp@redhat.com>
9180
9181         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
9182         was pretty non-working.
9183
9184         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
9185         by passing the length to g_utf8_validate().
9186
9187 2000-12-16  Havoc Pennington  <hp@pobox.com>
9188
9189         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
9190         Port to GObject, can go back in gdk-pixbuf after setting up 
9191         a gdk-pixbuf-marshal.h header over there.
9192
9193         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
9194         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
9195         args
9196         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
9197         set
9198         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
9199         here, do it when we create the buttons later
9200         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
9201         (gtk_tree_view_map): paranoia checks that column->button is shown 
9202         and unmapped
9203         (gtk_tree_view_size_request): only request visible children.
9204         Move header size calculation in here, for cleanliness, and 
9205         to maintain invariants for child widgets if we eventually 
9206         let users set different children inside the buttons
9207         (gtk_tree_view_map_buttons): factor out code to map buttons,
9208         since it was being called several times
9209         (gtk_tree_view_size_allocate_buttons): move_resize the drag
9210         windows instead of just moving them; their height may change 
9211         if we allow random widgets in there, or the theme changes.
9212         (gtk_tree_view_size_allocate): move button size allocation 
9213         above emitting the scroll signals, to ensure a sane state when we
9214         hit user code
9215         (gtk_tree_view_button_release): remove queue_resize after
9216         tree_view_set_size(), set_size() will handle any resize queuing
9217         that's needed
9218         (gtk_tree_view_focus_in): just queue a draw, don't fool with
9219         draw_focus goo
9220         (gtk_tree_view_focus): use gtk_get_current_event() and
9221         gdk_event_get_state()
9222         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
9223         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
9224         semicolon
9225         (gtk_tree_view_create_button): show the button here
9226         (gtk_tree_view_button_clicked): actually emit the clicked signal
9227         on the column
9228         (_gtk_tree_view_set_size): return right away if the size is
9229         unchanged, as a cheesy optimization
9230         (gtk_tree_view_setup_model): rename set_model_realized to 
9231         setup_model to match the flag that indicates whether we've 
9232         called it
9233         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
9234         exist, because set_scroll_adjustment does that and it shouldn't
9235         matter what order you call these in
9236         (gtk_tree_view_get_vadjustment): ditto
9237         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
9238         for paranoia
9239         (gtk_tree_view_set_headers_visible): call
9240         gtk_tree_view_map_buttons() instead of using cut-and-paste code
9241         (gtk_tree_view_append_column): clarify whether the return value
9242         is the count of columns before or after, and do the increment 
9243         separately from the return statement so you can tell from the code.
9244         (gtk_tree_view_remove_column): ditto
9245         (gtk_tree_view_insert_column): ditto
9246         (gtk_tree_view_get_column): remove g_return_if_fail for columns
9247         outside the existing range, the docs say that outside-range
9248         columns are allowed, so we handle them as documented. (Presumably
9249         this allows a nice loop with column != NULL as test.)
9250         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
9251         mean (left/right/center etc.).
9252         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
9253         (gtk_tree_view_expand_row): add docs
9254         (gtk_tree_view_collapse_row): add docs
9255
9256         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
9257         function to emit the clicked signal on a column
9258         
9259         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
9260         state of an event
9261         (gdk_event_get_time): don't treat GDK_SCROLL 
9262         as a button event, remove default case from switch so gcc 
9263         will whine if we don't explicitly handle all event types
9264
9265         * gtk/gtktreeselection.h: added some FIXME 
9266         
9267         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
9268         "columns" to "n_columns" and "column" to "columns" for clarity
9269
9270 2000-12-16  Havoc Pennington  <hp@pobox.com>
9271         
9272         * gtk/gtktextiter.c: General cleanup of the log attr iteration
9273         stuff. This should make e.g. the delete key work again in the
9274         text widget...
9275         (gtk_text_iter_forward_cursor_positions): handle negative count
9276         (gtk_text_iter_backward_cursor_positions): handle negative count
9277         (gtk_text_iter_forward_word_ends): handle negative count
9278         (gtk_text_iter_backward_word_starts): handle negative count
9279
9280         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
9281         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
9282         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
9283         GObject. No doubt will cause breakage.
9284
9285         * demos/gtk-demo/textview.c: remove hacks around
9286         non-GObject-ification of the text objects
9287
9288         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
9289         the text tag
9290         
9291 2000-12-14  Havoc Pennington  <hp@pobox.com>
9292
9293         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
9294         that we have Xrender
9295
9296 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
9297
9298         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
9299         Add two virtualized functions gdk_drawable_get_clip_region - to
9300         get the clip region when drawing.
9301         
9302         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
9303         use invalidate_region.
9304
9305         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
9306         region.
9307
9308         * acconfig.h configure.in: Check for Xft. For now, assume
9309         that if Xft is found, Pango was compiled with Xft support
9310         as well.
9311
9312         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
9313         gdk_colormap_query_color().
9314         
9315         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
9316         with Xft if appropriate.
9317
9318         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
9319         a pangoxft context if we have XFT and the environment
9320         variable GD_USE_XFT is set.
9321         
9322         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
9323         and also possibly an XftDraw structure.
9324
9325         * gtk/gtkfontsel.c: Handle the case where the font from the
9326         style doesn't match any of the fonts a bit better.
9327         
9328         * gtk/testgtk.c: Add tabs between directional segments for
9329         hebrew/arabic test. (Not really necessary, just a little
9330         prettier.)
9331
9332 2000-12-14  Havoc Pennington  <hp@redhat.com>
9333
9334         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
9335         reading a file
9336
9337 2000-12-14  Havoc Pennington  <hp@redhat.com>
9338
9339         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
9340         unused call to get_last_line()
9341
9342         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
9343         here until boxed is working (and maybe after that - we should
9344         really not gratuitously break old code)
9345
9346         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
9347         specific types for font_desc and tabs args, move them to
9348         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
9349         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
9350
9351         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
9352         use GTK_TYPE_POINTER for signal signatures as a hack-around
9353
9354         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
9355         PangoTabArray
9356
9357         * gtk/gtktextlayout.c (line_display_iter_to_index): 
9358         make static
9359         (line_display_index_to_iter): make static
9360
9361         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
9362         to marshal a string not a boxed
9363
9364         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
9365
9366         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
9367         since the UTF-8 isn't validated yet
9368
9369         * gtk/gtktextsegment.c (char_segment_check_func): don't require
9370         lines to end in '\n'
9371         
9372         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
9373         forward_to_delimiters, and grapheme boundaries
9374         (gtk_text_view_delete_from_cursor): properly handle non-newline
9375         delimiters, and grapheme boundaries
9376
9377         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
9378         to gtk_text_iter_forward_to_delimiters, and make it work properly
9379         if empty lines end with a character other than '\n'
9380
9381         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
9382         position
9383
9384 2000-12-15  Tor Lillqvist  <tml@iki.fi>
9385
9386         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
9387
9388         * gtk/gtk.def
9389         * gdk/gdk.def: Update.
9390
9391         * gdk/win32/gdkmain-win32.c
9392         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
9393         gdkmain-win32.c here.
9394
9395         * gdk/win32/makefile.mingw.in (all): No need to make
9396         gdk-win32res.o here, the makefile one step up will call us to make
9397         it.
9398
9399         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
9400         gdkkeys-win32.
9401
9402         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
9403
9404         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
9405         call to g_source_add().
9406
9407         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
9408         leak. Thanks to Andreas Kemnade.
9409
9410 2000-12-13  Havoc Pennington  <hp@pobox.com>
9411
9412         * gtk/gtktextbtree.h: Remove double _ in front of some functions
9413
9414         * gtk/gtktext*.[hc]: update accordingly
9415         
9416 2000-12-13  Havoc Pennington  <hp@pobox.com>
9417
9418         * gtk/gtktextbtree.h: Put _ in front of every function in this 
9419         header file
9420
9421         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
9422
9423 2000-12-13  Alex Larsson  <alexl@redhat.com>
9424
9425         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
9426         Add support for ps2 intellimouse.
9427
9428         * gdkkeyboard-fb.c:
9429         Move shift-F1 repaint handling to xlate handler only.
9430         
9431         * docs/README.linux-fb:
9432         Add imps2 to docs.
9433         Document the new refresh keys.
9434         
9435 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
9436
9437         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
9438
9439         * gtk/gtkbox.c: change property types from (u)long to (u)int for
9440         ::position and ::padding.
9441
9442         * gtk/gtkcontainer.c: make ::border_width an INT property.
9443
9444         * gtk/gtkpacker.c: make ::position an INT property.
9445
9446         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
9447         guard against NULL h/v scrollbars, since this is used at construction
9448         time.
9449
9450         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
9451         internal gtk_clist_constructor().
9452
9453         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
9454         gtk_ctree_constructor().
9455
9456         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
9457         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
9458
9459         * docs/reference/Makefile.am: fun stuff, disabled docs generation
9460         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
9461
9462         * gtk/gtkwidget.[hc]:
9463         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
9464         and gtk_widget_get().
9465         (gtk_widget_new): use g_object_new_valist().
9466         (gtk_widget_set): use g_object_set_valist().
9467
9468         * gtk/gtkobject.[hc]:
9469         removed gtk_object_arg_get_info(), gtk_object_getv(),
9470         gtk_object_query_args(), gtk_object_newv(),
9471         gtk_object_class_add_signals(),
9472         gtk_object_class_user_signal_new(),
9473         gtk_object_class_user_signal_newv(),
9474         gtk_object_arg_set(), gtk_object_arg_get(),
9475         gtk_object_args_collect(),
9476         gtk_object_default_construct(),
9477         gtk_object_constructed(),
9478         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
9479         removed nsignals, signals and n_args members from GtkObjectClass.
9480         (gtk_object_new): use g_object_new_valist().
9481         (gtk_object_set): use g_object_set_valist().
9482         (gtk_object_get): use g_object_get_valist().
9483         
9484         * gtk/gtkcompat.h: define gtk_object_default_construct().
9485         
9486         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
9487         g_object_new().
9488
9489         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
9490         fucntions, cleaned up method assignments (make sure your structures
9491         are setup properly before calling out). removed all GTK_CONSTRUCTED
9492         hacks ;)
9493
9494 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
9495
9496         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
9497         off-by-one error in checks. (Dave Lambert)
9498
9499 2000-12-12  Alexander Larsson  <alexl@redhat.com>
9500
9501         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
9502         Don't free gdk_fb_keyboard twice.
9503
9504 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
9505
9506         * gtk/testgtk.c:
9507         (create_tooltips): 
9508         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
9509         use GObject swapped_signal:: properties instead.
9510
9511         * gtk/gtkcellrenderertoggle.c: 
9512         * gtk/gtkcellrenderertextpixbuf.c: 
9513         * gtk/gtkcellrenderertext.c: 
9514         * gtk/gtkcellrendererpixbuf.c: 
9515         * gtk/gtkcellrenderer.c:
9516         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
9517         missing warnings for invalid property ids, install properties
9518         with g_object_class_install_property() now.
9519         
9520         * gtk/gtksignal.c:
9521         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
9522         
9523 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
9524         
9525         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
9526         to determine if a window is the focus widget within
9527         its toplevel.
9528
9529         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
9530         to be boolean.
9531
9532         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
9533         of the case where the container CAN_FOCUS to here instead
9534         of having it in each individual move-the-focus place.
9535
9536         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
9537         focusing to be geometric in a much more obvious sense. Arrowing
9538         around is still non-intuitive because it isn't perfect and
9539         because entries, etc, grab the arrow keys, but it at least
9540         usually will do what you expect now.
9541         
9542         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
9543         file.
9544
9545         * gtk/gtknotebook.c: Change tabs to be a single item in
9546         the focus chain. Make movement of focus on tabs with arrow
9547         keys wrap around.
9548         
9549         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
9550         CHECK_FIND_CHILD macro to give informative error messages
9551         instead of silent returns.
9552
9553         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
9554         flag since we handle GdkReturn on the tabs.
9555
9556         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
9557         windows rather than sending expose events directly.
9558
9559         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
9560         definition for GtkNotebookPage into .c file, since it is private.
9561
9562         * gtk/testgtk.c (create_notebook): Add option for 
9563         testing borderless notebook.
9564
9565         * gtk/testgtk.c (page_switch): Removed egregious poking
9566         around in GTK+ internals.
9567
9568         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
9569
9570         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
9571         properly through gtk_clist_focus. Make the title headers a
9572         single item in the tab-focus chain, and make left-right wrap
9573         around.
9574
9575         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
9576         focus method so that wrapping around works properly.
9577
9578         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
9579         that is handled for the widget now. 
9580
9581 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
9582
9583         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
9584         widgets as TOPLEVEL.
9585
9586         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
9587         TOPLEVEL widgets are containers.
9588
9589         * gtk/gtkinvisible.h: Remove useless include.
9590
9591 2000-12-11  Havoc Pennington  <hp@redhat.com>
9592
9593         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
9594         Handle chopping off \r\n and 0x2029 in addition to \n before
9595         passing to PangoLayout
9596
9597         * gtk/gtkimcontextsimple.c
9598         (gtk_im_context_simple_get_preedit_string): 
9599         return an empty string if no match is pending
9600
9601         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
9602         assertion that the returned preedit string was sane
9603
9604         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
9605         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
9606         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
9607
9608 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
9609
9610         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
9611         Fix up finalizer to chain to its parent.
9612
9613 2000-12-11  Alexander Larsson  <alexl@redhat.com>
9614
9615         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
9616         Clearified the difference between the keyboard types. Wrote a note
9617         about the magic sysrq key to get out of raw mode.
9618
9619 2000-12-09  James Henstridge  <james@daa.com.au>
9620
9621         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
9622         member to hold masks for detecting the start of a protocol packet.
9623         (mouse_devs): add packet start masks for ps2 and ms device types.
9624         Left the mask for fidmour blank, as I have no idea what it should
9625         be.
9626         (handle_mouse_io): skip bytes until we get to the start of a
9627         packet.  My Logitech mouse seems to be passing an extra NULL pad
9628         byte, and GPM does a similar thing here.
9629         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
9630         this is the ms mouse driver.
9631         (gdk_fb_mouse_ms_packet): fix up button handling, which was
9632         completely broken except for button1.  It was checking the wrong
9633         bit in the packet for the status of the right mouse button, and
9634         wrongly assuming right == button2 rather than 3.  I fixed that and
9635         also added support for middle button (button2).
9636
9637 2000-12-08  Havoc Pennington  <hp@redhat.com>
9638
9639         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
9640         that cause a segfault on text insertion
9641
9642         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
9643         warning
9644
9645         * gtk/gtktextiter.c (test_log_attrs): use
9646         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
9647
9648         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
9649         Get log attrs for a line, using a cache stored on the buffer
9650         
9651         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
9652         reported by Jeff Franks
9653
9654 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9655
9656         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
9657         /dev/ttyS0 -> /dev/mouse
9658
9659 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9660
9661         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
9662         Added dummy gdk_fontset_load.
9663
9664 2000-12-08  Alexander Larsson  <alexl@redhat.com>
9665
9666         * docs/README.linux-fb:
9667         * docs/Makefile.am:
9668         Initial GtkFB docs.
9669         
9670         * gdk/linux-fb/Makefile.am:
9671         Define GDK_DATA_PREFIX.
9672
9673         * gdk/linux-fb/gdkmain-fb.c:
9674         Fix typo.
9675         Change default display to /dev/fb0.
9676
9677         * gdk/linux-fb/gdkpango-fb.c:
9678         Add $(prefix)/share/fonts/ to font path.
9679         
9680 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
9681
9682         * gdk/linux-fb/gdkkeyboard-fb.c:
9683         New file containing the abstracted keyboard driver. Most code
9684         taken from gdkinput-ps2.c
9685
9686         * gdk/linux-fb/gdkinput-ps2.c:
9687         Removed file.
9688         
9689         * gdk/linux-fb/Makefile.am:
9690         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
9691
9692         * gdk/linux-fb/gdkcolor-fb.c:
9693         display->fb was renamed to display->fb_fd.
9694
9695         * gdk/linux-fb/gdkcursor-fb.c:
9696         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9697
9698         * gdk/linux-fb/gdkinput.c:
9699         Moved gdk_input_init here from gdkinput-ps2.c
9700
9701         * gdk/linux-fb/gdkmain-fb.c:
9702         display->fb was renamed to display->fb_fd.
9703         Now the tty and the console is opened here instead
9704         of in the keyboard driver. Also check GDK_VT to see what
9705         tty to open.
9706         Move gdk_beep () here from gdkinput-ps2.c
9707         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9708
9709         * gdk/linux-fb/gdkmouse-fb.c:
9710         Add header.
9711         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9712         Return correct keyboard modifiers.
9713         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
9714
9715         * gdk/linux-fb/gdkprivate-fb.h:
9716         Add tty and vt info to display.
9717         Add orignal modeinfo storage to display
9718         Update global functions
9719
9720         * gdk/linux-fb/gdkwindow-fb.c:
9721         Added gdk_fb_window_find_focus().
9722         gdk_mouse_get_info -> gdk_fb_mouse_get_info
9723
9724 2000-12-07  Havoc Pennington  <hp@pobox.com>
9725
9726         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
9727         function, noticed by Alex
9728
9729 2000-12-06  Elliot Lee  <sopwith@redhat.com>
9730
9731         * configure.in: Detect freetype properly
9732
9733         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
9734         above.
9735
9736 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9737
9738         * gdk/linux-fb/Makefile.am:
9739         Add gdkmouse-fb.c
9740         
9741         * gdk/linux-fb/gdkmouse-fb.c:
9742         New file. Abstracted the mouse drivers a bit.
9743
9744         * gdk/linux-fb/gdkcursor-fb.c:
9745         The cursor hide/show functions was moved here from gdkinput-ps2.c.
9746
9747         * gdk/linux-fb/gdkinput-ps2.c:
9748         Removed old mouse handling code. Moved cursor handling code
9749         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
9750         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
9751         gdk_mouse_get_info.
9752
9753         * gdk/linux-fb/gdkmain-fb.c:
9754         Pass NULL pointers for x,y in gdk_mouse_get_info call.
9755
9756         * gdk/linux-fb/gdkprivate-fb.h:
9757         Removed public gdk_fb_find_common_ancestor, added and renamed
9758         functions for the new mouse handling code.
9759
9760         * gdk/linux-fb/gdkwindow-fb.c:
9761         Moved gdk_fb_window_send_crossing_events here. added global
9762         variable gdk_fb_window_containing_pointer. made
9763         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
9764         renamed to gdk_mouse_get_info.
9765
9766 2000-12-06  Alexander Larsson  <alexl@redhat.com>
9767
9768         * gdk/linux-fb/gdkevents-fb.c:
9769         Update to match latest gmain/gsource changes.
9770
9771         * gdk/linux-fb/gdkinput-ps2.c:
9772         Bogus gdk_keymap_get_entries_for_keycode implementation so that
9773         it links. Will be implemented later.
9774
9775 2000-12-03  Havoc Pennington  <hp@pobox.com>
9776
9777         * gdk/Makefile.am: add gdkkeys.[hc]
9778
9779         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
9780         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
9781
9782         * acconfig.h, configure.in: add checks and command line options
9783         for XKB
9784
9785         * gdk/x11/gdkkeys-x11.c: Implement the above functions
9786         
9787         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
9788         and group in the key event
9789
9790         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
9791         field with the low-level hardware key code, and a group
9792         field with the keyboard group
9793
9794         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
9795         and declare a couple globals used for keymap handling
9796         
9797         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
9798         hold down Shift-Control and type a hex number to get a Unicode 
9799         character corresponding to the hex number
9800         (gtk_im_context_simple_get_preedit_string): Fix cursor position
9801         (return bytes not chars)
9802
9803 2000-12-05  Elliot Lee  <sopwith@redhat.com>
9804
9805         * gdk/gdkcolor.h: Make GdkColor specify element sizes
9806         to avoid waste on 64-bit platforms.
9807
9808 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
9809
9810         * INSTALL: Fix link to PNG home, remove reference
9811         to fribidi.
9812
9813         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
9814         
9815         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
9816         tested.)
9817
9818         * gtk/gtkcheckmenuitem.c: Permanently turn on
9819         always_show_toggle.
9820
9821         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
9822         be NULL. (Vladimir Klebanov, #26545)
9823
9824         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
9825         some signed/unsigned comparison problems. (#6510,
9826         David Kaelbling)
9827
9828         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
9829         return type to boolean (Oskar Liljeblad, #18648)
9830
9831 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9832
9833         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
9834         Remove bogus colormap setting.
9835
9836 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9837
9838         * gdk/linux-fb/gdkcolor-fb.c:
9839         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
9840
9841         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
9842         Must set colormap.
9843         
9844 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
9845
9846         * docs/tutorial/gtk-tut.sgml: DND updates
9847
9848 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
9849
9850         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
9851         Remove old debug g_warning().
9852         (gdk_fb_draw_drawable): The src argument can be either a wrapper
9853         or an implementation, just pass the implementation to draw_drawable_2.
9854         
9855         * gdk/linux-fb/gdkprivate-fb.h:
9856         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
9857
9858         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
9859         clear and invalidate area when window is destroyed.
9860         (send_map_events): Remove old commented out code.
9861
9862 2000-12-05  Alexander Larsson  <alexl@redhat.com>
9863
9864         * gdk/linux-fb/gdkpango-fb.c:
9865         Use italic instead of oblique in font aliases.
9866         
9867         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
9868         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
9869         other unsupported functions.
9870
9871 2000-12-04  Havoc Pennington  <hp@redhat.com>
9872
9873         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
9874
9875         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
9876
9877         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
9878
9879         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
9880         hack to avoid infinite loops (synthetic expose event) - 
9881         Owen has more appropriate fixes in a branch he'll check in later.
9882
9883         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
9884         separator, CR, and CRLF as line ends
9885
9886         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
9887         into lines using pango_find_paragraph_boundary(); other bits of
9888         the widget are still going to be broken if the boundary isn't '\n'
9889         though
9890
9891 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9892
9893         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
9894         multiply.
9895
9896         * gdk/linux-fb/gdkpango-fb.c:
9897         Copied some 26.6 scaling macros from pango to clean up the rounding.
9898         (pango_fb_font_get_glyph_info): Correct sign on x value.
9899
9900         * gdk/linux-fb/gdkprivate-fb.h:
9901         Removed unreferenced external functions.
9902
9903         * modules/linux-fb/Makefile.am: Use ` instead of '.
9904
9905         * modules/linux-fb/basic.c:
9906         Remove dead code. In particular the dummy lang engine which broke all
9907         pango layouts in GtkFB. Don't include tables-big.i anymore.
9908
9909         * modules/linux-fb/tables-big.i:
9910         Upgrade to latest version from pango. Left for reference, basic_ranges
9911         moved to basic.c.
9912         
9913 2000-12-04  Havoc Pennington  <hp@redhat.com>
9914
9915         Fix bugs Alex found:
9916         
9917         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
9918         to "draw"
9919
9920         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
9921
9922         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
9923
9924         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
9925         implementation in here, apparently the expose() implementation was
9926         dead code.
9927
9928 2000-12-04  Alexander Larsson  <alexl@redhat.com>
9929
9930         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
9931         Return positive descent.
9932
9933 2000-12-02  Havoc Pennington  <hp@pobox.com>
9934
9935         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
9936         method and signal
9937         
9938         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
9939         calls gdk_window_process_updates() to push the exposes through
9940         (gtk_widget_class_init): No more draw signal, no
9941         gtk_widget_real_draw()  
9942         
9943         * gtk/gtkbin.c (gtk_bin_draw): remove
9944
9945         * gtk/gtkbox.c (gtk_box_draw): remove
9946
9947         * gtk/gtkbutton.c (gtk_button_draw): remove
9948
9949         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
9950
9951         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
9952
9953         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
9954
9955         * gtk/gtkclist.c (gtk_clist_draw): remove
9956
9957         * gtk/gtkentry.c (gtk_entry_draw): remove
9958
9959         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
9960
9961         * gtk/gtkfixed.c (gtk_fixed_draw): remove
9962
9963         * gtk/gtkframe.c (gtk_frame_draw): remove
9964
9965         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
9966
9967         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
9968
9969         * gtk/gtklayout.c (gtk_layout_draw): remove
9970
9971         * gtk/gtklist.c (gtk_list_draw): remove
9972
9973         * gtk/gtklistitem.c (gtk_list_item_draw): remove
9974
9975         * gtk/gtkmenu.c (gtk_menu_draw): remove
9976
9977         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
9978
9979         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
9980
9981         * gtk/gtknotebook.c (gtk_notebook_draw): remove
9982
9983         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
9984
9985         * gtk/gtkpacker.c (gtk_packer_draw): remove
9986
9987         * gtk/gtkrange.c (gtk_range_draw): remove
9988
9989         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
9990
9991         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
9992
9993         * gtk/gtktable.c (gtk_table_draw): remove
9994
9995         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
9996
9997         * gtk/gtktext.c (gtk_text_draw): remove
9998
9999         * gtk/gtktextview.c (gtk_text_view_draw): remove
10000
10001         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
10002
10003         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
10004
10005         * gtk/gtktree.c (gtk_tree_draw): remove
10006
10007         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
10008
10009         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
10010
10011         * gtk/gtkviewport.c (gtk_viewport_draw): remove
10012
10013         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
10014
10015         * gtk/gtkvscale.c (gtk_vscale_draw): remove
10016
10017         * gtk/gtkwindow.c (gtk_window_draw): remove
10018
10019 2000-20-01  Anders Carlsson  <andersca@gnu.org>
10020
10021         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
10022         a GtkToggleButton is both insensitive and active, it was being
10023         drawn by the GtkButton draw handler which doesn't check the
10024         state. Now it's calling gtk_toggle_button_paint instead.
10025         
10026 2000-12-01  Havoc Pennington  <hp@redhat.com>
10027
10028         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
10029         dangling pointers to the appearance attributes from the 
10030         line display
10031
10032         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
10033         width/height to mean "full width/height of drawable"
10034
10035         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
10036         click to select word/line
10037         
10038         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
10039         when getting log attrs. Get a slice, so that pixmaps and stuff
10040         are properly handled.
10041
10042         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
10043         paste into the selection (replaces selection now, previously
10044         crashed or added to selection). Reveals longstanding btree bug -
10045         select multiple lines, middle-click on the selection, boom. This
10046         isn't related to my changes though.
10047
10048         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
10049         PangoLogAttrs changes
10050         (gtk_entry_move_backward_word): ditto
10051
10052         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
10053         functions return bool whether the iter moved onto a
10054         dereferenceable position.
10055  
10056         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
10057         functions for motion in terms of display lines.
10058
10059         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
10060         get the buffer a mark is inside
10061         
10062 2000-12-01  Alexander Larsson  <alexl@redhat.com>
10063
10064         * gdk/linux-fb/Makefile.am:
10065         * modules/linux-fb/Makefile.am:
10066         Freetype 2 final uses freetype-config
10067
10068         * gdk/linux-fb/gdkpango-fb.c:
10069         Upgrade to use Freetype 2 final.
10070         More flexible support for font aliases, this also fixes a bug with
10071         GtkFontSelector, as the aliases must be visible in the font/family list,
10072         or GtkFontSelector reads uninitialized memory.
10073
10074 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
10075
10076         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
10077         XGetIMValues to properly terminate variable argument list, and do
10078         NULL return check for ic_values and xim_styles.
10079
10080         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
10081         Restore preedit state after XmbResetIC().
10082         
10083         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
10084         XvaCreateNestedList() should take XvaNestedList, but not
10085         XvaNestedList*.
10086
10087         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
10088         preedit_draw_callback, preedit_caret_callback): Match
10089         "preedit-changed" signal name to "preedit_changed" to be
10090         consistent to the spec.
10091
10092         * gtk/gtkimcontextsimple.c (check_table):
10093         Match "preedit-changed" to "preedit_changed" to be consistent
10094         to the spec.
10095
10096 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
10097
10098         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
10099         gc->clip_region == NULL>
10100
10101 2000-11-30  Tor Lillqvist  <tml@iki.fi>
10102
10103         Changes by Hans Breuer:
10104         
10105         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
10106         Dont't use negative width and height as max_hints. This fixes
10107         Owen's recent testgtk changes for win32.
10108
10109         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
10110         gdk_win32_hdc_release): These are exported and may be called with
10111         other drawable types than our GdkDrawableImplWin32 (?).
10112
10113         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
10114         so always #define USE_BACKING_STORE.
10115
10116         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
10117         of printf for debugging output.
10118
10119         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
10120         
10121         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
10122
10123         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
10124         declaration.
10125
10126         * gtk/gtktexttypes.h: Ditto.
10127
10128         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
10129         (GDK_VoidSymbol) also if in case of arg check failure.
10130
10131         * gtk/gtkimcontextsimple.c
10132         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
10133         position to the pointer, but to the variable it points to.
10134
10135         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
10136
10137         * gtk/gtk.def: Updates.
10138
10139 2000-11-29  Elliot Lee  <sopwith@redhat.com>
10140
10141         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
10142         GTK_TYPE_TREE_MODEL.
10143
10144 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10145
10146         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
10147         Set the size of the font from the description.
10148         (gdk_text_width): Gross hack that calculates the width
10149         of text by text_length * size/2. This is necessary because
10150         GtkLabel does some ugly gtk_string_width call to calculate
10151         an good size.
10152         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
10153
10154 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
10155
10156         * docs/tutorial/gtk-tut.sgml: DND updates
10157
10158 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10159
10160         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
10161         If you pass width or height == 0 to gdk_window_clear_area they
10162         should be calculated from the window size.
10163
10164 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10165
10166         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
10167         a grab, but no grab-cursor, use the cursor from the grabbed
10168         window. (gdk_fb_window_send_crossing_events): Send normal
10169         enter/leave notifications if grab and owner_events == TRUE.
10170
10171 2000-11-29  Alexander Larsson  <alexl@redhat.com>
10172
10173         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10174         Do implicit button grabs, even if the window doesn't
10175         want the event.
10176         (gdk_fb_window_send_crossing_events): If there is a
10177         grab, only the grabbed window gets normal enter/leave
10178         notifications. On ungrab go from grabbed window to current.
10179         Don't send any notification to b when propagating from c -> b.
10180         If setting a grab on window, don't set prev_window.
10181         (handle_mouse_input): Send enter/leave events to the window the
10182         mouse is over, not the grabbed one.
10183         
10184 2000-11-28  Elliot Lee  <sopwith@redhat.com>
10185
10186         * gdk/gdkregion-generic.c: Zap warning.
10187         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
10188         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
10189
10190 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
10191
10192         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
10193         The cursor should be hidden if it is part of either the
10194         source or destination region. Not only if it is in both.
10195         (gdk_window_set_transient_for): Silence warnings.
10196
10197 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10198
10199         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
10200         The default mode in X is Pie Arcs, therefore that is
10201         what Gtk+ uses.
10202
10203 2000-11-28  Alexander Larsson  <alexl@redhat.com>
10204
10205         * gdk/linux-fb/gdkinput-ps2.c:
10206         Implement correct EnterNotify/LeaveNotify:
10207         (gdk_fb_window_send_crossing_events): New function that sends
10208         all GdkCrossingEvents from the last mouse-window to the specified
10209         destination.
10210         (gdk_fb_window_visibility_crossing): Removed function.
10211         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
10212         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
10213         instead of gdk_window_get_pointer() for better readability.
10214
10215         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
10216         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
10217
10218         * gdk/linux-fb/gdkprivate-fb.h:
10219         removed gdk_fb_window_visibility_crossing, added
10220         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
10221
10222         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
10223         New function that finds the least common ancestor of two windows.
10224         (gdk_window_show, gdk_window_hide):
10225         Use gdk_fb_window_send_crossing_events.
10226         (gdk_fb_window_move_resize): Send configure events to toplevel
10227         windows. Use gdk_fb_window_send_crossing_events.
10228
10229 2000-11-27  Havoc Pennington  <hp@redhat.com>
10230
10231         * gtk/gtkprivate.h (enum): Remove a trailing comma
10232
10233 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
10234
10235         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
10236         the "changed" callback of the adjustment.  We need to redraw the
10237         spin button's arrows when the adjustment's range changes.
10238         (adjustment_changed_cb): Draw the arrows.
10239         (gtk_spin_button_value_changed): Draw the arrows.
10240
10241 2000-11-23  Alexander Larsson  <alexl@redhat.com>
10242
10243         * gdk/linux-fb/gdkselection-fb.c:
10244         Initial selection implementation.
10245
10246         * gtk/gtkselection.c:
10247         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
10248         requestor in gtk_selection_request.
10249         
10250         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
10251         Added gdk_selection_property atom.
10252
10253         * gdk/linux-fb/gdkprivate-fb.h:
10254         Export _gdk_selection_window_destroyed.
10255         Removed mask_off_x/y from GdkCursorPrivateFB.
10256         Removed hbearing, added top, left to PangoFBGlyphInfo.
10257
10258         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
10259         Call _gdk_selection_window_destroyed
10260         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
10261         the root window has been created.
10262         (static_dx_hack, static_dy_hack, compare_draw_rects,
10263         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
10264         in region. They are already sorted. Instead just traverse them in
10265         reverse if draw_direction < 0.
10266         
10267         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
10268         Double-clicks must be sent after the normal button_press.
10269         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
10270         
10271         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
10272         Pass _gdk_fb_screen_gc instead of NULL.
10273
10274         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
10275         Initialize gdk_selection_property.
10276         (gdk_event_make): Remove unused code.
10277
10278         * gdk/linux-fb/gdkcursor-fb.c:
10279         Make the pixmap for the cursor the same size as the mask. Also remove
10280         the mask_off_x/y fields in GdkCursorPrivateFB and combine
10281         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
10282         Now the whole cursor is visible.
10283
10284         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
10285         Fix bug where xdest+height instead of ydest+height was used
10286         to calculate if the source and dest overlapped. This fixes the
10287         redraw bug when the main window in testgtk was scrolled when
10288         partially covered by a tall window.
10289         Copy rectangles in region in order depending on draw_direction.
10290         Also moved the draw_direction flipping of start_y and end_y into
10291         the gc functions, as this might not be what all of them want.
10292         (gdk_fb_draw_lines): Support dashed lines.
10293         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
10294         so that the text is positioned correctly (was 1 pixel high).
10295
10296         gdk/linux-fb/gdkgc-fb.c:
10297         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
10298         all lines were drawn a pixel to short. Also checked the default of
10299         the rest of the values, and they're the same as X now.
10300
10301         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
10302         Clean up pixel positioning of the glyphs. Just use bgy->top and
10303         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
10304         to all divisions to get correct rounding behaviour.
10305
10306         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
10307         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
10308         Moved start_y/end_y flip into draw_drawable implementations.
10309         Flip also x rendering when draw_direction < 0.
10310         Remove unneccesary multiply with draw_direction.
10311
10312 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
10313
10314         * docs/tutorial/gtk-tut.sgml:
10315           - get rid of gtk_toggle_button_toggled FUD
10316           - start DND section - needs work - based on:
10317                 http://wolfpack.twu.net/docs/gtkdnd/
10318
10319 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10320
10321         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
10322         Correct calculation of font metrics. Now GtkEntrys have sane
10323         size.
10324
10325 2000-11-22  Alexander Larsson  <alexl@redhat.com>
10326
10327         * gdk/gdktypes.h:
10328         Add new type GdkSpan
10329         
10330         * docs/reference/gdk/gdk-sections.txt,
10331         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
10332         gdk/gdkregion.h:
10333         Implement and document gdk_region_spans_intersect_foreach.
10334
10335         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
10336         Add new file gdkrender-fb.c which contains all core
10337         rendering code.
10338         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
10339         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
10340         (optimized rectangle fillers).
10341
10342         * gdk/linux-fb/gdkdrawable-fb2.c:
10343         Move all rendering code to gdkrender-fb.c.
10344         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
10345         Use the new span intersection functions in gdk_fb_fill_spans.
10346         gdk_fb_draw_rectangle() clips filled rectangles and calls
10347         gc->fill_rectangle with the result.
10348         gdk_fb_fill_spans() gets extra argument "sorted".
10349
10350         * gdk/linux-fb/gdkevents-fb.c:
10351         Remove unused includes and defines.
10352         New function gdk_fb_get_time() to get correct time for events.
10353
10354         * gdk/linux-fb/gdkinput-ps2.c:
10355         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
10356         Make sure to set the time of all events.
10357
10358         * gdk/linux-fb/gdkmain-fb.c:
10359         Use gdk_fb_get_time ().
10360
10361         * gdk/linux-fb/gdkprivate-fb.h:
10362         New virtual GC calls: fill_span & fill_rectangle.
10363         Export gdk_fb_get_time().
10364         gdk_fb_fill_spans() gets extra argument "sorted".
10365
10366         * gdk/linux-fb/mi*.c:
10367         Use GdkSpan instead of GdkRectangle.
10368         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
10369         from XFree 4 source)
10370         
10371 2000-11-22    <jrb@redhat.com>
10372
10373         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
10374         reversing the order in an if statement will do.  Doing so managed
10375         to make the treemodelsort half work.  Other half will follow after
10376         I get the insert function fully fixed.
10377
10378 2000-11-21  Elliot Lee  <sopwith@redhat.com>
10379         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
10380         more than 2 bits. Besides, I need to implement an evil hack. :)
10381
10382 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
10383
10384         * docs/tutorial/gtk-tut.sgml: minor corrections
10385
10386 2000-11-20  Jonathan Blandford <jrb@redhat.com>
10387         * gtk/gtktreemodelsort.h: Add convertion functions to let you
10388           convert to and from relative path's and iters.
10389
10390         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
10391           testing sorting functions a bit better.  Currently broken -- will
10392           fix in morning.
10393
10394 2000-11-20  Havoc Pennington  <hp@redhat.com>
10395
10396         * gtk/gtkwidget.c: Documented a bunch of functions in here
10397         (gtk_widget_realize): Warn if you try to realize
10398         a widget with no parent that isn't a toplevel
10399         (gtk_widget_intersect): return a gboolean
10400
10401 2000-11-20  Havoc Pennington  <hp@redhat.com>
10402
10403         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
10404         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
10405         scrolling to be implemented in GDK to finish. Also, right now
10406         we just size_allocate all children on every layout change,
10407         which is pretty lame. Test commented out of testtext.c, 
10408         until it works better.
10409
10410 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
10411
10412         * gdk/linux-fb/gdkdrawable-fb2.c:
10413         Removed unused arguments from gdk_fb_drawable_get_pixel().
10414
10415         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
10416         Renamed fidur specific mouse packet data in MouseDevice to
10417         generic. Used it in ps2 mouse handling code to avoid blocking
10418         reads.
10419
10420 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
10421
10422         * demos/gtk-demo/main.c: Changed to have the list become
10423         non-italic when the demo window is destroyed through an external
10424         event (like a close button).  Doing so found three bugs in the
10425         widget.
10426
10427         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
10428
10429         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
10430         we actually set the cell.
10431
10432         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
10433
10434         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
10435         free a leaked path.  Thanks memprof.
10436
10437 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
10438
10439         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
10440         off-by-one error when destroying allocated segments
10441         on failure. (Elliot)
10442
10443 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
10444
10445         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
10446         memleaks found by Evan Martin.
10447
10448 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
10449
10450         * Released 1.3.2
10451         
10452         * NEWS: Updates for 1.3.2
10453
10454 2000-11-17  Tor Lillqvist  <tml@iki.fi>
10455
10456         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
10457         but in general for window system specific events.
10458
10459         * gtk/gtk.def
10460         * gtk/makefile.mingw.in
10461         * gtk/makefile.msc.in: Update.
10462         
10463         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
10464
10465 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
10466
10467         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
10468         distribute gtk.immodules.
10469
10470         * gtk/Makefile.am (install-data-local): Don't install the
10471         gtk.immodules file created for the uninstalled modules;
10472         instead run gtk-query-immodules after install
10473
10474 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
10475
10476         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
10477         -rpath to the right install location.
10478
10479         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
10480         -export-dynamic.
10481
10482         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
10483         properly.
10484
10485 2000-11-15  Havoc Pennington  <hp@pobox.com>
10486
10487         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
10488         patch from Mikael Hermansson to temporarily stop blinking while
10489         the user is using the keyboard to type or navigate. 
10490
10491         Also, when blinking, stay on for longer than we stay off. Also,
10492         return from start_cursor_blink if !cursor_visible, to save
10493         checking that flag all over the place before we call
10494         start_cursor_blink.
10495
10496 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
10497
10498         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
10499         only contain a "fontset" line, which is now ignored.
10500
10501         * gtk/gtkentry.c (gtk_entry_button_release): Make 
10502         double-click-to-select-word work.
10503         
10504 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
10505
10506         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
10507         Don't move back one char when we are actually at the end of the 
10508         paragraph.
10509
10510 2000-11-15  Robert Brady  <robert@suse.co.uk>
10511
10512         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
10513         'o' < 'p'.
10514         
10515         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
10516         bind_textdomain_codeset.
10517
10518         (gtk_init_check): Make the warning about translating default:LTR
10519         sterner.
10520         
10521 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
10522
10523         * **/Makefile.am : remove unecessary rules for win32-specific
10524         config-substituted targets. If you want these rules, use
10525         --enable-maintainer-mode (called automatically by autogen.sh).
10526         Stops a lot of unneccessary make-time warnings.
10527
10528         * gtk/gtktext{layout,display}.c: Factor in total width as
10529         well as screen when figuring alignment for word-wrap as well as
10530         no wrap; this is necessary to handle lines that cannot be wrapped
10531         at all.
10532
10533 2000-11-15  Havoc Pennington  <hp@redhat.com>
10534
10535         * gtk/testtext.c: Implement essential color cycling feature
10536
10537 2000-11-15  Havoc Pennington  <hp@redhat.com>
10538
10539         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
10540         when we invalidate the main window.
10541
10542         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
10543         GtkTextView will now invalidate the side windows for us when text
10544         changes.
10545
10546 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
10547
10548         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
10549         unconditionally, since we may need to update the horizontal
10550         scrollbars even if the height didn't change.
10551
10552         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
10553         the extra attrs, since some of them affect size.
10554
10555         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
10556         x_offset correctly.
10557
10558 2000-11-15  Havoc Pennington  <hp@redhat.com>
10559
10560         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
10561         don't move the first line out into the margin, instead move the
10562         whole paragraph in order to make space for the first line within 
10563         the margin
10564
10565 2000-11-15  Havoc Pennington  <hp@redhat.com>
10566
10567         * gtk/gtktextview.c (changed_handler): offset redraw rect by
10568         xoffset in addition to yoffset, so horizontal scrolling doesn't
10569         break redraws
10570
10571 2000-11-15  Havoc Pennington  <hp@redhat.com>
10572
10573         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
10574         from the cursor
10575         (render_layout_line): fix reversed test that caused weird
10576         underlines to get drawn
10577
10578 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10579
10580         * gdk/linux-fb/gdkprivate-fb.h:
10581         Fix debug macros.
10582         
10583 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
10584
10585         * gdk/linux-fb/gdkprivate-fb.h:
10586         Added virtual functions set_pixel, get_color,
10587         fill_span and draw_drawable to the GC.
10588         Added global _gdk_fb_screen_gc to use instead of
10589         NULL when drawing to the screen.
10590         Added _gdk_fb_gc_calc_state() prototype.
10591
10592         * gdk/linux-fb/gdkgc-fb.c:
10593         Call _gdk_fb_gc_calc_state() on any gc state change.
10594
10595         * gdk/linux-fb/gdkglobals-fb.c:
10596         Add _gdk_fb_screen_gc
10597                 
10598         * gdk/linux-fb/gdkdrawable-fb2.c:
10599         _gdk_fb_gc_calc_state() calculates best functions
10600         for the GC state and depth.
10601         Moved bpp specialized code to separate functions.
10602         Added optimized 24 bpp AA draw_drawable.
10603
10604         * gdk/linux-fb/gdkevents-fb.c:
10605         Silence gcc warning.
10606
10607         * gdk/linux-fb/gdkimage-fb.c:
10608         Use _gdk_fb_screen_gc
10609
10610         * gdk/linux-fb/gdkwindow-fb.c:
10611         Init and use _gdk_fb_screen_gc
10612
10613         * gdk/linux-fb/mitypes.h:
10614         Remove unused types.
10615
10616 2000-11-14  Havoc Pennington  <hp@pobox.com>
10617
10618         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
10619         to pixels
10620
10621 2000-11-14  Havoc Pennington  <hp@pobox.com>
10622
10623         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
10624
10625         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
10626         unknown char, no real reason we were using a variable. 
10627         Remove gtk_text_unknown_char variable. Fix all the text widget
10628         files accordingly.
10629
10630         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
10631         since the Unicode spec seems to prefer that character for our
10632         purposes.
10633
10634 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
10635
10636         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
10637         value of g_getenv() isn't freeable, so g_strdup it.
10638
10639         * modules/input/inuktitut.c: Inuktitut input method.
10640
10641         * modules/input/Makefile.am: Build this.
10642         
10643 2000-11-14  Elliot Lee  <sopwith@redhat.com>
10644
10645         * gtk/Makefile.am: Install gtk.immodules, needed for operation
10646         of gtk programs.
10647
10648 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
10649
10650         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
10651         reversed > that was causing Home to go to end of previous line.
10652
10653         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
10654         modified-keypresses (leave for bindings.)
10655
10656         * modules/input/Makefile.am: Remove useless -export-dynamic
10657         from module LDFLAGS.
10658
10659 2000-11-14  Havoc Pennington  <hp@redhat.com>
10660
10661         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
10662         higher.
10663
10664         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
10665         account. Also, render rise, underline, background, etc. for
10666         pixbufs as well as text. Also, draw underlines one pixel higher.
10667
10668         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
10669         PangoAttribute for the rise, so it gets drawn properly. Also,
10670         add the GtkTextAppearance attribute for pixbuf/widget segments
10671         as well; we should go ahead and have rise, underline, background,
10672         stipple work for those
10673
10674         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
10675         Pango
10676
10677 2000-11-15  Tor Lillqvist  <tml@iki.fi>
10678
10679         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
10680
10681         * gtk/gtk.def: Update.
10682
10683         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
10684         included.
10685         (gtk_rc_get_im_module_file): Use run-time installation directory
10686         on Win32.
10687
10688         * gdk/win32/rc/gdk.rc: Remove.
10689         * gdk/win32/rc/gdk.rc.in: New file.
10690         * gdk/win32/rc/Makefile.am: New file
10691         * gdk/win32/Makefile.am: Corresponding changes.
10692
10693         * gtk/gtk.rc: Remove.
10694         * gtk/gtk-win32.rc.in: New file.
10695         * gtk/Makefile.am: Corresponding changes.
10696
10697         * configure.in: Corresponding changes.
10698
10699         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
10700         has a built gtkcompat.h. Developers using CVS code on Win32 can
10701         hand-edit it from gtkcompat.h.in.
10702
10703         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
10704         gtkcompat.h from gtkcompat.h.win32.
10705
10706 2000-11-14  Havoc Pennington  <hp@redhat.com>
10707
10708         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
10709         to default to GDK_ACTION_MOVE if the drag is within a single
10710         widget. Defaults to GDK_ACTION_COPY between widgets.
10711
10712 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
10713
10714         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
10715
10716         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
10717
10718         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
10719         srcdir != builddir
10720
10721         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
10722
10723         * configure.in (GTK_VERSION): Up to 1.3.2
10724
10725         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
10726         gtkimcontextxim.h
10727
10728         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
10729         missing doc comment.
10730
10731 2000-11-14  Alexander Larsson  <alexl@redhat.com>
10732
10733         * modules/linux-fb/basic.c:
10734         Use the glib iconv wrappers.
10735
10736 2000-11-13  Havoc Pennington  <hp@pobox.com>
10737
10738         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
10739         still more bugs.
10740
10741         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
10742         scroll the GdkWindows before realization.
10743
10744 2000-11-13  Havoc Pennington  <hp@redhat.com>
10745
10746         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
10747         where GC didn't always get updated properly
10748
10749         * demos/gtk-demo/textview.c (create_tags): Use subattributes
10750         of fonts instead of setting the entire font
10751
10752         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
10753         setting entire font
10754
10755         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
10756
10757         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
10758         a bunch of individually-settable font attributes. You can still 
10759         use the "font" and "font_desc" args, they just set all the font
10760         attributes at once.
10761
10762 2000-11-13 Elliot Lee <sopwith@redhat.com>
10763
10764         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
10765
10766 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
10767
10768         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
10769         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
10770
10771         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
10772         work better.
10773
10774 2000-11-13  Havoc Pennington  <hp@redhat.com>
10775
10776         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
10777         the module file.
10778
10779         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
10780         dest->language
10781
10782         * gtk/testtext.c: Test pixels above/below/inside paragraphs
10783         settings
10784
10785         * gtk/gtktextview.c: Implement object args and setters/getters for
10786         all the aspects of the GtkTextAttributes that are not set from
10787         GtkWidget attributes. This is spacing, justification, margins,
10788         etc.
10789
10790         (gtk_text_view_set_arg)
10791         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
10792         args
10793         (gtk_text_view_class_init): Add args for justify, left_margin,
10794         right_margin, indent, and tabs
10795         
10796
10797         * gtk/gtktextlayout.c (set_para_values): fix to display indent
10798         attribute properly
10799
10800         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
10801         replace with indent attribute
10802
10803         * gtk/gtktextlayout.c (set_para_values): multiply indent by
10804         PANGO_SCALE
10805
10806         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
10807         rearranging code to do that
10808         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
10809         i.e. don't subtract the top_margin first, just to keep
10810         all margin-futzing in one place.
10811
10812         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
10813
10814         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
10815         special case of last line, Pango now handles this itself.
10816         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
10817         Y coordinate
10818         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
10819         (find_display_line_above): wasn't moving the byte index as it
10820         iterated over lines, so always returned byte 0. Also, port to use
10821         PangoLayoutIter.
10822         (find_display_line_below): same problem as
10823         find_display_line_above. Also, port to use PangoLayoutIter.
10824
10825 2000-11-13  Alexander Larsson  <alexl@redhat.com>
10826
10827         * gdk/linux-fb/*.[ch]:
10828         Massive reindent to gtk+ standard. My hands hurt.
10829
10830         * gdk/linux-fb/gdkcolor-fb.c:
10831         Move GdkColorPrivateFB from inherited to windowing_data
10832
10833         * gdk/linux-fb/gdkcursor-fb.c:
10834         _gdk_cursor_new_from_pixmap made static
10835
10836         * gdk/linux-fb/gdkdnd-fb.c:
10837         GdkDragContextPrivate moved to windowing_data
10838
10839         * gdk/linux-fb/gdkdrawable-fb2.c:
10840         Removed endian.h, use glib endianness macros instead
10841         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
10842         and GDK_DRAWABLE_IMPL_FBDATA
10843
10844         * gdk/linux-fb/gdkfont-fb.c:
10845         Add empty gdk_font_load(). Needed for linking of Gtk+.
10846
10847         * gdk/linux-fb/gdkimage-fb.c:
10848         Removed endian.h, use glib endianness macros instead
10849         Moved GdkImagePrivateFB to windowing_data
10850         gdk_image_new_bitmap didn't always allocate enough
10851         memory.
10852
10853         * gdk/linux-fb/gdkinput-ps2.c:
10854         Added semi-working support for MS serial mice.
10855
10856         * gdk/linux-fb/gdkprivate-fb.h:
10857         s/GdkWindowPrivate/GdkWindowObject/
10858         Removed GdkWindowPrivate typedef
10859         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
10860         Removed GDK_DRAWABLE_P
10861         Move GdkColorPrivateFB from inherited to windowing_data
10862         Moved GdkImagePrivateFB to windowing_data
10863
10864         * gdk/linux-fb/gdkvisual-fb.c:
10865         Removed some unused debug code.
10866
10867         * gdk/linux-fb/gdkwindow-fb.c:
10868         Use stock cursors instead of including X headers.
10869         s/GdkWindowPrivate/GdkWindowObject/
10870
10871         * gdk/linux-fb/mitypes.h:
10872         Removed unused types.
10873
10874         * modules/linux-fb/basic.c:
10875         Use the pango fribidi wrappers.
10876
10877 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
10878
10879         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
10880         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
10881         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
10882         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
10883         GEqualFunc where applicable.
10884         
10885         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
10886         pango_font_description_equal as changed in pango.
10887         
10888         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
10889
10890         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
10891
10892         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
10893
10894         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
10895
10896         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
10897
10898         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
10899
10900         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
10901         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
10902
10903         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
10904         gtk_rc_styles_compare -> gtk_rc_styles_equal.
10905
10906 2000-11-12  Havoc Pennington  <hp@pobox.com>
10907
10908         * demos/gtk-demo/Makefile.am (democodedir): change demo install
10909         dir to datadir/gtk+-2.0/demo
10910
10911         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
10912         sorts of text widget and Pango font bugs. Urgh.
10913
10914         * demos/gtk-demo/Makefile.am (demos): Add textview.c
10915
10916         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
10917         tree that you should double click to see the demo. Fix 
10918         types of variables to reflect changed return values from 
10919         GtkTreeStore and GtkTreeViewColumn constructors.
10920
10921         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
10922         newly-created buffer to prepare for GObject semantics
10923
10924         * gtk/testtext.c: don't leak the buffer with GObject semantics
10925
10926         * gtk/testtextbuffer.c: ditto
10927         
10928 2000-11-12  Havoc Pennington  <hp@pobox.com>
10929
10930         Rename this testgtk to gtk-demo to avoid confusion, and 
10931         install it so people can use it as a supplement to 
10932         the documentation.
10933         
10934         * demos/gtk-demo: Moved from demos/testgtk
10935
10936         * demos/testgtk: Removed
10937
10938         * configure.in: make Makefile in gtk-demo
10939         
10940         * demos/gtk-demo/Makefile.am: Install sample source to 
10941         datadir/gtk-demo (maybe there's a better place?), and 
10942         rename the binary to gtk-demo
10943         
10944         * demos/gtk-demo/main.c (load_file): Load installed sample
10945         source if source isn't found in pwd.
10946
10947 2000-11-09  Havoc Pennington  <hp@pobox.com>
10948
10949         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
10950         argument to set the char displayed when visibility == FALSE
10951         (gtk_entry_create_layout): If !entry->visible, replace 
10952         all chars with the "invisible char"
10953
10954         * gtk/testgtk.c: Test the invisible_char deal
10955         
10956 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
10957
10958         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
10959         can't get a native font in the right encoding.
10960
10961 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
10962
10963         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
10964         respectively.
10965
10966 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
10967
10968         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
10969         Fix warning when moving between paragraphs.
10970
10971         * gtk/gtkentry.[ch]: Change move => move_cursor, 
10972         delete => delete_from_cursor, insert => insert_at_cursor
10973
10974 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
10975
10976         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
10977
10978         * modules/input/imthai-broken.c: A Thai input method for use if
10979         Thai keys are really generating Latin1 keysyms.
10980
10981         * modules/input/Makefile.am: Build these.
10982
10983 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
10984
10985         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
10986         g_filename_{to,from}_utf8 now takes an extra parameter.
10987
10988         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
10989         strftime into UTF-8.
10990
10991         (column_from_x, gtk_calendar_paint_day_names): Support RTL
10992         calendars.
10993
10994         (gtk_calendar_paint_day_names): Draw day names in the right 
10995         place.
10996         
10997 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
10998
10999         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
11000         problem with using result of g_get_charset() backwards -
11001         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
11002
11003         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
11004         negative min_width/height and max_width/height to
11005         mean "requisition"; this allows setting a window
11006         to be user-resizable in only one direction easily.
11007
11008         * gtk/testgtk.c (create_main_window): Remove hard-coded
11009         usize - set a default size in the vertical direction.
11010
11011 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
11012
11013         * gtk/gtkrange.c: Add some missing casts. Support 
11014         2 and 3 button clicks on the arrows to mean 
11015         "move by pages" and "jump to end". (Like gtkspinbutton)
11016
11017 2000-11-12 Hans Breuer <Hans@Breuer.Org>
11018
11019         * gdk/win32/makefile.msc : reflect build module changes
11020
11021         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
11022         from GdkPixmap*, cast implementation member instead.
11023
11024         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
11025         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
11026         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
11027         more Gdi functions return value checking. 
11028         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
11029         GdkImagePrivateWin32 *.
11030
11031         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
11032         menus useable again. Add #pragma message to keep reminded on this issue.
11033         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
11034         windows. This allows to enable backing store on Win32!
11035
11036         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
11037         in drawable is of impl type. Correct specific type checks appropriate.
11038  
11039         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
11040         GDK_WINDOW_DESTROYED before allocating new resources.
11041
11042         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
11043
11044         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
11045         (gdk_window_foreign_new) initialize parent handle.
11046         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
11047
11048         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
11049         Let the GDI invalidate the window on MoveWindow call to fix scrolling
11050         problems (e.g. main buttons in testgtk). 
11051
11052 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
11053
11054         * gtk/gtkentry.c (gtk_entry_key_press): Call 
11055         gtk_widget_activate for GDK_Return.
11056
11057         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
11058         of preedit cursor position.
11059
11060 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
11061
11062         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
11063         static.
11064
11065 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
11066
11067         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
11068         out support for multiple locales; that simple doesn't
11069         work reliably with current Xlib
11070
11071         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
11072         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
11073         Add support for positioning the cursor within the preedit string.
11074
11075 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
11076
11077         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
11078         at XIM input method module.
11079
11080         * gtk/gtktextview.c: Check for bindings after passing
11081         events to im context filter.
11082
11083 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
11084
11085         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
11086         empty attribute lists properly.
11087
11088 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
11089
11090         * gtk/queryimmodules.c (main): Return non-zero exit
11091         status if errors were encountered querying any
11092         modules.
11093
11094         * modules/input/Makefile.am (moduledir): remove
11095         leftover bin program target.
11096
11097         * docs/make-todo: Fix typo in error message.
11098
11099 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
11100
11101         * configure.in: Add modules/input/Makefile
11102
11103 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
11104
11105         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
11106         don't include gtkthemes.h.
11107
11108         * gtk/testgtk.c gtk/testtext.c: Set environment variables
11109         to point
11110
11111         * gtk/Makefile.am: Add new .c and .h files, build 
11112         gtk-query-immodules and use it to create a gtk.immodules
11113         file for use of test programs.
11114
11115         * gtk/gtkpreview.c: remove extra blank line.
11116
11117 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
11118
11119         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
11120         Add the ability to add extra tables beyond the default
11121         one, and also the ability to have compose sequences 
11122         that are prefixes of other compose sequences. 
11123
11124         * gtk/gtkimcontextsimple.c: Export a preedit string which
11125         consists of possible candidates for keystrokes that have
11126         been entered but not yet committed.
11127
11128         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
11129         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
11130
11131         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
11132         Add a function to add input-method switching menu items
11133         to a menu.
11134
11135         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
11136         when switching input methods.
11137
11138         * gtk/gtkimcontextsimple.[ch]: Change the format of
11139         the compose table to allow compose tables of different
11140         lengths / sequence.
11141
11142 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
11143
11144         * gtk/gtkimmodule.[ch]: Support routines for loading
11145         GtkIMContext implementations dynamically at runtime.
11146
11147         * modules/input/imcyrillic-translit.c: A sample input
11148         method (based on GtkIMContextSimple with an extra table),
11149         which demonstrates preedit strings and the module
11150         system for input modules
11151
11152         * gtk/queryimmodules.c: Program to query the available
11153         input modules and write the results into a file.
11154          
11155         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
11156         extra config options "im_module_file" (cache file for
11157         input method modules), and "im_module_path" - path
11158         to look for modules when generating cache file.
11159
11160         This doesn't scale.
11161
11162 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
11163
11164         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
11165         generic code from gtkthemes into a new abstraction
11166         GtkModule which has the logic for implementing
11167         a loadable module which implements a number of 
11168         GObject types.
11169
11170 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
11171
11172         * gtk/gtkeditable.[ch]: Convert GtkEditable from
11173         a class into an interface  
11174         
11175         * gtk/gtkoldeditable.[ch]: Move the old editable
11176         implementation into here, so legacy widgets can
11177         still rely on the implemenation. GtkOldEditable
11178         exports GtkEditable. Make selection handling
11179         code use new text conversion functions (and
11180         handle UTF-8 as a side-effect). Use GtkClipboard
11181         for CLIPBOARD.
11182
11183         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
11184         Adopt to match above changes.
11185
11186         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
11187         avoid GtkOldEditable implementation. Restructure
11188         to reduce number of places that modify state directly.
11189         Move to GtkBindingSet. Display the preedit string.
11190         Queue recomputation of PangoLayout and scroll position
11191         to improve effiency of doing complex changes naively.
11192         Add a menu with cut/copy/paste and input method selection.
11193
11194 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
11195
11196         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
11197         to set preedit string and attributes; display preedit string by
11198         inserting string and attributes at cursor when creating the
11199         GtkTextLineDisplay.
11200
11201         * gtk/gtktextlayout.c: Move all conversions between byte
11202         positions in PangoLayout and GtkTextIter into new functions
11203         line_display_iter_to_index/index_to_iter that properly
11204         handle the preedit string.
11205
11206         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
11207         it to return const char * (eventually will end up
11208         as GCONST char *, most likely.)
11209
11210         * gtk/gtktextview.[ch]: Handle the preedit string, call
11211         gtk_im_context_reset() as necessary, add a menu to switch
11212         input methods.
11213         
11214         * gtk/gtktextlayout.[ch]: Remove useless
11215         gtk_text_layout_get_log_attrs() function.
11216
11217 2000-11-11  Tor Lillqvist  <tml@iki.fi>
11218
11219         * gdk/gdk.def
11220         * gtk/gtk.def: Update.
11221
11222         * gdk/win32/*.c: Add last argument to g_type_register_static()
11223         calls.
11224
11225         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
11226
11227         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
11228         generated by older wheel mouse drivers. Get the correct y
11229         coordinate from WM_MOUSEWHEEL messages.
11230
11231         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
11232         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
11233         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
11234         Debugging functions.
11235
11236         * gdk/win32/gdkprivate-win32.h: Declare them.
11237
11238         * gdk/win32/gdkinput-win32.h: Add declaration for
11239         gdk_input_window_destroy().
11240
11241         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
11242
11243 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
11244
11245         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
11246         function to help handle keeping things in sync.
11247
11248 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
11249
11250         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
11251         BOXED marshallers.
11252
11253         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
11254         (gtk_list_store_class_init): use the new BOXED marshallers.
11255
11256         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
11257         new_with_values to new_with_types.
11258         (gtk_tree_store_get_column_type): add this.
11259         (gtk_tree_store_class_init): use the new BOXED marshallers.
11260
11261         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
11262         mirror some POINTER marshallers.
11263
11264 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
11265
11266         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
11267         allow more interesting iterators.  Also, made the lifecycle of
11268         iterators more explicit.
11269
11270         * gtk/gtktreemodelsort.[ch]: New model for sorting.
11271
11272         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
11273         types.
11274
11275 2000-11-09  Alexander Larsson  <alexl@redhat.com>
11276
11277         * demos/testgtk/menus.c:
11278         Changes to make the new testgtk compile after
11279         gtk_menu_append was removed.
11280
11281         * gdk/linux-fb/gdkdrawable-fb2.c
11282         (gdk_fb_get_depth, gdk_fb_get_visual,
11283         gdk_drawable_impl_fb_class_init): Implement
11284         these drawable functions. Now GtkImages work again.
11285
11286         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
11287
11288         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
11289         
11290         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
11291         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
11292         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
11293         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
11294
11295 2000-11-08  Havoc Pennington  <hp@pobox.com>
11296
11297         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
11298         visible_set args, don't know where these had gone, I thought they
11299         used to be there
11300
11301         * gtk/testtext.c: Add a menu item to apply invisibility tag;
11302         now we can test the feature and see that it's totally broken.
11303
11304 2000-11-08  Havoc Pennington  <hp@pobox.com>
11305
11306         Make DND copy pixbufs and tags when source and target share a 
11307         tag table.
11308         
11309         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
11310         in-process GTK_TEXT_BUFFER_CONTENTS target
11311         (gtk_text_view_drag_data_received): Paste from
11312         GTK_TEXT_BUFFER_CONTENTS if we receive it.
11313
11314 2000-11-08  Alexander Larsson  <alexl@redhat.com>
11315
11316         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
11317         API changes.
11318
11319         * gtk/gtkmenu.c: Add support for scrolling menus.
11320         Remove gtk_menu_append/prepend/insert, these have been moved to
11321         gtkcompat.h as #defines.
11322
11323         * gtk/gtkcompat.h.in:
11324         Add compatibility #defines for gtk_menu_append/prepend/insert
11325
11326         * gtk/gtkmenu.h: Add data needed for scrolling menus.
11327         GtkMenuPositionFunc gets an extra argument push_in.
11328         gtk_menu_append/prepend/insert removed.
11329         
11330         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
11331         positioning behaviour to fit to scrolling menus.
11332
11333         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
11334         into menuitem->submeny. That is wrong, and broke torn
11335         off submenus of torn off menus, since they were unrealized
11336         when the first menu was unrealized.
11337
11338         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
11339         gtk_menu_shell_select_item() since these need to be overridden in
11340         GtkMenu.
11341
11342         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
11343         positioning behaviour to fit to scrolling menus.
11344         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
11345         the current item so that it is prelighted when the menu pops up.
11346         This is a workaround to the fact that the menu doesn't get the
11347         initial enter event (due to grabs).
11348
11349         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
11350         s/gtk_menu_append/gtk_menu_shell_append/
11351
11352         * gtk/gtknotebook.c:
11353         s/gtk_menu_insert/gtk_menu_shell_insert/
11354
11355         * gtk/testgtk.c (create_menu, create_menus):
11356         Create the first menu with 50 items so that menu scrolling
11357         can be tested.
11358         
11359         
11360         Patch from Jonathan Blandford  <jrb@redhat.com>
11361
11362         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
11363         system to handle size requests.  First, we ask what the size of
11364         the toggle is.  Then, when allocating the size, we allocate the
11365         toggle_size first.  This way we can have multiple menu-item
11366         classes w/o needing a seperate class for each.
11367
11368         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
11369         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
11370
11371         * gtk/gtkcheckmenuitem.c
11372         (gtk_check_menu_item_toggle_size_request): New function to handle
11373         the toggle size-request.
11374
11375 2000-11-07  Havoc Pennington  <hp@redhat.com>
11376
11377         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
11378         Half-ass somewhat fix this function, so that scrolling to the
11379         insertion point works. Pango hacking is in the future to really
11380         fix it.
11381
11382         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
11383         length of data, no longer used.
11384
11385         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
11386         method contents in here, get rid of destroy method
11387         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
11388         that were backward. Remove debug spew.
11389         (cut_or_copy): Make the clipboard work with insert_range to
11390         preserve tags and pixbufs, not just the primary selection.
11391
11392 2000-11-07  Havoc Pennington  <hp@redhat.com>
11393
11394         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
11395         to gtk_text_mark_get_visible
11396
11397         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
11398         bug that was generating an invalid iterator
11399
11400         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
11401         ensure_char_offsets() in front of code placing the iter in an
11402         invalid state.
11403
11404         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
11405         make override_location arg const
11406         (paste): Replace the selection if we paste into the 
11407         current selection
11408
11409         * gtk/gtkselection.h: Remove "GtkSelectioData"
11410         (struct _GtkSelectionData): move the definition here.
11411
11412         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
11413         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
11414
11415         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
11416
11417         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
11418         (gtk_text_buffer_insert_range_interactive): implement
11419         (gtk_text_buffer_get_tags): Remove, replaced by
11420         gtk_text_iter_get_tags()
11421
11422         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
11423         limit parameter, to avoid infinite linear scan.
11424         (gtk_text_iter_backward_search): Add search limit
11425         (gtk_text_iter_forward_find_char): Add search limit
11426         (gtk_text_iter_backward_find_char): Add search limit
11427
11428 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
11429
11430         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11431         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
11432         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
11433         gdk/linux-fb/gdkwindow-fb.c:
11434         use g_object_new() instead of g_type_create_instance() which
11435         is a private function for fundamental type implementations.
11436
11437         * gdk/linux-fb/gdkinput-ps2.c:
11438         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
11439         instead just store the current modifier state. Add a (somewhat broken)
11440         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
11441         Rename exported function gdk_input_ps2_get_mouseinfo to
11442         gdk_input_get_mouseinfo.
11443
11444         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
11445         gdk/linux-fb/gdkwindow-fb.c:
11446         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
11447         
11448
11449 2000-11-02  Havoc Pennington  <hp@redhat.com>
11450
11451         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
11452         use stock buttons. Should be 100% source compatible, appropriate
11453         filesel fields now point to dialog->vbox and dialog->action_area.
11454         On the bizarre side, dialog->action_area and filesel->action_area
11455         are not the same widget.
11456         (gtk_file_selection_init): Put some padding around the selection
11457         entry, so it isn't touching the GtkDialog separator.    
11458
11459         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
11460         use stock buttons, etc. Should also be source compatible.
11461         Set the dialog default title in _init not _new().
11462         
11463         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
11464         Use stock buttons; don't put a button box inside the existing
11465         dialog button box. Don't bother with push/pop colormap anymore.
11466
11467         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
11468         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
11469         for message dialog, and necessary for the font selection and color
11470         selection with help and apply buttons.
11471         
11472         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
11473         to the created button widget. Set GTK_CAN_DEFAULT on the button.
11474         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
11475         between buttons, put less padding around the action area.
11476         (gtk_dialog_run): Exit on unmap rather than on destroy. 
11477         This will also exit the loop if the widget is hidden.
11478         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
11479         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
11480         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
11481         special-case delete event.
11482
11483         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
11484         formatting
11485         
11486 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
11487
11488         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
11489         button to temporarily disable position recording in the
11490         "saved position" test.
11491
11492 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
11493
11494         * gtk/gtkthemes.c: added compat code that temporarily implements
11495         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
11496         going to be revamped by owen's upcoming GtkModule patches, but
11497         untill then people want gtk to build, right? ;)
11498
11499 2000-11-04  Havoc Pennington  <hp@pobox.com>
11500
11501         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
11502         list
11503
11504         * docs/Changes-2.0.txt: Add note about
11505         gtk_container_get_toplevels()
11506
11507         * gtk/gtktextview.h: formatting
11508         
11509         * gtk/gtktextview.c: don't start descriptions with "Returns",
11510         confuses gtk-doc
11511
11512 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
11513
11514         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
11515         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
11516
11517 2000-11-03  Havoc Pennington  <hp@redhat.com>
11518
11519         * gtk/gtktexttagtable.c: Docs
11520         (gtk_text_tag_table_size): return a signed int
11521
11522         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
11523         (gtk_text_tag_event): make the event_object a GObject
11524
11525         * gtk/gtktextview.c: Write API docs for all functions.
11526
11527         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
11528         for gtk_text_view_get_window_type() called on one of the private
11529         windows.
11530
11531         * gtk/gtktextview.c: Instead of accessing text_view->buffer
11532         directly, call get_buffer() which demand-creates a default
11533         buffer. So gtk_text_view_new() can be used to create a view with a
11534         default buffer in it, if you just want an empty text box users can
11535         put data in. Useful for GUI builders also.
11536
11537 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
11538
11539         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
11540         the charset encodign portion MUST be in lowercase.
11541         * gtk/gtkrc.az: added file for Azeri language
11542
11543 2000-11-03  Havoc Pennington  <hp@redhat.com>
11544
11545         Get widgets working on the btree/buffer side. Display of them 
11546         still doesn't work.
11547         
11548         * gtk/gtktextview.c: start implementing child widget stuff
11549
11550         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
11551
11552         * gtk/gtktextlayout.c: handle embedded widgets
11553
11554         * gtk/gtktextdisplay.c: handle embedded widgets
11555
11556         * gtk/gtktextchild.c: Implement all the child anchor goo
11557
11558         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
11559         function
11560
11561         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
11562         (insert_pixbuf_or_widget_segment): abstract out common portions of 
11563         creating a child anchor or a pixbuf segment.
11564         (gtk_text_btree_create_child_anchor): new function
11565         (gtk_text_btree_unregister_child_anchor): new function
11566
11567         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
11568         allocate_child signal on GtkTextLayout
11569
11570         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
11571         values
11572         (gtk_text_iter_get_child_anchor): new function
11573
11574         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
11575         default handler for the changed signal, which calls
11576         gtk_text_buffer_set_modified(), instead of just always emitting
11577         changed then calling set_modified() manually. I guess this is
11578         maybe more flexible. It seems logical.
11579
11580 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
11581
11582         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
11583         now.
11584
11585         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
11586
11587 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
11588
11589         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
11590         been marked static.
11591
11592 2000-11-02  Havoc Pennington  <hp@redhat.com>
11593
11594         * gtk/testgtk.c (create_labels): had a test backward
11595
11596         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
11597         fields, so the dest GC ends up with the correct clip origin, 
11598         etc. Fixes a bug where colored labels didn't redraw 
11599         properly.
11600
11601 2000-11-02  Alexander Larsson  <alexl@redhat.com>
11602
11603         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
11604         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
11605         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
11606         Add last argument to t_type_register_static call.
11607         
11608         * gdk/linux-fb/gdkdrawable-fb2.c:
11609         Add last argument to t_type_register_static call.
11610         export the get_image drawable virtual function.
11611
11612         * gdk/linux-fb/gdkimage-fb.c:
11613         Add last argument to t_type_register_static call.
11614         rename gtk_image_get to _gdk_fb_get_image and
11615         export it for use by gdkdrawable-fb2.
11616
11617         * gdk/linux-fb/gdkprivate-fb.h:
11618         export _gdk_fb_get_image.
11619
11620         * gdk/linux-fb/gdkselection-fb.c:
11621         Add new api call stubs.
11622
11623         * gtk/Makefile.am:
11624         Missing ( in linux-fb part.
11625
11626         * modules/linux-fb/Makefile.am:
11627         Must link with gdk_pixbuf or get unresolved symbol.
11628
11629 2000-11-01  Havoc Pennington  <hp@pobox.com>
11630
11631         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
11632         GTK_TYPE_TEXT_ITER and BOXED marshallers
11633
11634         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
11635
11636         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
11637         
11638         * gtk/gtk-boxed.defs: add GtkTextIter
11639
11640         * gtk/gtkmarshal.list: Add marshallers for text widget that 
11641         properly use OBJECT and BOXED
11642
11643 2000-11-01  Havoc Pennington  <hp@redhat.com>
11644
11645         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
11646
11647         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
11648         before returning it. 
11649         
11650 2000-11-01  Havoc Pennington  <hp@redhat.com>
11651
11652         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11653         Clip the rectangle to be rendered to the drawable, since
11654         get_from_drawable() requires a region within the drawable
11655
11656 2000-11-01  Havoc Pennington  <hp@redhat.com>
11657
11658         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
11659         from coordinates.
11660
11661 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
11662
11663         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
11664         it isn't NULL.
11665
11666 2000-11-01  Havoc Pennington  <hp@pobox.com>
11667
11668         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
11669         on a label
11670         (gtk_label_finalize): unref the attr list if any.
11671
11672         * gtk/testgtk.c (create_get_image): close test on second click
11673         (make_message_dialog): close dialog if it exists
11674
11675         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
11676
11677         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
11678         gdk-pixbuf
11679
11680         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
11681         from Pango markup format
11682         (gtk_label_set_markup_with_accel): ditto but with accelerator
11683         parsing
11684
11685         * gtk/gtkimage.c (gtk_image_expose): reformatting.
11686
11687         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
11688         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
11689         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
11690         call gdk_window_get_origin().
11691
11692         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
11693         implement GDK_PIXBUF_ALPHA_FULL
11694         
11695 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
11696
11697         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
11698         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
11699         g_signal_handlers_disconnect_matched to block/unblock and disconnect
11700         multiple handlers respectively, instead of only treating the
11701         first handler found (bug reported by owen).
11702
11703 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
11704
11705         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
11706
11707         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
11708
11709         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
11710         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
11711         gtk/gtktreeviewcolumn.h: Fixed inline docs.
11712
11713         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
11714         widget.  Needs writing someday.
11715
11716         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
11717         the docs.
11718
11719 2000-10-30  Havoc Pennington  <hp@redhat.com>
11720
11721         * gtk/gtktextview.h, gtk/gtktextview.c:
11722         Rename delete_at_cursor delete_from_cursor, and 
11723         move to move_cursor.
11724
11725 2000-10-30  Havoc Pennington  <hp@redhat.com>
11726
11727         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
11728         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
11729         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
11730         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
11731         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
11732         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
11733         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
11734         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
11735         gtktexttypes.h, gtktextview.c, gtktextview.h:
11736
11737         Massive reindentation and reformatting. Arg alignment and comments
11738         still need fixing in various places.
11739
11740 2000-10-30  Havoc Pennington  <hp@redhat.com>
11741
11742         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
11743         to be named insert_at_cursor and delete_at_cursor so C++ can
11744         handle them.
11745
11746 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11747
11748         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
11749         to get a double directory separator in case the home directory
11750         ends with one. This would cause trouble especially on Windows,
11751         where the path will be confused with the syntax for an an UNC
11752         (network share) path \\server\share\path.
11753         (gtk_rc_add_initial_default_files): Ditto.
11754
11755 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
11756
11757         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
11758
11759         * gtk/gtktextview.c: Use correct marshallers.
11760
11761 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
11762
11763         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
11764         use new iter stuff, and added all the appropriate signals et al.
11765
11766         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
11767         code is internal to gtk only.
11768
11769 2000-10-28  Tor Lillqvist  <tml@iki.fi>
11770
11771         * gtk/gtk.def
11772         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
11773         glib-genmarshal etc.
11774
11775 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
11776
11777         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
11778         parallel builds.
11779
11780 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
11781
11782         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
11783
11784 2000-10-27  Robert Brady  <robert@suse.co.uk>
11785
11786         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
11787         en_GB (British), ia (Interlingua).
11788
11789 2000-10-26  Havoc Pennington  <hp@redhat.com>
11790
11791         * gtk/gtktextiter.c (my_strrstr): fix constness warning
11792
11793         Fixed output of:
11794         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
11795         
11796         * gtk/gtktextsegment.c (char_segment_new): rename
11797         (_char_segment_new_from_two_strings): rename
11798         (_toggle_segment_new): rename
11799         
11800         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
11801         (make_clipboard_widget): make it static
11802         (text_get_func): static
11803         (text_clear_func): static
11804
11805         * gtk/gtkcolorsel.c (adjustment_changed): make this function
11806         static
11807         (hex_changed): make it static
11808         (hsv_changed): make it static
11809         (opacity_entry_changed): make it static
11810
11811         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
11812         (toggle_segment_check_func): rename with _gtk
11813
11814         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
11815         (_widget_segment_new): rename
11816         (_widget_segment_add): rename
11817         (_widget_segment_remove): rename
11818         (_widget_segment_ref): rename
11819         (_widget_segment_unref): rename
11820
11821         * gtk/gtktextmark.c (_mark_segment_new): Rename
11822         _gtk_mark_segment_new   
11823
11824 2000-10-26  Havoc Pennington  <hp@redhat.com>
11825
11826         * gtk/gtkmarshal.list: add new marshallers used by the text widget
11827         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11828         types
11829
11830         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
11831         marshaller types
11832
11833         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
11834         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
11835         license on these files.
11836
11837         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
11838         work.
11839
11840         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
11841         runtime random number different for each tree, instead of 
11842         a constant I made up.
11843
11844 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
11845
11846         * gtk/Makefile.am: buncha cleanups, kludged build sources
11847         dependencies with a Makefile: oldest-source-stamp dependancy
11848         for the moment. automake is really fighting us here, with
11849         intentionally not allowing user-defined rules or dependancies
11850         prior to it's -include $(DEP_FILES) statement. sucks rocks!
11851
11852         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
11853         to public headers. tehy have a comment stating that they are
11854         "semi-public" aren't included by gtk.h and if enums popup there,
11855         they can be /*< skip >*/-ed.
11856
11857         * gtk/gtktextlayout.h: 
11858         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
11859         added LGPL... <SIGH>
11860
11861 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
11862
11863         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
11864         GtkTreeIter.  Added iterators everywhere.
11865
11866         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
11867
11868         * gtk/gtktreeviewselection.c: Changed to use the iterators.
11869
11870         * gtk/gtktreestore.c: Changed to use the iterators.
11871
11872         * gtk/gtkliststore.c: Commented out the code.  Will convert to
11873         iterators tomorrow.
11874
11875         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
11876         iterators tomorrow.
11877
11878         * gtk/treestoretest.c: Changed to use iterators.
11879
11880         * demos/testgtk/main.c: Moved to use the new iterator system.
11881
11882 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
11883
11884         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
11885         localization misbehaviour.
11886
11887         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
11888         a useless type without copy/free.
11889
11890         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
11891         of GTK_TYPE_CTREE_NODE.
11892
11893 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
11894
11895         * gtk/gtksignal.c:
11896         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
11897         applicable.
11898
11899         * gtk/gtk-boxed.defs (GtkSelectionData): specify
11900         gtk_selection_data_copy and gtk_selection_data_free
11901         do GtkSelectionData work as params in signals.
11902
11903 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
11904
11905         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
11906         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
11907         couldn't they at least give it a non-standard name?
11908         
11909         * gtk/gtktextlayout.c: arg! yet another implementation of
11910         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
11911
11912         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
11913         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
11914         home. now i know this _is_ a conspiracy.
11915
11916         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
11917         ::state-changed.
11918
11919         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
11920         (gtk_accel_group_create_add): marshaller signature fixups.
11921
11922         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
11923         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
11924
11925         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
11926         anymore.
11927
11928 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
11929
11930         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
11931         due to the signal system changes, it wouldn't build currently. to
11932         be fixed soon.
11933
11934         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
11935
11936         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
11937         so it needs gtk_marshal_VOID__ENUM() instead of
11938         gtk_marshal_NONE__UINT().
11939
11940         * gdk/gdk*.c: adapted type registration functions.
11941
11942         * gtk/gtkbindings.c:
11943         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
11944         gone.
11945
11946         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
11947
11948         * gtk/gtkobject.c:
11949         (gtk_object_destroy):
11950         (gtk_object_shutdown): fixed recursion guards. basically we have to
11951         catch the case where any of GObject.shutdown() or gtk_object_destroy()
11952         is called during ::destroy, and avoid recursion there.
11953
11954         * gtk/gtktypeutils.c:
11955         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
11956         boxed_copy/boxed_free. this needs a more general solution based on a
11957         publically installed code-generator utility.
11958
11959         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
11960         glib's gobject has support for that now.
11961         define GtkSignalMarshaller in terms of GSignalCMarshaller.
11962
11963 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
11964
11965         * gtk/gtksignal.[hc]:
11966         * gtk/gtkmarshal.[hc]:
11967         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
11968         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
11969         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
11970         care of that.
11971
11972         * *.c: marshaller name fixups.
11973
11974         * gtk/gtkmarshal.list: added a comment briefing the format.
11975
11976 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
11977
11978         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
11979         compatibility macros here now. more specifically, most of
11980         the API is preserved (yes, _most_, nonwithstanding the
11981         following exceptions listed, the API is stil lHUGE ;)
11982         things that got removed completely:
11983         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
11984         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
11985         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
11986         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
11987         gtk_signal_remove_emission_hook().
11988         non-functional functions variants:
11989         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
11990         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
11991         not supported anymore.
11992         (gtk_signal_compat_matched): new internal function to aid
11993         implementation of the compatibility macros, it  provides
11994         functionality to block/unblock/disconnect handlers based
11995         on func/data.
11996
11997         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
11998
11999         * *.c: adaptions to new type registration API signatures.
12000
12001 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
12002
12003         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
12004
12005 2000-10-25  Robert Brady  <robert@suse.co.uk>
12006
12007         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
12008         gdk_property_delete): If window == NULL, assume the root window.
12009         (restoring the behaviour that was in 1.2).
12010         
12011         * gtk/testtext.c (save_buffer): Allow creation of new files when
12012         saving.
12013
12014         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
12015         calls to read().
12016
12017 2000-10-25  Tor Lillqvist  <tml@iki.fi>
12018
12019         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
12020
12021         * gdk/win32/gdkdrawable-win32.c
12022         * gdk/win32/gdkimage-win32.c
12023         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
12024         X11 backend.
12025
12026         * gdk/win32/gdkcc-win32.c
12027         * gdk/win32/gdkcolor-win32.c
12028         * gdk/win32/gdkfont-win32.c
12029         * gdk/win32/gdkinput-win32.c
12030         * gdk/win32/gdkmain-win32.c
12031         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
12032
12033 2000-10-24  Havoc Pennington  <hp@redhat.com>
12034
12035         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
12036         it a static function
12037
12038         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
12039         redraw text when a tag is applied to it.
12040
12041         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
12042         (gtk_text_tag_affects_nonsize_appearance): private functions to
12043         see if a tag requires various kinds of redraw/layout to be queued
12044         up.
12045
12046         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
12047
12048         * gtk/testtext.c (fill_example_buffer): Put the cursor 
12049         at the start of the buffer, so search works by default
12050
12051         * gtk/gtktextiter.c (lines_match): init match_start always
12052
12053         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
12054         function, get iter at a line + a byte index
12055
12056         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
12057         to set byte position within a line
12058         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
12059
12060 2000-10-23  Havoc Pennington  <hp@redhat.com>
12061
12062         * gtk/testtext.c: Re-enable the "find" dialog
12063
12064         * gtk/testgtk.c: Add test for gdk_drawable_get_image
12065         
12066         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
12067         the arguments to gdk_draw_drawable were in the wrong order
12068         (gdk_window_paint_init_bg): This function was ignoring the
12069         init_region, instead of clipping to it, so the entire backing
12070         pixmap was cleared on every begin_paint()
12071         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
12072         was in here again, the loop kept using the same GtkWindowPaint
12073         over and over.
12074         (gdk_window_begin_paint_region): Fix a bug where we had two
12075         x_offset instead of x_offset and y_offset
12076
12077         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
12078         before we get the image.
12079         (gdk_draw_drawable): get the composite before we draw the drawable.
12080         (gdk_drawable_real_get_composite_drawable): default
12081         get_composite_drawable implementation that returns the drawable 
12082         itself
12083
12084         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
12085         get_composite_drawable virtual function
12086
12087         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
12088         list-walking bug
12089
12090         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
12091         make this work if the source drawable is a GdkDrawableImplX11
12092         instead of a public drawable type. This is really broken; the
12093         problem is that GdkDrawable needs a virtual method get_xid(), but
12094         of course that doesn't work in practice. Enter RTTI.
12095
12096         Also, improve mismatched depth message.
12097
12098         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
12099         GdkPixmap
12100
12101         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
12102         install _gdk_x11_get_image as our implementation of get_image
12103         
12104         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
12105         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
12106
12107         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
12108         gdk_drawable_get_image
12109
12110         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
12111
12112         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
12113         get_image
12114
12115         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
12116         trailing semicolon after for loop
12117
12118 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
12119
12120         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
12121         where font_desc for widget's context lagged widget's font_desc by
12122         one step.
12123
12124 2000-10-22  Tor Lillqvist  <tml@iki.fi>
12125
12126         * gdk/win32/gdkgc-win32.c
12127         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
12128
12129         * gtk/makefile.mingw.in
12130         * gtk/gtk.def: Updates.
12131
12132         * gtk/testgtk.c: sleep() is called _sleep in MS's C
12133         library.
12134
12135         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
12136
12137         * gtk/makefile.msc: Remove
12138
12139         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
12140
12141         * gtk/Makefile.am: Add it.
12142
12143         * configure.in: Generate it.
12144
12145         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
12146         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
12147         something even if not implemented, to satisfy picky MSVC.
12148
12149         Patches by Hans Breuer:
12150         
12151         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
12152         SetBkMode() and SetTextAlign() before calling
12153         pango_win32_render().
12154
12155         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
12156         Set hcliprgn to NULL after destroying it.
12157         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
12158
12159         * gdk/win32/gdkgeometry-win32.c
12160         (_gdk_windowing_window_queue_antiexpose): More effective
12161         implementation.
12162
12163         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
12164         depth as default, not the visual's.
12165
12166         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
12167         against empty title.
12168
12169         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
12170         IMAGE_PRIVATE_DATA.
12171
12172         * gdk/win32/gdkimage-win32.c: Use it.
12173
12174 2000-10-22  Robert Brady  <robert@suse.co.uk>
12175
12176         * configure.in: Check for bind_textdomain_codeset
12177
12178         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
12179         present, make use of it.
12180
12181         Add a translatable string "default:LTR" which, if translated
12182         to "default:RTL", will cause the default direction to be
12183         Right-to-Left.
12184
12185         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
12186         direction if marked as flippable.
12187
12188         * gtk/gtkhscale.c: Mark widget as flippable.
12189         
12190 2000-10-04  Havoc Pennington  <hp@redhat.com>
12191
12192         * gtk/testgtk.c (create_buttons): create some stock buttons
12193         with the default accel group
12194         (create_image): test some new GtkImage features
12195         (make_message_dialog): test GtkMessageDialog
12196         (create_modal_window): fix someone's bizzarro indentation
12197
12198         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
12199         GTK_WIN_POS_CENTER_ON_PARENT. 
12200         Add "destroy with parent" setting, which means the window goes
12201         away with its transient parent.
12202         (gtk_window_get_default_accel_group): get the default accel group
12203         for the window.
12204         (gtk_window_set_destroy_with_parent): set/unset destroy with
12205         parent flag
12206         (gtk_window_read_rcfiles): invalidate icon set caches
12207         after reloading rcfiles 
12208
12209         * gtk/gtkenums.h (GtkWindowPosition): add
12210         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
12211         on its parent window when the dialog is mapped for the first time.
12212
12213         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
12214         a simple message dialog class
12215         
12216         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
12217         handler to emit response signal, and maybe later it would
12218         honor a hide_on_delete flag - though that isn't there yet.
12219         Set border width on the vbox to 2, so we get some padding.      
12220         Use a button box for the action area.
12221         (gtk_dialog_key_press): synthesize a delete event if Esc
12222         is pressed and the GtkWidget key press handler didn't 
12223         handle the escape key.
12224         (gtk_dialog_new_with_buttons): new function creates a dialog
12225         with some default buttons in it.
12226         (gtk_dialog_add_action_widget): add an activatable widget
12227         as a button in the dialog - you can also add a non-activatable
12228         widget by accessing the action area directly.
12229         (gtk_dialog_add_button): add a simple button - stock ID or 
12230         label - to the action area
12231         (gtk_dialog_response): emit response signal
12232         (gtk_dialog_run): block waiting for the dialog, return 
12233         the response. Override normal delete_event behavior, so that 
12234         delete_event does nothing inside gtk_dialog_run().
12235
12236         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
12237         emitted when an action widget is clicked or the dialog gets
12238         delete_event
12239
12240         * gtk/gtk.h: add gtkmessagedialog.h
12241
12242         * gtk/Makefile.am: add gtkmessagedialog.[hc]
12243
12244 2000-10-18  Havoc Pennington  <hp@redhat.com>
12245
12246         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
12247         where any number of empty lines would get skipped
12248
12249         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
12250         edge.
12251
12252         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
12253         warning about invalid iterators (explain more thoroughly)
12254         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
12255
12256         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
12257         big
12258
12259         * demos/*.c: Add error handling
12260
12261         * gtk/gtktextbuffer.c: don't modify const iterators
12262
12263         * gtk/gdk-pixbuf-loader.c: Add full error handling here
12264
12265         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
12266         on file load
12267
12268         * gtk/gtkiconfactory.c: Update to reflect addition of error
12269         handling to gdk-pixbuf loaders
12270
12271 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
12272
12273         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
12274         move to new modularized testgtk.
12275
12276 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
12277
12278         * gtk/gtktreeview.c: Draw the arrows correctly.
12279
12280         * gtk/gtktreemodel.c: Added user docs.
12281
12282         * gtk/gtk.h: remove gtktreedatalist.h.
12283
12284         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
12285         parent when generating my type.
12286
12287         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
12288         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
12289
12290 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12291
12292         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
12293         GtkTreeModel from object to interface.
12294
12295 2000-10-16  Havoc Pennington  <hp@redhat.com>
12296
12297         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
12298         compilation
12299
12300 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
12301
12302         * gtk/gtktreeselection.c: Add API documentation to all public
12303         functions.
12304
12305         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
12306         functions.
12307
12308 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
12309
12310         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
12311         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
12312         docs to all public functions.
12313
12314         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
12315         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
12316         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
12317         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
12318         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
12319         issue.
12320
12321 2000-10-14  Robert Brady  <robert@suse.co.uk>
12322
12323         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
12324
12325 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
12326
12327         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
12328         values other then G_TYPE_STRING.
12329         * gtk/gtktreeselection.c: Minor commenting updates.
12330         * gtk/gtktreeview.c: Format updates.
12331
12332 2000-10-09  Tor Lillqvist  <tml@iki.fi>
12333
12334         * README.win32: Update.
12335
12336         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
12337         lines that had been deleted by mistake (?).
12338
12339         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
12340         also the case fg==white and bg==black (but still not randomly
12341         coloured cursors). Thanks to Wolfgang Sourdeau.
12342
12343         * gdk/win32/*.c: Silence gcc -Wall.
12344
12345         * gtk/gtk.def: Add missing entry points.
12346
12347         Fixes by Hans Breuer:
12348
12349         * gdk/makefile.msc
12350         * gdk/win32/makefile.msc: Update.
12351
12352         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
12353         some MSVC thing, presumably), cause breakpoint on failures. Add
12354         GDK_NOR case. Call g_log_set_always_fatal.
12355
12356         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
12357         should be pased by reference.
12358         
12359         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
12360         
12361         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
12362
12363         * gdk/win32/gdkevents-win32.c
12364         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
12365
12366         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
12367         implementation object.
12368
12369         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
12370         not just windows.
12371         
12372         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
12373         Use the wrapper object.
12374         
12375 2000-10-06  Havoc Pennington  <hp@redhat.com>
12376
12377         * Makefile.am (SRC_SUBDIRS): contrib subdir
12378
12379         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
12380         so it can be used in Xlib version
12381
12382         * demos/testpixbuf.c (update_timeout): error checking from 1.0
12383         tree
12384
12385         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
12386         change from 1.0 tree that returns first frame of animation
12387         if the loaded file is an animation.
12388
12389         * contrib: add new directory to hold stuff that comes with GTK+
12390         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
12391         
12392         * configure.in: add contrib/*
12393
12394 2000-10-05  Havoc Pennington  <hp@redhat.com>
12395
12396         * demos/testpixbuf-save.c: add pixbuf save test
12397
12398         * demos/Makefile.am: add testpixbuf-save.c
12399
12400 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
12401
12402         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
12403         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
12404         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
12405         * gtk/gtktreeselection.[ch]: Replaced
12406         "node_selected"/"node_unselected" signal with "selection_changed"
12407         signal.
12408
12409 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12410
12411         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
12412         tree widget.
12413
12414 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
12415
12416         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
12417         drawing.
12418
12419 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
12420
12421         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
12422         Move list pointer forwards before removing item from
12423         list. (Crash reported by Salmaso Raffaele)
12424
12425         * gdk/gdkwindow.h: Remove spurious trailing ,
12426
12427         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
12428         dependencies on uninstalled libraries, sorry folks.
12429
12430 2000-10-04  Havoc Pennington  <hp@redhat.com>
12431
12432         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
12433         gtk/gtkiconfactory.c: Fix copyrights    
12434
12435         * demos/testpixbuf.c: add inline pixbuf test
12436         
12437 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
12438
12439         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
12440         Add gdk_window_iconify.
12441
12442         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
12443         (gdk_window_set_geometry_hints): Add win_gravity
12444         to geometry structure.
12445
12446         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
12447         Implement _NET_WM_PING.
12448
12449         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
12450         Set _NET_WM_PID on the client leader.
12451
12452         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
12453         Handle UTF-8 better.
12454
12455         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
12456         UTF-8 better, set _NET_WM_NAME as well. Only set
12457         icon name if it hasn't previously been explicitely 
12458         set.
12459
12460 2000-10-03  Havoc Pennington  <hp@redhat.com>
12461
12462         * gtk/testtextbuffer.c: clean up trailing whitespace,
12463         add extensive tests for tag toggle iteration.
12464         
12465         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
12466         distance
12467
12468         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
12469         optimize case where the tag root is on level 1
12470         (gtk_text_line_previous_could_contain_tag): attempt to implement
12471         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
12472         functionality
12473
12474         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
12475         Implement this, though not very efficiently.
12476
12477         * gtk/gtktextiterprivate.h: reformat
12478
12479         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
12480         iterator
12481
12482         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
12483         this to properly revalidate the iterators.
12484
12485         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
12486         properly at the end of the line (and therefore on empty lines)
12487
12488         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
12489         maybe we should return a value...
12490
12491 2000-10-03  Tor Lillqvist  <tml@iki.fi>
12492
12493         * config.h.win32: Guard definition of alloca(). glib.h now handles
12494         that.
12495
12496         * gdk/gdk.def
12497         * gtk/gtk.def: Add new entry points.
12498
12499         Changes just to make GTK+ build without errors on Win32. No hope
12500         of it working in its current state, though...:
12501         
12502         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
12503         some functions from the X11 backend, just to make GTK+ build.
12504
12505         * gdk/makefile.mingw.in
12506         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
12507         number. Add new object files.
12508
12509         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
12510         GetMessageTime to get timestamp (where on X11 uses
12511         gdk_x11_get_server_time()).
12512
12513 2000-10-02  Havoc Pennington  <hp@pobox.com>
12514
12515         * gtk/gtktextview.c: text_window_* weren't static and should have
12516         been.
12517         Start work on child widgets; not yet complete, syncing to 
12518         office computer.
12519
12520         * gtk/gtktextchild.h: change this to contain a public interface,
12521         starting work on child interfaces.
12522         * gtk/gtktextchildprivate.h: move private interfaces here
12523
12524         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
12525
12526         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
12527         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
12528         gtk/gtktextmark.c: copyright notices
12529
12530         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
12531         internal functions      
12532
12533         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
12534         internal function
12535
12536         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
12537         Reformatting    
12538
12539 2000-09-30  Havoc Pennington  <hp@pobox.com>
12540
12541         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
12542         NULL start/end pointers
12543
12544         * gtk/gtktextbuffer.c: Write some docs
12545         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
12546         NULL, so you can just check whether there's a selection.        
12547
12548         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
12549         cleanup_line or segments_changed ourselves, it gets done 
12550         in unlink_segment
12551
12552         * gtk/gtktextmark.h:
12553         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
12554         
12555         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
12556
12557         * gtk/gtktextmark.c: delete some more old Tk cruft
12558
12559         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
12560         mark before removing it, so we can emit MARK_DELETED with a valid
12561         pointer.
12562         (gtk_text_buffer_mark_set): hold ref across signal emission
12563
12564         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
12565         whining about attempts to delete special marks
12566
12567         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
12568         underscore, since it's internal.
12569
12570         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
12571         now implemented in terms of iterators in gtktextiter.h
12572
12573         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
12574         New function, destructively sets contents of buffer. Also 
12575         a convenient way to clear the buffer by setting text to ""
12576
12577         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
12578         multiline string literal
12579
12580         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
12581         text changes.
12582
12583         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
12584         is not dereferenceable
12585         (gtk_text_iter_forward_lines): fix return value
12586
12587 2000-09-29  Havoc Pennington  <hp@redhat.com>
12588
12589         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
12590
12591         * gtk/gtktextview.c: Implement drag thresholding; change functions 
12592         that set border window size to have nicer name
12593         (gtk_text_view_mark_set_handler):  Fix this to have the 
12594         right signature.
12595
12596         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
12597
12598         * gtk/testtext.c: Update with API changes, put line numbers on 
12599         both sides.
12600         
12601         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
12602         with this
12603
12604         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
12605         pixbuf; delete a big block of #if 0 Tk code
12606
12607         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
12608         insert_pixmap with insert_pixbuf
12609
12610 2000-09-29  Martin Baulig  <baulig@suse.de>
12611
12612         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
12613         confusion with the GdkPixbuf of the GNOME 1.x platform.
12614
12615 2000-09-29  Havoc Pennington  <hp@pobox.com>
12616
12617         * gtk/gtktextview.c: Implement the side windows.
12618
12619         * gtk/testtext.c: Implement simple line numbering in the 
12620         left side window; seems to make scrolling sloooow. Oops.
12621         Also, cursor blink is for some reason causing redraws
12622         of the line numbers. Should investigate...
12623
12624 2000-09-28  Havoc Pennington  <hp@redhat.com>
12625
12626         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
12627         scrolling child windows, and draw focus rectangle properly.
12628         
12629         (gtk_text_view_buffer_to_window_coords):
12630         Coordinate transformation to deal with all these freaking windows
12631         and offsets
12632         (gtk_text_view_window_to_buffer_coords): transform the other way
12633
12634         * gtk/testtext.c (create_buffer): Update to match Pango API change
12635
12636         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
12637         anonymous tags
12638         (foreach_unref): don't emit remove signal from finalize, just
12639         set tag's parent to NULL
12640
12641 2000-09-26  Havoc Pennington  <hp@redhat.com>
12642
12643         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
12644         Fix some warnings       
12645
12646 2000-09-26  Havoc Pennington  <hp@redhat.com>
12647
12648         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
12649         headers into the private header list
12650
12651         * Makefile.am (pkgconfig_DATA): install pkg-config files
12652
12653         * configure.in: add pkg-config files
12654
12655         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
12656
12657         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
12658         outstanding icon caches on theme change.
12659
12660         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
12661         important types:
12662
12663         (GtkIconSource): Specification for creating a pixbuf 
12664         appropriate for a direction/state/size triplet from 
12665         a source pixbuf or filename
12666
12667         (GtkIconSet): List of GtkIconSource objects that are used to
12668         create the "same" icon (e.g. an OK button icon), and cache for
12669         rendered icons
12670
12671         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
12672         up the icon set for a given stock ID.  GTK maintains a stack of
12673         GtkIconFactory to search, and applications or libraries can add
12674         additional icon factories on top of the stack
12675         
12676         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
12677         the set of GtkIconSource specified for a given stock ID into 
12678         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
12679         RcStyle, under the specified stock ID.
12680
12681         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
12682         render_icon used to derive a GdkPixbuf from a GtkIconSource.
12683         This allows people to theme how prelight, insensitive, etc. are
12684         done.
12685
12686         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
12687         icon factories for a style, and return the resulting 
12688         icon set if any.
12689
12690         (gtk_style_render_icon): Render an icon using the render_icon 
12691         method in the GtkStyleClass.
12692
12693         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
12694         Use the style for a given widget to look up a stock ID, get the
12695         icon set, and render an icon using the render_icon method 
12696         of the style
12697
12698         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
12699         (contains information about a stock item), the built-in stock item
12700         IDs, and functions to add/lookup stock items.
12701
12702         * gtk/stock-icons/*: Stock icons that come with GTK
12703
12704         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
12705         a button based on a GtkStockItem
12706         (gtk_button_new_accel): Takes a uline string and accel group, and
12707         installs the accelerator.
12708
12709         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
12710         image-display widget.
12711
12712 2000-09-25  Havoc Pennington  <hp@redhat.com>
12713
12714         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
12715
12716         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
12717         Fix a bug when removing node data, we didn't properly 
12718         re-splice the linked list after removing the data.
12719
12720         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
12721         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
12722
12723         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
12724
12725         * gtk/gtktextlayout.c (set_para_values): Set tab array 
12726         for the layout from the GtkTextTag.
12727
12728         * gtk/gtktexttypes.h: delete tab and search cruft, 
12729         remove g_convert() in favor of GLib version
12730
12731         * gtk/gtktexttypes.c: remove tab implementation from here,
12732         move to Pango
12733
12734         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
12735         tab stuff using new PangoTabArray from Pango
12736
12737         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
12738         unused border_width stuff
12739
12740 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
12741
12742         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
12743         glib) and now useless utf_to_latin1() latin1_to_utf()
12744
12745         * gtk/gtktextview.[ch]: Change ::move_insert and
12746         ::delete_text action signals to ::move and ::delete;
12747         create the signals with the right enumeration type,
12748         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
12749         C-v bindings, change Home, End to move to beginning/end
12750         of line, Add C-Home C-End to move to beginning/end
12751         of buffer. Change ::cut_text to ::cut_clipboard, etc;
12752         combine ::scroll_text into ::move; use new GtkSelectionData
12753         functions to simplify DND text handling.
12754         
12755         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
12756         deletion enumerations here, rename enumeration values to 
12757         be consistently plural.
12758
12759         * gtk/gtktextbuffer.c: Use new clipboard interfaces
12760         for cut/copy/paste and primary selection.
12761
12762         * gtk/gtktextbuffer.[ch]: Remove excess time and
12763         'interactive' arguments from cut/copy/paste;
12764         rename cut to cut_clipboard, etc; remove
12765         gtk_text_buffer_get_clipboard_contents().
12766
12767         * gtk/gtktextlayout.[ch]: Add 
12768         gtk_text_layout_move_iter_to_line_end() to move the iter to 
12769         line ends.
12770
12771         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
12772         Functions to set or get a UTF-8 string on the selection
12773         data.
12774
12775         * gtk/gtkclipboard.[ch]: New, simplified selection handling
12776         interfaces.
12777
12778         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
12779         created widgets - one of these is useless if we don't.
12780
12781         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
12782         a public function clear all targets registered for the
12783         widget.
12784
12785         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
12786         Never call gtk_widget_realize() - that was just asking
12787         for bizarre side-effects.
12788
12789         * gtk/gtkselection.c (gtk_selection_owner_set): Call
12790         gdk_selection_owner_set even if the widget is the
12791         same so that we reliably update the timestamp on
12792         the server.
12793
12794         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
12795         gdk_x11_get_server_time() function.
12796         
12797         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
12798         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
12799         Add some tricky filtering on serial numbers for
12800         selection clear events to fix up long-standard
12801         race condition FIXME's in gtkselection.c.
12802
12803         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
12804         routines to convert from utf8 to compound text or
12805         STRING and from a text property to UTF-8.
12806
12807         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
12808         a convenience function gdk_get_current_event_time().
12809
12810         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
12811         and free selection_data->data properly
12812
12813 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
12814
12815         * gtk/gtkthemes.c: Remove some unecessary includes.
12816
12817 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
12818
12819         * gtk/gtktextdisplay.c
12820         * gtk/gtktextlayout.c
12821         * gtk/gtktexttag.c
12822         * gtk/gtktexttag.h
12823         * gtk/testtext.c: Change the overstrike property to strikethrough,
12824         to closer match pango.
12825
12826 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
12827
12828         * gtk/gtktextview.c: Fix up visibility so that focus,
12829         cursor_visible and blink interact properly.  Reenable cursor blink
12830         which had been roughly disabled. Make blink and focus
12831         properly per-view.
12832
12833         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
12834         Add a flag for whether to display insertion cursor and
12835         a function to set the flag.
12836
12837         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
12838         get_line_y() to get_line_yrange(), to be a bit more generally
12839         useful.
12840
12841 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
12842
12843         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
12844           do stop_navigating_submenu, to clear last timeout properly.
12845           Also in gtk_menu_motion_notify move ignore_enter above
12846           the conditional to make it always happen as suggested by Owen
12847
12848 2000-09-07  Tor Lillqvist  <tml@iki.fi>
12849
12850         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
12851
12852         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
12853         w32api headers.
12854
12855         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
12856         declarations.
12857
12858         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
12859         (gdk_win32_get_colormap): A line had been deleted by mistake.
12860
12861         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
12862         (gdk_event_translate): Handle more virtual keycodes to be able to
12863         generate GDK events for Control-comma, Control-period, etc.
12864
12865         * gtk/gtk.def: Add some missing entry points.
12866
12867 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
12868
12869         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
12870         Doc comment fixing. (Mostly non-matching parameter names.)
12871
12872         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
12873         comments a little to avoid looking like a doc comment.
12874
12875         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
12876         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
12877         conversions be changed to GError?)
12878
12879         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
12880         Move private #defines into .c file.
12881
12882         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
12883         order of argument addition, remove duplicates.
12884
12885         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
12886         parent class is FrameClass, not BinClass.
12887
12888         * gtk/gtk.h: Add gtkinvisible, which was missing.
12889         (It's occasionalyl useful for client apps, if seldom.)
12890
12891         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
12892         #define.
12893
12894 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
12895
12896         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
12897         coordinates when creating window, instead of GDK-space
12898         coordinates. (Avoid BadValue on too large windows.)
12899
12900 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
12901
12902         * configure.in (use_mmx_asm): Remove conftest* after use along the
12903         lines of AC_TRY_COMPILE.        
12904         
12905         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
12906         of g_dirname, which is deprecated.
12907         (gtk_rc_parse_any): Removed calls to
12908         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
12909
12910         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
12911         Removed calls to g_hash_table_{freeze,thaw}, as they are
12912         deprecated now.
12913
12914         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
12915         instead of g_basename.
12916         
12917 2000-09-04 Elliot Lee <sopwith@redhat.com>
12918         
12919         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
12920         ANSI warning.
12921
12922 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
12923
12924         * gtk/gtkwidget.h:  Add some documenting comments about 
12925           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
12926           just as owen said on irc.
12927
12928         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
12929           set HAS_DEFAULT.  Only set it if there isn't another window
12930           holding it (a focus window which RECEIVES_DEFAULT) and only unset
12931           it if the widget is not the focused window with RECEIVES_DEFAULT.
12932           This fixes weird double default bugs in dialogs which has things
12933           call gtk_window_set_default at times.
12934
12935 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
12936
12937         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
12938         Nils Barth and David Santiago to improve submenu
12939         navigation. The patch does this by creating a triangular
12940         region from the point where the pointer leaves the
12941         menu to the submenu.  While the pointer is in
12942         that region and a timeout has not expired, events 
12943         that would cause the active submenu to change are
12944         ignored.
12945
12946 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
12947
12948         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
12949         moving a toplevel window immediately after sizing it would
12950         result in it being sized back to the old size since 
12951         impl->width, impl->height aren't updated until we hear
12952         back from the server. There is still a (longstanding) bug
12953         here that gdk_window_get_size() will give the wrong size
12954         until we do hear back.
12955
12956 2000-08-31  Havoc Pennington  <hp@redhat.com>
12957
12958         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
12959         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
12960         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
12961         Rename GtkTextStyleValues to GtkTextAttributes
12962
12963 2000-08-31  Havoc Pennington  <hp@pobox.com>
12964
12965         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
12966         for rapid testing whether an iterator is the end iterator
12967         (gtk_text_btree_new): init end line cache
12968         (gtk_text_line_is_last): use fast cached line to 
12969         see if we're the last line.
12970         (get_last_line): use cached line here too, should 
12971         speed up some random unrelated code.
12972         
12973 2000-08-30  Havoc Pennington  <hp@pobox.com>
12974
12975         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
12976         signals.
12977
12978         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
12979         delete_text signals. This allows the signals to be used for
12980         implementing undo.
12981
12982         * gtk/gtktextbuffer.c: Change signal handler signatures; 
12983         provide "interactive" argument when emitting insert_text or
12984         delete_text signal.
12985         
12986 2000-08-30  Havoc Pennington  <hp@pobox.com>
12987
12988         * gtk/gtktextbuffer.c: Docs
12989
12990 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
12991
12992         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
12993         from switch statements, since Tor removed the enumeration
12994         value.
12995         
12996         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
12997         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
12998
12999 2000-08-29 Elliot Lee <sopwith@redhat.com>
13000         * */*.h: Use G_GNUC_CONST.
13001
13002 2000-08-27  Havoc Pennington  <hp@pobox.com>
13003
13004         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
13005         minor indentation fixes, inserted some FIXME about stuff I
13006         realized was broken while documenting it.
13007         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
13008         GTK convention  
13009
13010 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
13011
13012         * gtk/testgtk.c (create_styles): Fix double free of
13013         font desc.
13014
13015 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
13016
13017         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
13018         
13019         * gtk/testgtk.c (create_styles): Add a test for modifying
13020         the style through gtk_widget_modify_*.
13021
13022         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
13023         a function to get the current modifier style.
13024
13025         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
13026         of the passed in GtkRcStyle instead of ref'ing it.
13027
13028         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
13029
13030 2000-08-20  Tor Lillqvist  <tml@iki.fi>
13031
13032         * gdk/gdkimage.h
13033         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
13034         shared memory image+pixmap GdkImage type, or
13035         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
13036         I am dropping that.
13037
13038         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
13039         actually call gtk_init_abi_check(), passing also
13040         sizeof(GtkWindow). Ditto for gtk_init_check(). 
13041
13042         * gtk/gtk.def
13043         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
13044         New functions, used to check that the GTK+-using code has been
13045         compiled using the correct compiler and switches. In particular,
13046         with gcc one has to use the -fnative-struct switch as GTK+ is
13047         compiled with that.
13048
13049 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
13050
13051         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
13052         ->prev fields when merging lists. (Found simultaneously
13053         by Pawel Salek and Jakub Jelinek)
13054
13055 2000-08-12  Tor Lillqvist  <tml@iki.fi>
13056
13057         * gdk/gdk.def
13058         * gtk/gtk.def: Add missing entries.
13059
13060         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
13061         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
13062
13063         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
13064         function. Dummy implementation at this point.
13065
13066         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
13067         rules. Undefine GTK_COMPILATION when compiling the test programs.
13068         
13069         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
13070
13071 2000-08-11  Tor Lillqvist  <tml@iki.fi>
13072
13073         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
13074         to convert back and forth from UTF-8 and the "system" (or "current
13075         locale") charset when necessary. Indentation/spacing cleanup.
13076
13077 2000-08-10  Havoc Pennington  <hp@redhat.com>
13078
13079         * Makefile.am (snapshot): Change the format of the snapshot
13080         version to match glib
13081
13082         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
13083         from EXTRA_DIST since it doesn't seem to exist
13084
13085 2000-08-10  Tor Lillqvist  <tml@iki.fi>
13086
13087         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
13088         version of the directory name (not the UTF-8 one) when building
13089         the path name to stat().
13090
13091 2000-08-03  Elliot Lee  <sopwith@redhat.com>
13092
13093         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
13094         PANGO_ATTR_SHAPE set.
13095
13096 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
13097
13098         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
13099         Peter Osterlund to simplify the code while keeping the
13100         functionality the same.
13101
13102 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
13103
13104         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
13105         is_viewable() test further inside the function, since removing the 
13106         window from the redraw list without clearing ->update_area
13107         was also very broken.
13108
13109 2000-08-02  Tor Lillqvist  <tml@iki.fi>
13110
13111         * configure.in: Check for <unistd.h>.
13112
13113 2000-08-01  Martin Baulig  <baulig@suse.de>
13114
13115         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
13116         to display the message that this is a development version of GTK+.
13117
13118 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
13119
13120         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
13121         was depending on widget->allocation instead of the width of text_area,
13122         which was incorrect for subclasses like GtkSpinButton.
13123
13124         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
13125         with width == 1 tests that should be width == -1.
13126
13127 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
13128
13129         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
13130         (broken, Elliot, every single window blank on X) custom code with call
13131         to gdk_window_is_viewable() which a) prevents code duplicate and
13132         b) works. 
13133
13134 2000-07-31  Elliot Lee  <sopwith@redhat.com>
13135
13136         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
13137         to get the GDK_PARENT_ROOT() macro to work.
13138         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
13139         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
13140         of, windows that aren't shown.
13141         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
13142         pointer grab stuff.
13143
13144 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
13145
13146         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
13147           s/gtk_main_iteration/g_main_iteration/
13148
13149           Did this already in change:
13150                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
13151           don't know how it got reverted.
13152
13153 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
13154
13155         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
13156         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
13157
13158         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
13159         not gdk_pixbuf.
13160
13161 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
13162
13163         * configure.in,po/{sp,sr}.po: Added Serbian files
13164
13165 2000-07-30  Tor Lillqvist  <tml@iki.fi>
13166
13167         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
13168
13169         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
13170         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
13171         GIOChannel implementation.
13172
13173         * gdk/win32/gdkinput.c
13174         * gdk/win32/gdkpango-win32.c: Update license name here, too.
13175
13176         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
13177         definition to match prototype.
13178
13179         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
13180
13181 2000-07-27  Elliot Lee  <sopwith@redhat.com>
13182
13183         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
13184         function, to allow handling image formats that cannot be detected
13185         by looking at content alone.
13186
13187 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
13188
13189         * docs/tutorial/*.gif *.jpg *.eps
13190           Update these to the same look-n-feel.
13191           Why does including images in DocBook suck so badly?
13192
13193 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
13194
13195         * gtk/gtktable.c: applied patch from Phil Thompson
13196         <phil@river-bank.demon.co.uk> that enables space settings for
13197         the last row/columns as well.
13198
13199 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
13200
13201         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
13202         updates the license headers to the GNU Lesser General Public License,
13203         as well as updating the copyright year to 2000.
13204
13205 2000-07-26  Robert Brady  <rwb197@zepler.org>
13206
13207         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
13208           and po/Makefile, was installing and looking for them under gtk20
13209           and gtk2 respectively.
13210
13211 2000-07-25  Havoc Pennington  <hp@redhat.com>
13212
13213         * gtk/testtext.c: Comment out some stuff that depends on the rest
13214         of my patches.
13215
13216 2000-07-25  Havoc Pennington  <hp@redhat.com>
13217
13218         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
13219         buffer
13220
13221 2000-07-25  Havoc Pennington  <hp@redhat.com>
13222
13223         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
13224         widget changes.
13225
13226         * gtk/gtktextview.h: To be consistent with usage of "line"
13227         throughout the API to mean "newline-terminated thingy", change
13228         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
13229         to MOVEMENT_LINE.
13230
13231         (GtkTextView): Add flags for default editability, and whether to
13232         show the cursor. Add functions to get/set that. Add 
13233
13234         (gtk_text_view_get_iter_location): new function
13235
13236         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
13237         gtktextlayout.h
13238         (g_convert): Add g_convert temporarily, will go in glib in a bit
13239         
13240         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
13241         GtkTextTagTableForeach instead of brokenly using GHFunc.
13242         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
13243
13244         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
13245         moved to public header.
13246
13247         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
13248         "invisible", since "elide" was a bad name.
13249         (gtk_text_tag_get_priority): Added
13250
13251         (GtkTextStyleValues): put this in public header, along with
13252         functions to use it.
13253
13254         * gtk/gtktextmarkprivate.h: Include more headers, since we no
13255         longer include gtktextbtree.h.
13256
13257         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
13258         gtk_text_mark_deleted
13259
13260         * gtk/gtktextlayout.h: Don't include the "really private" headers,
13261         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
13262         to make this possible. Now we only need to install
13263         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
13264         (However the Makefile.am isn't changed yet because of the
13265         logistics of merging gtk-hp-patches piecemeal)
13266
13267         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
13268         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
13269         gtk_text_iter_get_line is now used in the public API for a
13270         different purpose.
13271
13272         * gtk/gtktextiter.h: Clean up function names to be more
13273         consistent. Always call char offset "offset" and byte index
13274         "index". A "line" is always a line number. 
13275
13276         (gtk_text_iter_is_last): new function, more efficient than 
13277         the existing way to check
13278         (gtk_text_iter_is_first): new function, also more efficient
13279
13280         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
13281
13282         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
13283         gtk_text_iter_forward_char, etc.
13284
13285         (gtk_text_iter_forward_to_tag_toggle): Renamed from
13286         forward_find_tag_toggle, since this isn't a linear search
13287
13288         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
13289
13290         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
13291         New functions, search for a buffer substring.
13292
13293         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
13294         interactive and default editable (since we need to store that info
13295         until we receive the selection data).
13296
13297         Remove all the _at_char and at_line etc. versions of functions;
13298         only have iterator versions.
13299
13300         Add _interactive() versions of functions, that consider the
13301         editability of text. (FIXME add interactive flag to the 
13302         insert/delete signals per Darin's suggestion)
13303
13304         (gtk_text_buffer_get_tag_table): new function, demand-creates the
13305         tag table if necessary
13306
13307         Remove declaration of gtk_text_buffer_get_iter_from_string
13308
13309         (_gtk_text_buffer_get_btree): private/internal function, added.
13310         
13311
13312         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
13313         (gtk_text_line_is_last): new function
13314
13315 2000-07-25  Havoc Pennington  <hp@redhat.com>
13316
13317         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
13318         using GtkProgressBar. See Changes-2.0.txt for details.
13319
13320         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
13321         "pulse_step" which are the equivalent of
13322         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
13323         Implement new API.
13324         
13325         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
13326         (use_text_format) to mark whether text set on the progress bar is
13327         a format string. Deprecate entire GtkProgress interface.
13328
13329         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
13330         (gtk_progress_build_string): make this a no-op if use_text_format
13331         is FALSE
13332
13333         * docs/Changes-2.0.txt: Describe progress bar changes.
13334
13335 2000-07-25  Tor Lillqvist  <tml@iki.fi>
13336
13337         * Makefile.am: Include the build directory.
13338
13339         * configure.in: Generate build/Makefile, build/win32/Makefile,
13340         gdk/, gdk/win32/, and gtk/makefile.mingw.
13341
13342         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
13343         Add GETTEXT_PACKAGE.
13344         
13345         * gdk/gdk.def
13346         * gtk/gtk.def: Updates.
13347
13348         * gdk/gdkfont.h
13349         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
13350         need them any longer.
13351
13352         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
13353
13354         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
13355         PANGOWIN32_LIBS and gdk_pixbuf.
13356
13357         * gdk/win32: Compiles, but no doubt doesn't work at all.
13358
13359         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
13360
13361         * gdk/win32/gdkinput.c: New file, temporarily.
13362         
13363         * gdk/win32/gdkinput-win32.h: New file
13364
13365         * gdk/win32/gdkinputprivate.h: Remove.
13366
13367         * gdk/win32/gdkpango-win32.c: New file.
13368
13369         * gtk/makefile.mingw.in: New file
13370
13371         * gtk/makefile.cygwin: Removed
13372         
13373         * gtk/Makefile.am: Update accordingly.
13374
13375         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
13376         made externally visible.
13377
13378         * gtk/gtkmain.c: Use it.
13379         
13380         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
13381         is enough.
13382
13383         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
13384
13385 2000-07-24 Elliot Lee <sopwith@redhat.com>
13386         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
13387         individual backends already.
13388         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
13389         again. Yes, there really is a good reason for this, if you are using the gdkregion
13390         internals, and if you're not, why do you care?
13391         * gdk/gdkwindow.c: Fix inverted condition
13392         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
13393         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
13394         * gtk/gtkrange.c: Redraw trough when moving.
13395         * gtk/gtktypeutils.c: Fix warning by adding const cast.
13396         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
13397
13398 2000-07-23  Tor Lillqvist  <tml@iki.fi>
13399
13400         * configure.in: Check for mkstemp and sigsetjmp. Output
13401         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
13402
13403         More work on GDK for Win32. Still in an intermediate state.
13404
13405         * gdk/makefile.cygwin
13406         * gdk/win32/makefile.cygwin: Removed.
13407         
13408         * gdk/makefile.mingw.in
13409         * gdk/win32/makefile.mingw.in: New files.
13410
13411         * gdk/Makefile.am
13412         * gdk/win32/Makefile.am: Generate and distribute them.
13413
13414         * gdk/win32/gdkwindow-win32.h
13415         * gdk/win32/gdkdrawable-win32.h
13416         * gdk/win32/gdkpixmap-win32.h: New files.
13417
13418         * gdk/win32/gdkcolor-win32.c
13419         * gdk/win32/gdkcursor-win32.c
13420         * gdk/win32/gdkdrawable-win32.c
13421         * gdk/win32/gdkgc-win32.c
13422         * gdk/win32/gdkimage-win32.c
13423         * gdk/win32/gdkprivate-win32.h
13424         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
13425         Rename fields and variables called xcursor, xid, etc (these names
13426         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
13427
13428 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
13429
13430         * gtk/gtkentry.[ch]: Fix some problems with vertical
13431         alignment.
13432
13433         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
13434         char/byte confusion.
13435
13436 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
13437
13438         * gtk/gtktextview.c (changed_handler): Fix bug where
13439         redraw wasn't being done properly when height of
13440         dirty region changed.
13441
13442         * demos/Makefile.am: Remove various references to
13443         -lgmodule
13444
13445 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
13446
13447         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
13448         PangoAttrShape to reserve space for pixmaps, add 
13449         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
13450         in the display functions.
13451         
13452         * gtk/testgtk.c (create_layout): Set some more exotic
13453         scrolled window options
13454
13455         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
13456         Add function to set the shadow type of a window, to allow
13457         putting a shadow around widgets such as GtkLayout or GnomeCanvas
13458         which don't draw their own frame.
13459
13460 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
13461
13462         * docs/tutorial/package-db-tutorial.sh: New file for
13463           packaging DocBook format tutorial
13464
13465 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
13466
13467         * docs/tutorial/gtk-tut.sgml: Minor updates
13468
13469         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
13470
13471 2000-07-19  Tor Lillqvist  <tml@iki.fi>
13472
13473         * gtk/gtksignal.c: Fix C++ comment.
13474
13475         * gtk/gtkimmulticontext.c
13476         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
13477         don't return value from void functions.
13478
13479         * gtk/gtk.def: Add gtk_rc_style_unref.
13480
13481 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13482
13483         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
13484         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
13485         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
13486         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
13487         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
13488         gtk/gtktypeutils.h: Include files outside of the extern "C"
13489         block. Makes some C++ compiler happy. Reported by Denis Vakatov
13490         <vakatov@peony.nlm.nih.gov>.
13491
13492 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
13493
13494         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
13495           Completes first pass. Hurrah!
13496
13497 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
13498
13499         * docs/tutorial/gtk-tut.sgml: More clean ups.
13500
13501 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
13502
13503         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
13504         paint the background of the text area which was accidentally
13505         removed at some point.
13506
13507         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
13508           
13509          - Move most of the functionality from the theme vtable
13510            into GtkRcStyleClass and GtkStyleClass. The moved
13511            vtable functions were changed a bit in the move to
13512            work better in their new home.
13513
13514          - Get rid of the engine and engine_data fields from
13515            GtkRcStyle and GtkStyle; instead the theme
13516            engine derives theme-specific subclasses of GtkRcStyle
13517            and GtkStyle
13518
13519          - Add extra dlsym() found entry point to themes,
13520            theme_create_rc_style().
13521
13522         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
13523         in gtk_style_real_copy.
13524
13525         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
13526         to register a type associated with an engine. (The engine
13527         won't be unloaded as there is an instance of the type.)
13528
13529
13530 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
13531
13532         * docs/tutorial/gtk-tut.sgml: Clean ups.
13533
13534 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
13535
13536         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
13537           of cleaning up to do.
13538
13539 2000-07-15  Tor Lillqvist  <tml@iki.fi>
13540
13541         * gdk/testgdk.c: New file, quick hack to test backends for
13542         pixel-by-pixel correctness of the most simple graphic operations.
13543
13544 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
13545
13546         * Really release 1.3.1
13547         
13548         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
13549         include structure.
13550
13551 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
13552
13553         * Released 1.3.1
13554
13555 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
13556
13557         * gtk/gtktextlayout.c: use FALSE for size_only most
13558         of the time when calling gtk_text_layout_get_line_display()
13559         to avoid causing double reshapes when a redraw follows
13560         immediately after.
13561
13562 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
13563
13564         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
13565         appropriate region and gdk_window_process_updates() so trough
13566         updating doesn't lag behind the window being scrolled.
13567
13568         * gdk/gdkgc.c: Make parent_class pointer static.
13569          
13570 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
13571
13572         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
13573         include <string.h>.
13574          
13575         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
13576         cut-and-paste error in computing memory offset for 4 channels.
13577
13578 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
13579
13580         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
13581         gtk_rc_append_default_pixmap_path(), since it wasn't
13582         adding an interesting path and we don't have a meaningful
13583         default for this value.
13584
13585 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
13586
13587         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
13588         gtk-config to gtk-config-2.0 move gtk_.m4 to
13589         gtk-2.0.m4
13590
13591         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13592         gdk/Makefile.am demos/Makefile.am: Change 
13593         library names to libgtk-1.3.la, etc, so that we
13594         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
13595
13596         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
13597         gdk/Makefile.am gdk/x11/Makfile.am
13598         Move include files into /usr/include/gtk-2.0, 
13599         /usr/lib/gtk-2.0/include/
13600          
13601         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
13602         gtk/gtkintl.h: Change package for gettext from 
13603         gtk+ to gtk20. Put hack in autogen.sh to modify
13604         po/Makefile.in.in after gettextize to make this
13605         possible.
13606
13607         * gtk+.spec: Some updates, not tested.
13608
13609         * gdk-pixbuf/Makefile.am: Move loaders into
13610         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
13611
13612         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
13613         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
13614         to THEMENAME/gtk-2.0/. Move engine directory  to
13615         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
13616         
13617 2000-07-12  Tor Lillqvist  <tml@iki.fi>
13618
13619         Win32 changes, still doesn't build though.
13620
13621         * gdk/makefile.cygwin
13622         * gdk/win32/makefile.cygwin
13623         * gtk/makefile.cygwin: Updates.
13624
13625         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
13626         default values for fg and bg pixel as X11 does (0 and 1), not
13627         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
13628         Use 0 for pen width by default (treated as 1 anyway later, but for
13629         apps that might check the value in the GdkGC).
13630         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
13631         interface to gdk_gc_predraw and _postdraw.
13632
13633         * gdk/win32/gdkwin32.h
13634         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
13635
13636         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
13637         extraneous semicolon.
13638
13639         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
13640
13641         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
13642         not the Win32 bitspixel value.
13643
13644         * gdk/win32/gdkcc-win32.c:
13645         * gdk/win32/gdkcolor-win32.c 
13646         * gdk/win32/gdkprivate-win32.h
13647         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
13648         GDK object structure.
13649
13650 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
13651
13652         * docs/tutorial/gtk_tut_12.es.sgml (name): 
13653         * docs/tutorial/gtk_tut_it.sgml (name): 
13654         * docs/tutorial/gtk_tut_fr.sgml (name): 
13655         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
13656         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
13657
13658 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
13659
13660         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
13661           small changes.
13662
13663 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
13664
13665         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
13666         a bug here, never been here and never fixed anything ;(
13667         (don't segfault if tree->root_tree is NULL, which happens prior
13668         to widget realization, but puke instead).
13669
13670 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
13671
13672         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
13673         add the necessary tokens.
13674
13675         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
13676         (gtk_rc_style_to_style): copy thicknesses.
13677         (gtk_rc_init_style): apply thicknesses.
13678         (gtk_rc_parse_style): parse xthickness and ythickness.
13679
13680         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
13681
13682         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
13683         (gdk_window_new): 
13684         (_gdk_windowing_window_init): 
13685         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
13686         (gdk_pixmap_create_from_data): 
13687         (gdk_bitmap_create_from_data): 
13688         (gdk_pixmap_new): 
13689         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
13690         (gdk_image_new): 
13691         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
13692         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
13693         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
13694         (gdk_colormap_get_system): 
13695         (gdk_colormap_new): 
13696         * gdk/gdkwindow.c (gdk_window_init): 
13697         * gtk/gtkstyle.c (gtk_style_new):
13698         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
13699         * gdk/gdkpixmap.c (gdk_pixmap_init): 
13700         * gtk/gtkrc.c (gtk_rc_style_new):
13701         use g_object_new() instead of g_type_create_instance() which
13702         is a private function for fundamental type implementations.
13703
13704 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
13705
13706         * configure.in: Add check for db2html
13707
13708 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
13709
13710         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
13711         hack to set glib_debug_objects based on gtk_debug_flags.
13712
13713 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
13714
13715         * INSTALL.in: Update the Prerequisites section.
13716
13717         * Makefile.am demos/Makefile.am docs/Makefile.am
13718         docs/tutorial/Makefile.am gdk/x11/Makefile.am
13719         gdk/linux-fb/Makefile.am: Dist fixes
13720
13721 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
13722
13723         * NEWS: 10,000 foot view of 1.3.1 changes.
13724
13725 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
13726
13727         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
13728         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
13729         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
13730         gdk/x11/gdkmain-x11.c: 
13731
13732         Patch from George Lebl to add a GdkGrabStatus enumeration to use
13733         as a return value of gdk_*_grab(). Previously, we just
13734         returned the X11 values directly.
13735
13736 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
13737
13738         * gdk/x11/Makefile.am: Patch from George Lebl to 
13739         install all the headers in the right place.
13740
13741 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
13742
13743         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
13744           initial conversion to DocBook.
13745
13746 2000-07-04  Tor Lillqvist  <tml@iki.fi>
13747
13748         * README.win32: Improve a bit.
13749
13750         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
13751         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
13752         Alt+0nnn on the numpad (used to enter characters by numeric code
13753         from current DOS or ANSI codepage) working correctly, as in other
13754         Windows apps.
13755
13756         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
13757         same argument validity tests as in X11 version.
13758         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
13759
13760         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
13761         definitions in case missing from headers.
13762
13763         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
13764         destroy the window-specific cursor.
13765         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
13766         calling GetModuleHandle(NULL).
13767         (gdk_window_set_cursor): Reworked to always copy the passed cursor
13768         with CopyCursor before setting it as the window-specific
13769         cursor. It is OK for the caller to destroy the GdkCursor (and thus
13770         also its Windows cursor) after calling this function. Destroy any
13771         previous window-specific cursor.
13772
13773 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
13774
13775         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
13776         font charset is iso8859-1, not iso-8859-1.
13777
13778 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
13779
13780         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
13781         Use g_get_charset() instead of g_get_codeset().
13782
13783         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
13784         Comment out some strdup'ing functions to keep timj
13785         happy until we finish fighting this out.
13786
13787 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
13788
13789         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
13790         <= width or height.
13791
13792         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
13793         from 1.2 for parent/child states.
13794
13795         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
13796         of typos.
13797
13798         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
13799         event structures, replace with a generic axes field. Replace 
13800         deviceid/sourec with GdkDevice *device.
13801
13802         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
13803         to extract particular axis use value from event. (Also
13804         can be used for normal X/Y.)
13805
13806         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
13807         allow for arbitrary number of axes, namespace everything
13808         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
13809         everywhere.
13810
13811         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
13812         Get rid of the gdk_input_vtable setup if favor of simply
13813         defining the functions in gdkinput-none/gxi/xfree.c in
13814         a similar fashion to the way that the port structure is 
13815         done.
13816
13817         * gtk/gtkdnd.c: Fix fields of synthesized button press event
13818         for new event structures. 
13819
13820         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
13821         new device interfaces.
13822
13823 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
13824
13825         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
13826         set the initial text.
13827
13828         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
13829         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
13830         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
13831         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
13832
13833         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13834         pango_layout_set_font_description to simplify.
13835
13836 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
13837
13838         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
13839         pango_layout_set_font_description to simplify.
13840
13841 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
13842
13843         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
13844         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
13845         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
13846
13847         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
13848         PANGO_PIXELS() macro.
13849
13850 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
13851
13852         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
13853         that returns a PangoContext owned by the widget and updated to
13854         match future changes in the widget. Also, make 
13855         gtk_widget_create_pango_layout() use this context. If we ever
13856         add a ::changed signal to PangoContext, this will make things
13857         much more convenient. 
13858
13859         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
13860         in the appropriate places instead of destroying the layouts and
13861         creating new ones.
13862
13863         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
13864         in a few strategic places.
13865
13866 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
13867
13868         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
13869         gtk_widget_size_request() on reparented child, if one. Otherwise,
13870         queue_resize() on the child never results in it getting size-requested
13871         at all.
13872
13873         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
13874         in option menus, so that (with luck) people won't copy it into
13875         their apps in the future.
13876
13877         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
13878         to gtk_option_menu_calc_size. This isn't perfect, but should fix
13879         a lot of problems with changing the size of the menu's menu
13880         items after adding it to the option menu.
13881
13882         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
13883
13884         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
13885         the text direction for a widget changes.
13886
13887         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
13888         ::direction_changed to get rid of various hacks.
13889
13890 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
13891
13892         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
13893         name.
13894
13895 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
13896
13897         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
13898         flag to the structure. Do not call XFreePixmap on pixmaps created
13899         by gdk_pixmap_foreign_new().
13900
13901 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
13902
13903         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
13904         value using GdkRGB functionality given GdkColormap and GdkColor.
13905         (name not final, waiting for inspiration.)
13906         
13907         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
13908         set the foreground/background of a GC using the GC's colormap
13909         and GdkRGB. (name not final, waiting for inspiration.)
13910
13911         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
13912         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
13913
13914         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
13915         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
13916         purely a function of the corresponding colormap. Make
13917         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
13918
13919         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
13920         gdk_pixbuf_*create_from_xpm_* in terms of
13921         gdk_pixbuf_new_from_xpm_data(), move into platform independent
13922         code.
13923
13924         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
13925         advantage of the new draw_rgb_32_image_dithalign.
13926
13927         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
13928
13929         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
13930         on each created GC.
13931
13932         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
13933
13934         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
13935         which we initialize from the drawable when the GC is created,
13936         if the drawable has a colormap.
13937
13938         * gdk/x11/gdkgc-x11.c: include string.h for memset.
13939
13940         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
13941
13942         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
13943
13944 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
13945
13946         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
13947         actually returning expose events, make sure to set
13948         the count field properly.
13949
13950         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
13951         accidentally reintroced bug which always cleared
13952         the graphics_exposures value. 
13953
13954 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
13955
13956         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
13957
13958 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
13959
13960         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
13961
13962 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
13963
13964         * docs/faq/gtk-faq.sgml: Start of Section 6.
13965
13966 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
13967
13968         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
13969         
13970         (Fixes problem with drawing childless frames. Pointed out
13971         by and a first patch from Anders)
13972         
13973         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
13974         compute a child_allocation, even if we don't have a child.
13975
13976         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
13977         Always chain to the parent's impl, even if we don't have a child.
13978
13979 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
13980
13981         * gdk/gdkrgb.c: If possible, create only a single shm segment and
13982         use multiple parts of it instead of creating a bunch of separate
13983         segments, since the maximum number of segments per system is not
13984         large. (This might be worth backporting to GTK+-1.2.x if we make a
13985         new release )
13986
13987         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
13988         structure in preparation for per-colormap GdkRGB.
13989
13990         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
13991         to False when we get EINVAL from shmget so that the caller of
13992         gdk_image_new can retry with a smaller segment size.
13993
13994 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
13995
13996         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
13997
13998 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
13999
14000         * configure.in: make the current version number 1.3.1 (binary age 0,
14001         interface age 0).
14002         
14003         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
14004         gtkcompat.h is all we want.
14005
14006         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
14007         GLib primitive types. fixed g_type_register_fundamental() argument
14008         ordering.
14009
14010         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
14011         compiles.
14012
14013         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
14014         object code cleanup, comment trigraph fixes, etc...
14015
14016 2000-06-23  Havoc Pennington  <hp@redhat.com>
14017
14018         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
14019         instead of making up a bogus name for first_para_mark
14020
14021         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
14022         0 as a context ID
14023
14024 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
14025
14026         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
14027
14028 2000-06-21  Havoc Pennington  <hp@pobox.com>
14029
14030         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
14031         we didn't check window->bg_pixmap != GDK_NO_BG.
14032
14033         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
14034         gdk-pixbuf
14035
14036 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
14037
14038         * docs/faq/gtk-faq.sgm: Move file to here.
14039           TODO: Update Makfile.am 
14040
14041 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
14042
14043         * docs/gtk-faq.sgm: Add Section 2
14044
14045 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
14046
14047         * docs/gtk-faq.sgm: New file. Start of DocBook
14048           version of the FAQ.
14049
14050 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
14051
14052         * configure.in (GDK_PIXBUF_MAJOR): Define version
14053         numbers for GDK_PIXBUF_*, as they get substituted
14054         into a header file. Need to consider versioning
14055         for gdk-pixbuf more carefully later.
14056
14057 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
14058
14059         Work with srcdir != builddir.   
14060         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
14061         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
14062         * demos/testpixbuf.c: Likewise.
14063         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
14064         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
14065         <gdk/x11/gdkx.h>.
14066         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
14067         "gdk-pixbuf.h".
14068         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
14069
14070 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
14071
14072         * TODO.xml: Change 1.4 version numbers to 2.0.
14073
14074 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
14075
14076         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
14077         fixups to GTK+ standard.
14078
14079 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
14080
14081         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
14082         gdk-pixbuf.
14083
14084         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
14085         fixups for GObject.
14086
14087         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
14088         gdk-pixbuf with GDK dependencies moved into GDK.
14089         
14090         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
14091         move gdk-pixbuf-loader here until GObject has signals.
14092
14093         * demos/: New directory of demos. Move demos from
14094         gdk-pixbuf here.
14095
14096         * demos/pixbuf-init.c: Small bit of code to check for
14097         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
14098         set GDK_PIXBUF_MODULEDIR appropriately.
14099
14100         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
14101         define which no longer makes sense.
14102
14103 2000-06-21  Havoc Pennington  <hp@redhat.com>
14104
14105         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
14106         gtk_get_default_language
14107
14108         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
14109         new function to get the default language
14110
14111         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
14112         s/gtk_text_view_style_values/gtk_text_style_values/
14113
14114         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
14115         Add a "language" field to tags.
14116
14117         (gtk_text_tag_set_arg): Fix bug in setting
14118         "bg_full_height_set" tag.
14119
14120 2000-06-21  Havoc Pennington  <hp@redhat.com>
14121
14122         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
14123         in the interfaces
14124
14125         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
14126         stuff instead when possible.
14127
14128         * gtk/gtktexttypes.h: Delete some unused constants
14129
14130         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
14131         testtextbuffer.c: use glib instead of custom unicode routines
14132
14133 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
14134
14135         * docs/es/: Removed mistakenly added generated sgml
14136
14137         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
14138         Remove outdated info files.
14139
14140         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
14141         Moved tutorial files into subdir
14142
14143         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
14144         subdir.
14145
14146         * docs/man/gtk_button.pod: Remove. (contents will be
14147         integrated into gtk-reference button page.)
14148
14149         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
14150         docs/faq/Makefile.am: Adjust for new organization
14151
14152 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
14153
14154         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
14155         not $(MKINSTALLDIRS)
14156
14157 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
14158
14159         * gtk/testgtk.c (create_text): Finish the job Elliot started
14160         of removing font setting test for text widget. (Since text widget
14161         and GdkFont are not deprecated, and cause portability problems.)
14162
14163 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
14164
14165         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
14166         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
14167         Remove use of libunicode in favor of new GLib functions.
14168
14169         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
14170         nano-x, framebuffer. The X11 include is just a hack until we get
14171         the necessary functions in gdkcolor.h, so there is no reason to
14172         add other includes of platforms.
14173
14174         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
14175         window bigger than the screen change.
14176
14177         * gtk/testgtk.c: Revert some random changes from Elliot
14178         that had no particular point and were causing testgtkrc
14179         not to function correctly.
14180         
14181         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
14182         because GdkSegment and GdkRegionBox have the same fields,
14183         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
14184         results in clearer code.
14185
14186         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
14187         gdk_input_translate_coordinates): Fix missed GdkObjectification
14188
14189 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14190
14191         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
14192         * gtk/gtk{plug,socket}.h: Missed commits from previous.
14193
14194 2000-06-20  Havoc Pennington  <hp@redhat.com>
14195
14196         * modules/linux-fb/Makefile.am: Make this compile
14197         without framebuffer enabled
14198
14199         * gdk/linux-fb/Makefile.am: Add conditional to not build
14200         framebuffer unless specified in configure
14201
14202         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
14203         the size of the target instead of source if -1 was passed for
14204         width/height
14205
14206         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
14207         width/height confusion.
14208
14209 2000-06-19  Havoc Pennington  <hp@redhat.com>
14210
14211         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
14212         GDK_DRAWABLE_XID. In the future, we probably want to make it
14213         faster with G_DISABLE_CHECKS turned on.
14214
14215 2000-06-14  Havoc Pennington  <hp@redhat.com>
14216
14217         * gdk/Makefile.am: add gdkpixmap.c
14218
14219         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
14220         s/gdk_image_init/_gdk_windowing_image_init
14221
14222         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
14223         ref/unref
14224
14225         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
14226
14227         * gdk/gdkcompat.h: remove GdkWindowType compat, since
14228         GdkWindowType is now non-deprecated; 
14229         change gdk_window_get_type() compat to be
14230         gdk_window_get_window_type().
14231
14232         * gdk/gdkdnd.h: make GdkDragContext a GObject.
14233
14234         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
14235         virtual GObject. Make all functions call into the vtable.
14236         Move gdk_image_put() guts in here. Remove GdkDrawableType
14237         and gdk_drawable_get_type(), these are now GdkWindow-specific.
14238         draw_image, get_depth, get_size, set_colormap, get_colormap,
14239         get_visual added to the vtable.
14240         
14241         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
14242         GObject. Virtualize everything. 
14243         (gdk_gc_new_with_values): remove check for destroyed window,
14244         because now GdkWindow::create_gc will check this.
14245         (gdk_gc_set_values): New function to set GC values, this 
14246         was already implemented but wasn't in the header
14247
14248         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
14249
14250         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
14251         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
14252         remove _gdk_window_class; add _gdk_window_impl_get_type() and
14253         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
14254         _gdk_windowing_window_init, rename gdk_image_init to
14255         _gdk_windowing_image_init.
14256         
14257         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
14258         (gdk_draw_layout): Remove check for destroyed window, 
14259         because all the drawable methods already check it.
14260         
14261         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
14262         Add gdkpixmap.c which contains implementation of GdkDrawable
14263         virtual table (by chaining to a platform-specific implementation
14264         object).
14265         
14266         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
14267         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
14268         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
14269         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
14270         GdkColormapPrivate. 
14271
14272         * gdk/gdktypes.h: #include <glib-object.h>
14273
14274         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
14275         Move most functionality to platform-specific implementation
14276         object. GdkWindow itself now handles the backing store, then
14277         chains to the platform-specific implementation.
14278         (gdk_window_get_window_type): return GdkWindowType of the window.
14279         (gdk_window_peek_children): New routine, returns the children of 
14280         a GdkWindow
14281         (gdk_window_get_children): Was in X11-specific code and did 
14282         XQueryTree. Changed to simply return a copy of window->children; 
14283         so it can go in cross-platform code.
14284         
14285         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
14286
14287         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
14288         GdkColormap; just changed to use the new private data instead
14289         of casting to GdkColormapPrivate.
14290
14291         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
14292         gdk_cursor_new().
14293
14294         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
14295         (private data member in the GObject). 
14296         (xdnd_manager_source_filter): Function had broken 
14297         error handling, fix it (use gdk_error_trap_push).
14298
14299         * gdk/x11/gdkdrawable-x11.c: This file now implements
14300         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
14301         base class is purely for the convenience of the X port,
14302         and not part of the interface to cross-platform GDK.
14303
14304         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
14305         
14306         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
14307         specific to X, and returned by the create_gc virtual method
14308         of GdkDrawableImplX11. 
14309         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
14310         rather than gchar, this was also changed in the GdkGC vtable.
14311         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
14312         mask is 0, return immediately, instead of checking every flag.
14313         This is faster, and keeps us from segfaulting if values is NULL
14314         and the mask contains some nonzero flags.
14315
14316         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
14317         GdkWindow.
14318
14319         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
14320         GdkWindowPrivate is gone.
14321
14322         * gdk/x11/gdkim-x11.c: rename things that got renamed.
14323
14324         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
14325         remove the image_put stuff that got transferred to GdkDrawable.
14326         
14327         * gdk/x11/gdkinput.c: renamings
14328
14329         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
14330
14331         * gdk/x11/gdkpixmap-x11.c: GObject conversion
14332
14333         * gdk/x11/gdkprivate-x11.h: indentation fixes
14334
14335         * gdk/x11/gdkproperty-x11.c: renamings
14336
14337         * gdk/x11/gdkselection-x11.c: renamings
14338
14339         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
14340         implements the platform-specific "impl" object.
14341         Moved gdk_window_get_children to gdk/gdkwindow.c
14342
14343         * gdk/x11/gdkx.h: Remove all the private structs and private datas
14344         that no longer exist. Add declaration of GdkGCX11 object here.
14345         Fix all the macros to still work. 
14346
14347         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
14348         GdkDragContext from the boxed types since they are now GObjects.
14349
14350         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
14351         moved xthickness/ythickness into the instance. GtkStyleClass
14352         functions are now in the standard vtable for GtkStyle, so you have
14353         to create a GObject subclass to write a theme engine.
14354         (gtk_style_copy): fixed a leaked PangoFontDescription
14355         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
14356         can be the standard GObject function.
14357         
14358         * Throughout GTK:
14359         s/style->klass->[xy]thickness/style->[xy]thickness
14360         s/pango_layout_unref/g_object_unref/
14361
14362         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
14363         
14364         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
14365         accessing GDK internals.
14366
14367         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
14368         accessing GDK internals.
14369
14370 2000-06-18  Elliot Lee  <sopwith@redhat.com>
14371
14372         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
14373
14374         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
14375         problem by calculating event position relative to the trough
14376         rather than the slider.
14377         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
14378
14379         * gdk/gdkgc.h: Add GDK_NOR.
14380
14381         * configure.in, Makefile.am: Add modules top level dir
14382         * configure.in: Only use pangox library if building x11 target.
14383         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
14384
14385 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14386
14387         * gtk/gtkcolorsel.c: Change private class member to be named
14388         private_data throughout the file.
14389
14390         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
14391         private_data to avoid clashing with keyword.
14392
14393 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
14394
14395         * gdk/gdkdnd.h: Add comment to remove warning.
14396
14397 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
14398
14399         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
14400         Byelorussian language; changed the Makefile and file names 
14401         to reflect that.
14402
14403 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
14404
14405         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
14406         rather than gdk_window_hide; this makes things work
14407         correctly if the window is programmatically hidden while
14408         iconified.
14409
14410 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
14411
14412         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
14413         cut and paste typo where wrong pixmap was being
14414         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
14415
14416 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
14417
14418         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
14419         Add helper function to compute format / bytes 
14420         relationship. Use in a couple places to fix up
14421         errors which assume 8 * format.
14422
14423         * gtk/gtkselection.c (gtk_selection_request): Use 32
14424         rather than 8 * sizeof (GdkAtom), to work correctly
14425         on Alpha.
14426
14427 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
14428
14429         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
14430         libgtk.la
14431         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
14432         versions
14433
14434         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
14435         checking macros return NULL since the function has a return value.
14436
14437 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
14438
14439         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
14440         GTK+ from building at all.
14441
14442         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
14443
14444 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
14445
14446         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
14447         gtk/Makefile.am: make it possible to configure gtk for different
14448         targets on the same platform. The library name is now 
14449         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
14450         flag. Only the x11 target compiles right now.
14451         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
14452         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
14453         * gdk/nanox/gdk*generic*: delete generic region code.
14454         * gdk/linux-fb/gdk*generic*: delete generic region code.
14455         * README.nanox: update information.
14456         
14457 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
14458
14459         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
14460         prepend not append. (Pointed out by Brett Hall.)
14461
14462 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
14463
14464         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
14465
14466 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
14467
14468         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
14469         need this later, and this makes sure that the atexit for
14470         glib gets called after that for GDK, so atexits are
14471         properly ordered for object leak checking.
14472
14473         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
14474
14475         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
14476         pango_x_shutdown_display()
14477
14478         * gtk/simple.c (main): Close window on destroy.
14479
14480 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
14481
14482         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
14483         to treat initial creation different from setting with 
14484         regards to the graphics-exposures parameter, so add a parameter
14485         indicating whether this is initial or not.
14486
14487 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
14488
14489         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
14490         to sort of work by adding an extra return_exposes arg
14491         to gdk_event_translate() - it might be better to simply
14492         deprecate the function altogether and force people to rewrite
14493         without it. gdk_window_scroll() handles most of it, and where
14494         gdk_window_scroll() doesn't work, simply redrawing more does.
14495
14496         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
14497         assertion.
14498
14499         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
14500
14501         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
14502         bunch of pretty much useless /* Print debugging info */ comments 
14503         which had drifted away from the code they were commenting.
14504
14505 2000-06-02  Havoc Pennington  <hp@pobox.com>
14506
14507         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
14508         is in working order.
14509         
14510         * gtk/testtext.c: Change to reflect anonymous mark API
14511
14512         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
14513
14514         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
14515         field, which was unused.
14516
14517         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
14518         saves some typing.
14519
14520         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
14521
14522         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
14523         flag on the insertion point and selection bound
14524
14525         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
14526         make mark-manipulation functions take a GtkTextMark* instead of a
14527         mark name.
14528         
14529         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
14530         GtkTextMarkBody; will be used to detect attempts to delete
14531         the permanent marks (insert and selection bound)
14532
14533         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
14534
14535 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
14536
14537         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
14538         flag to on.
14539
14540         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
14541         Honor DOUBLE_BUFFRED_FLAG
14542
14543         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
14544         function to set the DOUBLE_BUFFERED flag.
14545
14546         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
14547         or not exposes done on the widget should be double-buffered.
14548
14549         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
14550         to be what would be expected. (Fixes problem with a
14551         g_return_if_fail() validating a TextDirection enumeration)
14552
14553 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
14554
14555         * gtk/gtkwidget.c: Remove all references to 
14556         offscreen flag which was no longer used.
14557
14558         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
14559
14560         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
14561         for non-null label_widget->parent.
14562
14563         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
14564         which no longer was used.
14565
14566         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
14567
14568         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
14569         for null arguments.
14570
14571         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
14572         check for destroyed windows.
14573
14574 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
14575
14576         * gtk/gtkimmulticontext.c: Add a finalize method and unref
14577         the slave context there.
14578
14579         * gtk/gtkinvisible.[ch]: Make reference counting behavior
14580         identical to GtkWindow.
14581
14582 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
14583
14584         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
14585         pangox to here, so we can write them independent of rendering
14586         system, using GDK primitives.
14587
14588         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
14589         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
14590         since we have a rendering-system independent implementation in
14591         terms of draw_glyphs().
14592         
14593         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
14594         function to render a single line.
14595
14596         * gdk/x11/gdkpango.c: Move the guts of this file mostly
14597         into ../gdkpango.c, which simplifies things, since we
14598         don't have to deal with raw X gc's.
14599
14600 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
14601
14602         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
14603         get the logical attributes for a given GtkTextLine.
14604
14605 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
14606
14607         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
14608         g_locale_get_codeset() to g_get_codeset() change.
14609
14610 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
14611
14612         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
14613         descriptions.
14614
14615         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
14616         the entry.
14617
14618         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
14619         redoing (vastly simplifying) for Pango. Still needs quite
14620         a bit of work. (Size selection is currently poor. List of 
14621         predefined sizes is not a good idea, since all of these
14622         sizes won't necessarily be distinct.)
14623
14624 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
14625
14626         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
14627         CODESET results for LANG=C.
14628
14629 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
14630
14631         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
14632         which takes a stringized pango font description;
14633         ignore the older 'font' and 'fontset' declarations.
14634
14635         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
14636         field with a GdkFont derived via gdk_font_from_description(),
14637         for compatibility. (Should we just remove it entirely?
14638         Probably too much compatibility breakage, but people
14639         should be migrating to the new Pango stuff as quickly
14640         as possible.)
14641
14642 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
14643
14644         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
14645
14646 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
14647
14648         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
14649         redoing; there are some bugs in size allocation right
14650         now, the semi-existant distinction between header / day
14651         fonts was removed, but, with Pango, could actually
14652         be made functional in a nice way.
14653         
14654         * gtk/testcalender: Move calender from examples into this
14655         directory as a test program. (We really need to restrcture
14656         testgtk into a whole directory full of tests for every
14657         widget or functionality group, separated into multiple .c
14658         files.)
14659
14660 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
14661
14662         * gtk/testgtk.c (file_exists): Fix stupid typo that
14663         was keeping RC file from being loaded.
14664
14665         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
14666         RC file font code.
14667
14668 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
14669
14670         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
14671         Add function to load a GdkFont from a PangoFontDescription.
14672
14673 2000-05-29  Tor Lillqvist  <tml@iki.fi>
14674
14675         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
14676         variable should be of type GdkEventPrivate.
14677
14678 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
14679
14680         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
14681         to have any widget for the label, use a GtkLabel widget
14682         to display the text. (Based partially on a patch from
14683         Anders Carlson.)
14684
14685         (Quite a bit of code reorganization - strip 90% of the
14686         guts out of gtkaspectframe and add a single virtual
14687         func to GtkFrameClass - compute_child_allocation.)
14688
14689 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
14690
14691         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
14692         (Removed clist->row_center_offset field because caching
14693         it wasn't saving time or code, added private function
14694         _gtk_clist_create_cell_layout()).
14695
14696 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
14697
14698         * gtk/gtkaccellabel.c: Pangoized.
14699
14700         * gtk/[hv]ruler.c: Pangoized
14701
14702 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
14703
14704         * gtk/gtkfilesel.c (gtk_file_selection_init):
14705         Use gtk_clist_set_column_auto_resize() to remove need
14706         need for manual column width computations.
14707
14708 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
14709
14710         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
14711         ensuring Pango correctness, and considerably simplifying the
14712         code.
14713         
14714         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
14715
14716         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
14717         getting of numbers of lines.
14718
14719         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
14720         to the actual requested width of the lable, not to the wrap
14721         width we set.
14722
14723         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
14724
14725         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
14726           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
14727
14728         * gtk/gtktextview.c: Fix structure inheritance.
14729
14730         * gtk/gtkprogressbar.c: Pangoize.
14731
14732 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
14733
14734         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
14735         in a function.
14736
14737         * gtk/gtktextlayout.c (find_display_line_above): Fixed
14738         bug with computing line tops.
14739
14740         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
14741
14742 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
14743
14744         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
14745         and y_offset coordinates to do what we need now. (The offset between
14746         buffer and layout coordinates has been reintroduced, but is a 
14747         bit different than before.)
14748
14749         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
14750         handle the adjustments ourselves, and scroll as necessary using
14751         the new gdk_window_scroll().
14752         
14753         The advantage of this is that when we are incrementally revalidating,
14754         we are essentially rearranging things around the visible portion
14755         of the screen. With the old setup, the visible portion of the
14756         screen was moved around in the layout, so scrolling and redrawing
14757         to track that caused jumping of the display. Since we now
14758         control the scrolling ourselves, we can suppress this and
14759         only redraw when things actually change.
14760
14761 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
14762
14763         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
14764         the region not just redisplay it after-all, since we store the
14765         cursors in the LineDisplay. (Ugly interactions here between
14766         GtkLayout and GtkTextBTree here.)
14767         
14768         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
14769
14770 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
14771
14772         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
14773         Added function to scroll contents of a window while keeping the
14774         window constant. Works by XCopyArea or guffaw-scrolling depending
14775         on the details of how the window is set up. (guffaw-scrolling
14776         still needs to be filled in.)
14777
14778 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
14779
14780         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
14781         move the debugging that was tied to a global variable
14782         to that.
14783
14784         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
14785
14786         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
14787         validated flag, in line data instead of setting height/width to
14788         -1. This allows us to perform operations with partially invalid
14789         buffer (using the old size for invalid lines) and thus to do
14790         incremental vaidation. Keep height/width aggregates up to date
14791         when deleting text and rebalancing the tree.
14792
14793         * gtk/gtktextbtree.[ch]: Add functions validate a line
14794         (gtk_text_btree_validate_line), and to validate up
14795         to a number of pixels (gtk_text_btree_validate).
14796
14797         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
14798         that indicates that something is changed and a revalidation
14799         pass is needed. Change ::need_repaint to ::changed, and
14800         make it take old and new yranges instead of a rectangle.
14801
14802         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
14803         the line_data_destroy() function from 
14804         gtk_text_btree_add_view() to a virtual function in 
14805         GtkTextLayout
14806
14807         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
14808         since we are handling partial repaints in a different fashion
14809         now.
14810
14811         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
14812         of the selection instead of queueing a repaint on the
14813         entire widget.
14814
14815         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
14816         get_selection_bounds() down to btree, make the function
14817         in buffer a wrapper around the btree function.
14818
14819         * gtk/gtktextlayout.[ch]: Add functions to check if the
14820         layout is valid and to recompute either a range of pixels
14821         aroudn a line or a certain total number of pixels.
14822
14823         * gtk/gtktextlayout.[ch]: Cache a single line display;
14824         now that we only redraw the needed portions, the hit rate
14825         for this cache is quite high.
14826         
14827         * gtk/gtktextview.[ch]: Keep track of the first paragraph
14828         on the screen so that when re-laying-out the buffer, we can
14829         keep the same place. This requires connecting to ::value_changed
14830         on the adjustments
14831
14832         * gtk/gtktextview.[ch]: Add idle functions to revalidate
14833         the buffer after we receive an ::invalidated signal.
14834         
14835 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
14836
14837         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
14838         to max of allocation and layout size, not just to the
14839         layout size.
14840
14841         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
14842         Invalidate window so it gets redrawn properly.
14843
14844         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
14845         to mean the entire window.
14846
14847         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
14848         into public header.
14849
14850 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
14851
14852         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
14853         to get the name of a mark.
14854
14855         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
14856         to find the paragraph from a y position.
14857
14858 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
14859
14860         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
14861         nodes have width/height >= 0, not > 0.
14862
14863 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
14864
14865         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
14866         Add a size_only flag, so when we only need the size, we don't create
14867         useless appearance attributes.
14868
14869         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
14870         duplicate setting of font description.
14871
14872         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
14873
14874 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
14875
14876         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
14877         EXTRA_DIST. It does not work well when the file that
14878         everything depends on is not in the tarball.
14879
14880 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
14881
14882         * gtk/testgtk.c: Some hacks and fixes so that it basically
14883         works when not sitting in the GTK+ build tree.
14884
14885 2000-05-03  Havoc Pennington  <hp@redhat.com>
14886
14887         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14888         Properly determine the ordering of the tag root and the current
14889         line within the tree. Previous algorithm only worked if the tag
14890         root's immediate parent was the common root of both the current
14891         line and the tag root.
14892
14893 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
14894
14895         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
14896         alignment.
14897
14898         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
14899         the widget text directional dynamically.
14900
14901         * gtk/gtktextview.[ch]: Added functions to get and set default
14902         wrap mode.
14903
14904 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
14905
14906         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
14907         in cursor location computation.
14908
14909 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
14910
14911         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
14912         vadjusment values properly when layout gets smaller.
14913
14914         * gtk/gtktextview.c (need_repaint_handler): Areas being
14915         passed in are far completely inaccurate, and sometimes
14916         too small, so, for now, just queue a redraw on the
14917         whole visible region.
14918
14919 2000-04-25  Havoc Pennington  <hp@redhat.com>
14920
14921         * gtk/gtktextbtree.c (summary_destroy): new function to 
14922         destroy tag summary nodes
14923         (gtk_text_line_next_could_contain_tag): this function was 
14924         totally broken if the line passed in wasn't below the tag
14925         root. Fix it.
14926         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
14927         "wildcard" case, we have to do a linear scan. Blah.
14928         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
14929         we have to do the linear scan
14930         (tag_removed_cb): When a tag is removed from the tag table, 
14931         remove the GtkTextTagInfo node from the btree.
14932         (gtk_text_btree_spew): Implement the spew function, for 
14933         our debugging pleasure.
14934
14935 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
14936
14937         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
14938         a problem with referring to the wrong buffer.
14939
14940         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
14941
14942         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
14943         font description to gtk_style_new() - otherwise things
14944         don't work without a .gtkrc file.
14945
14946         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
14947         tags table if we create it ourself, too.
14948
14949         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
14950         it was conflicting with XKB modifiers.
14951
14952         * gtk/gtktextview.[ch]: Add simple support for 
14953         GtkIMContext.
14954
14955 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
14956
14957         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
14958         with deletion from last commit.
14959
14960 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
14961
14962         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
14963         in the context from the current locale.
14964         
14965         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
14966         context, not hardcoded value.
14967
14968         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
14969         not logical.
14970
14971 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
14972
14973         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
14974         attributes - that doesn't handle partial-glyph selection
14975         properly. Instead use new pango_layout_line_get_x_ranges()
14976         functionality to draw the selection.
14977
14978         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
14979         now properly handles out-of-range coordinates.
14980
14981         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
14982
14983         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
14984         public.
14985
14986         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
14987         for paragraphs opposite to the base direction of the widget.
14988
14989         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
14990
14991         * gtk/gtktextlayout.c: Don't split segments on marks, since that
14992         causes Arabic words to reshape as you cursor through.
14993
14994         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
14995         cursor position when moving vertically with the arrow keys and
14996         scrolling with page-up/page-down. (Arrow keys save only the X,
14997         scrolling saves both X and Y.)
14998
14999         This means you can line-up / line-down or page-up / page-down
15000         without losing your place, and also that moving vertically
15001         with the cursor keys keeps the same X position, not the same
15002         character count:
15003
15004         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
15005         arrow keys move by display lines, not paragraphs.
15006
15007 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15008
15009         * gtk/gtklayout.c: Make sure that the bin window is at least
15010         as big as the allocation. (Should we also make sure that the
15011         bin window is big enough to completely cover widget->window?)
15012
15013         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
15014         function to get the onscreen rectangle.
15015
15016         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
15017         for offsets in window coordinates.
15018
15019 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
15020
15021         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
15022         confusion.
15023
15024         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
15025         from the widget direction.
15026
15027         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
15028         Add a "direction" attribute.
15029
15030         * gtk/gtktextview.c: global s/tkxt/text_view/.
15031
15032         * gtk/testtext.c: Added long block of text in Arabic, to test out
15033         the direction attributes. (Some problems with the shaping system
15034         for arabic become obvious - like the fact the cursor splits words
15035         into unjoined pieces.)
15036
15037 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
15038
15039         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
15040
15041         * gtk/gtktextlayout.c: Fix up alignment.
15042
15043         * gtk/testtext.c: Add some tests for centering, wrapping.
15044
15045 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
15046
15047         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15048         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
15049         If we wrote GTK+-specific layout-render function this could just replace
15050         the draw_layout() operation in the vtable.
15051
15052         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
15053         pango_layout_get_cursor_pos() and use that function.
15054
15055         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
15056         is a non-static symbol.
15057
15058         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
15059         with gtk_text_btree_find_line_by_y()
15060
15061         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
15062         renderer that handles GtkTextAppearance attributes.
15063
15064         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
15065
15066           - Move the values in the style that don't affect geometry into a
15067             GtkTextAppearance structure.
15068           - Change underline to take a PangoUnderline and "font" a string
15069             representation of a font description
15070           - Add a "font_desc" attribute which takes a FontDescription structure.
15071
15072         * gtk/gtktextlayout.[ch]:
15073
15074           - Get rid of the display-line list per each line. Instead, we
15075             generate, on demand, a GtkTextLineDisplay structure which]
15076             contains a PangoLayout * and other necesary information
15077             (offsets, cursor locations) for displaying a paragraph.
15078           - Get rid of the code to wrap lines, create display chunks,
15079             etc. Instead, we just go through a paragraph and convert
15080             it into the necessary inputs to a PangoLayout.
15081           - Implement a new attribute type, GtkTextAttrAppearance. This
15082             holds a GtkTextAppearance, and is used to pass colors, 
15083             stipple, etc, through from the layout to the display without
15084             having to use lots and lots of individual attributes.
15085           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
15086             in terms of PangoLayout functions.
15087         
15088         * gtk/gtktextview.c: 
15089          
15090           - Handle passing the necessary PangoContext to the layout
15091           - Some fixups in painting to deal with the automatic backing store
15092             and offsetting of GTK+-1.4
15093           - Add a style_set handler so that the default style reacts
15094             properly to theme changes.
15095         
15096         * gtk/gtktext?*.[ch]: Random code-style fixes.
15097
15098         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
15099
15100 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
15101
15102         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
15103         in original form preparatory to Pango-ization and gdkimcontext-ization.
15104
15105 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
15106
15107         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
15108         so that we can derive from gtkimcontext in language bindings properly.
15109
15110 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
15111
15112         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
15113         Add a compose table including (almost) all the compose combinations
15114         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
15115         data in the XIM implementation.
15116
15117         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
15118         Moved functions to convert keyvalues from and to unicode here from
15119         the win32 port and made them public.
15120
15121 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
15122
15123         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
15124
15125 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
15126
15127         * gtk/gtkimcontext.[ch]: Base class for new input context system
15128
15129         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
15130         the real input context implementation to be loaded from modules
15131         and switched on the fly.
15132
15133         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
15134         context that just does direct keysymbol => unicode translation.
15135
15136         * gtk/gtkentry.[ch]: Start switching editing over to using
15137         GtkInputContext. (No handling of preedit yet.)
15138
15139 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
15140
15141         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
15142         many substitutions. (klass should not be subsituted.)
15143
15144 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
15145
15146         * configure.in: Add checks for Pango
15147
15148         * configure.in docs/Makefile.am: Add test for sgml2html
15149         and allow 'make dist' without building html, but print out
15150         warnings in that case. (For making snapshots)
15151
15152         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
15153         Add Pango libraries and C flags
15154
15155         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
15156         Add function (gdk_draw_layout) to draw a pango layout.
15157
15158         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
15159         for getting Pango contexts for GDK.
15160
15161         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
15162
15163         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
15164         editing.
15165
15166         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
15167         keysym => unicode translations. More languages can be added
15168         here, but real input-method support is needed.
15169
15170         * docs/Changes-1.4.txt: Added note about entry behavior.
15171         
15172         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
15173         to set the reading direction for a widget and the global direction.
15174         Add test which allows toggling the global direction. Two private
15175         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
15176
15177         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
15178           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
15179
15180         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
15181
15182         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
15183         underlining now handled by Pango.
15184
15185         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
15186         to RCStyle and Style. (Having both this and the old font name and GdkFont 
15187         is temporary.)
15188
15189         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
15190         convenience functions for creating contexts and layouts for widgets.
15191
15192         * gtk/testgtk.c: Enhance label tests with multilingual labels.
15193
15194 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
15195
15196         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
15197         titles to be active, even if they aren't visible.
15198         (gtk_clist_column_titles_passive):  Ditto.
15199
15200 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
15201
15202         * gtkmenu.c:
15203         * gtkmenu.h:
15204         * gtktypeutils.h: Spelling/grammar fixes in comments.
15205
15206 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
15207
15208         * gdk/nanox/*.h: add missing header files.
15209
15210 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
15211
15212         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
15213         send_event to TRUE.
15214         (gtk_drawing_area_size): queue a resize.
15215
15216 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
15217
15218         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
15219         the handlers, also invalidate them. bug nailed down by Karl Nelson
15220         <kenelson@ece.ucdavis.edu>.
15221
15222 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
15223
15224         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
15225         "(nil)" foundries, patch from Grigorios Magklis.
15226
15227         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
15228         on non-available fonts, based on a patch by Grigorios Magklis
15229         <maglis@cs.rochester.edu>.
15230
15231 2000-05-18  Elliot Lee  <sopwith@redhat.com>
15232
15233         * gdk/x11/gdkregion-generic.c: If a region does not have any
15234         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
15235         instead of GDK_OVERLAP_RECTANGLE_IN.
15236
15237 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
15238
15239         * gtk/gtklayout.c (gtk_layout_map): Remove references to
15240         OFFSCREEN, as it is no longer necessary.
15241
15242 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
15243
15244         * gtk/gtkcolorsel.c: Patch from David Santiago
15245         <mrcooger@cyberverse.com> to change things so that the 
15246         indicator of the active palette entry is done independently,
15247         not via the focus, since it should always be visible.
15248
15249 2000-05-17  Tor Lillqvist  <tml@iki.fi>
15250
15251         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
15252         refcount leaks as in the X11 backend.
15253
15254         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
15255         cosmetics.
15256
15257         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
15258         backend. Add _gdk_windowing_window_destroy().
15259
15260         * gtk/gtkcolorsel.c: Include correct backend-specific header.
15261         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
15262         either, but these probably do exist on nanox?)
15263         
15264         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
15265         which isn't necessarily defined by <math.h>.
15266
15267         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
15268         ancestry past GtkObject.
15269
15270         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
15271         from DLL on Win32.
15272
15273         * gtk/gtk.def: Update corresponding to recent changes.
15274
15275         * gtk/makefile.{cygwin,msc}: Updates.
15276
15277 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
15278
15279         * docs/Changes-1.4.txt: A bit of editing.
15280
15281         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
15282         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
15283         to clear the update area for the window, and clear it
15284         when hiding a window.
15285
15286         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
15287         if window destroyed.
15288
15289         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
15290
15291         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
15292         gdk_window_destroy() to the generic code, since there was a lot of 
15293         window-system-independent logic it in. Add a function:
15294         
15295          _gdk_window_destroy() 
15296
15297         to the internal API to destroy a window without unreferencing it.
15298         Add a function:
15299
15300          _gdk_windowing_window_destroy()
15301
15302         That does the windowing-system-dependent part of destroying 
15303         the window.
15304
15305 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
15306
15307         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
15308
15309 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
15310
15311         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
15312         Make gtk_widget_shape_combine_mask() keep a reference count on
15313         the pixmap since it keeps it around.
15314
15315 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
15316
15317         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
15318         leak.
15319
15320         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
15321         leak with event filters.
15322
15323 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
15324
15325         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
15326         signal handlers with the right data arguments. (Fixes
15327         some warnings when a widget was repeatedly set as a drag
15328         destination.)
15329
15330         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
15331         window so we can avoid avoid setting the DND properties on the
15332         toplevel window repeatedly.
15333
15334 2000-05-13  Tor Lillqvist  <tml@iki.fi>
15335
15336         * gdk/win32/gdkwin32.h: Define more message types missing from
15337         mingw headers.
15338
15339         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
15340         call gdk_window_destroy_notify(). It was never called. This
15341         probably meant that the GdkWindow was never freed. Thanks Owen for
15342         noticing (!).
15343
15344         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
15345         window as destroyed before calling DestroyWindow(). DestroyWindow()
15346         causes a call to the window procedure (gdk_WindowProc), which
15347         calls gdk_event_translate(), which calls
15348         gdk_window_destroy_notify(), which gets confused unless the window
15349         is set as destroyed.
15350
15351         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
15352         this function to indicate it's win32 only. Put inside #ifdef
15353         G_ENABLE_DEBUG.
15354
15355         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
15356         debugging function. (gdk_event_translate:) Add a default branch
15357         that uses the above function to print debug messages with all
15358         Windows messages symbolically.
15359
15360         * gdk/win32/gdkprivate-win32.h: Declare it, and
15361         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
15362
15363 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
15364
15365         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
15366         public header file.
15367
15368 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
15369
15370         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
15371
15372         * gtk/gtktext.c: made the adjustments no-construct args, simply
15373         provide default adjustments.
15374         (gtk_text_destroy): release adjustments.
15375
15376         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
15377         adjustment argument non-construct.
15378
15379         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
15380         instead of in finalize.
15381         (gtk_progress_get_text_from_value): 
15382         (gtk_progress_get_current_text): 
15383         (gtk_progress_set_value): 
15384         (gtk_progress_get_percentage_from_value): 
15385         (gtk_progress_get_current_percentage): 
15386         (gtk_progress_set_percentage): 
15387         (gtk_progress_configure): ensure an adjustment is present.
15388
15389 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
15390
15391         * gtk/gtkcolorsel.[hc]:
15392         * gtk/gtkcolorseldialog.[hc]:
15393         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
15394         their parent implementation, use bit fields for boolean values, don't
15395         create unused widgets, usage of glib types, braces go on their own
15396         lines, function argument alignment, #include directives etc. etc. etc..
15397
15398         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
15399
15400 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
15401
15402         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
15403
15404         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
15405         of NULL.
15406
15407         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
15408         to freed data.
15409         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
15410
15411         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
15412         to NULL when the toplevel is getting destroyed.
15413         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
15414         (gtk_menu_destroy): 
15415         (gtk_menu_init): store the information of whether we have to
15416         readd the initial child ref_count during destruction in a new
15417         GtkMenu field needs_destruction_ref_count.
15418
15419         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
15420         here, those reading: learn from my mistake! ;)
15421         in order for set_?adjustment to support a default adjustemnt if
15422         invoked with an adjustment pointer of NULL, the code read (pseudo):
15423         if (v->adjustment) unref (v->adjustment);
15424         if (!adjustment) adjustment = adjustment_new ();
15425         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
15426         now imagine the first unref to actually free the old adjustment and
15427         adjustment_new() creating a new adjustment from the very same memory
15428         portion. here, the latter comparision will unintendedly fail, and
15429         all hell breaks loose.
15430         (gtk_viewport_set_hadjustment):
15431         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
15432         after unreferencing it.
15433
15434         * gtk/gtkcontainer.[hc]: removed toplevel registration
15435         functions: gtk_container_register_toplevel(),
15436         gtk_container_unregister_toplevel() and
15437         gtk_container_get_toplevels() which had wrong semantics
15438         anyways: it didn't reference and copy the list.
15439
15440         * gtk/gtkwindow.c: we take over the container toplevel registration
15441         bussiness now. windows are registered across multiple destructions,
15442         untill they are finalized. the initial implicit reference count
15443         users are holding on windows is removed with the first destruction
15444         though.
15445         (gtk_window_init): ref & sink and set has_user_ref_count, got
15446         rid of gtk_container_register_toplevel() call. add window to
15447         toplevel_list.
15448         (gtk_window_destroy): unref the window if has_user_ref_count
15449         is still set, got rid of call to
15450         gtk_container_unregister_toplevel().
15451         (gtk_window_finalize): remove window from toplevel list.
15452         (gtk_window_list_toplevels): new function to return a newly
15453         created list with referenced toplevels.
15454         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
15455
15456         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
15457         adjustment a non-construct arg.
15458         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
15459         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
15460         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
15461
15462         * gtk/gtkrange.c: added some realized checks.
15463         (gtk_range_destroy): get rid of the h/v adjustments in the
15464         destroy handler instead of finalize. remove timer.
15465         (gtk_range_get_adjustment): demand create adjustment.
15466
15467         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
15468         we simply create them on demand now and get rid of them in
15469         the destroy handler.
15470         (gtk_viewport_destroy): get rid of the h/v adjustments in the
15471         destroy handler instead of finalize.
15472         (gtk_viewport_get_hadjustment): 
15473         (gtk_viewport_get_vadjustment): 
15474         (gtk_viewport_size_allocate): demand create h/v adjustment
15475         if required.
15476
15477         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
15478         gtk_widget_real_destroy () functionality.
15479         (gtk_widget_real_destroy): reinitialize with a new style, instead
15480         of setting widget->style to NULL.
15481
15482 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
15483
15484         * gtk/gtkcalendar.c:
15485         * gtk/gtkbutton.c: ported _get_type() implementation over to
15486         GType, either to preserve memchunks allocation facilities,
15487         or because Gtk+ 1.0 GtkTypeInfo was still being used.
15488
15489         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
15490         over. prepare for ::destroy to be emitted multiple times.
15491         removed reference tracer magic. chain into GObjectClass.shutdown()
15492         to emit ::destroy signal.
15493
15494         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
15495         fundamental.
15496
15497         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
15498         cludge.
15499
15500         * gtk/gtksocket.c:
15501         * gtk/gtkplug.c:
15502         * gtk/gtklayout.c:
15503         * gtk/gtklabel.c:
15504         * gtk/gtkargcollector.c:
15505         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
15506         not being a fundamental anymore, and to work with the new
15507         type system (nuked fundamental type varargs clutter).
15508
15509         * gtk/*.c: install finalize handlers in the GObjectClass
15510         part of the class structure.
15511         changed direct GTK_OBJECT()->klass accesses to
15512         GTK_*_GET_CLASS().
15513         changed direct object_class->type accesses to GTK_CLASS_TYPE().
15514
15515         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
15516         GType. made most of the GTK_*() type macros and Gtk* typedefs
15517         simple wrappers around macros and types provided by GType.
15518         most notably, a significant portion of the old API vanished:
15519         GTK_TYPE_MAKE(),
15520         GTK_TYPE_SEQNO(),
15521         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
15522         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
15523         GTK_TYPE_ARGS,
15524         GTK_TYPE_CALLBACK,
15525         GTK_TYPE_C_CALLBACK,
15526         GTK_TYPE_FOREIGN,
15527         GtkTypeQuery,
15528         gtk_type_query(),
15529         gtk_type_set_varargs_type(),
15530         gtk_type_get_varargs_type(),
15531         gtk_type_check_object_cast(),
15532         gtk_type_check_class_cast(),
15533         gtk_type_describe_tree(),
15534         gtk_type_describe_heritage(),
15535         gtk_type_free(),
15536         gtk_type_children_types(),
15537         gtk_type_set_chunk_alloc(),
15538         gtk_type_register_enum(),
15539         gtk_type_register_flags(),
15540         gtk_type_parent_class().
15541         replacements, where available are described in ../docs/Changes-1.4.txt.
15542         implemented compatibility functions for the remaining API.
15543
15544         * configure.in: depend on glib 1.3.1, use gobject module.
15545
15546 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
15547
15548         * TODO.xml: Various updates to current status.
15549
15550 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
15551
15552         * gtk.m4: Print out version when test succeeds.
15553
15554 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
15555
15556         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
15557         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
15558         
15559         (Original triangle color selector from Simon Budig
15560         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
15561         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
15562         Santiago <mrcooger@cyberverse.com>)
15563
15564         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
15565         out into a separate widget.
15566
15567         * gtk/testgtk.c: Add some checkbuttons for toggling palette
15568         and opacity controls.
15569
15570 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
15571
15572         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
15573         snuck in prematurely.
15574
15575 2000-05-07  Tor Lillqvist  <tml@iki.fi>
15576
15577         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
15578         had deleted a ! operator by mistake, which caused
15579         GDK_SELECTION_CLEAR events never to be generated, which caused
15580         only the first copy to the clipboard from an gtkeditable to
15581         actually cause a copy to the Windows clipboard.
15582
15583 2000-05-06  Tor Lillqvist  <tml@iki.fi>
15584
15585         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
15586         compilation, too. Current mingw gcc distributions include the
15587         necessary headers. Also the necessary IIDs are now in mingw
15588         headers/libraries, and own definitions unnecessary.
15589
15590         More hacking on OLE2 DND, still doesn't work though, and thus
15591         ifdeffed out.
15592
15593         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
15594         here, too.
15595
15596 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
15597
15598         * gdk/nanox/*: nano-X port work in progress.
15599         * gdk/simple.c: simple test for Gdk.
15600         * README.nanox: notes about the port: read this first!
15601         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
15602         with nano-X.
15603
15604 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
15605
15606         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
15607         gdk_window_clear() into common code, implement in terms of
15608         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
15609         not redirected to the backing rectangle.
15610
15611 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
15612
15613         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
15614         EXTRA_DIST. It does not work well when the file that
15615         everything depends on is not in the tarball.
15616
15617 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
15618
15619         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
15620         with recursion where process_updates() is called from
15621         an expose handler. (GtkTextView is highly broken in
15622         doing this, but it should work, so it is a nice test
15623         case.)
15624
15625 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15626
15627         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
15628         handle the case where updates are queued during processing of
15629         updates.
15630
15631 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
15632
15633         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
15634         window is on gdk_display - use that instead of segfaulting.
15635
15636 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
15637
15638         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
15639         broken and require an empty arg, give it to them.
15640
15641 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
15642
15643         * gtk/gtklabel.h: indentation fixes.
15644
15645 2000-05-02  Tor Lillqvist  <tml@iki.fi>
15646
15647         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
15648         draw too narrow or too low arcs, they seem to fail, at least with
15649         some display drivers.
15650
15651         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
15652
15653         Large changes to the Win32 backend, partially made necessary by
15654         the changes to the backend-independent internal
15655         structures. Attempts to implement similar backing store stuff as
15656         on X11. The current (CVS) version of the Win32 backend is *not* as
15657         stable as it was before the no-flicker branch was merged. A
15658         zipfile with that version is available from
15659         http://www.gimp.org/win32/. That should be use by "production"
15660         code until this CVS version is usable. (But note, the Win32
15661         backend has never been claimed to be "production quality".)
15662
15663         * README.win32: Add the above comment about versions.
15664
15665         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
15666
15667         * gdk/gdk.def: Update.
15668
15669         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
15670         presumably be replaced by some more better mechanism as 1.4 gets
15671         closer to release shape.
15672
15673         * gdk/makefile.{cygwin,msc}: Update.
15674
15675         * gdk/win32/*.c: Correct inclusions of the backend-specific and
15676         internal headers. Change code according to changes in these. Use
15677         gdk_drawable_*, not gdk_window_* where necessary.
15678
15679         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
15680         our old DND.
15681
15682         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
15683         to interpret single characters as UTF-8. Thanks to Hans Breuer.
15684         Use correct function name in warning messages.
15685
15686         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
15687         GSourceFuncs gdk_event_prepare and gdk_event_check.
15688         (gdk_event_get_graphics_expose): Do implement, use
15689         PeekMessage. Thanks to Hans Breuer.
15690         (event_mask_string): Debugging function to print an GdkEventMask.
15691         (gdk_pointer_grab): Use it.
15692
15693         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
15694         (old) book I used claimed was Hangul actually is CJK Unified
15695         Ideographs Extension A. Also, Hangul Syllables were missing.
15696         Improve logging.
15697
15698         * gdk/win32/gdkgc-win32.c: Largish changes.
15699
15700         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
15701         g_win32_getlocale() from GLib, and not setlocale() to get current
15702         locale name.
15703
15704         * gdk/win32/gdkprivate-win32.h
15705         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
15706         gdkwin32.h, similarily as in the X11 backend.
15707
15708         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
15709         assignment was used instead of equals in if test. Thanks to Hans
15710         Breuer.
15711
15712         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
15713         the X11 version.
15714
15715         * gdk/win32/makefile.{cygwin,msc}
15716         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
15717         path to the Win32 headers that works also with the mingw compiler.
15718
15719         * gtk/gtkstyle.c: Include <string.h>.
15720
15721 2000-04-26  Havoc Pennington  <hp@redhat.com>
15722
15723         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
15724         replacing the broken gtk_label_get ()
15725
15726 2000-04-15  Havoc Pennington  <hp@pobox.com>
15727
15728         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
15729         this keeps scanner scripts from getting confused.
15730
15731         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
15732         data, rather than void
15733
15734 2000-04-15  Tor Lillqvist  <tml@iki.fi>
15735
15736         * gtk/gtkclist.c (gtk_clist_motion)
15737         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
15738         with is_hint FALSE, get x and y from the event. They used to be
15739         used uninitialised. The Win32 backend never sends motion events
15740         marked as hints. This for instance fixes the annoying file and
15741         font selector behaviour in the Win32 version.
15742
15743 2000-04-14  Tor Lillqvist  <tml@iki.fi>
15744
15745         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
15746         gtk_private_n_signals variables, they are used by some software,
15747         sigh.
15748
15749         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
15750         installation directory from the Registry, where the installer
15751         should have put it.
15752
15753 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
15754
15755         * gdk/x11/Makefile.am: Fix problem with installation directory for
15756         gdkx.h
15757
15758         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
15759         <mrcooger@cyberverse.com> so that when selecting menus with the
15760         mouse, the first item will not be selected, but when selecting
15761         with an accelerator, or navigating left-right on a menubar with
15762         the menus popped up, the first item will be selected.
15763
15764 2000-04-05  Dan Damian  <dand@dnttm.ro>
15765
15766         * configure.in: Added "ro" to ALL_LINGUAS.
15767
15768 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
15769
15770         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
15771         indentation.
15772
15773         * Makefile.am (EXTRA_DIST): Fix typo.
15774
15775         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
15776         to catch gdkconfig.h
15777
15778         * gtk/gtkitemfactory.c: Added FIXME.
15779
15780 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
15781
15782         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
15783         s/return_if_fail/return_val_if_fail/g and add a return value.
15784
15785 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
15786
15787         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
15788         merge slipup.
15789
15790         * gdk/gdkinput.h: Fix missing line from merge.
15791
15792 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
15793
15794         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
15795         instead of gdkprivate.h.
15796
15797 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
15798
15799         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
15800         parent class to correctly be GtkDialogClass.
15801
15802 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
15803
15804         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
15805         toplevel windows and their immediate children by their parents,
15806         since the size of toplevel windows is out of our immediate
15807         control and we don't get any real benefit from trying to track
15808         this size for clipping.
15809
15810         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
15811         for input_only windows.
15812
15813         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
15814         to fix some hacks and make sure that we don't try to set the
15815         background of input only windows.
15816
15817 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
15818
15819         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
15820         the _really_ internal stuff, and leave gdkprivate.h for the fake private
15821         stuff that we've traditionally exposed.
15822
15823         * gdk/**.c: Use gdkinternals.h where appropriate.
15824
15825         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
15826         not include gdkprivate-x11.h, move all stuff of conceivable public
15827         interest into gdkx.h; keep all really private stuff in
15828         uninstalled header gdkprivate-x11.h.
15829
15830         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
15831         image->image_put on windows through a new function _gdk_window_draw_image()
15832         to allow us to do backing store for images. (Sort of ugly)
15833
15834         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
15835         contexts locally so that we can offset them properly when drawing 
15836         onto backing pixmaps.
15837
15838         * gdk/gdkinput.h: Reindented
15839
15840         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
15841         pixmap or color for the window, so we can properly initialize
15842         our double-buffer pixmaps, and also so that we temporarily set
15843         a background of None while scrolling.
15844
15845         * gdk/gdkregion.h: Revise region boolean operators to have an
15846         interface that is actually convenient - switch from creating new
15847         regions on every op, to "methods" that modify existing regions
15848         (A = A OP B). 3 argument forms which allow dest == src, would also
15849         be possible, but the current interfaces seem to map nicely
15850         onto what needs to be done. (There is quite a lot of region
15851         code in GDK now.)
15852
15853         * gdk/gdkregion.h: Add constructor from rectangle and a copy
15854         operator.
15855
15856         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
15857         gdkpoly-generic.h: Copy region code from Xlib, switch it over
15858         to 32 bit coordinates, modify it to be mostly GTK+ style
15859         and to have interfaces that match gdkregion.h.
15860
15861         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
15862         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
15863         create a backing pixmap and redirect all drawing to
15864         that backing pixmap until a matching gdk_window_end_paint().
15865
15866         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
15867         Create a special drawable class for GtkWindow's that 
15868         redirects the drawing to the backing pixmap as necessary
15869         and then calls the real operations in _gdk_windowing_window_class.
15870
15871         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
15872         Store invalid region for each window. Generate expose events for invalid
15873         region in an idle. This replaces both the expose compression
15874         and the redrawing queuing in GTK+. It is both more efficient and
15875         simpler than either one individually and far more so then the
15876         combination.
15877
15878         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
15879         Emulate 32 bit coordinates for windows with 16 bit coordinates
15880         by offsetting drawing, guffaw scrolling techniques and
15881         mapping/unmapping child windows as necessary.
15882
15883         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
15884         where, when invalid regions are processed, the region is stored,
15885         and if expose events come in that are detectably duplicate
15886         the processed exposes (by comparison of event serial numbers),
15887         the stored region is subtracted out of those exposes.
15888
15889         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
15890         regions newly exposed when scrolling or resizing windows.
15891         This, combined with forcing processesing of queued invalidated
15892         regions, gives nice flicker-free scrolling.
15893
15894         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
15895         invalidated regions after every scroll.
15896
15897         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
15898         emulation in GDK. Its, for all practical purposes just a
15899         GtkViewport/GtkFixed hybrid now.
15900
15901         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
15902         (16-bit) structures as necessary instead of just casting.
15903
15904         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
15905         in terms of the structures from gdkregion-generic.c, using appropriate
15906         offsets from GDK to X11 coordinates. Cache clip mask and
15907         origin and ts origin locally and only flush to the server
15908         when drawing, to avoid constantly setting and resetting these
15909         values when offsetting GC's for scrolling and backing pixmaps.
15910
15911         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
15912
15913         * gtk/gtkcontainer.c: Call process_all_updates at end
15914         of resizing to reduce flicker. (Avoids having redraw
15915         lag arbitrarily behind resize under some circumstances)
15916
15917         * gtk/gtkentry.c: Remove old backing store code, and simply take
15918         advantage of the new backing store capabilities of GDK.
15919
15920         * gtk/gtkmain.c: Simple implementation of widget backing
15921         store - simply push a paint while handling each expose.
15922         (Should really be configurable widget for widget.)
15923         
15924         * gtk/gtkwidget.c: Remove all the old complicated redraw
15925         code, and simply invalidate the GDK windows from
15926         gdk_window_queue_clear(), etc. (Sigh, so much carefully
15927         debugged complexity ... gone to the winds.)
15928
15929         Remove all the code for suppressing expose events while
15930         resizes are pending; this isn't needed since the invalid
15931         areas won't be processed until after the resizes are
15932         processed, since they are in a lower priority idle.
15933
15934 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
15935
15936         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
15937         and height of dest rectangle for non-intersecting rectangles.
15938
15939 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
15940
15941         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
15942         for GdkRectangle.
15943
15944 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
15945
15946         * gdk/gdk{events,image,private,types,window}.h
15947          gdk/x11/gdkinputprivate.h: Change all coordinates
15948          from int16 to int. Also, Change width and height from
15949          unsigned to signed to avoid all the stupid C 
15950          signedness bugs.
15951
15952 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
15953
15954         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
15955         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
15956         Add some more detailed checking.
15957
15958         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
15959         New function to retrieve the depth of a drawable.
15960
15961         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
15962         field, reorder fields to save memory. 
15963
15964 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
15965
15966         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
15967         of the background image instead of scaling the background down to
15968         a line.
15969
15970         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
15971         which temporarily set slider to wrong size.
15972
15973         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
15974         queue_clear().
15975
15976 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
15977
15978 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
15979
15980         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
15981
15982 2000-03-17  Tor Lillqvist  <tml@iki.fi>
15983
15984         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
15985         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
15986
15987         * gdk/win32/gdkfont-win32.c
15988         * gdk/win32/gdkproperty-win32.c
15989         * gdk/win32/gdkselection-win32.c
15990         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
15991         now declared such.
15992
15993 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
15994
15995         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
15996
15997 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
15998
15999         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
16000         is called without trapping X errors.
16001
16002 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
16003
16004         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
16005         way into the fontset lists.
16006
16007 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
16008
16009         * gtk/gtkthemes.h: add extern "C" scope.
16010
16011 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
16012
16013         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
16014         to make appends to the list constant. (gtk-guy-990901-0.patch)
16015
16016 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
16017
16018         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
16019         for the typename hash table.
16020
16021 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
16022
16023         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
16024         to make sure we never divide by zero. 
16025         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
16026
16027 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
16028
16029         * gtk/gtkfontsel.c: Apply patch from
16030         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
16031         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
16032
16033         Also, some cleanups in atom handling.
16034
16035 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
16036
16037         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16038         not GtkWidget.
16039
16040 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
16041
16042         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
16043         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
16044         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
16045         more guint wrap-around bugs before going to bed.
16046
16047 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
16048
16049         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
16050         guint wrap arounds in allocation.width.
16051
16052         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
16053         process untill we fit the allocation given.
16054
16055 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
16056
16057         * gtk/gtkwidget.c:
16058         (gtk_widget_unrealize): guard widget access with ref/unref
16059         around signal emission.
16060         (gtk_widget_hide): same here, but also check its destroyed
16061         state before queueing a resize.
16062
16063 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
16064
16065         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
16066         of gtk_default_insensitive_bg as insensitive base color.
16067
16068         * gtk/gtktext.c (gtk_text_style_set): set the background color according
16069         to the widget's state.
16070         (gtk_text_realize): same here.
16071         (gtk_text_state_changed): same here.
16072         (draw_bg_rect): compare background color against base[] from
16073         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
16074
16075 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
16076
16077         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
16078         grabs are active, unless a delete event is send to the toplevel
16079         of the currently grab holding widget.
16080
16081 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
16082
16083         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
16084         debugging g_print's.
16085
16086 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
16087
16088         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
16089         ever make the scrolled-window requisition ever depend on the 
16090         visibility state of the scrollbars for the AUTOMATIC policy. 
16091         This breaks the GTK+ requisition model, and causes loops.
16092
16093 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
16094
16095         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
16096         the default font to avoid problems with XFree86-4.0 where the
16097         default charset is iso10646-1, not iso8859-1.
16098
16099 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
16100
16101         * acinclude.m4
16102         * config.guess
16103         * config.sub
16104         * ltconfig
16105         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
16106
16107         * gtk/Makefile.am: minor cosmetic consistency tweak
16108
16109 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
16110
16111         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
16112         the activate_time to 0, so that we handle a quick
16113         press/release press/release properly and don't suppress
16114         the second release. (Red Hat bug #7545)
16115
16116 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
16117
16118         * gtk/gtkctree.c (row_delete):
16119         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
16120         bugs with destruction notifier, *always* update internal
16121         structures *before* calling user code.
16122
16123 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
16124
16125         A few more fixes for bug #5487, #2051, #2677.
16126         * gtk/gtkclist.c : 
16127         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
16128         not GDK_BUTTON_PRESS.
16129         (resync_selection): resync only if selection_mode is
16130         GTK_SELECTION_EXTENDED
16131         * gtk/gtkctree.c (resync_selection): same here
16132
16133 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
16134
16135         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
16136         gdk_drag_get_selection() and gtk_menu_detach().
16137
16138         [ From Jeroen Ruigrok/Asmodai ]
16139
16140 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
16141
16142         * gtk/gtknotebook.c (gtk_notebook_size_request): 
16143         page->tab_label can be NULL.
16144
16145 2000-01-25  Havoc Pennington  <hp@pobox.com>
16146         
16147         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
16148         arg is boolean
16149
16150         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
16151
16152         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
16153
16154         * gdk/gdkproperty.c (gdk_property_get): return boolean
16155
16156         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
16157
16158         * gdk/gdkim.c (gdk_im_ready): return boolean
16159
16160         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
16161
16162         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
16163         glib clash, should fix glib)
16164
16165         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
16166         (gdk_get_show_events): return gboolean, and canonicalize 
16167         to TRUE/FALSE
16168
16169         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
16170         colormap is private
16171         (gdk_colors_alloc): gboolean whether to be contiguous
16172         (gdk_color_equal): return gboolean since we are a predicate
16173         and not a qsort() (this looks semi-wrong due to glib breakage,
16174         IMO glib should be fixed)
16175         
16176         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
16177         (gdk_get_use_xshm): return gboolean
16178         (gdk_pointer_is_grabbed): return gboolean
16179
16180         * gdk/gdk.h: Change prototypes to match all the above changes,
16181         and re-run egtk-format-protos as required.
16182
16183 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
16184
16185         * gtk/gtkctree.c (resync_selection): 
16186         * gtk/gtkclist.c (resync_selection):
16187
16188         Return immediately if clist->drag_pos < 0. This is a workaround
16189         for the corrupt state that the clist gets into when a
16190         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
16191
16192         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
16193         
16194         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
16195         variable from recent commit.
16196
16197 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
16198
16199         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
16200
16201 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
16202
16203         * gtk/Makefile.am: prefix all autogenerated source that get build in
16204         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
16205         in builddir. since we subsequently cd into srcdir for autogeneration,
16206         the paths have to be stripped from the target file names, thusly we
16207         use $(@F) as target names now.
16208         put a comment about configure.in's --disable-rebuilds option,
16209         which can be used for non-writable source directories, for development
16210         setups though, srcdir has to be *writable*.
16211
16212 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
16213
16214         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
16215           Finish the job of allowing event to be NULL.
16216           (Fixes bug #4283, reported by Chris Blizzard)
16217
16218         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
16219           things so that the cursor appears on screen, properly
16220           take into account INNER_BORDER.
16221           (Fixes bug #4754, reported by Antonio Campos)
16222
16223 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
16224
16225         * gtk/gtknotebook.c (gtk_notebook_map): Don't
16226           show the tab_label unless it itself is visible.
16227
16228           gtk/gtknotebook.c (gtk_notebook_size_request):
16229           Do a better job of making sure that the visibility
16230           of the tab label corresponds to whether it should
16231           be mapped or not.
16232
16233 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
16234
16235         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
16236           Use the requisition, not the allocation, since the
16237           allocation has not necessarily been computed yet.
16238           (Pointed out by Eugene Osintsev)
16239
16240 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
16241
16242         * gtk/gtkstyle.c (gtk_style_new): Dont' set
16243           style/base[GTK_STATE_INSENSITIVE] both to
16244           gtk_default_insensitive_bg!
16245           (Bug #2187, reported by Jonathan Blandford)
16246
16247         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
16248           Add Alt_L, Alt_R to list of invalid accelerators.
16249           (Bug #3736, reported by Vlad Harchev)
16250
16251 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
16252
16253         * gtk/gtkfilesel.c (open_ref_dir): Fix several
16254         bugs which occured after an attempt to open 
16255         invalid home directory left cmpl_state->reference_dir == NULL.
16256
16257          - completion on files in home directory didn't work
16258          - completion on an empty string caused  segfault
16259
16260          (Bug #3678, reported by Steve Ratcliffe)
16261
16262         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
16263         cut and paste error that was causing scales to
16264         be incorrectly positioned.
16265         (Bug #2956,
16266          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
16267
16268 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
16269
16270         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
16271         when checking for dcgettext, if we've found we needed
16272         it for dgettext.
16273 +
16274 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
16275
16276         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
16277         queue_clear on NO_WINDOW widgets during a reparent,
16278         since at that point the window and widget heirarchies
16279         are out of sync. This stops crashing in some cases
16280         (the scrolled window reparent test, for instance), and
16281         _probably_ won't cause drawing errors.
16282
16283         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
16284         test do what it was supposed to do and be robust against
16285         window closings, etc. (Bug #2443)
16286
16287 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
16288
16289         * gtk/gtkentry.c: Fix return values on mouse events.
16290         (Bug #2686, Sky <seb_sky@yahoo.com>)
16291
16292         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
16293         (pointed out by George Lebl)
16294
16295         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
16296         (From Ettore Perazzoli  <ettore@helixcode.com>)
16297  
16298 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
16299
16300         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
16301         clicks between rows or outside calender area correctly.
16302         (Patch from Damon Chaplin)
16303
16304         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
16305         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
16306           Call destroy function when overwriting existing data. 
16307           (Pointed out by Damon Chaplin)
16308
16309 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
16310
16311         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
16312           which was causing problems on various systems with Xmu.
16313           This hasn't been needed for a very long time.
16314           (Fixes #1185 3167)
16315
16316 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
16317
16318         * gdk/gdki18n.h: Include <ctype.h> when defining
16319           gdk_isw* in terms of is* as a fallback.
16320           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
16321
16322 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
16323
16324         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
16325           realize the widget when it is size allocated!
16326           (old, old bug)
16327
16328         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
16329           Removed unused call to gdk_window_get_size() that
16330           showed up when the above was fixed.
16331
16332 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
16333
16334         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
16335           fix up widget->window when the widget is a
16336           NO_WINDOW container widget.
16337
16338 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
16339
16340         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
16341           to account for the fact that feof() does _not_ 
16342           return TRUE on errors, and thus avoid infinite loops
16343           when trying to use gdk_pixmap_create_from_xpm()
16344           on unreadable values.
16345
16346 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
16347
16348         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
16349
16350 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
16351
16352         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
16353           gdk_gc_set_dashes to take gint8 instead of gchar to
16354           make it clearer that it is _not_ a NULL terminated string.
16355
16356         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
16357           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
16358           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
16359           arguments.
16360
16361 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
16362
16363         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
16364         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
16365         background size relative to our allocation, guard against small
16366         allocations, we may have not yet been size allocated.
16367
16368 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
16369
16370         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
16371         not just version == 3. We implement all 3 + most of 4 - 
16372         (we don't support matching text/plain;charset=iso-8859-1
16373         to a dest that expects text/plain). We'll still advertise
16374         3 to be safe, but any client implementing version >= 3
16375         must interoperate with 3.
16376         
16377 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16378
16379         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
16380         background and gc members, add a warning in gtk_tooltips_set_color()
16381         indicating that this function is deprecated.
16382
16383 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
16384
16385         * docs/gtkfaq.sgml: FAQ Update:
16386           - Minor cleanups (Emmanuel, me)
16387           - New questions:
16388                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
16389                 How can I retrieve the text from a GtkMenuItem? (timj)
16390                 How do I validate/limit/filter the input to a GtkEntry? (me)
16391                 Memory does not seem to be released when I free the list
16392                         nodes I've allocated (timj)
16393
16394 2000-03-07  Tor Lillqvist  <tml@iki.fi>
16395
16396         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
16397         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
16398         for which it is no use to call GetLastError onWin9x.
16399         (gdk_other_api_failed) New function, for general error
16400         reporting without calling GetLastError.
16401         (gdk_win32_api_failed) OTOH, this function always calls
16402         GetLastError. (gdk_win32_last_error_string) Remove this function,
16403         GLib has the equivalent now.
16404
16405         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
16406         call them with function name, file name and line number in the
16407         arguments.
16408
16409         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
16410         functions.
16411         
16412         * gtk/gtk.def: Add some missing entry points.
16413
16414         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16415         gtk_paned_set_gutter_size, which don't exist any longer, as void.
16416         
16417         Fixes by Hans Breuer:
16418
16419         * gdk/makefile.msc: Update for debugging.
16420
16421         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
16422         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
16423         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
16424         in the dash_list.
16425
16426         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
16427         the x11 backend.
16428
16429         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
16430
16431         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
16432
16433 2000-03-04  Tor Lillqvist  <tml@iki.fi>
16434
16435         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
16436         just pixel value of background colour.
16437
16438         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
16439         containing code snippet previously duplicated in a couple of
16440         places.
16441         
16442         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
16443         gdk_colormap_color.
16444
16445         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
16446         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
16447         events for autorepeated Shift, Control and Alt keys. Use
16448         gdk_colormap_color.
16449
16450         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
16451         pointer is inside the window the cursor of which we are setting,
16452         call SetCursor immediately.
16453
16454         * gdk/win32/makefile.cygwin
16455         * gtk/makefile.cygwin: If we don't have the build number stamp
16456         file, use zero.
16457
16458         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
16459         gtk_paned_set_gutter_size as empty.
16460
16461         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
16462         
16463 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
16464
16465         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
16466           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
16467           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
16468           docs/gtk_tut.sgml docs/gtk.texi TODO:
16469
16470           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
16471
16472 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
16473
16474         * gtk/gtkcalendar.c: Implement num_marked_dates,
16475           and don't emit mutiple day_selected signals on
16476           month_prev.
16477
16478 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
16479
16480         * docs/make-todo (lineno): let title and logo be configurable so
16481         that GNOME can use this script too.
16482
16483         * TODO.xml: added logourl and a title
16484
16485 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
16486
16487         * TODO.xml: Added some UI items, and an explanatory
16488         comment at the top of the file.
16489
16490 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
16491
16492         * TODO.xml: some updates, added abunch of new entries.
16493         a note for those fiddeling with this file, when done
16494         with it, invoke:
16495         $ ./docs/make-todo TODO.xml >/dev/null
16496         and correct output errors before comitting changes.
16497
16498 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
16499
16500         * TODO.xml: Added XML-structured TODO file.
16501         * docs/make-todo: python script to turn TODO.xml into
16502           pretty XML output. 
16503
16504 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
16505
16506         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
16507         the function to let it draw the seven dots, instead of the old,
16508         much maligned, method.
16509         (draw_dot): New function to draw a dot.
16510
16511         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
16512         to draw the handle inside the border width as opposed to outside.
16513         Use paint function instead of gdk_draw_point.
16514
16515         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
16516         to draw the handle inside the border width as opposed to outside.
16517         Use paint function instead of gdk_draw_point.
16518
16519         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
16520         Change indenting to be more GTK like.
16521
16522 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
16523
16524         * docs/gtk_tut.sgml: New section on GtkCalendar
16525         * examples/calendar: Update example code
16526
16527 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
16528
16529         * docs/gtkfaq.sgml: FAQ Update
16530
16531 2000-02-19  Anders Carlsson  <andersca@gnu.org>
16532
16533         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
16534         to prevent the scroll event to be propagated upwards.
16535
16536 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
16537
16538         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
16539         OwnerGrabButtonMask from button entries for
16540         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
16541
16542         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
16543         to the event mask (which will result in button/press release
16544         being added to the event mask on Unix) so scrolling works
16545         for layouts in scroll windows.
16546
16547         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
16548
16549         Patch from Anders Carlsson  <andersca@gnu.org> to add
16550         a scroll event.
16551
16552         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
16553         scrolling to the "Test Scrolling" part of testgtk.
16554  
16555         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
16556  
16557         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
16558         it against GDK_SCROLL.
16559  
16560         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
16561         way of mouse wheel scrolling.
16562  
16563         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
16564  
16565         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
16566  
16567         * gtk/gtkmain.c: Removed previous mouse wheel hack.
16568  
16569         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
16570         gdk_event_mask_table.
16571  
16572         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
16573         GdkEventScroll handler.
16574  
16575         * gdk/gdkevents.h: Added GdkEventScroll structure.
16576  
16577 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
16578
16579         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
16580         and Anders Carlsson to change the Paned widgets so that they
16581         can be dragged from anywhere along the length. Also change
16582         the way that this is drawn to make this apparent.
16583
16584         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
16585         from George Lebl to check that option_menu->menu is present
16586         before getting history.
16587
16588 2000-02-14  Tor Lillqvist  <tml@iki.fi>
16589
16590         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
16591         before the assertion for non-NULL segment list.
16592
16593         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
16594         Seems that pattern brushes *must* be 8x8 pixels! At least on my
16595         machine, but it might be display driver dependent. Sigh, so make
16596         sure the stipple is that size. Does Windows suck or what?
16597
16598         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
16599         places.
16600
16601 2000-02-13  Havoc Pennington  <hp@pobox.com>
16602
16603         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
16604         refcount to 1
16605         (gdk_cursor_new): init refcount to 1
16606
16607         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
16608
16609 2000-02-13  Tor Lillqvist  <tml@iki.fi>
16610
16611         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
16612         so that we don't have to do unnecessary settings to the HDC.
16613
16614         * gdk/win32/gdkdrawable-win32.c
16615         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
16616         gdk_gc_predraw.
16617
16618         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
16619         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
16620         GDI paths, call WidenPath to get the outline of the stroken path,
16621         and then fill the outline (with the brush that was built from the
16622         stipple).
16623
16624         * gdk/win32/gdkgc-win32.c: Factor out common code from
16625         _gdk_win32_gc_new and gdk_win32_gc_set_values into
16626         gdk_win32_gc_values_to_win32values. Use correct colour for
16627         SetBkColor() (Until now the code actually used a random colour in
16628         the call to SetBkColor()... but that didn't show up as not many
16629         GDI APIs use the background colour. Pattern (opaque stippled)
16630         brushes do.)
16631
16632         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
16633         gdk_win32_api_failed): New functions for error logging.
16634
16635         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
16636         WIN32_API_FAILED to call them, passing function or file name and
16637         line number.
16638
16639         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
16640
16641         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
16642         GdkColor for foreground and background in GdkGCWin32Data.
16643
16644         * gdk/makefile.cygwin: Link in the resource object separately.
16645
16646         * gdk/win32/rc/gdk.rc
16647         * gtk/gtk.rc (New file)
16648         * gdk/win32/makefile.cygwin
16649         * gtk/makefile.cygwin: Update build number in DLLs automatically,
16650         as in GLib.
16651
16652 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
16653
16654         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
16655         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
16656         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
16657         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
16658         parameters given and cursor->ref_count. coding style fixups.
16659
16660         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
16661         not GtkWidget.
16662         
16663         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
16664         fix up widget macros and add _GET_CLASS() variant.
16665         
16666         * gtk/*.c: some GtkType fixups.
16667
16668 2000-02-09  Tor Lillqvist  <tml@iki.fi>
16669
16670         * gdk/win32/gdkproperty-win32.c
16671         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
16672         were reversed.
16673
16674 2000-02-04  Tor Lillqvist  <tml@iki.fi>
16675
16676         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
16677         g_filename_to_utf8 to convert the font names Windows gives us from
16678         whatever is the default codepage to UTF-8.
16679         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
16680         in the other direction.
16681
16682         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
16683         error in debugging output.
16684
16685 2000-02-02  Tor Lillqvist  <tml@iki.fi>
16686
16687         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
16688         and height parameters to gdk_window_clear_area(). Not minus one.
16689
16690 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
16691
16692         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
16693         checks if the widget passed to gtk_drag_get_data() was not the
16694         dest widget.
16695
16696 2000-02-01  Tor Lillqvist  <tml@iki.fi>
16697
16698         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
16699         g_filename_from_utf8 functions (which were added a moment ago to
16700         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
16701         size buffers.
16702
16703         gtk_file_selection_get_filename returns the filename in the C
16704         runtime encoding. It calls g_filename_from_utf8, but copies the
16705         returned string to a static buffer, which is returned. I think
16706         this is better than returning the result from g_filename_from_utf8
16707         directly, which would mean all apps that use it would have to free
16708         the return value. Or should this function care about this issue at
16709         all? Maybe a new function with clearly defined semantics.
16710
16711         * gtk/gtkfilesel.h: Add comment about
16712         gtk_file_selection_get_filename returning the filename in the C
16713         runtime's encoding.
16714
16715         * README.win32
16716         * gdk/gdk.def
16717         * gdk/makefile.{cygwin,msc}
16718         * gtk/gtk.def: Updates.
16719
16720         * gdk/gdkcursor-win32.c: Initialise refcount.
16721
16722 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
16723
16724         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
16725
16726 2000-01-30  Havoc Pennington  <hp@pobox.com>
16727
16728         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
16729         destroy
16730
16731         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
16732
16733         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
16734         implemented in platform-specific code
16735
16736         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
16737
16738         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
16739         underscore in front
16740
16741         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
16742         put an underscore in front
16743
16744         * gdk/gdkcursor.c: new file, implements
16745         gdk_cursor_ref/gdk_cursor_unref
16746
16747         * gdk/gdkcursor.h: Refcount GdkCursor
16748
16749         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
16750
16751 2000-01-29  Tor Lillqvist  <tml@iki.fi>
16752
16753         * gdk/gdkwindow.h
16754         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
16755
16756 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
16757
16758         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
16759         structures to properly inherit from GtkWidget not GtkBin.
16760
16761 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
16762
16763         * gtk+.spec.in: Added lib/gtk+/include/* to %files
16764         (bug #5178 - Peter Wainright)
16765         
16766         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
16767         so that it will be installed.
16768         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
16769
16770 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
16771
16772         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
16773         for the GtkStyleClass vtable const.
16774
16775         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
16776         take a const string argument like GtkTranslateFunc. This will
16777         require changes in use code.
16778
16779 2000-01-19  Tor Lillqvist  <tml@iki.fi>
16780
16781         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
16782         semantics (to mimic the X11 backend, which just calls XClearArea)
16783         is to check for zero width (and height), and in that case use the
16784         window's width minus x (height minus y). This fixes for instance
16785         some redraw problems with gtkclist, which were easily noticeable
16786         in the gtk file selection widget.
16787
16788         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
16789         windows.
16790
16791 2000-01-13  Tor Lillqvist  <tml@iki.fi>
16792
16793         * configure.in
16794         * gdk/Makefile.am
16795         * gdk/x11/Makefile.am
16796         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
16797         (bug #5177).
16798         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
16799         out later.
16800
16801 2000-01-09  Tor Lillqvist  <tml@iki.fi>
16802
16803         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
16804         WM_MOVE for iconified or invisible windows. This fixes various
16805         problems when minimising windows. Thanks to Bernd Herd.
16806
16807 2000-01-05  Tor Lillqvist  <tml@iki.fi>
16808
16809         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
16810         backend's draw_lines method, not draw_points.
16811
16812 2000-01-02  Tor Lillqvist  <tml@iki.fi>
16813
16814         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
16815         before Owen's reorganisation: Don't have queued_events and
16816         queued_tail statics in this file, but use gdk_queued_events and
16817         gdk_queued_tail. This makes exposure event compression work again.
16818
16819         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
16820         seem to be needed?
16821
16822 1999-12-30  Tor Lillqvist  <tml@iki.fi>
16823
16824         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
16825         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
16826         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
16827         doesn't do anything.
16828
16829         * gdk/gdk.def: Add gdk_xid_table_insert.
16830
16831         * gdk/win32/gdkprivate-win32.h
16832         * gdk/win32/gdkevents-win32.c
16833         * gdk/win32/gdkinput-win32.c
16834         
16835         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
16836         extension_events field in the GdkWindowWin32Data struct. Use only
16837         the extension_events field in GdkWindowPrivate. Previously one was
16838         set, and the other one tested, which broke tablet
16839         functionality. Thanks to Keishi Suenaga for pointing this out.
16840
16841 1999-12-18  Tor Lillqvist  <tml@iki.fi>
16842
16843         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
16844         When handling a single character (text length == 1), don't handle
16845         it as if it was UTF-8.
16846
16847 1999-12-11  Tor Lillqvist  <tml@iki.fi>
16848
16849         * Makefile.am: Distribute README.win32.
16850         
16851         * gdk/Makefile.am
16852         * gdk/win32/Makefile.am: Distribute Win32 files.
16853
16854         * gdk/makefile.msc: New file.
16855
16856         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
16857         after label).
16858
16859         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
16860         gdk_error_code as GDKVAR, as they are referred outside GDK.
16861
16862         * gdk/win32/makefile.msc: Update.
16863
16864         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
16865         tweaks. Check only if at least one of those Unicode subrange bits
16866         we care for is set. If no code page bits are set, guess (wildly)
16867         based on the charset.
16868
16869         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
16870
16871         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
16872         non-NULL.
16873
16874         * gtk/gtkdnd.c
16875         * gtk/gtklayout.c
16876         * gtk/gtkplug.c
16877         * gtk/gtkselection.c
16878         * gtk/gtksocket.c
16879         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
16880         appropriate. There must be a cleaner way to handle this?
16881
16882         * gtk/gtkrc.c: Must include windows.h on Win32.
16883
16884         * gtk/testgtk.c: No need to include gdkx.h.
16885
16886         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
16887
16888 1999-12-07  Tor Lillqvist  <tml@iki.fi>
16889
16890         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
16891         the rbearing is set to the same as the width, but this should be
16892         fixed.
16893
16894 1999-12-06  Tor Lillqvist  <tml@iki.fi>
16895
16896         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
16897         function. If Windows doesn't tell us what Unicode subranges a font
16898         covers, guesstimate based on the codepages it covers. This will
16899         hopefully help those Windows versions or fonts that don't give us
16900         any useful Unicode subrange information with GetTextCharsetInfo.
16901         Call this function in gdk_font_load_internal.
16902
16903         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
16904         minor changes.
16905
16906 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
16907
16908         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
16909         New function, long needed.
16910
16911 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
16912
16913         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
16914         only_if_exists argument of gdk_atom_intern to
16915         bool.
16916
16917 1999-11-25  Tor Lillqvist  <tml@iki.fi>
16918
16919         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
16920         Fix two copy&paste errors.
16921
16922         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
16923         win32 has changed.
16924
16925         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
16926         GdkWin32SingleFont struct.
16927
16928         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
16929         subranges of loaded fonts. Clear font signature first, in case
16930         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
16931         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
16932
16933         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
16934         Unoffset clip region.
16935
16936 1999-11-23  Tor Lillqvist  <tml@iki.fi>
16937
16938         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
16939         event->any.window before calling filter functions.
16940
16941 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
16942
16943         * gtk/gtkgamma.h: Adapt cast macros to standard.
16944
16945 [ Merges from 1.2 ]
16946
16947 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
16948
16949         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
16950         If translation does not include a '/', use entire
16951         translation instead of crashing.
16952
16953 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
16954
16955         * docs/gtk_tut.sgml:
16956         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
16957
16958 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
16959
16960         * gtk/gtkselection.c (gtk_target_list_remove): Use
16961         g_list_remove_link, not g_list_remove.
16962
16963         [ From Geert Bevin <gbevin@thunderstorms.org> ]
16964         
16965 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
16966
16967         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
16968         statement upon unselection (how the heck did that slip in?).
16969
16970 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
16971
16972         * gtk/gtktext.c (gtk_text_freeze): 
16973         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
16974         in frozen state (and aparently crashes). patch provided by Anders
16975         Melchiorsen <and@kampsax.dtu.dk>.
16976
16977 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
16978
16979         * fix insensitive default/focus widget activation,
16980         reported by Matt Goodall <mgg@isotek.co.uk>.
16981
16982         * gtk/gtkwindow.c (gtk_window_key_press_event): 
16983         (gtk_window_activate_default):
16984         (gtk_window_activate_focus):
16985         return handled=FALSE for actiavtion of insensitive default
16986         widgets. return handled=TRUE for activation of insensitive
16987         focus widgets. don't activate in either case.
16988
16989 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
16990
16991         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
16992         and $glib_cflags to match library order and in the
16993         theory that an old version of GLib is more likely to
16994         be in the include directory for X then vice-versa.
16995         (Bug #2776)
16996
16997 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
16998
16999         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
17000         to determine the locale for fontsets, not LC_MESSAGES;
17001         the user may want English messages with a handling
17002         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
17003         will still be broken) (Bug #2891)
17004
17005 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17006
17007         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
17008
17009 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
17010
17011         * gtk/gtkrc.ko: Changed the Korean default fontset.
17012
17013 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
17014
17015         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
17016         where when scrolling to the left or top double exposes
17017         were done, causing major slowdowns.
17018
17019 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
17020
17021         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
17022         names to lowercase and alphanumeric, before looking
17023         them up.
17024
17025         * gtk/Makefile.am: Install codeset variant gtkrc files
17026         with normalized names.
17027
17028 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
17029
17030         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
17031         popup menus when the menu is already visible, but its parent
17032         is still hidden, (happens after tornoff window got hidden).
17033
17034 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
17035
17036         * gtk/Makefile.am (install-data-local): Fix
17037         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
17038         deleted, causing error messages on install.
17039
17040 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
17041
17042         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
17043         the handle as well, since we now sometimes ignore
17044         exposes on the handle while resizing.
17045
17046 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
17047
17048         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
17049         extra g_free introduced in one of the last one or two 
17050         commits.
17051
17052 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
17053
17054         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
17055         consistent, put each style that a gtkrc.* file creates
17056         in a unique namespace, remove old files before installing.
17057
17058 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
17059
17060         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
17061         gtk_rc_init is called multiple times. (Yes, people who
17062         do that have bugs in their code.)
17063
17064 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
17065
17066         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
17067         Remove it since it's generated by the Makefile anyway
17068
17069 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
17070
17071         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
17072         device->info.axes for core pointer.
17073
17074 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
17075
17076         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
17077         idle_id, to deal with obsolete, broken C libraries.
17078
17079 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
17080
17081         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
17082         allocation->x/y twice!
17083
17084         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
17085         consistent with gtk_vscale_pos_trough().
17086
17087 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
17088
17089         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
17090         be queueing a resize on a toplevel container between
17091         the time we show it and when we map it. So, we need
17092         to test GTK_WIDGET_VISIBLE() for toplevels, and only
17093         use GTK_WIDGET_DRAWABLE() for child windows.
17094
17095 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
17096
17097         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
17098         (fixes bug #2144)
17099
17100 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
17101
17102         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
17103         container DRAWABLE (instead of VISIBLE), so we don't queue
17104         resizes on non-toplevel containers.
17105
17106 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
17107
17108         * gtk/gtkselection.[ch]: Make the data argument
17109         const guchar *.
17110
17111 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
17112
17113         * gtk/gtkwindow.c: Try to behave sensibly if 
17114         the focus widget is the window itself. (Should
17115         we allow this at all?)
17116
17117 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
17118
17119         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
17120         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
17121         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
17122         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
17123         in prototypes and implementations consistent (Tomas Ogren).
17124
17125         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
17126         before the widget is unparented (reported by damon).
17127
17128         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
17129         since we provide unsigned data anyways.
17130
17131 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
17132
17133         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
17134         the call to gtk_tooltips_layout_text() until later.
17135
17136         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
17137         Call gtk_widget_ensure_style() before using the style.
17138
17139 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
17140
17141         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
17142         for old widgets that don't propagate draws to all
17143         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
17144
17145 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
17146
17147         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
17148         for a redraw but just the widget that requested the resize.
17149
17150 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
17151
17152         * gtk/gtkcontainer.c: added new widget level method
17153         gtk_container_set_reallocate_redraws() and a GtkContainer flag
17154         reallocate_redraws : 1 to reflect the setting, exported this through
17155         the argument system as a boolean ::reallocate_redraws.
17156
17157         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
17158         on the widget because the allocation changes, do so as well for
17159         widget->parent if the parent has reallocate_redraws set to TRUE.
17160         with that containers requesting reallocation redraws get automatically
17161         redrawn if their children changed allocation (this unfortunately
17162         affects also other children that didn't change allocation, but we
17163         cannot work around that before 1.3).
17164
17165 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
17166
17167         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
17168         _and_ height are >0 (not _or_).
17169
17170         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
17171         instead of gtk_container_queue_resize(), which is a core gtk internal
17172         function (must have been on crack when i queued that).
17173
17174         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
17175         we can check more reliably if we want to discard expose events.
17176         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
17177         flag.
17178         
17179         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
17180         we simply trust these events. for deciding whether to discard exposes,
17181         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
17182         
17183 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
17184
17185         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
17186         queues of areas that are completely off screen.
17187
17188         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
17189         logic for handleboxes.
17190
17191         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
17192         check on width/height.
17193
17194 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
17195
17196         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
17197         we are fine with using $@ the way we do (if we actually encounter
17198         brokeness with $@ in VPATH builds because of additional path prefixes,
17199         we need to use $(@F) actually).
17200
17201 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
17202
17203         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
17204         short lived bugs, that would allow language bindings to do surgeries
17205         to our guts.
17206
17207 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
17208
17209         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
17210         where comparison was being done against an uninitialized
17211         value causing intermittant results depending on
17212         compiler flags. Also make it clearer that we aren't
17213         ever initializing the child as 0x0 (though this will
17214         be caught in gtk_widget_size_allocate())
17215
17216 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
17217
17218         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
17219         gtk_window_unset_transient_for() call after we do checks
17220         involving the old transient parent.
17221         [ From Lance Capser <lmc@cyberhighway.net> ]
17222
17223 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
17224
17225         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
17226         an empty file.
17227
17228 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
17229
17230         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
17231         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
17232
17233 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
17234
17235         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
17236         `$@' is valid only in the build dir, not after we've done 
17237         `cd $srcdir'.  Also use `test -f' instead of less portable
17238         `test -e'.
17239
17240 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
17241
17242         * gtk/gtktext.c (correct_cache_insert): Rewrite
17243          for simplicity, and hopefully correctness.
17244          (Fixes bug #1322, which was a segfault when
17245           on some insertions with the properties around
17246           the insertion set up just wrong.)
17247
17248         * gtk/gtktext.c (gtk_text_adjustment): When we receive
17249          a "changed" signal, clamp the new value to the adjustment
17250          bounds to avoid segfaulting if someone tries to change
17251          the adjustment to a bogus value. (Bug #1795)
17252
17253 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
17254
17255         * gtk/gtkmain.c: Ignore unexpected destroy notifies
17256         for children, for toplevel windows handle them
17257         like delete_event.
17258
17259         * gtk/gtkplug.c: Add an unrealize handler so that
17260         we unref plug->socket_window when we are done
17261         with it.
17262
17263 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
17264
17265         * gtk/gtktext.c (clear_area): Fix stupid signedness
17266          problem that was causing background to sometimes
17267          be misaligned.
17268
17269 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
17270
17271         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
17272         
17273         * gtk/gtkmenu.c (gtk_menu_position): Make
17274          sure we never position menus with negative x, y,
17275          since gtk_widget_set_uposition() can't handle that.
17276
17277         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
17278          Modify the positioning code a bit so that we always
17279          put the top-left corner onscreen. (This is for
17280          UI reasons, gtk_menu_position() now takes care of
17281          gtk_widet_set_uposition() brokeness.)
17282
17283 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
17284
17285         * gtk/Makefile.am: fixed up things for -jx, x > 1.
17286
17287 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
17288
17289         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
17290           RC style that is passed in. The lack of the ref
17291           before was a bug. If people worked around this
17292           bug, this will introduce a slight memory leak
17293           in their code. The code should typically look like:
17294
17295             rc_style = gtk_rc_style_new ();
17296             [...]
17297             gtk_widget_modify_style (widget, rc_style);
17298             gtk_rc_style_unref (rc_style);
17299
17300         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
17301           the style if it was already set.
17302
17303         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
17304           style if it was set before.
17305
17306 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
17307
17308         * gtk/testgtk.c (main): Add a check to see if we
17309           are being run from the correct directory and
17310           to quit nicely if we are not.
17311
17312         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
17313           static.
17314
17315 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
17316
17317         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
17318
17319         * gtk/gtkwindow.c:
17320         queue resizes unconditionally (gtk_widget_queue_resize will figure
17321         what to do if the window is not realized).
17322         (gtk_window_move_resize): only recenter the window
17323         for GTK_WIN_POS_CENTER_ALWAYS.
17324         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
17325         the same way as GTK_WIN_POS_CENTER.
17326
17327 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
17328
17329         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
17330         with (!(info->last_flags & GDK_HINT_POS)) instead of
17331         (!info->last_flags & GDK_HINT_POS).
17332
17333         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
17334         new_height unconditionally, because we use these values even if
17335         !default_size_changed && !hints_changed.
17336         comented the (default_size_changed || hints_changed) case with
17337         respect to resize rejects from the window manager.
17338
17339         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
17340         in the zvt condition hack, since this includes the window hints, set
17341         the hints after the handling_resize case.
17342
17343         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
17344         window is initially shown with to the geometry.
17345
17346 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
17347
17348         * gtk/gtkwindow.c (gtk_window_move_resize):
17349         s/size_changed/default_size_changed/g so i know what's
17350         really going on (frying brain on smaller flame now).
17351
17352 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
17353
17354         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
17355         we have size_changed upon handling_resize. this is a gross
17356         workaround for the broken zvt widget and should be removed in
17357         1.3 again (search for FIXME).
17358         Owen provided an accurate comment for this:
17359
17360         /* We could be here for two reasons
17361          *  1) We coincidentally got a resize while handling
17362          *     another resize.
17363          *  2) Our computation of size_changed was completely
17364          *     screwed up, probably because one of our children
17365          *     is broken. It's probably a zvt widget.
17366          *
17367          * For 1), we could just go ahead and ask for the
17368          * new size right now, but doing that for 2)
17369          * might well be fighting the user (and can even
17370          * trigger a loop). Since we really don't want to
17371          * do that, we requeue a resize in hopes that
17372          * by the time it gets handled, the child has seen
17373          * the light and is willing to go along with the
17374          * new size. (this happens for the zvt widget, since
17375          * the size_allocate() above will have stored the
17376          * requisition corresponding to the new size in the
17377          * zvt widget)
17378          *
17379          * This doesn't buy us anything for 1), but it shouldn't
17380          * hurt us too badly, since it is what would have
17381          * happened if we had gotten the configure event before
17382          * the new size had been set.
17383          */
17384
17385 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
17386
17387         * gtk/gtkrc.c: deal properly with the fact that RC
17388           style lists may include rc styles more than once.
17389
17390         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
17391           unused static function.
17392
17393         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
17394           stack of directories of RC files currently being
17395           parsed and implicitely add them to pixmap path.
17396           
17397           This fixes a bug where the directory would get
17398           appended then overwritten by pixmap_path declarations.
17399
17400           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
17401
17402         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
17403           theme's exit function. (Patch from Peter Wainwright,
17404           bug #1454)
17405
17406         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
17407           Add a destroy() handler to take care of removing
17408           group for menu item. (Fixes bug #1197)
17409
17410         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
17411           in warning message.
17412
17413 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
17414
17415         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
17416         roundtrip to figure window's width and height, since we know that
17417         anyways from widget->allocation.
17418
17419 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
17420
17421         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
17422           the hints after we request the new size.
17423
17424 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
17425
17426         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
17427           GTK_WIDGET_REALIZED() assertion - we can compute the
17428           hints before we are realized.
17429
17430         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
17431           hint changing so that we have a value of hints_changed
17432           when we decide whether to constrain the window size.
17433
17434         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
17435
17436         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
17437         change back to G_MAXINT.
17438
17439 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
17440
17441         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
17442         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
17443         contain uncluttered values.
17444         (gtk_window_compute_hints): simply assert that window is realized
17445         and that geometry_info is valid, since we rely on this anyways.
17446         (gtk_window_constrain_size): major cleanups to the code.
17447         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
17448         for the base size, instead of the minimums. use 32767 as max width
17449         and height (like in gtkwindow.c) instead of G_MAXINT.
17450
17451 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
17452
17453         * cleaned up the GtkContainer.need_resize flag handling mess, we
17454         only need to force resize requests when we were prematurely
17455         realized, or our widget tree was modified when we were temporarily
17456         hidden. handling these cases directly upon showing the window (i.e.
17457         while the GdkWindow is still unmapped) avoids the need to wait for
17458         a configure event response and therefore makes the GUI more snappier
17459         and avoids blank windows during the roundtrip.
17460
17461         * gtk/gtkwidget.c:
17462         (gtk_widget_hide): 
17463         (gtk_widget_show): don't queue resizes on toplevels, they know how
17464         to deal with matters.
17465
17466         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
17467         flag directly for not visible resize containers and spare us unecessary
17468         signal emissions.
17469
17470         * gtk/gtkwindow.c:
17471         (gtk_window_realize): if we need to enforce premature size allocation,
17472         queue a container resize so we are correctly resized later on.
17473         (gtk_window_init):
17474         (gtk_window_size_request):
17475         don't freak around with the ->need_resize flag,
17476         gtk_container_queue_resize() will care about that.
17477         (gtk_window_show):
17478         handle initial resizing issues here, we can handle matters better in
17479         this place, especially since we know that our GdkWindow is still
17480         unmapped.
17481         (gtk_window_move_resize):
17482         don't care about ->need_resize at all.
17483         handle size changes properly that occoured while we waited for a
17484         configure event.
17485
17486 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
17487
17488         * gtk/gtkwidget.c (gtk_widget_set_uposition):
17489         * gtk/gtkwindow.[hc] (gtk_window_reposition):
17490         Move the hint setting code from gtk_widget_set_uposition
17491         to here; set the hints so that we respect any previously
17492         set geometry hints.
17493
17494         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
17495         change the window hints here or move the window here,
17496         let that happen in gtk_window_move_resize().
17497
17498 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
17499
17500         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
17501         to already queued resizes (and therefore redraws) on a widget, check
17502         its anchestry as well.
17503
17504         * gtk/gtkcontainer.c:
17505         (gtk_container_queue_resize): clear resize widgets for resize
17506         containers before aborting prematurely. this is especially important
17507         for toplevels which may need imemdiate processing or their resize
17508         handler to be queued.
17509         (gtk_container_dequeue_resize_handler): added new internal function for
17510         gtkwindow.c.
17511
17512         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
17513         configure event, take possible changes in window position into account
17514         as well.
17515         if we request a new window size, queue up a resize handler that will
17516         last until the configure event response arrives.
17517         combined the ->need_resize case (initial show) with the general size
17518         (hints) changed case and added even more comments.
17519         if !auto_shrink, only revert to the old allocation if the new size
17520         is smaller than the current allocation.
17521
17522 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
17523
17524         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
17525                            gtk_window_set_geometry_hints
17526                            gtk_window_set_default_size):
17527         When hints are set, queue a resize so that the hints will
17528         be eventually reset on the toplevel.
17529
17530         * gtk/gtkwindow.c (gtk_window_show): Use
17531         gtk_window_compute_default_size(). Clear the need_resize flag
17532         on the initail map so that we don't unnecessarily trigger the
17533         resize code.
17534
17535         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
17536         into separate functions. Compare the hints we are setting
17537         with what we set last time so that we can accurately
17538         tell when we need to reset the hints.
17539
17540         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
17541         function to figure out the size from requisition
17542         and default_size.
17543
17544         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
17545         from fvwm to constrain a size to the geometry hints.
17546
17547         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
17548         to compare two sets of geometry hints.
17549
17550         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
17551         from gtk_window_set_hints(), just compute the hints,
17552         don't set them.
17553
17554         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
17555         code from gtk_window_move_resize() to separate function,
17556         rationalize a bit.
17557
17558 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
17559
17560         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
17561         structure into a new private structure.
17562
17563         * gtkrc.c: Split GtkRcStyle into public/private.
17564         In the private part, add a list of pointers to the
17565         RcStyle lists this RcStyle participates in.
17566
17567         * gtkrc.c: When a RcStyle is free, remove all
17568         lists referencing it from the 
17569         realized_style_ht hash, and free those lists.
17570         
17571         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
17572         gtk_rc_init(), since that adds the default styles
17573         to the list of parsed RC files again.
17574
17575         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
17576         
17577 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
17578
17579         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
17580         checks that ensure that a widget's allocation is at least 1 in width
17581         and height. (GNOME note: this doesn't affect old panel code anymore,
17582         because GtkSocket will request width and height of at least 1 since
17583         Fri Jul 23).
17584
17585         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
17586         allocated yet (happens if the user realizes the window prematurely),
17587         size request and allocate it.
17588         (gtk_window_size_allocate): guard against guint underflows.
17589
17590 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
17591
17592         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
17593         in gtk_built_sources, so gtk.defs gets built prior to all other
17594         sources.
17595
17596 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
17597
17598         * gtk/Makefile.am:
17599         invoke indent on gtkmarshal.*. 
17600         rewrote source generation rules, use COPYING as oldest source tag for
17601         a piggyback rule to generate all sources from (don't touch it ;).
17602         major cleanups, strip spaces on build rules for GNU Make.
17603
17604         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
17605         source and target files from commandline arguments. don't invoke indent.
17606
17607 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17608
17609         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17610         notebook after switch to avoid drawing problems.
17611         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17612         
17613         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17614         show them instead. 
17615         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17616
17617 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
17618
17619         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
17620         notebook after switch to avoid drawing problems.
17621         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
17622         
17623         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
17624         show them instead. 
17625         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
17626
17627 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
17628
17629         * gtk/gtkwindow.c:
17630         we use window->need_resize from configure_event now, to indicate that
17631         the gtkwindow should keep its allocation (e.g. because the user resized
17632         the window through window manager handles). resize_count is now reliably
17633         used to figure whether we got the allocation we requested from the
17634         window manager.
17635         configure events get queued as resizes now, the real stuff (size
17636         computation and allocation) now only goes on in gtk_window_move_resize().
17637         GtkWindow's requisition now contains its *real* requisition (like all
17638         other widgets), *not* taking usize into account.
17639         geometry_info->last_{width|height} is now updated from set_hints() only
17640         so it always contains the last hints we set for the window manager.
17641         made some event handlers return TRUE instead of FALSE.
17642         the overall code should be much more straight forward now, and the
17643         significant code portions are accompanied by comments now.
17644         (gtk_window_set_hints):
17645         removed requisition argument and made it
17646         fetch the requisition through gtk_widget_get_child_requisition.
17647         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
17648         does that now.
17649         (gtk_window_show):
17650         ensure that the widget is realized before calling 
17651         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
17652         ensure that we got properly size requested and allocated before
17653         realization.
17654         (gtk_window_configure_event):
17655         ignore plain window moves, or reallocate the widget tree through the
17656         resize queue otherwise.
17657         (gtk_window_move_resize):
17658         mostly rewrote this function to figure window manager hints more
17659         reliably, coalesce window moves and resizes to reduce configure events
17660         and do actuall size allocations.
17661
17662 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
17663
17664         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
17665         that have a resize pending, because a redraw is already queued for them.
17666
17667         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
17668         hack to clear resize_widgets.
17669
17670         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
17671         for resize containers prior to size allocation. (this is also a bit
17672         ugly, but avoids side effects for stopped emissions and is thus more
17673         reliable).
17674         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
17675
17676         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
17677         function from gtk_tooltips_expose, as we connect to ::expose_event
17678         *and* ::draw now.
17679
17680 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
17681
17682         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
17683         checks.
17684         (gtk_target_list_unref): Likewise.
17685
17686         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
17687
17688 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
17689
17690         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
17691         guard against division by zero. (Fixes bug #1339)
17692
17693 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
17694
17695         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
17696         Prevent the trivial leak of information of allowing
17697         word motion when the entry is not visible.
17698
17699 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
17700
17701         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
17702         modality to error dialog as well as confirmation dialogs.
17703         (Bug #1803, reported by Rosanna Wing Sze Yuen)
17704
17705 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
17706
17707         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
17708         tree->view_lines.
17709         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
17710
17711         * gtk/Makefile.am (install-data-local): Solaris apparently
17712         has various troubles with ln -f; use rm first instead.
17713         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
17714
17715 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
17716
17717         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
17718         use `cp' followed by `rm' (the `rm' was already there).
17719
17720 July 30, 1999 Elliot Lee <sopwith@redhat.com>
17721         
17722         * configure.in: Fix autoconf warnings about cross compilation by
17723         trying to provide sane defaults for AC_TRY_RUN.
17724         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
17725         put them into $(srcdir) when generated. Also add a dependency of
17726         gtksignal.h on gtkmarshal.h for -j builds. 
17727         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
17728
17729 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
17730
17731         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
17732         GDK_THREADS_{LEAVE,ENTER} pair.
17733         (From Paul Fisher <pnfisher@redhat.com>)
17734
17735 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
17736
17737         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
17738         width and height are always >0 (owen).
17739
17740 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
17741
17742         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
17743         change that assured that a widget's allocated with and height are
17744         always >1, since this breaks *buggy* panel code. unfortunately this
17745         back-breaks the gimp's color selector.
17746
17747         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
17748         allocation is always >0 in width and height, before sending the
17749         configure event; this is a *gross* hack to get the gimp back to work.
17750         
17751         * marked both cases with TODO-1.3
17752
17753 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
17754
17755         * gtk/gtktext.c: Don't display wrap indicators when
17756         text is not editable and word wrap is on.
17757
17758 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
17759
17760         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
17761         option menus here as they are not derived from menu shell, assure that
17762         the option menu has a menu we can add items to.
17763
17764 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
17765
17766         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
17767         width/height to (gint) before calculations and check against < 0 to
17768         avoid guint wraparounds.
17769
17770 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
17771
17772         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
17773         width and height is never zero. sanity check both dimensions against
17774         32767 and issue a warning if the allocation is greater than that.
17775
17776 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
17777
17778         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
17779         to g_main_pending() as well.
17780
17781 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
17782
17783         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
17784         call to g_main_iteration() - since that will regrab
17785         GTK+ lock to process events.
17786
17787 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
17788
17789         * gtk/gtkwindow.c
17790         - Regularize with the rest of GTK+ by making widget->requisition
17791           not reflect the set_usize()
17792         - Always recompute geometry hints, then check if they
17793           changed before sending them to the X server. The
17794           previous checks for changes would fail in a number
17795           of circumstances. 
17796
17797 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
17798
17799         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
17800
17801 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
17802
17803         * gtk/gtkdnd.c:
17804         - Code cleanups
17805         - Instantaneously update on modifier key presses
17806         - Allow cancellation of the drag with Escape.
17807
17808 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
17809
17810         * gtk/testgtk.c (create_handle_box): Set the policy
17811         to auto_shrink - otherwise the appearance is rather
17812         strange when flipping between horizontal and vertical.
17813
17814 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
17815
17816         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
17817         (gtk_window_set_default_size): don't change a value if it's < 0.
17818         queue a resize.
17819
17820 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
17821
17822         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
17823
17824 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
17825
17826         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
17827         add an extra "/" when concating "/" + filename.
17828         (From Matt Grossman <mattg@oz.net>)
17829
17830 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
17831
17832         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
17833         for fg_gc if we set it for drawing pixmap.
17834
17835 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
17836
17837         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
17838         
17839         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
17840         already set, call old engine's destroy function and
17841         unref the old engine.
17842
17843 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
17844
17845         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
17846
17847 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
17848
17849         * gtk/gtkaccelgroup.h: mark certain functions as internal.
17850
17851 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
17852
17853         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
17854         expand behaviour changed.
17855
17856         * gtk/gtklabel.c (gtk_label_set_pattern):
17857         (gtk_label_set_justify):
17858         (gtk_label_set_line_wrap):
17859         don't bother invoking queue_clear, the reallocation does
17860         that for us, always free_words so the upcoming resize will
17861         relayout the label's contents.
17862
17863 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
17864
17865         * applied argument implementation patches from Elena Devdariani
17866         <elena@cogent.ca>.
17867
17868         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
17869         ::space_style, ::relief
17870         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
17871         * gtk/gtkpreview.c: ::expand
17872         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
17873         * gtk/gtknotebook.c: ::homogeneous
17874         * gtk/gtklabel.c: ::wrap
17875         * gtk/gtklist.c: ::selection_mode
17876         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
17877         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
17878         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
17879         * gtk/gtkclist.c: ::sort_type
17880         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
17881         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
17882
17883 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
17884
17885         * gtk/gtkstyle.c: Removed ill-thought-out part of last
17886         comment.
17887
17888 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
17889
17890         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
17891         counting right when we have to attach a new style
17892         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
17893
17894         * gtk/gtkstyle.c: Documented the refcounting
17895         peculularities of gtk_style_attach.
17896
17897 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17898
17899         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
17900         window types.
17901
17902         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
17903         of GTK_TOPLEVEL for creating the window.
17904
17905 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
17906
17907         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
17908         the last argument (reported by Per Winkvist).
17909         
17910 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
17911
17912         Fixes for invisible XOR lines (Frank Loemker
17913         <floemker@TechFak.Uni-Bielefeld.DE>)
17914         
17915         * gtk/gtkclist.c (gtk_clist_realize): Always use
17916         a non-zero pixel for GDK_XOR.
17917
17918         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
17919         Use GDK_INVERT instead of GDK_XOR.
17920
17921 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
17922
17923         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
17924         signals if h/voffsets differ from adjustment values.
17925         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
17926
17927 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
17928
17929         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
17930         ::selection-done emissions up to the topmost menu shell.
17931
17932 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
17933
17934         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
17935         the user data on the window before destroying it.
17936
17937         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
17938         unrealize handler to take care of destroying 
17939         notebook->panel properly. 
17940         (Bug #1198 - Morten Welinder <terra@diku.dk>)
17941
17942         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
17943         of g_new and g_realloc to stop memory leak. (Actually,
17944         we could just use g_realloc(), but I'm not 100% sure
17945         that is portable).
17946         (Bug #1196 - Morten Welinder <terra@diku.dk>)
17947
17948 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
17949
17950         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
17951
17952         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
17953         for fontsets.
17954
17955         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
17956         with bin/button confusion.
17957
17958 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
17959
17960         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
17961         and show how preselection of radio items is done.
17962
17963 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
17964
17965         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
17966         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
17967         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
17968         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
17969         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
17970         * gtk/gtktable.c (gtk_table_attach): 
17971         * gtk/gtklist.c (gtk_list_insert_items): 
17972         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
17973         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
17974         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
17975         * gtk/gtkbin.c (gtk_bin_add): 
17976         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
17977         * gtk/gtkfixed.c (gtk_fixed_put): 
17978         * gtk/gtklayout.c (gtk_layout_put):
17979         general fixups to container_add logic. always realize child if
17980         child->parent is realized, only map the child and queue a resize
17981         if child and child->parent are both visible.
17982
17983 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
17984
17985         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
17986         instead of gtk_container_foreach to walk and unrealize children, so
17987         composite children get also unrealized.
17988         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
17989         (gtk_widget_map): assert that the widget is visible (basic constrain).
17990         (gtk_widget_real_map): assert that the widget is realized (basic
17991         constrain).
17992
17993 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
17994
17995         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
17996
17997 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
17998
17999         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
18000         file for iso-8859-2 locales.
18001
18002         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
18003
18004 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
18005
18006         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
18007          (Pointed out by andy@rz.uni-karlsruhe.de and others).
18008          Remove some suspicious and useless lines. 
18009
18010 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
18011
18012         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
18013         width,height = 0, 0 to mean - here to edge of window,
18014         instead of -1, -1, since the former is all we support.
18015
18016 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
18017
18018         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
18019         when removing from quit_functions list.
18020
18021 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
18022
18023         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
18024
18025 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
18026
18027         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
18028          When redrawing characters on non-visible entry, use appropriate
18029          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
18030
18031 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
18032
18033         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
18034         from drag coordinates.
18035         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
18036         use drag_dest_cell.
18037
18038         * gtk/gtktree (drag_dest_cell)
18039         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
18040         (Bug #1129)
18041
18042 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
18043
18044         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
18045         translate_* fields.
18046         (gtk_item_factory_finalize): invoke translate_notify independant from
18047         translate_data.
18048         (gtk_item_factory_set_translate_func): likewise.
18049         (gtk_item_factory_destroy): only remove ifactory pointer from those
18050         widgets that belong to us (stupid me).
18051
18052 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
18053
18054         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
18055         rc_style list when lookup succeeeds.
18056
18057 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
18058
18059         * gtk/gtkctree.c (resync_selection): 
18060         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
18061         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
18062         bug.
18063
18064 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
18065
18066         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
18067         Add some missing GDK_THREADS_ENTER()/LEAVE around
18068         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
18069
18070 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
18071
18072         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
18073         rather than emit_by_name.
18074
18075         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
18076         on the widget across multiple signal emissions.
18077         (gtk_editable_delete_text): same here.
18078         (gtk_editable_class_init): set widget_class->activate_signal after
18079         editable_signals[ACTIVATE] has been created.
18080
18081 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
18082
18083         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
18084         position here prematurely -- we might not have the
18085         right ->min_position and ->max_position yet.
18086
18087 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
18088
18089         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
18090         Add error traps so if the other end of the connection
18091         dies, we survive.
18092
18093         * gtk/gtkselection.c (gtk_selection_notify): Clean
18094         up properly when selection property retrieval fails.
18095         
18096         * gtk/gtkselection.c (gtk_selection_request): Correctly
18097         reject SelectionRequest notifies where the handler
18098         returns no data.
18099
18100 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
18101
18102         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
18103         when we've previously highlighted.
18104
18105         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
18106         emit two "drag_leave" signals for Motif drops.
18107
18108         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
18109         back the correct status messages when dropping from
18110         Motif onto a proxy window that is rejecting the
18111         drop.
18112
18113 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
18114
18115         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
18116         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
18117         to compare two argument values. added gtk_arg_to_valueloc() to set a
18118         variable from an arg through its location (pointer).
18119
18120         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
18121         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
18122         as gfloat*, uchars are collected as guchar*, ints are collected as
18123         gint*, etc...
18124
18125 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
18126
18127         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
18128         Include <string.h> instead of <strings.h>.
18129
18130         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
18131         (actually, a lot more duplicate includes occur if
18132          you trace through the sequence of #include's)
18133         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
18134         
18135 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
18136
18137         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
18138         gtk-a-higuti-990322-[0-3]
18139
18140         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
18141         that was causing -DX_LOCALE not to work.
18142
18143         * gtk/gtkrc.c (gtk_rc_init):
18144         X_LOCALE will never have LC_MESSAGES defined
18145
18146 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
18147
18148         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
18149         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
18150
18151         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
18152         left/right as well (gtk-michael-980726-0.patch.gz).
18153
18154         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
18155         for pointer values, use gchar instead of char. fixed uline allocation
18156         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
18157         chunks instead of G_ALLOC_ONLY.
18158         (gtk_label_size_request): always alter requisition as passed and leave
18159         widget->requisition alone.
18160         (gtk_label_set_text): allow NULL strings.
18161         (gtk_label_new): likewise.
18162
18163 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
18164
18165         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
18166
18167 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
18168
18169         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
18170         *and* mapped (i.e. drawable).
18171         (gtk_bin_expose): only send exposes to drawable children.
18172
18173         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
18174         (gtk_box_expose): only send exposes to drawable children.
18175
18176         * gtk/gtkhscale.c (gtk_hscale_draw): 
18177         * gtk/gtkvscale.c (gtk_vscale_draw):
18178         hm, this is an ugly one. we first compute the size of our trough area
18179         here (window relative) and then check intersection with the draw_area
18180         which is parent relative because we're a NO_WINDOW widget, so we need
18181         to offset the trough area by allocation.x and allocation.y before the
18182         check. (this must not be done for the background area though, since
18183         that's already computed parent relative).
18184
18185 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
18186
18187         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
18188         unrealize title buttons.
18189
18190 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
18191
18192         * gtk/gtkclist.c (gtk_clist_column_title_passive)
18193         (gtk_clist_column_title_active): 
18194         only connect/disconnect to GtkWidgetClass::event to block mouse events.
18195
18196         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
18197         zero initialize event, removed superfluous gdk_window_get_pointer call
18198
18199         * gtk/gtklist.c (gtk_list_vertical_timeout)
18200         (gtk_list_horizontal_timeout): removed superfluous
18201         gdk_window_get_pointer call
18202
18203 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
18204
18205         * plugging problems reported by "Bruce Mitchener, Jr."
18206         <bruce@puremagic.com> due to a purify session.
18207
18208         * gtk/gtkstyle.c:
18209         (gtk_style_ref): 
18210         (gtk_style_unref): assert ref_count to be > 0.
18211
18212         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
18213         the requisition.
18214         (gtk_clist_set_shift): likewise.
18215
18216         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
18217         adjustments.
18218
18219         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
18220         event before sending it and set send_event to TRUE (which needs to
18221         be done for *all* synthesized events).
18222         (gtk_list_vertical_timeout): likewise.
18223
18224         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
18225         leaks.
18226
18227         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
18228         to TRUE when synthesizing events.
18229
18230 [ *** end of merges from 1.2 *** ]      
18231         
18232 1999-11-21  Tor Lillqvist  <tml@iki.fi>
18233
18234         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
18235         (or copied from gdkconfig.h.win32 on Win32, sigh).
18236
18237         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
18238
18239         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
18240
18241         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
18242
18243         * gdk/gdkconfig.h.win32: New file.
18244
18245         * gdk/win32/makefile.cygwin: Build just a static archive here.
18246
18247         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
18248         for the DLL from the static archive built above.
18249
18250         * gdk/gdk.def: Moved here from the win32 subdirectory.
18251
18252         * gdk/win32/*: Adapt for the changed private struct organisation.
18253
18254         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
18255
18256 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
18257
18258         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
18259         for wheel mice (buttons 4 and 5).
18260
18261 1999-11-18  Tor Lillqvist  <tml@iki.fi>
18262
18263         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
18264         drawables use just the pixel field in the foreground and
18265         background GdkColor of the GdkGC.
18266
18267         gdk_gc_set_{fore,back}ground() are called in the GIMP with
18268         GdkColors containing uninitialized (red,green,blue) fields, and
18269         just the pixel field filled in, and furthermore in the
18270         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
18271         It thus turns out that we really don't need to have the full
18272         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
18273         it later to have just the pixel values.
18274
18275 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
18276
18277         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
18278
18279 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
18280
18281         * docs/gtkfaq.sgml: threads example from Erik Mouw.
18282         New question on GtkLabel background colors.
18283
18284         * docs/gtk_tut.sgml:
18285           - Correct the example code callback
18286             function definitions.
18287           - Update the gtkdial example code, from Frans van Schaik.
18288           - Update setselection.c to current API.
18289
18290         * examples/Makefile examples/*/*.c: Update to code
18291         listed in tutorial.
18292
18293 1999-11-10  Tor Lillqvist  <tml@iki.fi>
18294
18295         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
18296         subrange table (from the "Developing International Software for
18297         WIndows 95 and Windows NT" book) was missing the Hangul syllable
18298         block... Get the loaded font's charset correctly.
18299
18300         (Note that this, and the other *-win32.c files, still really are
18301         the old ones, the win32 subdirectory is not ready for compilation
18302         yet after the reorg.)
18303
18304 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
18305
18306         * gtk/gtkclist.c: Fix off-by-one bug in parameter
18307         check.
18308
18309 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
18310
18311         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
18312         on results of XQueryDeviceState().
18313
18314 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
18315
18316         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
18317         we need to accesss only ->children. We need an accessor
18318         for the children.
18319
18320         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
18321         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
18322         to get rid of gdkx.h include.
18323         
18324         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
18325         and random references to 'None'.
18326
18327         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
18328         Get rid of unused #include <gdk/gdkx.h>
18329
18330         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
18331         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
18332         gdkconfig.h.
18333
18334 1999-11-08  Tor Lillqvist  <tml@iki.fi>
18335
18336         * gdk/win32/gdkdraw.c
18337         * gdk/win32/gdkfont.c
18338         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
18339         following yesterday's changes. (Unrelated to Owen's reorg.)
18340
18341 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
18342
18343         * gdk/x11/gdkinput-gxi.c: Add missing include,
18344           fix GdkWindowPrivate => GdkDrawablePrivate.
18345
18346         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
18347
18348         * gdk/x11/Makefile.am (xinput_sources): Add missing
18349         backslash to fix building with --with-xinput=none
18350
18351 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
18352
18353         Move all X specific code into the x11/ directory.
18354         Aside from shuffling things around, did the following:
18355
18356        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
18357          gdk_arg_context_* - a simple argument parsing system
18358          in the style of popt.
18359
18360        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
18361          gdk/x11/gdkprivate-x11.h:
18362          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
18363          add ->klass and ->klass_data fields. The klass_data
18364          field points to an auxilliary structure that is
18365          windowing system dependent.
18366
18367        * gdk/gdkfont.c: Make most of the measurement functions
18368          simply wrappers around gdk_text_extents().
18369
18370        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
18371          _gdk_font_strlen() function that hides the weird
18372          behavior in gtk+-1.[02] where a string is interpreted
18373          differently for 8-bit and 16-bit fonts.
18374
18375        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
18376          to store common code for synthesizing double/triple
18377          press events.
18378         
18379        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
18380          Make all the function that modify an existing GC
18381          simply wrappers around gdk_gc_set_values().
18382          
18383        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
18384          for throwing out later.
18385
18386        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
18387          GdkImagePrivate and GdkColormapPrivate to have a
18388          windowing system dependent part (GdkFontPrivateX etc.)
18389          that "derives" from the system-independent part.
18390
18391        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
18392          Got rid of the included-source-files for XInput in
18393          favor of automake conditionals. (Which didn't exist
18394          when XInput support was originally added.)
18395
18396        * gdk/gdkrgb.c: Remove the visual id from the debugging
18397          statements since that is X11 specific; print out
18398          type/depth info instead.
18399          
18400
18401 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
18402
18403         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
18404         loading duplicates of hashed fonts.
18405
18406         * gdk/gdk.c (gdk_keysym_convert_case): rename
18407         gdk_XConvertCase to gdk_keysym_convert_case, allow
18408         results to be NULL in the GTK+ style.
18409
18410         * gdk/gdkcompat.h: Started compatibility header
18411         for renames.
18412
18413 1999-11-07  Tor Lillqvist  <tml@iki.fi>
18414
18415         * gdk/win32/gdkprivate.h: New font private structures, related to
18416         fontsets.
18417
18418         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
18419         gdk_font_list_free(). On X11, will just be wrappers to
18420         XListFonts() and XFreeFontNames(). On Win32, the code previously
18421         in gtkfontsel.c is now here.
18422
18423         New function gdk_font_xlfd_create(). On X11 will get the FONT
18424         property of the font (for GDK_FONT_FONTs), or call
18425         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
18426         builds a XLFD style name from the font information in the LOGFONT
18427         struct(s).
18428
18429         New function gdk_font_xlfd_free(), which correspondingly frees the
18430         string returned by gdk_font_xlfd_create().
18431
18432         Implement fontsets on Win32. Add a function that iterates over a
18433         wide char string and calls a callback function for each substring
18434         of wide chars from the same Unicode subrange (and thus probably
18435         available in the same real font).
18436
18437         Improve the XLFD emulation a bit.
18438
18439         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
18440
18441         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
18442         Beta3, WM_IME_CHAR messages don't seem to contain the composed
18443         multi-byte char as with the Active IMM on Win9x. Oh well, handle
18444         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
18445         ImmGetCompositionStringW() to get the composed Unicode chars.
18446
18447         * gdk/win32/gdkgc.c
18448         * gdk/win32/gdkdraw.c: Changes needed because of the font private
18449         struct changes.
18450
18451         * gdk/win32/gdk.def: Add the new functions.
18452
18453 1999-11-04  Tor Lillqvist  <tml@iki.fi>
18454
18455         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
18456         get the Platform SDK to get <dimm.h>.
18457
18458         * gdk/win32/gdkevents.c: More event handling fixes and
18459         simplification. Never generate motion events with is_hint true. We
18460         used to do that on bogus grounds earlier. Windows sends
18461         WM_MOUSEMOVE messages on button events even if the mouse hasn't
18462         moved, ignore these.
18463
18464         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
18465
18466         * gdk/win32/gdkglobals.c
18467         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
18468         the TrackMouseEvent function, and use it.
18469
18470         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
18471         char before calling WideCharToMultiByte in order to get a string
18472         for the window title.
18473
18474         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
18475
18476         * gdk/win32/gdk.def: Remove obsolete functions.
18477
18478         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
18479         /nodefaultlib and /defaultlib switches.
18480
18481         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
18482
18483 1999-10-31  Tor Lillqvist  <tml@iki.fi>
18484
18485         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
18486         EuroSign).
18487
18488         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
18489         same type as GdkWChar, especially on Win32.
18490
18491         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
18492
18493         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
18494         before passing to Windows GDI for drawing etc. Convert to the
18495         system default codepage before passing to Windows as window
18496         titles.
18497
18498         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
18499         support changing input locale on the fly.
18500
18501         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
18502         on-the-fly changes. Convert incoming characters from the current
18503         codepage to Unicode (and then to a UTF-8 multi-byte string) based
18504         on the current input language. Use keysym<->Unicode mapping tables
18505         and functions borrowed from xterm sources.
18506
18507         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
18508         editions of Win9x, use the ActiveX-based Active IMM (Input Method
18509         Manager) if available. IMEs and the Active IMM are available under
18510         the disguise of Chinese, Korean and Japanese support for IE and
18511         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
18512         support is present in all editions (as long as you install it).
18513
18514         Call DispatchMessage from gdk_events_queue() (and thus
18515         gdk_WindowProc()), instead of duplicating the code in
18516         gdk_WindowProc().
18517
18518         Reworked the grab handling and propagation code, factored out
18519         duplicated code snippets into separate functions. Other cleanups,
18520         too.
18521
18522         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
18523         the <dimm.h> header describing the Active IMM.
18524
18525         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
18526         just do the same as for "single" fonts.
18527
18528         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
18529         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
18530         the new keysyms from gdkkeysyms.h.
18531
18532         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
18533         fontset, so that gtkentry uses wide characters.
18534
18535         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
18536         GTk+'s system directory "gtk+", not "gtk".
18537
18538 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
18539
18540         * docs/gtkfaq.sgml: FAQ update
18541
18542 1999-10-21  Tor Lillqvist  <tml@iki.fi>
18543
18544         * gdk/win32/gdkprivate.h: Add more font private data.
18545
18546         * gdk/win32/gdkfont.c
18547         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
18548         fonts and strings. Now works much better. You still have to
18549         have a correct font selected, though. No fontset emulation yet.
18550
18551 1999-10-19  Tor Lillqvist  <tml@iki.fi>
18552
18553         * gtk/maketypes.awk: Use G_OS_WIN32.
18554
18555         * gtk/gtk.def: Add some missing entry points. Also some non-public
18556         ones, but PyGTK porter claims to need them.
18557
18558         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
18559         built-in type generation.
18560
18561 1999-10-14  Tor Lillqvist  <tml@iki.fi>
18562
18563         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
18564         GDK_FONT_FONT fonts (which is all we have for now, we don't
18565         emulate fontsets). The X11 version uses plain XDrawString in that
18566         case, too. The string passed to gdk_draw_text_wc seems to be in
18567         fact (at least, when used by gtkentry and gtktext) either in a
18568         single-byte charset, or a DBCS. Not Unicode.
18569
18570         This fixes the problem in gtkfontsel, where even if you had
18571         selected a font with a non-Latin1 charset (windows-greek, for
18572         instance), the preview still used Latin-1 glyphs.
18573
18574         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
18575         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
18576         (gdk_font_load): Recognize the demibold etc weights, even if we
18577         don't have the corresponding constants in the headers.
18578         (gdk_font_hash_insert): Use same hash mechanism as in the X11
18579         version. Should save font resources a bit, when we don't have
18580         multiple HFONTs for the same font.
18581
18582         * gdk/win32/gdkprivate.h: Add the names field as in the X11
18583         version.
18584
18585 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
18586
18587         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
18588         X values
18589
18590 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
18591
18592         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
18593         layout support (as mentioned on
18594         http://www.jcinteractive.com/gnome-ui/software/widgets/)
18595
18596 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
18597
18598         * gtk/fnmatch.c
18599         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
18600
18601 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
18602
18603         * configure.in (ALL_LINGUAS): Added Galician (gl)
18604
18605 1999-10-05  Tor Lillqvist  <tml@iki.fi>
18606
18607         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
18608
18609         * gdk/win32/gdkcompat.c: New file, actually provide an
18610         implementation for the deprecated functions. (Just temporarily.)
18611
18612         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
18613
18614         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
18615
18616         * gdk/win32/gdk.def gtk/gtk.def: Updates.
18617
18618 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
18619
18620         * configure.in: Added "uk" to ALL_LINGUAS.
18621         
18622 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
18623
18624         * configure.in: correct checking for BeOS check
18625
18626         * gdk/gdktypes.h
18627         * gtk/fnmatch.c
18628         * gtk/gtkfilesel.c
18629         * gtk/gtkitemfactory.c
18630         * gtk/gtkmain.[ch]
18631         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
18632
18633 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
18634
18635         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
18636         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
18637         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
18638         by Bulgarian). 
18639
18640 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
18641
18642         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
18643         Fix a reference to window_private->destroyed.   
18644
18645         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
18646         (ugly) setting of an internal GdkWindow member to use
18647         a _slightly_ cleaner macro.
18648
18649         * gdk/gdkprivate.h: Split GdkWindowPrivate into
18650         GdkDrawablePrivate and GdkWindowPrivate.
18651         Add extra macros for accessing GDK_DRAWABLE_ components.
18652
18653         * *.[ch]: Massive adjustments for the above, use the
18654         new macros in a lot of places.
18655
18656 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
18657
18658         * gdk/gdktypes.h: Make GdkDrawable the base type,
18659         not GdkWindow.
18660
18661 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
18662
18663         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
18664
18665 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
18666
18667         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
18668
18669 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
18670
18671         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
18672         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
18673
18674         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
18675
18676         * docs/gtk-config.1: Now autogenerated.
18677         * docs/Changes-1.4.txt: started
18678         
18679 1999-10-03  Tor Lillqvist  <tml@iki.fi>
18680
18681         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
18682         to #ifdef also here.
18683
18684         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
18685         Owen did to the X11 backend.
18686
18687         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
18688         ScrollWindowEx when blitting inside a window, it can't be correct
18689         in the general case.
18690
18691         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
18692         WM_GETMINMAXINFO is easier.
18693
18694         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
18695         depth equal to the bitspixel value, not the visual's depth.
18696
18697         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
18698         to 24 even if the bitspixel value is 32.
18699
18700         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
18701         need to check for depth==32 when bpp==32, depth will always be 24.
18702
18703 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
18704
18705         * docs/Changes-1.4.txt: Started
18706         
18707         * gtk/Makefile.am (gdk_headers): Include all the new headers.
18708
18709         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
18710         
18711         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
18712         into C file.
18713         
18714         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
18715         header to gdkinputprivate.h.
18716
18717         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
18718         unused since before 1.2.
18719
18720 1999-09-30  Tor Lillqvist  <tml@iki.fi>
18721
18722         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
18723         expand possible hex escapes in the font family (put there by
18724         logfont_to_xlfd if the font name isn't a legal XLFD font family,
18725         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
18726         On Win32, add hex escapes here, too.
18727
18728 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
18729
18730         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
18731         to #ifdef GDK_WINDOWING_X11.
18732
18733 [ Merges from gtk-1-2 ]
18734
18735 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
18736
18737         * configure.in: fixed "GNU Make" check to pass with new make version
18738         3.77.95.
18739
18740 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
18741
18742         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
18743         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
18744         AM_PATH_GTK() macros don't get confused by the -pre1.
18745
18746 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18747
18748         * configure.in (REBUILD): Change check for perl5
18749           to check explicitely for v >= 5.002. (5.001
18750           does not work with our scripts.)
18751
18752 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
18753
18754         * configure.in: evaluate $PERL for the perl version check. added
18755         --disable-rebuilds to give the user an option to completely disable
18756         any source autogeneration rules.
18757
18758 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
18759
18760         * configure.in: evaluate $ac_make when checking for GNU Make.
18761
18762 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18763
18764         * docs/Makefile.am: added generation.txt.
18765
18766         * Makefile.am: require automake 1.4, build README from README.in and
18767         INSTALL from INSTALL.in in dist-hook.
18768         
18769         * README.in:
18770         * INSTALL.in: new files to autogenerate README and INSTALL from.
18771
18772         * configure.in: figure whether we have GNU Make
18773
18774         * docs/generation.txt: minor additions/corrections.
18775
18776 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
18777
18778         * docs/gtkfaq.sgml: FAQ Update
18779
18780 July 30, 1999 Elliot Lee <sopwith@redhat.com>
18781         
18782         * configure.in: Fix autoconf warnings about cross compilation by
18783         trying to provide sane defaults for AC_TRY_RUN.
18784
18785 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
18786
18787         * ltconfig
18788         * ltmain.sh: upgrade to libtool 1.3.3
18789
18790 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
18791
18792         * INSTALL: Indicate that the --with-glib= configure
18793         time flag is unsupported.
18794
18795 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
18796
18797         * docs/generation.txt: Added a file that gives
18798         documenation about the autogeneration process for
18799         various autogenerated files.
18800         
18801 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18802
18803         * configure.in (LIBS): Look for libgmodule in the
18804         right location.
18805
18806 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
18807
18808         * docs/gtk_tut.sgml: Removed references to
18809         code examples in my directory on gtk.org as
18810         they should all be in the tutorial now.
18811
18812         * docs/gtk_tut.sgml: Added sources for dial-test
18813         and scribble-xinput programs that were previously
18814         missing.
18815
18816 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
18817
18818         * TODO: Added entry about menu keyboard navigation, removed
18819         some finished items.
18820
18821 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
18822
18823         * acinclude.m4: Standardize on func_dgettext
18824         not func_gettext, so that the checks for dgettext
18825         actually are paid attention to.
18826
18827 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
18828
18829         * configure.in (LIBS): Add $INTLLIBS into $LIBS
18830         directly, rather than repeating the checks for
18831         gettext.
18832
18833         * INSTALL: Added information about gettext and
18834         NLS support.
18835
18836         * acinclude.m4 (LIBM): Check for dgettext, not
18837         just gettext. This should hopefully fix things wrt
18838         systems with old versions of GNU gettext installed.
18839
18840 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
18841
18842         * configure.in (LIBS): Look for libgmodule in the
18843         right location.
18844
18845 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
18846
18847         * autogen.sh: add --enable-maintainer-mode
18848
18849         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
18850
18851 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
18852
18853         * docs/gtk-config.1.in:
18854           docs/Makefile.am:
18855           configure.in: gtk-config is now generated.
18856
18857         * docs/gtk-config.1: Removed, now generated.
18858
18859 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
18860
18861         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
18862         handle CreateNotify itself, still put out a debuging message for
18863         --gdk-debug=events. made the ReparentNotify debugging message more
18864         verbose.
18865         wrap xcoords translation for ConfigureEvents into an error trap,
18866         a destroy event may already be pending, and in that case, the
18867         actuall coordinate values are not at all critical.
18868
18869 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
18870
18871         * gdk/gdkcc.c: Stop leaking the color_hash all over
18872         the place. Simplify and improve the logic.
18873
18874 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
18875
18876         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
18877         for prototypes and function implementations consistent (reported
18878         by Tomas Ogren).
18879
18880 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
18881
18882         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
18883         send_event set in debugging output.
18884         (gdk_compress_exposures): default initialize the event so we don't
18885         operate on bogus values (namely send_event).
18886
18887 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
18888
18889         * gdk/gdkwindow.c: When we receive an unexpected
18890         destroy notify on one of our windows, don't just
18891         warn about it, also mark our windows as destroyed.
18892
18893 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
18894
18895         * gdk/gdkfont.c (gdk_font_hash_insert): Add
18896           name => font and name => fontset hashes. The 
18897           name => fontset hash is a _big_ win since we
18898           weren't previously caching fontsets at all and loading
18899           fontsets is expensive. The name => font hash
18900           is less of a win, but it does save us from doing
18901           repeated XQueryFont calls on the same font.
18902
18903         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
18904           list so we can remove font/fontset from hash.
18905
18906 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
18907
18908         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
18909           and slightly confusing test. [ XInternAtom (,,TRUE)
18910           will never return None ].
18911
18912 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
18913
18914         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
18915           gdk/gdkwindow.c (gdk_window_set_hints):
18916
18917         Don't omit setting the properties if flags == 0 -
18918         there may be an existing set of properties there
18919         already. (Very old bug. Would it be better to
18920         delete the property instead?)
18921
18922         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
18923           spelling error in comment.
18924
18925 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
18926
18927         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
18928           to avoid stomping over gdk_error_warnings.
18929
18930         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
18931           as (bits_per_pixel + 7) / 8. This gives the same
18932           result as before for multiples of 8, but actually
18933           a "reasonable" value for 1bit or 4bit displays.
18934
18935 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
18936
18937         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
18938         GNU Make.
18939
18940 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
18941
18942         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
18943         discarding configure events.
18944
18945 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
18946
18947         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
18948         refcount is greater than zero.
18949
18950         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
18951
18952         * gdk/gdkfont.c (gdk_font_unref): Likewise.
18953
18954         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
18955
18956         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
18957
18958 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
18959
18960         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
18961         that format 32 => sizeof(item) == 4. It really is
18962         sizeof(long).
18963
18964 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
18965
18966         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
18967         core dump at all on X IO errors, only core dump
18968         if --enable-debug for X errors.
18969
18970 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
18971
18972         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
18973         unknown window:" message. disabled ConfigureNotify discarding code,
18974         because it led to events being processed out of order.
18975
18976 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
18977
18978         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
18979
18980         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
18981         we export this function, supress error warnings and don't reset the
18982         error code in the first half of this function.
18983
18984         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
18985         code (instead of just -1) so gdk_error_trap_pop() reveals something
18986         actually informative about the error that happened.
18987
18988         * gdk/*.c:
18989         don't rely on gdk_error_code being -1 if an error occoured, but just
18990         gdk_error_code != 0.
18991
18992 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
18993
18994         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
18995         pointer *before* invoking the filter function, so we at least don't
18996         crash if a filter is removed that is currently executed. window filters
18997         *really* need to be made truely reentrant at some point.
18998
18999 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
19000
19001         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
19002         PropertyNotify debug messages.
19003
19004 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
19005         
19006         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
19007         
19008         * gdk/gdkim.c: Fix cut-and-paste errors for 
19009         x/y and PreeditAttributes/StatusAttributes.
19010
19011 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19012
19013         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
19014         G_MAXINT to 2^16 to alleviate overflow problems in
19015         various window managers.
19016
19017 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
19018
19019         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
19020         for fontsets.
19021
19022 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
19023
19024         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
19025         Initialize size_hints.x and size_hints.y because kwm
19026         brokenly pays attention to them.
19027         (Bug #1181 -  Lars Heete <hel@admin.de>)
19028
19029 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
19030
19031         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
19032         return value of gdk_list_visuals(). 
19033         (Bug #1193 - Morten Welinder <terra@diku.dk>)
19034
19035 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
19036
19037         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
19038         XSetIMValues to (void *) when comparing to NULL, to workaround
19039         the problem of some compilers barfing since older X headers don't
19040         have the prototype for it.
19041
19042 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
19043
19044         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
19045         for pseudocolor where colormap->colors was double
19046         allocated.
19047
19048         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
19049         color value in the hash table with the pixel filled
19050         in so when we do later hash table lookups, the color
19051         value is correct.
19052         
19053 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
19054
19055         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
19056         making the call
19057
19058 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
19059
19060         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
19061         pointed out by Morten Welinder <terra@diku.dk>.
19062
19063 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19064
19065         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19066           default filter from the list
19067
19068 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19069
19070         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19071           default filter from the list
19072
19073 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
19074
19075         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
19076
19077         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
19078         g_strdup_printf instead of calcing the length separately
19079
19080 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
19081
19082         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
19083         that we don't do in many other places. (Fixing duplicate 
19084         #include of config.h)
19085
19086         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
19087         Otherwise, #ifndef XINPUT_NONE check in the latter
19088         doesn't work. (Bug #546)
19089
19090 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
19091
19092         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
19093         "None" case insensitive.
19094
19095 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
19096
19097         * gdk/gdkselection.c: 
19098         Add error traps so if the other end of the connection
19099         dies, we survive.
19100
19101 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
19102
19103         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
19104         dest_xid field into two fields - one for the window
19105         to send in messages, one to indicate the last looked
19106         up window for caching purposes. This is needed, so
19107         that Leave messages get the correct window.
19108
19109 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
19110
19111         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
19112         Fix warning created by people mucking around
19113         with the gsource API.
19114
19115         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
19116         Change mapping between GIOCondition and GdkInputCondition
19117         to match the way the Linux kernel does it. This should
19118         fix problems where closed pipes were no longer signalling
19119         GDK_INPUT_READ on systems with a native poll().
19120
19121 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
19122
19123         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
19124         explicitly for the string "None" - it is in the XPM
19125         spec and some servers treat unknown colors in odd ways
19126         (like asking the user!)
19127
19128 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
19129
19130         * gdk/gdkevents.c: made "->" into a "." of previous change so
19131         it compiles
19132
19133 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
19134
19135         * gdk/gdkevents.c (gdk_compress_exposures): Set the
19136         window field of the event structure before calling
19137         user filters.
19138
19139 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
19140
19141         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
19142         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
19143
19144 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
19145
19146         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
19147         intermediate text property - prevents major memory
19148         leak when gdk_use_mb.
19149         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
19150
19151 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
19152
19153         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
19154         gtk-a-higuti-990322-[0-3]
19155
19156         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
19157         sizeof(wchar_t) != sizeof (GdkWChar)
19158
19159         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
19160         that was causing -DX_LOCALE not to work.
19161
19162         * gtk/gtkrc.c (gtk_rc_init):
19163         X_LOCALE will never have LC_MESSAGES defined
19164
19165         * gdk/gdk.c (gdk_init_check):
19166         Remove --xim-preedit and --xim-status from argv properly.
19167
19168         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
19169         that the client window is present on the X server
19170         before we pass it to the input method.
19171
19172 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19173
19174         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
19175         if --display is specified on the command line, than
19176         the drag window will not be created on that display.
19177         
19178 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
19179
19180         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
19181         lookups with only_if_exists == TRUE were inserting
19182         bogus values into the atom cache.
19183
19184 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
19185
19186         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
19187         then reset it to NULL.
19188
19189         * gdk/gdkcolor.c:
19190         (gdk_colors_free): 
19191         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
19192         key for g_hash_table_remove() in both functions, this prevents us
19193         from accessing possibly uninitialized portions of a GdkColor structure
19194         where we are only interested in its pixel value.
19195
19196 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19197
19198         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19199         font hash table, if we have a GdkFontPrivate entry for this font
19200         already, simply increment its reference count, provided by Olaf Dietsche
19201         <olaf.dietsche+list.gtk@netcologne.de>.
19202
19203 1999-09-21  Tor Lillqvist  <tml@iki.fi>
19204
19205         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
19206         just to be sure.
19207
19208         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
19209         unused variables, leftovers from the X11 version.
19210
19211         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
19212
19213         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
19214         downcase fields on X11.
19215
19216 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
19217         
19218         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
19219         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
19220
19221 1999-09-17  Tor Lillqvist  <tml@iki.fi>
19222
19223         * gdk/win32/gdk.def: Add gdk_threads_mutex.
19224
19225         * gtk/makefile.msc: Correct path to libintl.
19226
19227         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
19228         use of gint vs. int, and gint vs. gboolean in headers and
19229         definitions. Use GtkType for the *_get_type functions. Note that
19230         these changes preserve binary compatibility.
19231
19232         * gdk/gdk.c
19233         * gdk/win32/gdk.c
19234         * gdk/gdk.h: Fix inconsistencies: gint vs int.
19235
19236         * gtk/gtkmain.c
19237         * gtk/gtkclist.c
19238         * gtk/gtkmenufactory.c
19239         * gtk/gtknotebook.c
19240         * gtk/gtkwidget.c: Fix inconsistencies, also gint
19241         vs. gboolean.
19242
19243         * gtk/gtkcolorsel.[ch]
19244         * gtk/gtkcombo.[ch]
19245         * gtk/gtkdrawingarea.[ch]
19246         * gtk/gtkgamma.[ch]
19247         * gtk/gtkhandlebox.[ch]
19248         * gtk/gtkhpaned.[ch]
19249         * gtk/gtkhruler.[ch]
19250         * gtk/gtkplug.[ch]
19251         * gtk/gtkpreview.[ch]
19252         * gtk/gtkruler.[ch]
19253         * gtk/gtksocket.[ch]
19254         * gtk/gtkstatusbar.[ch]
19255         * gtk/gtktoolbar.[ch]
19256         * gtk/gtkvbbox.[ch]
19257         * gtk/gtkvpaned.[ch]
19258         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
19259         functions.
19260
19261         * gtk/gtkgamma.h: Fix bug, missing () in call of
19262         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
19263
19264 1999-09-14  Tor Lillqvist  <tml@iki.fi>
19265
19266         * gdk/gdkcolor.c (gdk_colormap_new)
19267         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
19268         colormap->colors was allocated twice.
19269
19270         * gdk/win32/gdk.c: Remove some unused stuff.
19271
19272         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
19273         colormap.
19274
19275         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
19276         * gtk/gtklabel.h (gtk_label_get_type)
19277         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
19278         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
19279         in a couple of places, not guint.
19280
19281 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19282
19283         * configure.in,po/et.po: added Estonian language file
19284
19285 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19286
19287         * configure.in,po/da.po: added Danish file
19288
19289 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
19290
19291         * docs/gtkfaq.sgml: Minor FAQ Update
19292
19293 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
19294
19295         * docs/gtkfaq.sgml: FAQ update
19296
19297 1999-08-27  Tor Lillqvist  <tml@iki.fi>
19298
19299         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
19300         way to get window contents continually refreshed while resizing. I
19301         didn't like the effects myself, so it's not on by default.
19302
19303         * gdk/win32/gdkprivate.h: New flag variable
19304         gdk_event_func_from_window_proc, FALSE by default.
19305
19306         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
19307         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
19308         are passed --gdk-event-func-from-window-proc.
19309
19310         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
19311         and we have am event_func, call it instead of enqueing the event.
19312
19313 1999-08-23  Tor Lillqvist  <tml@iki.fi>
19314
19315         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
19316         Kelley: Set expose_count in GdkEventExposes correctly.
19317
19318         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
19319         MULTIPLE_WINDOW_CLASSES).
19320
19321         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
19322         for bug in NT, apparently NT *does* draw the end pixel, too, in
19323         LineTo with a one-pixel pen, so we don't have to do it ourselves.
19324
19325 1999-08-21  Tor Lillqvist  <tml@iki.fi>
19326
19327         Improvements by Hans Breuer: 
19328
19329         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
19330
19331         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
19332         CS_?REDRAW flags as they cause lots of (late) redraws when "show
19333         window contents while dragging" is turned on. Allocate at least
19334         one unique class for every GdkWindowType. If support for single
19335         window-specific icons is ever needed (eg. Dialog specific), every
19336         such window should get its own class.
19337
19338 1999-08-19  Tor Lillqvist  <tml@iki.fi>
19339
19340         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
19341         error that caused crashes.
19342
19343 1999-08-17  Tor Lillqvist  <tml@iki.fi>
19344
19345         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
19346         window, use ScrollWindowEx, and call UpdateWindow. This prevents
19347         bugs when for instance part of the window was outside the
19348         display. Thanks to Philippe Colantoni for finding and fixing this.
19349
19350 1999-08-16  Tor Lillqvist  <tml@iki.fi>
19351
19352         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
19353         endpoint calculations which were totally wrong. (A little RTFMing
19354         helps a lot ;-)
19355
19356         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
19357         from a separate directory, not from gettext, because of licensing
19358         issues (we want to use the LGPL version).
19359
19360         * README.win32: Mention the intl from glibc vs from gettext issue.
19361
19362 1999-08-13  Tor Lillqvist  <tml@iki.fi>
19363
19364         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
19365         in the key event handling: Now AltGr chars work again. Also,
19366         now Alt-digits are passed up as well as Control-digits.
19367         Pass keypad plus and minus as normal plus and minus.
19368
19369 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
19370
19371         * docs/gtkfaq.sgml: FAQ Update
19372
19373 1999-07-25  Tor Lillqvist  <tml@iki.fi>
19374
19375         * README.win32
19376         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
19377         the Wintab SDK.
19378
19379         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
19380         OK, but getting closer. Guard against bogus tilt data from Wacom
19381         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
19382         enable easier building without Wintab.
19383
19384         * gdk/win32/gdkinput.h
19385         * gdk/win32/gdkevents.c 
19386         * gdk/win32/gdkwindow.c: Minor changes related related to above.
19387         
19388         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
19389         code. As we have just one visual on Win32, no sense to have it in a
19390         table, and no need for the hash table.
19391
19392         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
19393         better on white background.
19394
19395 1999-07-21  Tor Lillqvist  <tml@iki.fi>
19396
19397         * README.win32: Update gcc build instructions. Mention gettext is
19398         GPL.
19399
19400         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
19401         supported cursor size with GetSystemMetrics.
19402
19403         * gdk/win32/gdkfont.c
19404         * gtk/gtkfontsel.c: Guard against some font weight and charset
19405         symbols being undefined (in mingw32 headers).
19406
19407         * gdk/win32/makefile.cygwin
19408         * gtk/makefile.cygwin
19409         * gtk/gtkthemes.c: No longer need to have differently named
19410         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
19411
19412 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
19413
19414         * docs/gtkfaq.sgml: Long awaited FAQ update.
19415
19416 1999-07-15  Tor Lillqvist  <tml@iki.fi>
19417
19418         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
19419         it. Obscure bit manipulation needed.
19420
19421         * gdk/win32/gdkevents.c: Logging.
19422         
19423         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
19424         style (file name include compiler name) for theme engines.
19425
19426 1999-07-13  Tor Lillqvist  <tml@iki.fi>
19427
19428         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
19429
19430         * gdk/win32/gdkevents.c: Fix long-standing bug in key
19431         events. The key.string wasn't zero-terminated, still we strdup'ed
19432         it in gdk_event_copy(). Synthesize crossing events for button
19433         events before possible propagation.
19434
19435         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
19436
19437         * gdk/win32/makefile.cygwin
19438         * gtk/makefile.cygwin: Use new DLL naming style for the
19439         GCC-compiled ones.
19440
19441         * gdk/win32/makefile.msc
19442         * gtk/makefile.msc: Cosmetics mostly.
19443
19444         * gtk/gtk.def: Add missing entry points.
19445
19446         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
19447
19448 1999-07-09  Tor Lillqvist  <tml@iki.fi>
19449
19450         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
19451         or height is zero. Don't print a warning if Pie or Arc fails, they
19452         always fail (?) for very narrow ellipses.
19453
19454         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
19455         the part or the destination window corresponding to source area
19456         outside of the source drawable's boundary.
19457
19458         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
19459         anything if less than two points.
19460
19461         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
19462         return NULL. Gtk cut-and-paste inside a single program works
19463         better this way. (It always gets the clipboard contents from
19464         Windows, not from its own copy, which is cleared anyway. I can't
19465         say I fully understand what happens... Emulating the X selection
19466         and property stuff is a bit of a mess.)
19467
19468         * gdk/win32/gdkevents.c
19469         * gdk/win32/gdkproperty.c: A bit more verbose logging.
19470
19471         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
19472         that never got deleted). Revamp gdk_region_shrink.
19473
19474         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
19475         after use.
19476
19477         * gtk/gtk.def: Add some missing entry points.
19478
19479         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
19480         component.
19481
19482 1999-07-04  Tor Lillqvist  <tml@iki.fi>
19483
19484         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
19485         Control-digits specially.
19486
19487 1999-07-03  Tor Lillqvist  <tml@iki.fi>
19488
19489         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
19490
19491 1999-06-28  Tor Lillqvist  <tml@iki.fi>
19492
19493         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
19494         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
19495         finding this.)
19496
19497 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
19498
19499         * gtk+.spec.in: Corrected some typos in files section.
19500         
19501 1999-06-15  Tor Lillqvist  <tml@iki.fi>
19502
19503         * README.win32: Mention using GNU gettext.
19504         * config.h.win32: Enable NLS stuff.
19505         * gtk/makefile.msc: Use GNU gettext.
19506         * gdk/win32/gdkdnd.c: Minor header reorg.
19507         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
19508         cosmetics.
19509         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
19510         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
19511
19512 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
19513
19514         * acinclude.m4
19515         * config.guess
19516         * config.status
19517         * ltconfig
19518         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
19519
19520 1999-05-30  Tor Lillqvist  <tml@iki.fi>
19521
19522         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
19523         SafeAdjustWindowRectEx. Don't override all calls to
19524         AdjustWindowRectEx by it, but use it only in two places: When
19525         creating a new top-level window and when moving a top-level
19526         window.
19527
19528         Use screen coordinate rectangle, not client rectangle, in
19529         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
19530         when we try to place a window so that the decoration (mainly,
19531         title bar) isn't visible.
19532
19533         These changes fix the bug that showed up for instance as the
19534         GIMP's saved top-level windows moving right and down (by an amount
19535         equal to the window decoration) for each session. This bug showed
19536         up also in testgtk's "Saved Position".
19537
19538         gdk_window_resize also redone a bit.
19539
19540 1999-05-25  Tor Lillqvist  <tml@iki.fi>
19541
19542         * gtk/testgtkrc: Add (commented out) Windows-style theme
19543         include line.
19544
19545         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
19546
19547 1999-05-18  Tor Lillqvist  <tml@iki.fi>
19548
19549         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
19550         gdkx.h to a gdk subdirectory, so that applications can include
19551         these with <gdk/*.h> without trouble.
19552
19553         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
19554         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
19555         have their bitmap destroyed.
19556
19557         * gdk/win32/gdk.def: Add gdk_root_parent.
19558
19559 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
19560
19561         * configure.in
19562           gtk-config.in
19563           ltconfig
19564           ltmain.sh     
19565           gtk/Makefile.am: changes to compile nicely (with xlib) 
19566           on BeOS
19567
19568 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
19569
19570         * acinclude.m4
19571         * config.guess
19572         * config.sub
19573         * ltconfig
19574         * ltmain.sh: upgrade to libtool 1.3
19575
19576 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
19577
19578         * gtk/gtkclist.c:
19579         * gtk/gtkctree.c: merges from gtk-1-2
19580
19581 1999-04-25  Tor Lillqvist  <tml@iki.fi>
19582
19583         Support added for building using a GNU toolchain on Win32,
19584         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
19585
19586         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
19587         * config.h.win32: Changes for gcc.
19588         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
19589         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
19590         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
19591         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
19592         Protect shl stuff unavaiilable with mingw32 headers.
19593         * gdk/win32/gdkevents.c: Fix typo.
19594         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
19595         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
19596         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
19597         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
19598         the mingw32 headers.
19599         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
19600         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
19601         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
19602         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
19603         Test for NATIVE_WIN32, not _MSC_VER.
19604         * gtk/gtkmain.c: No use warning about developer version on Win32,
19605         there aren't any non-developer versions anyhow.
19606         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
19607         * gtk/makefile.msc: Use pthread from another directory. Minor other
19608         changes. 
19609
19610 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
19611
19612         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
19613           default filter from the list
19614
19615 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
19616
19617         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
19618          when gtk_widget_grab_default() is called for a widget that
19619          is not within a GtkWindow.
19620
19621 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
19622
19623         * docs/gtk_tut.sgml, examples/clist.c: use a
19624           scrolled window in the clist example. Minor
19625           tutorial fixes.
19626
19627 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
19628
19629         * docs/gtk_tut.sgml: Style check from David King
19630           <dking@youvegotmail.net>
19631
19632 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
19633
19634         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
19635         compile with unknown value of GDK_WINDOWING
19636
19637 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
19638
19639         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
19640         after the rule is fired.
19641         (install-exec-local): Install gdkconfig.h only if the contents are
19642         different from the currently installed gdkconfig.h.
19643
19644 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
19645
19646         * gdk/Makefile.am (configexecincludedir): Rename from 
19647         configincludedir so that gdkconfig.h will be installed 
19648         as part of `make install-exec'. 
19649
19650 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
19651
19652         * acinclude.m4
19653         * config.guess
19654         * config.sub
19655         * ltconfig
19656         * ltmain.sh: upgrade to libtool 1.2f
19657
19658         * autogen.sh: libtool is not required to autogen gtk+
19659
19660         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
19661         needed)
19662
19663 1999-03-18  Tor Lillqvist  <tml@iki.fi>
19664
19665         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
19666         declaring gdk variables exported/imported from the DLL. New image
19667         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
19668         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
19669         GDK_DRAG_PROTO_OLE2.
19670
19671         * gdk/gdk.h: Merge in Win32 version: Two new functions,
19672         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
19673         declared only for the Win32 version, but could be in the X11
19674         version as well. (Needed for a Xlib-less gdk_imlib.)
19675         gdk_color_hash should have only one parameter. Declare
19676         gdk_threads_mutex with GDKVAR.
19677         
19678         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
19679         just one parameter.
19680
19681         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
19682         per pixel, not bits.
19683
19684         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
19685         Fetch bpp (which means bits-per-pixel here) from another place on
19686         Win32. Accept also depth==32 (which we might get on Win32) with
19687         bpp==32.
19688
19689         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
19690         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
19691         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
19692         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
19693         in the backend-dependent directory, not in the common gdk
19694         directory.
19695
19696         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
19697         headers.
19698
19699 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
19700
19701         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
19702         want to use the Gtk+ devel version (which is true, and yes - even i am
19703         currently working with the 1.2.x branch). so everyone reading this, you
19704         probably want to issue
19705         cvs checkout -r glib-1-2 glib
19706         and
19707         cvs checkout -r gtk-1-2 gtk+
19708         as your next two comands.
19709
19710 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
19711
19712         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
19713         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
19714
19715         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
19716         file. strongly deprecated the GTK_HAVE_* macros, we provide
19717         GTK_CHECK_VERSION() for people that need to check for certain
19718         Gtk+ versions.
19719
19720         * gtk/gtkcompat.h: removed this from CVS.
19721         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
19722         idea right from the start, it just didn't seem like that back then.
19723
19724 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
19725
19726         * merges from gtk-1-2:
19727
19728 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
19729
19730         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
19731         item factory class has been created.
19732         (gtk_item_factory_parse_rc): likewise.
19733
19734         * gtk/gtkmenu.c:
19735         keep proper references for old_active_menu_item.
19736         (gtk_menu_reparent): unset the usize of the new parent,
19737         so the menu can sanely be size requested and we don't get nasty screen
19738         artefacts upon next reparentation.
19739         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
19740         enter notify. only synthesize enter notifies if the pointer really is
19741         inside the event window.
19742         (gtk_menu_popdown): use gtk_menu_shell_deselect().
19743         (gtk_menu_popup): move the background setting stuff into
19744         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
19745
19746         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
19747         gtk_menu_shell_select_item() to select the new item.
19748         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
19749         do the right thing for deselection as well.
19750
19751 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
19752
19753         * gtk/gtkwidget.[hc]:
19754         (gtk_widget_accelerators_locked): return whether a widget's accelerators
19755         are locked.
19756
19757         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
19758         existing accelerators if the widget's accelerators are locked.
19759
19760 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
19761
19762         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
19763
19764         * gtk/gtkmenu.c: truely forward key press and key release events to
19765         the menu widget from the toplevel or tearoff window. we can't simply
19766         connect to that, we need to stop further processing of the events as
19767         well.
19768
19769 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
19770
19771         * gtk/gtkmenu.c:
19772         (gtk_menu_key_press): pass event->keyval, event->state to
19773         gtk_accelerator_valid, instead of event->keyval twice.
19774         refuse to install single letter accelerators for menus that use
19775         single letter shortcuts.
19776
19777         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
19778         gtk_menu_ensure_uline_accel_group().
19779
19780         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
19781         which will always return an uline accel group, made
19782         gtk_menu_get_uline_accel_group() return NULL if the group isn't
19783         yet created.
19784
19785 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
19786
19787         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
19788
19789         * gtk/gtkclist.c (gtk_clist_column_title_passive):
19790         Leave button sensitive, trap  button_press, button_release,
19791         motion_notify, enter_notify and leave_notify events instead.
19792         (gtk_clist_column_title_active): disconnect event handler.
19793         (gtk_clist_drag_data_get): fixed memory leak. Reported by
19794         Guillaume Laurent <glaurent@worldnet.fr>
19795
19796 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
19797
19798         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
19799         width/height mixups.
19800
19801         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
19802         if needed.
19803
19804 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
19805
19806         * gtk/testgtk.c (create_item_factory): unref the item factory after
19807         window's destruction.
19808
19809         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
19810         count on the menu shell around the menu item's activation, since the
19811         signal emission may cause menu shell destruction.
19812
19813         * gtk/gtkitemfactory.c:
19814         the previous code leaked one accel group per menu. we use
19815         gtk_menu_get_uline_accel_group() now to fix that, and with that
19816         also create the underline accelerator group of the menus only if
19817         required (i.e. an underline accelerator has been specified).
19818         (gtk_item_factory_construct):
19819         (gtk_item_factory_create_item): removed code that would create an
19820         extra accel group for the menu (and leak references).
19821         (gtk_item_factory_create_item): adapted the underline accelerator
19822         installation code to properly feature gtk_menu_get_uline_accel_group().
19823
19824         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
19825         menu->accel_group, this may return NULL if the accelerator group
19826         hasn't been set yet.
19827         added gtk_menu_get_uline_accel_group() to retrive the underline
19828         accelerator group of the menu, this will be created on demand
19829         and proper care is taken about its reference count.
19830
19831         * gtk/gtkitemfactory.h:
19832         * gtk/gtkitemfactory.c:
19833         dumped the approach of keeping a widgets by action list on the
19834         factory since the factory<->widget destroy negotiation didn't work
19835         and would be hard to get going at all. instead we keep a list of
19836         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
19837         persistant throughout a program's life time).
19838         also, i removed the static const gchar *key_* variables, and made
19839         them inline strings (they weren't actually used anyways).
19840         (gtk_item_factory_add_item): update ifactory->items.
19841         (gtk_item_factory_destroy): destroy ifactory->items (and remove
19842         the item factory pointer from the remaining ifactory widgets).
19843         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
19844         list to find the widget.
19845         (gtk_item_factory_get_item): new function that works around
19846         gtk_item_factory_get_widget() limitations, this function will only
19847         return menu items, even for <Branch> entries.
19848
19849 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
19850
19851         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
19852         font hash table, if we have a GdkFontPrivate entry for this font
19853         already, simply increment its reference count, provided by Olaf Dietsche
19854         <olaf.dietsche+list.gtk@netcologne.de>.
19855
19856         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
19857         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
19858
19859 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
19860
19861         * gtk/gtkcontainer.c:
19862         (gtk_container_add_with_args):
19863         (gtk_container_addv):
19864         (gtk_container_add): before adding a child to a conatiner, make sure
19865         it is (default) constructed, this is neccessary because under certain
19866         circumstances the child will get relized and mapped immediatedly, in
19867         which case it has to be constructed already.
19868
19869 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
19870
19871         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
19872         values > 1 as TRUE also.
19873
19874 1999-03-16  Tor Lillqvist  <tml@iki.fi>
19875
19876         * README.win32: New file.
19877                 
19878         * configure.in: Check for lstat.
19879
19880         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
19881         completeness.
19882
19883         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
19884
19885         * gtk/gtk.def: Removed CRs.
19886
19887         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
19888         ..\gdk\win32).
19889
19890         * gdk/win32/makefile.msc: Correct upwards relative paths.
19891         
19892 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
19893
19894         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
19895           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
19896           it was connecting a void function to expose_event and the int
19897           returning function to the draw signal
19898
19899 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
19900
19901         * configure.in:
19902         Use correct path to libgmodule.la when ref'ing uninstalled copy
19903         of glib.  (Already in stable branch, Bug #417)
19904
19905 1999-03-15  Tor Lillqvist  <tml@iki.fi>
19906
19907         Win32 merge and general portability stuff:
19908                 
19909         * acconfig.h,configure.in: Check for <sys/time.h>.
19910
19911         * gdk/win32: New directory (actually, been there for a while).
19912         
19913         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
19914         NATIVE_WIN32, and use these. Always case fold on Win32. No
19915         backslashed escapes on native Win32.
19916
19917         * gtk/{gtk.def,makefile.msc}: New files.
19918
19919         * gtk/Makefile.am: Add above new files.
19920         
19921         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
19922         instead of <strings.h>.
19923
19924         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
19925         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
19926         <unistd.h> appropriately.
19927
19928         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
19929         Use ABS() (from <glib.h>) instead of abs().
19930         
19931         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
19932         of gtk (and thus glib) headers, so that WIN32 will be
19933         defined. With MS C, include <direct.h> for mkdir prototype.
19934
19935         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
19936         some casts, needed by MS C.
19937
19938         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
19939         implemented).
19940
19941         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
19942         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
19943         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
19944
19945         * gtk/gtkmain.h: Mark variables for export/import on Win32.
19946                 
19947         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
19948         the event is not a hint, or its window is not the slider. Needed
19949         on Win32, at least.
19950
19951         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
19952         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
19953         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
19954         a subdirectory of the Windows directory as gtk system
19955         configuration directory.
19956
19957         * gtk/gtkselection.c: No chunks on Win32.
19958
19959         * gtk/gtksocket.c: Not implemented on Win32.
19960
19961         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
19962
19963         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
19964
19965         * gtk/maketypes.awk: Declare variables with a macro that expands to
19966         necessary export/import magic in the case of Win32.
19967                 
19968         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
19969
19970 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
19971
19972         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
19973         since those were meant only for gdki18n.h.  
19974         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
19975         for widechar tests.
19976         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
19977
19978 1999-03-13  Tor Lillqvist  <tml@iki.fi>
19979
19980         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
19981         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
19982
19983         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
19984         installed) to CFLAGS.
19985
19986         * gdk/Makefile.am: Add rules for gdkconfig.h.
19987
19988         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
19989         APIs.
19990
19991         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
19992         gdkx.h anyway when compiling for X11.
19993         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
19994         general): Merge in Win32 version.
19995         
19996         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
19997         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
19998         expansion (if we don't have HAVE_PWD_H), allow for drive
19999         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
20000         included code from Craig Setera's port to Win32 (the one that uses
20001         X11, and the cygwin dll), even if it probably will be abandoned.
20002
20003         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
20004         the user entered one herself.  This way one can complete *.h and
20005         don't get matches on any .help files, for instance.
20006         
20007 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
20008
20009         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
20010         font hash table, if we have a GdkFontPrivate entry for this font
20011         already, simply increment its reference count, provided by Olaf Dietsche
20012         <olaf.dietsche+list.gtk@netcologne.de>.
20013
20014         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
20015         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
20016
20017 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
20018
20019         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
20020         the number of calls to gdk_draw_point() (and thus to X) by
20021         clipping the points by hand.
20022
20023         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
20024         the clip parameter.
20025         (gtk_handle_box_paint): Only paint the handle if the expose area
20026         intersects it.
20027
20028 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20029
20030         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
20031
20032 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
20033
20034         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
20035         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
20036
20037 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
20038
20039         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
20040          textmode (O_TEXT) for OS/2 version.
20041
20042 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
20043
20044         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
20045         GtkSpinButton, "input" and "output", to make the output more flexible.
20046         The user has to provide a mapping between adjustment->value and the
20047         output string (and vice versa, if the spin button is editable). 
20048         See testgtk for examples.
20049
20050 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
20051
20052         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
20053         new one.
20054         
20055         * configure.in: set gtk+ version to 1.3.0.