]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-2
Add row_draggable() vfunc, and wrapper function.
[~andy/gtk] / ChangeLog.pre-2-2
1 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
2
3         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
4         Add row_draggable() vfunc, and wrapper function.
5
6         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
7         row_drop_possible take a GtkSelectionData, rather than
8         model/row pair.
9
10         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
11         new DND interfaces.
12
13         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
14         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
15         and rename them to enable_model_drag_source/dest.
16
17         * gtk/treeviewcolumn.c: Add DND of columns between rows.
18         Still can't drop _to_ the left tree, but other places
19         work.
20
21         * gtk/gtktreeview.c (unset_reorderable): Unset the
22         reorderable property if unset/enable_model_drag_source/dest
23         are called manually.
24
25         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
26         Correct for change in depth count handling.
27
28         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
29         Pass in a expose area to gtk_tree_view_column_cell_render()
30
31 2001-11-06  Havoc Pennington  <hp@redhat.com>
32
33         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
34
35 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
36
37         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
38
39 2001-11-05  Havoc Pennington  <hp@redhat.com>
40
41         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
42         widgets in here
43         (gtk_text_view_realize): set parent window of child widgets
44         (gtk_text_view_size_request): use child req to decide whether
45         to invalidate layout, not widget->requisition
46
47         * gtk/gtktextdisplay.c (render_layout_line): set
48         shaped_width_pixels for NULL shape objects, so that we properly
49         draw the "missing pixbuf/widget" thing
50         (render_layout_line): don't draw the widget here
51         (gtk_text_layout_draw): pass out a list of widgets that need exposing
52
53         * demos/gtk-demo/textview.c (insert_text): add demo of child
54         widgets
55
56         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
57
58         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
59
60         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
61         scroll offsets
62         (gtk_text_view_value_changed): poke new X and Y into child allocations
63
64 2001-11-06  Tor Lillqvist  <tml@iki.fi>
65
66         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
67         -specific directory on Windows, too (#63759).
68
69 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
70
71         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
72         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
73         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
74         directly to Picture objects instead of using XftDraw.
75         This fixes the problem where we weren't able to 
76         properly destroy XftDraw objects before destroying
77         the accompanying windows, and probably improves
78         efficiency a bit too. (#50214)
79
80 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
81
82         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
83         Clamp max window width/height to 32767, not 32768 since
84         we have to be able to deal with a dx/y of -32768 without
85         getting a width of 65536 when guffaw scrolling.
86
87         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
88         for the guffaw scrolling case, fixing some problems with
89         copy-area case as well. Fix BadValue bug with moving windows
90         by large amounts.
91
92         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
93         clip in window structue before calling gdk_window_invalidate_region
94         since that trims new invalidations to the window's visible
95         region.
96
97         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
98         Really set the static window gravity on the children, not
99         repeatedly on the window.
100
101         * gtk/testgtk.c: Add a torture test for big windows and 
102         gdk_window_scroll().
103
104 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
105
106         * acconfig.h configure.in: sigsetjmp is macroized in some places,
107         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
108
109 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
110
111         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
112         in terms of pango_color_parse().
113
114         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
115         gdk_color_parse() implementations.
116
117 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
118
119         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
120         queue_resize_on_group with both the old and new mode, not
121         just the new mode. (#60171, Nicolas Setton). Also, notify
122         the "mode" property.
123         
124 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
125
126         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
127         for use in "shallow invalidation" of a widget. (Windows belonging
128         to the widget, but not to the widget's children)
129
130         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
131         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
132         up on ancestors up to the resize container on queue_resize. Size
133         requests only actually take place if GTK_REQUEST_NEEDED, size
134         allocations only take place if GTK_ALLOC_NEEDED or the size
135         changed.
136
137         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
138         container->resize_widgets and the RESIZE_NEEDED flag since the
139         above flags are sufficient to figure out what needs to be
140         resized/reallocated. Remove code manipulating
141         container->resize_widget.
142
143         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
144         allows widgets to turn off being automatically invalidated is when
145         they are resized.
146
147         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
148         a widget is resized or moved is "shallow" as described above -
149         only the windows that need to be invalidated are invalidated.
150
151         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
152         Make these widget's init functions call 
153         gtk_widget_set_redraw_on_allocate(widget,FALSE).
154
155         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
156         _gtk_container_queue_resize(), since we don't want
157         redrawing. (Probably could be done for other 
158         calls to gtk_widget_queue_resize() in gtkwindow.c,
159         but this is the most important one.)
160
161         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
162         gtk_widget_queue_draw() - size_allocate() handles
163         that as appropriate.
164
165         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
166         of queue_clear() to avoid invalidating children.
167
168 2001-11-04  jacob berkman  <jacob@ximian.com>
169
170         * gtk/gtkmain.c (find_module): don't free the module name until
171         after we load the module
172
173 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
174  
175         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
176         derivation instead of boxed derivation.
177  
178         * gtk/gtkmarshal.list: Remove some now unused marshallers.
179  
180 2001-11-04  Tor Lillqvist  <tml@iki.fi>
181
182         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
183         include yesterday, without really thinking), as that defeats the
184         working of correct_libdir_prefix() (it becomes a no-op.). Add
185         comment mentioning that. Thanks to Hans Breuer for noticing.
186         
187 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
188
189         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
190         signal argument (was GtkWidget*).
191
192         * gtk/gtkwindow.c (gtk_window_frame_event),
193           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
194         Fixed argument types as above, removed GTK_WINDOW casts and
195         added some GTK_WIDGET casts instead.
196
197 2001-11-03  Hans Breuer  <hans@breuer.org>
198
199         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
200         finalize to parent class to get removed from the toplevel_list.
201         Should fix 'random' crashes of #63474.
202
203         * gtk/gtktreemodelsort.c : chain finalize() to parent class
204
205 2001-11-03  Tor Lillqvist  <tml@iki.fi>
206
207         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
208         for .dll or .so as appropriate as module suffix.
209
210         * gtk-zip.sh.in: Use correct import library names.
211
212         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
213
214         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
215         Windows to turn build-time paths from a gtk.immodules distributed
216         as part of a binary package into runtime ones in the
217         end-user-chosen installation directory.
218         (gtk_im_module_init): Use it for module path and domain
219         directory.
220
221 2001-11-02  Tor Lillqvist  <tml@iki.fi>
222
223         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
224         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
225         Windows.
226
227 2001-10-30  Tor Lillqvist  <tml@iki.fi>
228
229         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
230         files. Configure on Win32 (running on Cygwin) thinks symlinks
231         exist, but pkg-config is not necesarily a Cygwin program, and
232         doesn't understand them.
233
234 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
235
236         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
237         a bit.  I don't think it's completely correct yet, but it's
238         getting there.
239
240 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
241
242         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
243         random + 5 for width and height. If people want padding,
244         they should add padding. (Note the +5 isn't padding
245         that will always appear - it just appears in the case
246         where the widget is allocated it's requisition.)
247         (#51018, Janet Davis)
248
249 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
250
251         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
252         the structure for future expansion.
253
254 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
255
256         Patch from HideToshi Tajima (#51922)
257         
258         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
259
260         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
261         set_use_preedit().
262         
263         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
264         to destroy the input context because we change the
265         client window or use_preedit, make sure we empty
266         the preedit string.
267
268 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
269
270         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
271         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
272         proposed ordering of buttons with [OK] in the lower
273         right hand corner. Patch from Gregory Merchan,
274         #56331.
275
276 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
277
278         * gtk/gtklabel.c (gtk_label_select_region_index): remove
279         extraneous gtk_label_clear_layout (label)
280
281 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
282
283         * tests/makefile.msc, gtk/makefile.msc.in: Removed
284         -DGTK_DISABLE_COMPAT_H.
285
286         * docs/Changes-2.0.txt:
287         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
288
289         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
290
291 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
292
293         * examples/**/Makefile.am: Convert to use pkg-config
294         rather than gtk-config. (#53375, Skip Montanaro)
295
296 2001-11-02  Matt Wilson  <msw@redhat.com>
297
298         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
299         broken unused, non-compiling, static function.
300
301 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
302
303         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
304         Iterate through children of the action area, not of
305         the vbox. (#58278, Sergey Kuzminov)
306
307 2001-11-01  Havoc Pennington  <hp@pobox.com>
308
309         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
310         order to remove a workaround in Nautilus that forced
311         GTK_ENABLE_BROKEN
312
313         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
314
315 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
316
317         * gtk/gtkrange.c: Patch from George Lebl to 
318         fix division by zero for full scroll bars. (#62114)
319
320 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
321
322         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
323         around gtk_widget_event() if we are going to
324         set a flag afterwards. (#63464)
325
326 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
327
328         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
329         Actually add the missing/broken image icon as the
330         image for the "missing image" stock icon.
331
332 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
333
334         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
335         Set a reasonable default height for the window.
336
337         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
338         bug where subsequent '-' weren't converted to '_'.
339         (#59550, Matthias Clasen)
340
341         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
342         justify the Help menu - just include a comment on
343         how to do it. (#63539,  Marius Andreiana)
344
345         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
346         list GTK_ICON_SIZE_INVALID.
347
348         * demos/gtk-demo/stock_browser.c: Show the biggest available
349         size, not a fixed size. (Often reported, including #63539, 
350         Marius Andreiana)
351
352 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
353
354         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
355         #59583
356
357         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
358         warning.
359
360 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
361
362         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
363         (Daniel Elstner).
364
365 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
366
367         * gtk/gtkimcontext.[ch]: Add:
368           - A ::retrieve_surrounding signal that asks the widget for
369             context around the insertion point.
370           - A ::delete_surrounding signal that asks the widget to 
371             delete context aroudn the insertion point.
372           - gtk_im_context_set_context() for widgets to set context
373             around the insertion point in response to ::retrieve_context.
374           - gtk_im_context_get_context() for context to get context
375             around the insertion point
376
377         * gtkmarshal.list: Add BOOL:INT,INT
378
379         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
380         set_surrounding() methods, and the ::retrieve_surrounding /
381         ::delete_surrounding signals.
382
383         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
384         GtkIMContext::retrieve_surrounding / ::delete_surrounding
385         signals.
386
387 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
388
389         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
390         it's amazing how well things work sometimes, even when they're
391         completely wrong.
392
393         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
394         where you could try to collapse a node w/o it having children.
395
396         (gtk_tree_view_class_init): remove Shift L<->R as they already
397         existed for expand/collapse.
398
399 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
400
401         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
402         found by Matt Wilson.
403
404 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
405
406         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
407         Control, and Shift|Control L<->R, #63475
408
409 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
410
411         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
412         infinite loop noticed by yosh.
413
414 2001-11-01  Michael Meeks  <michael@ximian.com>
415
416         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
417         GTK_REALIZED flag so we don't re-enter when we are
418         destroyed from the plug side.
419
420 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
421
422         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
423         Add a "menu" property and notify on it. (#62798,
424         Padraig O'Briain)
425
426         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
427         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
428         Fix set_text to take a gchar, not a guchar, and to have 
429         a len argument.
430
431 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
432
433         * gtk/gtkstock.c: fix typo to make it compile
434
435 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
436
437         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
438         the widget is insensitive, draw the text insensitively, #63306
439
440 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
441
442         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
443
444 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
445
446         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
447         gtk_selection_data_set_tree_row, #60218
448         (gtk_tree_get_row_drag_data): rename
449         gtk_selection_data_get_tree_row, #60218
450
451         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
452         get this right, after the third try, #63122.
453
454 2001-10-31  jacob berkman  <jacob@ximian.com>
455
456         * gdk/gdkselection.h (GDK_TARGET_STRING): 
457         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
458         for Xatoms (and not using the XA_* macros)!
459
460 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
461
462         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
463         gtk_window_get_focus() getter to determine the currently
464         focused widget within the window. (#63145, request
465         from Damian Ivereigh)
466
467 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
468
469         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
470
471         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
472         GTK_SELECTION_NONE enum.
473         (_gtk_tree_selection_internal_select_node): ditto
474
475         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
476         constness.
477
478         * gtk/gtkcellrenderertoggle.c: more yummy constness.
479
480         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
481         if mode == GTK_SELECTION_NONE
482
483 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
484
485         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
486         "cursor_changed" signal, #62850.
487
488 2001-10-31  Matt Wilson  <msw@redhat.com>
489
490         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
491         allocating the treedatalist, zero it to make sure the values are
492         cleared from any garbage that was in this chunk.
493
494 2001-10-31  Murray Cumming  <murrayc@usa.net>
495
496         * gtk/cellrenderertext.h: "edited" default signal handler
497         gchar* args are now const.
498         gtk/cellrenderertoggle.h: "toggled" default signal handler
499         gchar* arg is now const.
500         Also changed other signal handlers for "edited" and "toggled" to
501         have the same signature.
502
503 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
504
505         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
506         rewrite.  Static models now totally work.  I'm not 100% sure about
507         row_inserted and row_changed, but I'll get those later.
508
509 2001-10-30  Sven Neumann  <sven@gimp.org>
510
511         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
512         output for configure --help.
513
514 2001-10-30  Havoc Pennington  <hp@pobox.com>
515
516         * gtk/gtktextview.c (changed_handler): Update the IM spot location
517         here, if text was invalidated in the visible area, because the
518         scroll offset doesn't normally change in that case, and the mark
519         isn't set, just implicitly moved over as text is added/removed
520         
521 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
522
523         * gtk/gtkseparatormenuitem.c: Code cleanup.
524         (gtk_separator_menu_item_class_init): Fix bugs in this code.
525
526 2001-10-29  jacob berkman  <jacob@ximian.com>
527
528         * gdk/Makefile.am (LDFLAGS): 
529         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
530         LDFLAGS, so put win32 flags in here
531
532 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
533
534         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
535         I can't believe this took this long to fix.
536
537 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
538
539         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
540         reordered signal.
541
542 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
543
544         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
545         the focus to the fileop entry for create dir / rename
546         file. (#62838)
547
548 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
549
550         * configure.in: Don't use AC_CHECK_FILE to check for a 
551         file since it always spits warnings about cross compilation,
552         use -f instead. It's not like we cross compile properly
553         anyways.
554
555         * configure.in (gtktargetlib): Move call to AC_PROG_CC
556         to suppress autoconf warning.
557
558         * acconfig.h: Add some missing #undefs from recent
559         Win32 additions.
560
561 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
562
563         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
564         when we didn't find it. (#62944, Eric Lemings)
565
566         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
567         sign in assignment. (#63209, Arkadiusz Miskiewicz)
568
569 2001-10-29  Anders Carlsson  <andersca@gnu.org>
570
571         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
572         the buttons size request before using it. Fixes #61696.
573
574 2001-10-29  Tor Lillqvist  <tml@iki.fi>
575
576         * README.win32: Updates.
577
578         * gtk-zip.sh.in: New file, used to build distribution package for
579         Windows.
580
581         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
582         applicable with GDKVAR.
583
584         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
585         Wintab library.
586
587         * gdk/win32/gdkwin32.h
588         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
589         X11 headers better, and to enable gdkwin32.h to be installed and
590         included from applications, but not the *-win32.h headers.
591
592         * gdk/win32/*.c: Corresponding small changes, simplifications of
593         #includes.
594         
595         * gdk/win32/gdkregion-win32.c: Remove.
596
597         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
598
599         * gdk/win32/gdkfont-win32.c
600         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
601
602         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
603         GDK_NONE values into hash table.
604
605         * gtk/gtk.def: Update.
606
607         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
608         gethostname().
609
610         * gtk/gtkmain.c 
611         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
612         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
613         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
614         g_win32_get_package_installation_subdirectory() with the actual
615         DLL name saved above. Redefine above directory name macros to call
616         these functions. Remove some ifdefs.
617
618         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
619         variable for export on Win32) also to the _vars file.
620
621         Changes for autoconfiscated build on Win32, and addition of Win32
622         backend to the related files:
623         
624         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
625         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
626         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
627         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
628         win32 target, using pangowin32. Don't use the
629         -export-symbols-regex option on Win32, we use .def files to list
630         exported symbols. Check <winsock.h> (for gethostname() in
631         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
632         prevent premature m4 expansion.
633
634         * acconfig.h: Add HAVE_WINTAB.
635
636         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
637         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
638         MS_LIB_AVAILABLE, build MS import library. Install the import
639         libraries. If HAVE_WINTAB, link with the Wintab library.
640
641         * gdk/win32/Makefile.am: Actually enable building the win32
642         objects here, not just list all files in EXTRA_DIST. Link in the
643         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
644         copy the Wintab library into the .libs directory. 
645
646         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
647         name of the GDK DLL when fetching the icon. Use the HMODULE saved
648         in gdk_dll_hinstance by DllMain.
649
650         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
651         build/win32/lt-compile-resource script.
652
653         * gdk/win32/rc/gdk.rc.in
654         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
655
656         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
657         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
658         file. Install import libraries.
659
660 2001-10-29  Anders Carlsson  <andersca@gnu.org>
661
662         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
663
664 2001-10-28  Hans Breuer  <hans@breuer.org>
665
666         * gdk/gdk.c gdk/gdkevents.c
667           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
668           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
669           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
670           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
671           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
672           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
673           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
674         static correct-ness, underscore prefixing of library internal 
675         functions
676         (applied the undisputed and the win32 part. Of the latter 
677          I'm probably the one who will change it back again, if Owen
678          decides that the Gdk*Impl types should not be private to Gdk)
679
680         * gdk/gdk.def : added the remaining exported functions
681
682 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
683
684         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
685         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
686         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
687
688 2001-10-28  jacob berkman  <jacob@ximian.com>
689
690         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
691         gtk_settings_get_default() here as that requires an X connection
692         (which breaks doc building with no X connection) and is not
693         multihead safe
694         (gtk_color_selection_init): delay palette loading until realize
695         time
696         (gtk_color_selection_realize): load the palette, and initialize
697         the global palette if it hasn't been already
698
699         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
700         visual/cmap fields of klass->info since they are gone
701         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
702         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
703         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
704
705         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
706         cmap fields
707         (gtk_preview_get_visual):
708         (gtk_preview_get_cmap): mark as deprecated
709
710         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
711         changes
712
713 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
714
715         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
716         structure to have GObject not GtkObject as
717         parent_instance. (Jeff Franks.)
718
719 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
720
721         * gdk/x11/gdkinput.c: Typo fix.
722
723 2001-10-26  Havoc Pennington  <hp@pobox.com>
724
725         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
726         update_im_spot_location here explicitly
727         (gtk_text_view_reset_im_context): don't update the spot location
728         here
729
730 2001-10-27  Anders Carlsson  <andersca@gnu.org>
731
732         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
733         This fixes #62942.
734
735         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
736         Clarify that we're returning a spin button in the _new function.
737         This fixes #54097.
738         
739 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
740
741         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
742         Unfortunately, people apparently erroneously connect
743         to ::clicked for GtkToggleButton and expect
744         they know what happened in the default signal handler
745         instead of appropriately connecting to notification
746         signal ::toggled. When the revolution comes, such
747         people will be first against the wall.
748
749         We'll just have to go back to the old less-reliable
750         set-it-back hacks for handling model-view check
751         buttons and radio buttons. :-(. 
752
753 2001-10-27  Hans Breuer  <hans@breuer.org>
754
755         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
756           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
757           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
758           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
759           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
760           gtk/gtktreestore.c gtk/gtkvbbox.c : 
761         to simplify parsing for exported functions:
762         - made implementation signature static, when the local 
763           prototype already was
764         - put the functions return value on it's own line
765         - added as space between the function name and the 
766           opening bracket
767
768         * gtk/gtk.def : added the remaining exported functions
769
770 2001-10-27  Anders Carlsson  <andersca@gnu.org>
771
772         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
773         Add note about width having to be greater than 0. This fixes
774         #55574. 
775
776         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
777         Fix docs to say previous instead of next.
778         (gtk_text_iter_backward_word_start): Likewise.
779         This fixes bug #62980.
780
781         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
782         that the valid width is in range 0-65535 pixels. Fixes bug 
783         #56754.
784
785         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
786         a dot in the documentation. Fixes bug #62632.
787
788         * gdk/x11/gdkmain-x11.c: Replace int and guint with
789         long and gulong in some places to make the code 64-bit
790         clean.
791         (_gdk_windowing_init_check): Replace gint with gulong.
792         This patch was made by George Lebl and fixes bug #62113.
793
794         * tests/testgtk.c (create_range_controls): Don't set a 
795         fixed height on the hscale widget. This fixes "bug" 
796         #55840.
797         (create_window_states): Set up destroy signals so that
798         all windows will be destroyed when one is. This fixes 
799         bug #58133.
800
801 2001-10-26  Anders Carlsson  <andersca@gnu.org>
802
803         * gtk/gtktreeview.c: 
804         (gtk_tree_view_class_init): Create new "indent_expander"
805         style property.
806
807         (gtk_tree_view_get_arrow_xrange): Add a tree argument
808         to the function since the xrange can change depending
809         on where in the tree we are. 
810         
811         (coords_are_over_arrow): Update function call to
812         gtk_tree_view_get_arrow_xrange.
813         (gtk_tree_view_draw_arrow): Likewise.
814         
815         (gtk_tree_view_real_expand_collapse_cursor_row):
816         Call real_{expand|collapse}_row, so that we'll have an
817         animation.
818
819 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
820
821         * tests/Makefile.am: fixed a small typo
822
823 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
824
825         * demos/gtk-demo/list_store.c (create_model): Anders
826         Carlsson suggested to use G_N_ELEMENTS here
827
828 2001-10-26  Sven Neumann  <sven@gimp.org>
829
830         * gtk/gtkbutton.[ch]
831         * gtk/gtkdnd.c: fixed inline comments
832         
833         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
834
835 2001-10-26  Hans Breuer  <hans@breuer.org>
836
837         * gdk-pixbuf/gdk_pixbuf.def : 
838         * gdk/gdk.def : 
839         * gtk/gtk.def : updated externals
840
841         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
842         gdk_window_lookup implementation. It already was in
843         gdk/win32/gdkwindow-win32.c
844
845         * gdk/win32/gdkproperty-win32.c : made it compile again
846         after GdkAtom API change
847
848         * gtk/gtk/makefile.msc.in : updated
849
850 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
851
852         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
853         require GLib 1.3.10.
854
855         * NEWS: updates.
856
857 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
858
859         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
860         invalid nodes.
861          (_gtk_rbnode_rotate_right): Ditto.
862          (_gtk_rbtree_node_mark_invalid): New function.
863          (_gtk_rbtree_node_mark_valid): New function.
864
865         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
866         GObject, not a GtkObject.
867         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
868         correct.
869         (gtk_tree_model_sort_row_deleted): ditto.
870         (gtk_tree_model_sort_{un,}ref_node): Fix.
871
872         * gtk/gtktreeview.c: Protean incremental reflow support (commented
873         out)
874
875         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
876         to const char *key.
877
878         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
879         Important 1 line fix to fix a lot of refcounting woes.
880
881 2001-10-25  Matt Wilson  <msw@redhat.com>
882
883         * gtk/gtktextview.c (gtk_text_view_destroy): call
884         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
885         now invalidates) so that we remove our idle functions.
886         (gtk_text_view_destroy_layout): remove the first_validate_idle as
887         well.
888
889         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
890         the 'indent' property is G_MININT to G_MAXINT.  Don't use
891         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
892         instead.
893
894 2001-10-24  Anders Carlsson  <andersca@gnu.org>
895
896         * gtk/gtktreeview.c: 
897         (gtk_tree_view_real_expand_row): add an animate argument
898         (gtk_tree_view_real_collapse_row): likewise
899         
900         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
901         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
902         (gtk_tree_view_collapse_row): update functions that call
903         real_{expand|collapse}_row to set the animate argument 
904         accordingly.
905         
906 2001-10-24  Alex Larsson  <alexl@redhat.com>
907
908         * gdk/linux-fb/gdkfont-fb.c:
909         Update to new Pango APIs
910
911         * gdk/linux-fb/gdkproperty-fb.c:
912         Update to new GdkAtom APIs
913
914         * gdk/linux-fb/gdkwindow-fb.c:
915         Remove warnings
916
917 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
918
919         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
920
921 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
922
923         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
924         s_path as a child path
925
926 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
927
928         * gtk/gtktreemodelsort.c: more changes in an attempt to get
929         it right. It's not yet ready for general consumption.
930
931         * tests/treestoretest.c: add a button and entry for the new
932         iter_change function
933         (iter_change): new function, to test
934         the row_changed signal implementation of the GtkTreeModelSort
935
936         * tests/testtreesort.c: cleanups, changes to test more features
937         of the GtkTreeModelSort at once
938
939 2001-10-24  Havoc Pennington  <hp@redhat.com>
940
941         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
942         remove hack to strip off the bogus newline, since we killed the
943         bogus newline; fixes #61779
944
945 2001-10-24  Havoc Pennington  <hp@redhat.com>
946
947         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
948         create layout if we didn't have one
949         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
950         as appropriate, avoids blanking the screen 
951         (gtk_text_view_invalidate): new function to do invalidation,
952         containing old guts of invalidated_handler
953
954 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
955
956         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
957         dreadful tooltips.
958
959 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
960
961         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
962         set window->parent (except or the root window itself); if 
963         the window's parent is not a GdkWindow, or is a window of 
964         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
965
966         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
967         windows of type GDK_WINDOW_FOREIGN.
968
969 2001-10-24  Havoc Pennington  <hp@pobox.com>
970
971         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
972         the front of a segment, use the "slow" technique for moving
973         backward, so we don't mess up the any_segment field in the iter. 
974         Fixes #57707
975
976         * tests/testtextbuffer.c: add code to detect #57707, to avoid
977         regression
978
979 2001-10-23  Havoc Pennington  <hp@redhat.com>
980
981         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
982         if selection contains some editable text, #60975
983         (gtk_text_view_scroll_to_iter): remove warning about scrolling
984         prior to map; it should actually be OK to do so in many cases, 
985         it would be nice to warn about scrolling when many lines have
986         height 0, but I don't know what to do about that. Perhaps 
987         move part of flush_scroll into this function? comment added 
988         to consider this.
989
990 2001-10-23  Havoc Pennington  <hp@redhat.com>
991
992         * gtk/gtktextview.c (changed_handler): Correctly keep the same
993         text on the top of the screen, considering that the changed region
994         may have overlapped the first paragraph. Should fix msw's "text
995         widget scrolled to wrong place on map" bug, and probably some
996         other scrolling cases as well.
997         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
998         instead of some random value
999
1000         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
1001         grab_focus, so #59708 is really fixed
1002
1003 2001-10-24  Anders Carlsson  <andersca@gnu.org>
1004
1005         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
1006         (popup_targets_received): Call append_action_signal with stock items
1007         
1008         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
1009         (gtk_label_do_popup): Call append_action_signal with stock items
1010         
1011         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
1012         (popup_targets_received): Call append_action_signal with stock items
1013
1014 2001-10-23  Havoc Pennington  <hp@redhat.com>
1015
1016         * gtk/gtktextview.c (changed_handler): queue a resize here; will
1017         temporarily slow down the widget a lot, until we figure out how to
1018         optimize to avoid full redraw everytime we queue a resize.
1019
1020 2001-10-23  Havoc Pennington  <hp@redhat.com>
1021
1022         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
1023         0 and char_len == 0, bug #61729
1024
1025 2001-10-23  Havoc Pennington  <hp@redhat.com>
1026
1027         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
1028         return value, #61714 (Vitaly Tishkov)
1029         (gtk_text_iter_backward_sentence_starts): ditto
1030         (gtk_text_iter_backward_word_starts): ditto
1031         (gtk_text_iter_forward_word_ends): ditto
1032         (gtk_text_iter_forward_sentence_ends): ditto
1033         (gtk_text_iter_backward_cursor_positions): ditto
1034
1035 2001-10-23  Havoc Pennington  <hp@redhat.com>
1036
1037         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
1038         fix from Dov Grobgeld, #61858
1039
1040 2001-10-23  Havoc Pennington  <hp@redhat.com>
1041
1042         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
1043         Update IM spot location at appropriate times, #50626
1044         (Hidetoshi Tajima)
1045
1046 2001-10-23  Havoc Pennington  <hp@redhat.com>
1047
1048         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
1049         on grab focus, unless it's caused by button click, #59708
1050
1051 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
1052
1053         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
1054
1055         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
1056         G_CONST_RETURN. (Murray Cumming)        
1057
1058         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
1059         Make G_CONST_RETURN.
1060
1061         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
1062         results of g_get_home_dir().
1063
1064         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
1065         copy. Storing the return from gtk_entry_get_text() is evil.
1066
1067         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
1068         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
1069         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
1070         gtk/gtksignal.c: Add const.
1071
1072         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
1073
1074         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
1075         if we are setting them on private widgets.
1076
1077         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
1078         Duplicate entry->text before setting it as object data.
1079
1080 2001-10-22  Havoc Pennington  <hp@redhat.com>
1081
1082         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
1083         up a char from the end iterator, fixes #61859 ("can't put cursor
1084         at the end of the buffer")
1085
1086         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
1087         to work with delimiters other than newline.
1088
1089         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
1090         get_bytes_in_line
1091
1092         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
1093         last line, since the newline is no longer counted.
1094         (gtk_text_iter_get_bytes_in_line): ditto
1095
1096 2001-10-22  Havoc Pennington  <hp@redhat.com>
1097
1098         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
1099         #58290 would trigger if it reappeared, I think
1100
1101 2001-10-22  Havoc Pennington  <hp@redhat.com>
1102
1103         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1104         add temporary code to dump btree contents on assertion failure
1105         described in #62656
1106         
1107         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
1108         assertions that we're getting the right end iter segment
1109
1110         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1111         verify that we aren't on the end iterator after moving 
1112         forward one segment - fixes return value in an obscure case. 
1113         Also, some trivial code cleanup/rearranging.
1114         
1115 2001-10-22  Havoc Pennington  <hp@redhat.com>
1116
1117         * gtk/gtktextlayout.h: add a #error unless you define
1118         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
1119
1120         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
1121         
1122 2001-10-22  Havoc Pennington  <hp@redhat.com>
1123
1124         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
1125         #62365
1126
1127 2001-10-22  Havoc Pennington  <hp@redhat.com>
1128
1129         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
1130         #62436
1131
1132 2001-10-22  Havoc Pennington  <hp@redhat.com>
1133
1134         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
1135         #62366
1136
1137 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
1138
1139         * gtk/gtklabel.c: Add cursor-position, selection-bound 
1140         properties. (#62148, reported by Padraig O'Briain)
1141
1142         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
1143         to cursor_position. (1.3.x addition, text_position is an awful
1144         name.) Make cursor_position read-only to avoid sticky questions
1145         of interaction with selection_bound. (#62636, reported by
1146         Padraig O'Briain)
1147
1148 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
1149
1150         Fixing popup menus to have "Paste" sensitized correctly. Original
1151         patches from Damian Ivereigh, much mangled.
1152
1153         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
1154         gtk_selection_data_targets_include_text(). (#60854)
1155
1156         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
1157         the clipboard has text" function gtk_clipboard_wait_is_text_available.
1158         (#60854)
1159
1160         * gtk/gtkentry.c: Only enable the paste item if the clipboard
1161         contains text. (#60973)
1162
1163         * gtk/gtktextview.c: Only enable the paste item if the clipboard
1164         contains text. (#60975)
1165
1166 2001-10-22  Havoc Pennington  <hp@redhat.com>
1167
1168         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
1169         "height_lines" and "width_columns" properties, it doesn't make
1170         sense to set the size request on a text view really. #62103
1171
1172 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
1173
1174         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
1175         g_node_depth is broken, and that it's not worth being consistent
1176         with it.
1177
1178 2001-10-22  Havoc Pennington  <hp@redhat.com>
1179
1180         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
1181         docs, #61777
1182         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
1183         change the two boolean args to a flags field, so we can extend 
1184         to add case insensitive, regexp searches later. #61852
1185
1186 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
1187
1188         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
1189         reflect reality, #62810
1190
1191 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
1192
1193         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
1194
1195         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
1196         system.  Instead of having a window the size of the tree, we have
1197         a window the size of widget->allocation, and simply draw with the
1198         offset.
1199         (coords_are_over_arrow): ditto.  Move to window coordinates.
1200         (do_prelight): ditto
1201         (do_unprelight): ditto
1202
1203         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1204         Minor fix from Kristian Rietveld to fix unsorted case.
1205
1206 2001-10-22  jacob berkman  <jacob@ximian.com>
1207
1208         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
1209         a PIXMAP cell (fixes crash when using PIXTEXT cells)
1210
1211 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
1212
1213         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
1214         (#58768, Vitaly Tishkov)
1215         
1216         * gtk/gtkobject.h: Deprecate with abandon. 
1217         (#61942, Vitaly Tishkov, Matthias Clasen)
1218
1219         * gtk/gtksignal.h: Deprecate everything.
1220
1221         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
1222         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
1223         (#61942, Matthias Clasen)
1224
1225         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
1226         Havoc Pennington)
1227
1228         * gtk/gtkitemfactory.h: Deprecate compat functions
1229         for GtkMenuFactory code. (#62071)
1230
1231         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
1232         gdk_draw_text,gdk_draw_text_wc. (#62071)
1233
1234 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
1235
1236         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
1237         g_thread_init(), we don't want to link to -lgthread if we don't
1238         have to.
1239
1240 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
1241
1242         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
1243         Add a function, gdk_threads_init() that must be explicitely 
1244         called to enable the GDK thread mutex.
1245
1246 2001-10-22  Jakub Steiner <jimmac@ximian.com>
1247
1248         * gtk/stock-icons/stock_stop.png: no body parts
1249         
1250 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
1251
1252         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
1253         problem with g_return_if_fail return value.
1254
1255         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
1256         virtual atom code from the gdk-multihead branch, removing the per-display
1257         part. Virtualizing atoms needs to be done now to prevent compat
1258         breakage in direct Xlib accessing code in the future. (#62208)
1259  
1260         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
1261         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
1262  
1263         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
1264         an opaque pointer type so the compiler catches attempts
1265         to mingle it with X atoms.
1266
1267         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
1268           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
1269           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
1270           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
1271           tests/testdnd.c,tests/testselection.c: 
1272         Fix up for above atom changes.
1273
1274         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
1275         now have the ability to add custom predefines.
1276
1277         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
1278         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
1279         to gtk_clipboard_get().
1280
1281         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
1282         for GdkAtom => pointer change.
1283
1284         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
1285         atoms, fix for GdkAtom => pointer change.
1286
1287 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
1288
1289         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
1290         new function spin_button_get_arrow_size() instead.
1291
1292         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
1293         arrow was hardcoded, it's now variable.
1294
1295         Fixes bug #50200
1296
1297 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
1298
1299         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
1300         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
1301         for those
1302
1303 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
1304
1305         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
1306         in favor of g_signal_*, gtk_object_* in favor of 
1307         g_object_*.
1308
1309 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
1310
1311         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
1312         from GObject now, we have to use the g_object_* functions, not
1313         gtk_object_*.
1314
1315 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
1316
1317         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
1318         nailed down now (this code is not yet ready for general consumption)
1319
1320 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
1321
1322         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
1323         for use_align
1324
1325 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
1326
1327         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
1328
1329 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
1330
1331         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
1332         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
1333         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
1334         GObject, not GtkObject. (#62621)
1335
1336 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
1337
1338         * tests/testsocket.c: Remove now useless include of unistd.h,
1339         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
1340         
1341 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
1342
1343         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
1344         Pango font API. #61933. (Untested, even for compilation.)
1345
1346 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
1347
1348         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
1349         export gtk_disable_setlocale(). (Caught by Sven Neumann)
1350
1351 2001-10-18  Havoc Pennington  <hp@redhat.com>
1352
1353         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
1354
1355 2001-10-18  Havoc Pennington  <hp@redhat.com>
1356
1357         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
1358         to GTK_RUN_LAST, #50239
1359
1360 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
1361
1362         * gtk/gtkimmodule.c (match_locale):
1363         Support "*" for all locales with least priority
1364         when to select default im module, #58201
1365
1366 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
1367
1368         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
1369         Fix docs. (#61976)
1370  
1371         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
1372
1373         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
1374
1375         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
1376         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
1377         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
1378         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
1379         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
1380         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
1381         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
1382
1383         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
1384
1385         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
1386         Don't restrict the width of the spinbutton entry field 
1387         to 10 digits. (#58681)
1388
1389 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
1390
1391         * tests/testtreeflow.c: new test program for the tree.
1392
1393 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
1394
1395         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
1396         reported by (Oleg Maiboroda), #62600
1397
1398 2001-10-18  Michael Meeks  <michael@ximian.com>
1399
1400         * gtk/gtkentry.c (gtk_entry_set_property),
1401         (gtk_entry_get_property): impl 'text'
1402         (gtk_entry_class_init): add the 'text' prop.
1403         (gtk_entry_insert_text): notify 'text' changed.
1404         (gtk_entry_delete_text): ditto.
1405
1406 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
1407
1408         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
1409         Documentation updates.
1410
1411 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
1412
1413         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
1414         in truncating length of text to MAX_SIZE. (Found by 
1415         Padraig O'Briain, #62055)
1416
1417 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
1418
1419         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
1420         MNEMONIC_ACTIVATE; signal was changed a long time
1421         ago.
1422
1423         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
1424         Fix wrong return statement. (Reported by HideToshi
1425         Tajima and others.)
1426
1427         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
1428         left over select_all vfunc.
1429
1430 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
1431
1432         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
1433         a utility function to translate coordinates relative to
1434         one widget's allocation to coordinates relative to another
1435         widget's allocation.
1436
1437         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
1438         that:
1439          - only accepts external focus if there is no active
1440            member of the group or the button is active.
1441          - makes arrow keys move the active button as well
1442            as the focus
1443          - make tab tab out directly.
1444         This makes a radio button group act as a single focus location.
1445         (#53577).
1446         
1447         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
1448         it was only a small optimization that didn't matter and made
1449         things more complicated.
1450
1451         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
1452         sorter for FOCUS_TAB as we did for the other focus directions,
1453         sort by center of widgets, not upper-left corner. (Shouldn't
1454         matter in general.)
1455
1456         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
1457         from the different types of focusing: encapsulate sorting the
1458         widgets for the focus direction into one routine
1459         (gtk_container_focus_sort()) and then share the work of moving the
1460         focus between the different focus directions.
1461
1462         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
1463         work correctly with focus chains containing non-immediate
1464         children. Sorting was being done using allocation coordinates for
1465         each widget in the focus chain, and if there were intermediate
1466         window-widgets, these allocations would not be in the same
1467         coordinate system.
1468
1469 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
1470
1471         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
1472         mnemonic_activate function to option menu.
1473
1474 2001-10-15  Murray Cumming <murrayc@usa.net>
1475
1476         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
1477           Corrected the type names used in some calls to g_signal_new().
1478         
1479 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
1480
1481         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
1482         specs, use g_pattern_spec_equal() instead of direct field accesses.
1483         upon compressing two equal paths of the same type, the resulting
1484         priority has to be the maximum.
1485         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
1486         GtkPathPriorityType enum and make it a macro.
1487
1488 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
1489
1490         * gtk/gtkwidget.c: Fix some doc comments.
1491
1492 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
1493
1494         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
1495         on empty models.
1496
1497 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
1498
1499         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
1500         Remove stale gdk backend includes.
1501  
1502 2001-10-10  Michael Meeks  <michael@ximian.com>
1503
1504         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
1505         and value_in_list properties.
1506         (gtk_combo_set_value_in_list): notify change.
1507         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
1508
1509 2001-10-11  James Henstridge  <james@daa.com.au>
1510
1511         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
1512         that gtk+ can be built with automake 1.5 while not breaking
1513         things for automake 1.4.
1514
1515 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
1516
1517         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
1518         (#60606)
1519
1520         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
1521         to disable calling setlocale (LC_ALL, "").
1522
1523         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
1524         docs that this function is not typically useful.
1525
1526         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
1527         Automatically initialize GDK for the current locale
1528         on gdk_init(). Don't reset locale to C when
1529         XSupportsLocale() fails.
1530
1531         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
1532         useless checks for UTF-8 locale breakage that mattered
1533         only for X.
1534
1535         * examples/calendar/calendar.c
1536         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
1537         gtk_set_locale().
1538
1539         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
1540         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
1541
1542 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
1543
1544         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
1545
1546         Fixes bug #61904
1547
1548 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
1549
1550         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
1551         new function, #61923
1552         (gtk_tree_selection_path_is_selected): Ditto
1553
1554 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
1555
1556         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
1557         not a GtkObject.  Thanks andersca.
1558
1559         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
1560
1561 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
1562
1563         * gtk/gtktreeviewcolumn.c
1564         (gtk_tree_view_model_sort_column_changed): fix broken code.
1565
1566 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
1567
1568         * gtk/gtkselection.c: s/succesfully/successfully/g
1569
1570 2001-10-08  Havoc Pennington  <hp@pobox.com>
1571
1572         * demos/gtk-demo/stock_browser.c: remove unused enum
1573
1574         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1575         pass the current selection state of the node in to the user
1576         selection func
1577
1578 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
1579
1580         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
1581         non-existent function gdk_x11_cursor_get_xid 
1582         by gdk_x11_cursor_get_xcursor.
1583
1584 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
1585
1586         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
1587         warning.
1588
1589         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
1590         unref nodes, #okay61676
1591
1592         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
1593         to the property; no need to clear the other columns.  Also, we go
1594         to 'unsorted' if the model supports it.
1595
1596 2001-10-05  Sven Neumann  <sven@gimp.org>
1597
1598         * demos/testpixbuf-save.c
1599         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
1600         feature.
1601
1602 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
1603
1604         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
1605         destroy the search dialog
1606
1607         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
1608         added check to prevent creation of a search dialog if there's
1609         already one around
1610
1611         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
1612         it instead of "search-dialog" (when getting/setting the search dialog
1613         widget).
1614
1615 2001-10-05  Jakub Steiner <jimmac@ximian.com>
1616
1617         * gtk/stock-icons/stock_broken_image.png: broken images icon
1618
1619 2001-10-04  Havoc Pennington  <hp@pobox.com>
1620
1621         Fix #56586
1622         
1623         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
1624         accelerator setting here...
1625
1626         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
1627         because we try to use it when a menu bar hasn't necessarily been 
1628         initialized.
1629
1630 2001-10-03  Havoc Pennington  <hp@redhat.com>
1631
1632         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
1633         it previously verified incorrect behavior
1634
1635         Fixes for #61565
1636         
1637         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
1638         off the end
1639         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
1640         the end
1641         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
1642         the end
1643         (gtk_text_iter_forward_lines): if on the last line, move to end of
1644         it
1645
1646         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
1647         don't return a line off the end
1648
1649 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
1650
1651         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
1652         functions to do_insert_text and do_delete_text, add signals
1653         insert_text, delete_text and changed
1654
1655         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
1656         and changed. Updates to match new situation.
1657
1658         * gtk/gtkspinbutton.c: updates to match new situation
1659
1660         * gtk/gtkoldeditable.h: remove signals changed, insert_text
1661         and delete_text
1662
1663         * gtk/gtkoldeditable.c: updates to match new situation
1664
1665         * gtk/gtktext.c: updates to match new situation
1666
1667         Fixes bug #59803
1668
1669 2001-10-03  Havoc Pennington  <hp@redhat.com>
1670
1671         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
1672         position
1673
1674         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
1675         changes
1676
1677         * tests/testtextbuffer.c (logical_motion_tests): updates
1678
1679 2001-10-03  jacob berkman  <jacob@ximian.com>
1680
1681         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
1682         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
1683         * gtk/gtksettings.c (apply_queued_setting): 
1684         * gtk/gtkmain.c (gtk_init_check): 
1685         * gtk/gtkcontainer.c (gtk_container_child_get_property):
1686         s/retrive/retrieve/
1687
1688 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
1689
1690         * gtk/gtktreemodelsort.[ch]: preparation for surgery
1691         * tests/testtreesort.c: ditto
1692
1693 2001-10-02  Havoc Pennington  <hp@redhat.com>
1694
1695         Throughout: assorted docs
1696         
1697         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
1698         gdk_window_set_geometry_hints() should be used instead.
1699
1700         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
1701         document them
1702
1703         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
1704         seem to exist in any .c files
1705
1706         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
1707         g_return_if_fail (pixel < colormap->size).
1708
1709 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
1710
1711         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
1712         NULL for @target_list to mean, use
1713         gtk_drag_dest_get_target_list (widget).
1714
1715         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
1716         drop could hang when calling gtk_drag_finish with 
1717         success == FALSE and del == TRUE.
1718
1719         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
1720         drops without a matching target found would propagate
1721         to the parent widget rather than being rejected.
1722
1723         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
1724         Use text_view->dnd_mark instead of mark name to be
1725         consistent with the rest of the code.
1726
1727         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
1728         pendantically correct for a drop-only-in-some-places
1729         widget. (Check whether you can insert in drag_drop,
1730         not just in drag_motion ... matters in theory, and
1731         for Motif drag and drop in practice.)
1732
1733         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
1734         Damian Ivereigh to not allow drops on non-editable
1735         entries. (#61124)
1736
1737         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
1738         text to be moved from a non-editable entry.
1739         
1740 2001-10-03  James Henstridge  <james@daa.com.au>
1741
1742         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
1743         s/width/fixed_width/ in order to get things to compile.
1744
1745 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
1746
1747         * gtk/gtkcelleditable.c: docs
1748
1749         * gtk/gtktreemodel.h: more docs.
1750
1751 2001-10-02  Havoc Pennington  <hp@redhat.com>
1752
1753         * gdk/x11/gdkwindow-x11.c: docs
1754
1755         * tests/testtextbuffer.c (logical_motion_tests): add sentence
1756         boundary tests
1757
1758 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
1759
1760         * demos/gtk-demo/Makefile.am: add editable_cells.c,
1761         list_store.c and tree_store.c
1762
1763         * demos/gtk-demo/appwindow.c: remove tearoff item from
1764         File menu, put menubar and toolbar in handle boxes.
1765
1766         * demos/gtk-demo/genincude.pl: various changes to support trees
1767
1768         * demos/gtk-demo/main.c: various changes to support trees
1769
1770         * demos/gtk-demo/stock_browser.c: changed name of demo
1771         to Stock Item and Icon Browser, so geninclude.pl doesn't see
1772         it as child
1773
1774         * demos/gtk-demo/editable_cells.c: new file/demo
1775         * demos/gtk-demo/list_store.c: new file/demo
1776         * demos/gtk-demo/tree_store.c: new file/demo
1777
1778 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
1779
1780         * gtk/gtkrc.c gtk/gtksettings.c: 
1781         g_string_printfa => g_string_append_printf.
1782
1783 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
1784
1785         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
1786         and destroy handler.
1787
1788         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
1789
1790         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
1791         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
1792         Singh <yosh@gimp.org>.
1793
1794 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
1795
1796         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
1797         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
1798
1799         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
1800
1801 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
1802
1803         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
1804         scroll_to_cell delayed code to happen in size_allocate.
1805
1806         * gtk/gtkstyle.c (gtk_default_draw_expander): change
1807         prelight/normal arrow drawing.
1808
1809         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
1810
1811         * gtk/gtktreestore.c: refactor.
1812
1813 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
1814
1815         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
1816         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
1817         centers the child in relation to the to indicator height.
1818
1819 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
1820
1821         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
1822         correct
1823
1824 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
1825
1826         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
1827         property code using g_param_spec_int and changed from
1828         g_value_get_enum to g_value_get_int instead. Probably a better way
1829         to fix the problem :-)
1830
1831 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
1832
1833     * gtk/gtkcellrenderertext.c changed "weight" property type from 
1834       g_param_spec_int to g_param_spec_enum.
1835
1836 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
1837
1838         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
1839         fix: s/Wether/Whether/ in reorderable property description
1840
1841 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
1842
1843         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
1844         start editing when you select with a keyboard.
1845
1846         (gtk_tree_view_button_press_event): much more graceful now.
1847
1848         * gtk/gtkstyle.c: Draw togglebutton better.
1849
1850 2001-09-26  Havoc Pennington  <hp@redhat.com>
1851
1852         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
1853         of passing non-stock label in to gtk_dialog_new_with_buttons
1854
1855         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
1856         debugging updates
1857
1858         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
1859         are private
1860
1861         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
1862         exist, fall back to mnemonic label, not plain label, bug #61184
1863         
1864 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
1865
1866         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
1867         stupid and emitting the signal every time.
1868
1869         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
1870
1871 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
1872
1873        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
1874
1875        * contrib/gdk-pixbuf-xlib/Makefile.am: install
1876        gdk-pixbuf-xlib-2.0.pc.
1877
1878 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
1879
1880         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
1881         problem where menmonic wasn't removed properly when
1882         setting a label when there already is a label.
1883         Also, handle setting the tab label back to the same
1884         value. (#61160, #61161)
1885
1886         * gtk/gtkentry.c (paste_received): Patch from 
1887         Damian Ivereigh to replace selection if there is 
1888         one. (#61121)
1889
1890 2001-09-25  Darin Adler  <darin@bentspoon.com>
1891
1892         * tests/.cvsignore: Ignore new test program.
1893
1894 2001-09-25  Havoc Pennington  <hp@redhat.com>
1895
1896         * gtk/gtktextview.c: fix for #50317
1897         
1898 2001-09-25  Havoc Pennington  <hp@redhat.com>
1899
1900         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
1901         gtk_text_iter_can_insert
1902         
1903         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
1904
1905         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
1906          (gtk_text_iter_can_insert): new function to fix #60282, should
1907         also fix msw's "can paste into empty buffer" bug.
1908
1909         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
1910         "event object,"  #59091
1911
1912         * gtk/gtktextbtree.c: indentation fixes
1913
1914         * gtk/gtktextiter.c (find_by_log_attrs): fixes
1915
1916 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
1917
1918         * configure.in: Version 1.3.9, interface age 0, binary age 0.
1919
1920         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
1921
1922         * NEWS: Updates.
1923
1924 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
1925
1926         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
1927         function for drawing cursors between gtkentry/gtklabel/gtktextview.
1928         Should this be public? It has a bit of an odd interface, but
1929         custom editing widgets probably should be using it.
1930         Function will draw with wider width for taller cursors, and
1931         draws a little indicator arrow to indicate directoin for split 
1932         cursors.
1933
1934         * gtk/gtktextview.c: Add a "cursor_color" property.
1935
1936         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
1937         gtk_text_layout_draw().
1938
1939         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
1940         _gtk_draw_insertion_cursor().
1941
1942 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
1943
1944         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
1945         the behavior where you could turn family_set (etc) back on
1946         and get back the values you had before.
1947
1948         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
1949         g_string_ascii_up() rather than looping through the
1950         string ourself.
1951
1952 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
1953
1954         * gtk/gtktreeviewcolumn.c
1955         (gtk_tree_view_column_set_cell_renderer): Removed
1956         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
1957
1958         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
1959         Patch from Detlef Reichl
1960
1961 2001-09-25  Havoc Pennington  <hp@redhat.com>
1962
1963         * tests/testtextbuffer.c (line_separator_tests): Add tests for
1964         line separators, addresses bug #57428
1965
1966 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
1967
1968         * gtk/gtkentry.c: Make a GtkCellEditable
1969         (get_widget_window_size): Change to let it honor size_allocate
1970         when a CellEditable.
1971
1972         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
1973         editable changes.
1974         (gtk_tree_view_set_cursor): Now you can set the cursor
1975         horizontally, as well as start editing.
1976
1977         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
1978         code to look more like the other check buttons.
1979
1980         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
1981         Change the way we calculate cell size.
1982
1983         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
1984
1985         * demos/gtk-demo/sizegroup.c: Add mnemonics.
1986
1987         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
1988         Fix logic.
1989
1990         * gtk/gtkcellrenderertext.c: Change to be editable.
1991
1992         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
1993
1994         * test/testtreesort.c: Fix misspelling
1995
1996         * test/testreecolumns.c: Add mnemonics.
1997
1998         * test/testreeedit.c: New test program.
1999
2000 2001-09-25  Havoc Pennington  <hp@pobox.com>
2001
2002         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
2003         etc. docs about how these are not going to do what you want for 
2004         the X/win32 ports. Futile attempt to avoid a FAQ...
2005
2006 2001-09-24  James Henstridge  <james@daa.com.au>
2007
2008         * gtk/gtkmarshal.list (VOID): add marshal function types.
2009
2010         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
2011         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
2012         GTK_TYPE_POINTER.
2013         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
2014         with no-op copy/free functions.
2015
2016         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
2017         GtkCTreeNode get_type function.
2018
2019 2001-09-24  Havoc Pennington  <hp@redhat.com>
2020
2021         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
2022         gtktextlayout.c:
2023         Get rid of the newline-that-could-not-be-deleted; buffers may 
2024         now be zero-length. Much easier to fix than expected, once 
2025         I figured out the right way to do it. However, there are 
2026         various subtle bugs introduced by this that will have to get 
2027         sorted out. Please use bugzilla.
2028
2029 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
2030
2031         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
2032         response back from the window manager if our size hasn't changed 
2033         since we won't get a response back from the window manager;
2034         there was code in there to do this, but it was in the wrong
2035         place so if the hints change and the size didn't we'd expect
2036         a response.
2037
2038         Also, optimize the position-only-changed case by running
2039         the resize queue immediately, and clean up some comments
2040         for the changes.
2041
2042 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
2043
2044         * gtk/gtknotebook.h: Add a compat macro that got lost.
2045
2046         * gtk/gtktreestore.c: Doc fixes.
2047
2048         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
2049         leak for windows that receive events after being destroyed.
2050         (#60863, Joshua N. Pritikin)
2051
2052         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
2053         rather than gtk_container_queue_resize().
2054
2055         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
2056         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
2057         gtk_container_child_composite_name. (#60217.)
2058
2059 2001-09-22  Hans Breuer  <hans@breuer.org>
2060
2061         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
2062
2063 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
2064
2065         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
2066         weight value should be an int
2067
2068 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
2069
2070         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
2071         to gtk_menu_scroll_item_visible(). Only call
2072         gtk_menu_scroll_item_visible() if the menu widget has been
2073         realized. Fixes bug #55310.
2074
2075 2001-09-21  Havoc Pennington  <hp@redhat.com>
2076
2077         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
2078         key press to IM context if cursor isn't in an editable location;
2079         bug #58425, patch from Hidetoshi Tajima
2080
2081 2001-09-21  Havoc Pennington  <hp@redhat.com>
2082
2083         Bug #60862
2084         
2085         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
2086         (_gtk_text_btree_unref): fix up mark memory management
2087
2088         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
2089
2090 2001-09-20  Havoc Pennington  <hp@redhat.com>
2091
2092         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
2093         try to handle alignment here, because it's done by PangoLayout
2094         after we set the layout width. Fix from Dov.
2095
2096 2001-09-21  Hans Breuer  <hans@breuer.org>
2097
2098         * gdk/gdk.def :
2099         * gtk/gtk.def : updated externals
2100
2101         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
2102         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
2103         Also handle that Win32 pathes cann't be hard-coded      
2104
2105         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
2106         module, themes etc directory calculations
2107
2108         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
2109         >16 bit right. The size limit within Win9x appears _not_ to be 32767
2110         but slightly smaller ...
2111
2112         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
2113         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
2114
2115         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
2116
2117         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
2118         handling. I'm not sure if it is better now, but at least not worse
2119
2120         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
2121
2122         * gdk/win32/gdkwin32.h : reflect recent API restrictions
2123
2124 2001-09-21  Matt Wilson  <msw@redhat.com>
2125
2126         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
2127         radio_menu_item->group to NULL after removing it from the list, as
2128         it is no longer in the group. (#60869)
2129
2130         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
2131
2132 2001-09-20  Havoc Pennington  <hp@pobox.com>
2133
2134         * configure.in (PANGO_REQUIRED_VERSION)
2135         (ATK_REQUIRED_VERSION): add variables and checks for specific 
2136         versions of dependencies. Previously we didn't verify the 
2137         Pango or ATk versions.
2138
2139 2001-09-09  Havoc Pennington  <hp@pobox.com>
2140
2141         * gtk/gtktextiter.c: fool with indentation
2142         (gtk_text_iter_in_range): add g_return_if_fail
2143
2144 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
2145
2146         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
2147         ref count on new tag to be 1.  Update doc.  (#60836)
2148
2149 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
2150
2151         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
2152         call to gdk_image_new_bitmap(). (#59094, reported by
2153         by Sven Neumann)
2154
2155 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
2156
2157         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
2158         day, as well as the current month and year.
2159         (#59047, reported by Vitaly Tishkov)
2160
2161 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
2162
2163         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
2164         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
2165         
2166 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
2167
2168         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
2169
2170         (build_option_menu): add func argument, connect ::changed
2171         signal to option menu instead of connecting the ::activate
2172         signal to the menu items,
2173
2174         (toplevel): get rid of RADIOMENUTOGGLED macro,
2175
2176         (list_toggle_sel_mode), (clist_toggle_sel_mode),
2177         (ctree_toggle_line_style), (ctree_toggle_expander_style),
2178         (ctree_toggle_justify), (ctree_toggle_sel_mode),
2179         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
2180         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
2181
2182         (notebook_type_changed): merged standard_notebook(),
2183         notabs_notebook(), scrollable_notebook() and borderless_notebook()
2184         into notebook_type_changed()
2185
2186         (create_list), (create_ctree), (create_notebook),
2187         (create_progress_bar): changed OptionMenuItem arrays into
2188         gchar * arrays. Removed "Extended" item where used.
2189
2190         Fixes bug #59885
2191
2192 2001-09-20  Sven Neumann  <sven@gimp.org>
2193
2194         * configure.in
2195         * gdk/Makefile.am
2196         * gtk/Makefile.am
2197         * gtk/gtkselection.c
2198         * gtk/gtktreeview.c
2199         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
2200
2201 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
2202
2203         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
2204         a missing pango_layout_iter_free ().
2205
2206 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
2207
2208         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
2209         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
2210
2211         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
2212         the function definition so we don't accidentally rely on
2213         the compat #define from gtk_radio_menu_item_group.
2214         (#60782, Jeff Franks)
2215
2216 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
2217
2218         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
2219         incorrect values for top, right and bottom due to cut-and-paste
2220         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
2221
2222 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
2223
2224         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
2225         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
2226         window, not just on the client leader. (#58463)
2227
2228 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
2229
2230         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
2231
2232         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
2233         non-public _gtk_menu_item_set_placement.
2234
2235         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
2236
2237 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
2238
2239         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
2240           gdk/linux-fb/gdkcolor-fb.c:
2241         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
2242         (#59723)
2243
2244 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
2245
2246         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
2247         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
2248         #59723)
2249
2250 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
2251
2252         Patch from Frank Belew #59037 for Solaris compilation.
2253
2254         * gtk/maketypes.awk: Change syntax slightly for a call
2255         to sub(), apparently making awk on Solaris happier.
2256
2257         * gtk/gtktreeview.c: Remove C++ comments.
2258
2259 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
2260
2261         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
2262         to handle '99% of the time. (#60473, reported by Christian Rose)
2263
2264         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
2265         which no longer exists. (#60379, reported by Vitaly Tishkov)
2266
2267 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
2268
2269         * Released 1.3.8.
2270
2271         * gdk/Makefile.am: kill EXTRA_DIST clearing.
2272         
2273 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
2274
2275         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
2276         as its broken in automake 1.4, add explicit object rule to
2277         generate this.
2278         
2279         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
2280         get rid of uneccessary stamps, group stuff more logically, and build
2281         sources due to object rules. fix srcdir!=builddir.
2282
2283 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
2284
2285         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
2286         incorrect parameter to compute_double_length
2287         (#58680, patch from Matthias Clasen)
2288
2289         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
2290
2291         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
2292
2293         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
2294         for GDK_RELEASE_MASK to avoid warnings with Forte.
2295
2296         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
2297         break; statements.
2298
2299 2001-09-18  Alex Larsson  <alexl@redhat.com>
2300
2301         * gtk/gtkcheckbutton.c:
2302         * gtk/gtkradiobutton.c:
2303         Don't draw with GTK_STATE_ACTIVE.
2304
2305         * gtk/gtkclist.c:
2306         * gtk/gtkctree.c:
2307         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
2308
2309         * gtk/gtktextdisplay.c:
2310         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2311         unfocused with base_gc [GTK_STATE_ACTIVE].
2312         
2313         * gtk/gtkentry.c:
2314         Add select all menu-item.
2315         Default cursor color is red.
2316         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2317         unfocused with base_gc [GTK_STATE_ACTIVE].
2318
2319         * gtk/gtklabel.[ch]:
2320         Add keynav + menu to selectable lables.
2321         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
2322         unfocused with base_gc [GTK_STATE_ACTIVE].
2323
2324         * gtk/gtkfilesel.c:
2325         Add drag and drop support.
2326
2327         * gtk/gtkstyle.c:
2328         (This was checked in earlier)
2329         New default values for text/base SELECTED and ACTIVE
2330         
2331 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
2332
2333         * configure.in: up version to 1.3.8, interface age 0,
2334         binary age 0, depend on glib 1.3.8.
2335
2336         * NEWS: 1.3.8 updates.
2337
2338 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
2339
2340         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
2341         the editing code
2342
2343         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
2344         reason to call it beyond emiting the two signals.
2345
2346         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
2347         to GtkEntry.
2348
2349 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
2350
2351         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
2352           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
2353         PangoFontDescription.
2354
2355         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
2356         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
2357         structure.
2358   
2359         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
2360
2361         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
2362         direct access to style->font. Deprecate gtk_style_ref/unref.
2363   
2364         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
2365         Remove gtk_style_ref/unref with g_object_ref/unref.
2366   
2367         * gtk/gtkcalendar.c: Remove leftover macros accessing
2368         style->font.
2369   
2370         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
2371         variable.
2372   
2373         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
2374         style->font.
2375
2376 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
2377
2378         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
2379         "can_activate" properties in favor of
2380         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
2381         and GTK_CELL_RENDERER_MODE_EDITABLE
2382
2383 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
2384
2385         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
2386         editable widgets.  This function is private, and should only be
2387         used by GtkTreeView.
2388
2389 2001-09-18  Matt Wilson  <msw@redhat.com>
2390
2391         * docs/Makefile.am (EXTRA_DIST): don't use += before =
2392
2393         * docs/faq/Makefile.am (EXTRA_DIST): likewise
2394
2395         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
2396         
2397         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
2398         (EXTRA_HEADERS): likewise
2399
2400         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
2401         (EXTRA_HEADERS): likewise
2402         (EXTRA_DIST): likewise
2403         (CLEANFILES): likewise
2404
2405         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
2406
2407         * tests/Makefile.am (EXTRA_DIST): likewise
2408         
2409         * Makefile.am (install-data-local): changed to use
2410         install-data-hook, which runs after install-pkgconfigDATA, so that
2411         the pkgconfigdir will have been created and populated first.
2412
2413 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
2414
2415         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
2416         be the last big GtkTreeView API change.
2417
2418         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
2419         replace with "activate" and "start_editing".  Also, added a
2420         "can_activate" and "can_edit" property.
2421
2422         * gtk/gtktreeviewcolumn.c: modify to use above.
2423
2424 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
2425
2426         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
2427
2428 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
2429
2430         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
2431         icon instead of one with ugly white background.
2432
2433 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
2434
2435         * demos/gtk-demo/stock_browser.c (id_to_macro): make
2436         the uppercasing work. (#59550)
2437
2438 2001-09-14  Jakub Steiner <jimmac@ximian.com>
2439
2440         * gtk/stock-icons/dialog_error.png:
2441         * gtk/stock-icons/dialog_question.png: more road signs
2442
2443 2001-09-13  Jakub Steiner <jimmac@ximian.com>
2444
2445         * gtk/stock-icons/dialog_question.png:
2446         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
2447           like a road sign.
2448
2449 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
2450
2451         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
2452         signals to make them more clear.  Also, change ::range_changed to
2453         ::row_changed.
2454         * gtk/gtktreemodel.c: Adjust to interface change
2455         * gtk/gtktreemodel.h: ditto
2456         * gtk/gtktreemodelsort.c: ditto
2457         * gtk/gtktreestore.c: ditto
2458         * gtk/gtkliststore.c: ditto
2459         * gtk/gtktreeview.c: ditto
2460         * tests/testtreecolumns.c: ditto
2461         * gtk/gtkmarshal.list: Actually remove a marshaller!
2462
2463 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
2464
2465         * gtk/gtktextview.c
2466         Add support for Ctrl+Up/Down arrow to move cursor to beginning
2467         of previous/next paragraph. If within a paragraph cursor moves to
2468         beginning of that paragraph.
2469
2470 2001-09-12  Jakub Steiner <jimmac@ximian.com>
2471
2472         * gtk/stock-icons/dialog_question.png: replacing the shaky
2473           question mark with a sans-serif one.
2474         * gtk/stock-icons/stock_top.png, stock_bottom.png,
2475      stock_first.png, stock_last.png: using the new style arrows
2476         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
2477      colors.
2478         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
2479      color.
2480         * gtk/stock-icons/stock_zoom*: anti-aliased
2481         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
2482      '-' with a '_', removed the wrong files
2483
2484 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
2485  
2486         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
2487  
2488         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
2489         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
2490         than in gtk-2.0/major.minor.micro/<type>/. This
2491         works better for a search path for modules.
2492  
2493         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
2494         gtk_binary_version variable holding major.minor.(micro-binary_age).
2495  
2496         * modules/input/Makefile.am (moduledir): Fix installation
2497         directory to match change in lookup location.
2498  
2499         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
2500         suffixes. Needs to be handled in g_module_build_path().
2501
2502         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
2503         appropriate.
2504  
2505 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
2506
2507         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
2508         causing RC properties not to work.
2509
2510 2001-09-11  Jakub Steiner <jimmac@ximian.com>
2511
2512         * gtk/stock-icons/dialog-error.png: less drastic
2513         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
2514           "STOP" is international enough.
2515         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
2516         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
2517
2518 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
2519
2520         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
2521         (add|remove)_selection_clipboard symmetric. (bug #59836)
2522
2523         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
2524         Avoid SEGV for empty tree. (bug #60243)
2525
2526 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
2527
2528         * tests/testgtk.c (create_idle_test): slight fix for
2529         g_object_set() not usable for nesting anymore.
2530
2531         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
2532         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
2533         properties, supply ::shadow_type properties instead as most
2534         other widgets do.
2535
2536 2001-09-10  Alex Larsson  <alexl@redhat.com>
2537
2538         * demos/gtk-demo/stock_browser.c:
2539         * gdk/gdkcolor.c:
2540         * gdk/gdkfont.c:
2541         * gdk/gdkcursor.c:
2542         * gdk/gdkevents.c:
2543         * gdk/gdkrectangle.c:
2544         * gtk/gtktypeutils.c:
2545         Update to use the new g_boxed_type_register_static API.
2546
2547 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2548
2549         * gtk/gtktreestore.c:
2550         Fix looping in gtk_tree_store_init() waiting for zero random int.
2551
2552 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
2553
2554         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
2555         behaviour which havoc broke. they have to default to 1.0 for
2556         expand behaviour.
2557
2558         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
2559
2560 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
2561
2562         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
2563         Amend previous change to avoid runtime error in g_param_spec_ref()
2564
2565 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
2566
2567         * gtk/gtkrc.c (insert_rc_property): Fix blank line
2568         in the wrong place.
2569
2570 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
2571
2572         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
2573         do a lookup immediately after creating style->property_cache,
2574         since bsearch crashes on zero length for Solaris.
2575         (Found by Padraig O'Briain.)
2576
2577 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2578
2579         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
2580         Really return NULL if not set.
2581         (gtk_widget_init): Remove unused varaible.
2582         
2583 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
2584
2585         * configure.in:
2586         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
2587         in cvs.
2588
2589 2001-09-08  Havoc Pennington  <hp@pobox.com>
2590
2591         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
2592         people might want to use
2593
2594 2001-09-08  Havoc Pennington  <hp@pobox.com>
2595
2596         * gtk/gtkalignment.c (gtk_alignment_class_init): default
2597         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
2598
2599         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
2600
2601         * gtk/gtktextiter.c: fix docs
2602         (gtk_text_iter_spew): get rid of this
2603
2604         * gtk/gtklayout.c: docs
2605
2606         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
2607         to center image and label together, instead of having image on
2608         left and label centered, patch/suggestion from Jacob
2609
2610         * gtk/gtkdialog.c: docs
2611
2612 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
2613
2614         * gtk/gtkliststore.c: Write documentation
2615         * gtk/gtktreestore.c: Write documentation
2616
2617 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
2618
2619         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
2620         with GArray and bsearch(), to remove dependency on a still
2621         evolving interface that we want to keep private to glib/gobject. 
2622
2623 2001-09-08  Havoc Pennington  <hp@pobox.com>
2624
2625         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
2626         docs fixes
2627
2628         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
2629
2630         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
2631
2632         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
2633
2634         * gtk/gtkscrolledwindow.h: docs fixes
2635
2636         * gtk/gtkimage.c (gtk_image_new): docs fixes
2637
2638 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
2639
2640         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
2641         false alarm  constness warning with a cast.
2642
2643         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
2644         for the inside-gdk case.
2645
2646 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
2647
2648         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
2649         remove g_print.
2650
2651         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
2652         change models, #59899
2653
2654 2001-09-07  Havoc Pennington  <hp@pobox.com>
2655
2656         * gtk/gtkmain.c: move some docs inline
2657
2658 2001-09-07  Havoc Pennington  <hp@pobox.com>
2659
2660         * gtk/gtk.h: tsk tsk, jrb broke the build
2661
2662 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
2663
2664         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
2665         Removed 'fill' attribute.  It was silly b/c that was a property of
2666         the cell renderer, anyway.
2667         (gtk_tree_view_column_render): Actually render the packed
2668         renderers.
2669         * doc/tree-column-sizing.txt: initial devel documentation.
2670         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
2671         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
2672
2673         * tests/testtreefocus.c: fix up to reflect above changes.
2674         * tests/testtreeview.c: ditto
2675         * demos/gtk-demo/stock_browser.c: ditto
2676
2677 2001-09-07  Alex Larsson  <alexl@redhat.com>
2678
2679         * gdk/linux-fb/gdkcolor-fb.c:
2680         Removed unused function.
2681         
2682         * gdk/linux-fb/gdkdrawable-fb2.c
2683         * gdk/linux-fb/gdkfont-fb.c:
2684         Use PangoLanguage functions.
2685
2686         * gdk/linux-fb/gdkinput.c:
2687         * gdk/linux-fb/gdkselection-fb.c:
2688         Fix const warnings.
2689         
2690         * gdk/linux-fb/gdkwindow-fb.c:
2691         Fix warning. Implement gdk_window_set_icon_list() and
2692         gdk_window_get_frame_extents(). (No icon support yet though.)
2693
2694         * gtk/gtkwindow.c (gtk_window_get_position):
2695         If window->frame is set get the extents of it instead.
2696         
2697 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
2698
2699         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
2700         Make the default default colormap the GdkRGB colormap,
2701         not the system colormap.
2702
2703         * gtk/gtkinvisible.c (gtk_invisible_init) 
2704           gtk/gtkwindow.c (gtk_window_init): Set the current
2705         colormap, as returned by _gtk_widget_peek_colormap()
2706         on the widget.
2707
2708         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
2709         to GTK+. Make it return %NULL instead of the default
2710         colormap if no colormap has explicitely been pushed.
2711
2712         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
2713         colormaps on ancestral widgets before defaulting the
2714         the system default colormap.
2715
2716         * docs/Changes-2.0.txt: explain colormap changes.
2717
2718 2001-09-07  Havoc Pennington  <hp@redhat.com>
2719
2720         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
2721         #57424
2722
2723 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
2724
2725         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
2726         make gdk_set_use_xshm a noop. Remove --no-xshm command line
2727         option. If we aren't autodetecting properly, we need
2728         to fix the problem, or at least make it an environment
2729         variable setting, to avoid problems with propagating
2730         to embedded children, plugins, etc.
2731
2732         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
2733
2734         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
2735         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
2736         New function to render a pixmap and mask for a particular colormap.
2737
2738         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
2739         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
2740         of internal implementation of the same.
2741
2742 2001-09-07  Havoc Pennington  <hp@redhat.com>
2743
2744         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
2745         debug code that seems to have caused a breakpoint in valid cases
2746         
2747         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
2748         pointer on the first view when adding the second view, fixes
2749         crash when closing gtk-demo text test with active selection
2750
2751         * gtk/gtktextbuffer.c
2752         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
2753         clipboards in the list of clipboards - probably fixes #59836
2754
2755 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
2756
2757       Make gdkx.h the only installed header from gdk/x11.
2758       All structures in gdk/x11 are opaque.
2759
2760         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
2761         Don't install gdk{drawable,pixmap,window}-x11.h.
2762
2763         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
2764         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
2765         GdkVisualClass into C files.
2766
2767         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
2768
2769         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
2770         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
2771         Add public functions to replace previously exported direct
2772         structure access.
2773         gdk_x11_colormap_get_{xdisplay,xcolormap} 
2774         gdk_x11_cursor_get_{xdisplay,xcursor},
2775         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
2776         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
2777         gdk_x11_gc_get_{xdisplay,ximage}
2778         
2779         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
2780         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
2781
2782       Fix a number of variables and functions that were exported
2783       "accidentally" from GDK.
2784
2785         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
2786         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
2787         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
2788         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
2789         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
2790         gdk_event_queue_find_first, gdk_event_queue_remove_link,
2791         gdk_event_queue_append, gdk_event_button_generate,
2792         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
2793
2794         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
2795            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
2796         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
2797         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
2798         gdk_use_xshm, gdk_input_ignore_core.
2799
2800         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
2801         #defines to namespace functions into the private _gdk_ 
2802         namespace.
2803
2804         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
2805         to replace gdk_parent_root exported variable. Adjust and
2806         deprecate GDK_ROOT_PARENT().
2807
2808         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
2809         GDK_ROOT_PARENT usage, remove includes of port-specific
2810         headers.
2811
2812         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
2813         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
2814         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
2815
2816         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
2817         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
2818         gdk_wm_delete_window functions, gdk_wm_take_focus, 
2819         use gdk_atom_intern() instead.
2820
2821         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
2822           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
2823           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
2824           gtk/gtkselection.c 
2825         Unexport gdk_selection_property, just use 
2826         gdk_atom_intern ("GDK_SELECTION").
2827
2828         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
2829         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
2830         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
2831         GdkVisualprivate, gdk_x11_gc_flush.
2832
2833       Make a number of public exports of variables into functions
2834       to increase encapsulation.
2835
2836         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
2837         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
2838         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
2839
2840         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
2841         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
2842         gdk_error_warnings.
2843
2844         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
2845           docs/Changes-2.0.txt: 
2846         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
2847         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
2848         Add gdk_x11_get_default_xdisplay().
2849
2850         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
2851         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
2852         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
2853         Don't export gdk_progclass, move --class command line
2854         option and handling to common portion of GDK.
2855
2856       Miscellaneous fixes:
2857
2858         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
2859         g_return_val_if_fail that should have been g_return_if_fail.
2860
2861         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
2862         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
2863
2864         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
2865         X11 dependency.
2866
2867         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
2868         Remove unused gdk_key_repeat_disable/restore.
2869
2870         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
2871         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
2872         Remove unused gdk_null_window_warnings variable.
2873
2874         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
2875         it can be retrieved from the repository; it is too far
2876         from functional to be worth having people check out;
2877         it would be easier to start from scratch, I suspect.
2878
2879         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
2880
2881         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
2882         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
2883         Fix some accidentally global variables and unused global variables.
2884
2885         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
2886         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
2887         Fix some accidentally global variables and unused global variables.
2888
2889       Add some space for future expansion to multihead.
2890
2891         * gdk/gdkdrawable.h: Add four reserved function pointers
2892         for future expansion of GdkDrawableClass.
2893
2894         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
2895         where we can put a GdkScreen * later.
2896
2897 2001-09-07  Havoc Pennington  <hp@redhat.com>
2898
2899         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
2900         adjustments after validating destination yrange; fixes #53918
2901         (This may cause other issues, but I hope it won't)
2902         
2903 2001-09-05  Havoc Pennington  <hp@redhat.com>
2904
2905         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
2906         line into start line, update the character counts in parent nodes; 
2907         caused a bug when end and start line had different parent nodes.
2908
2909 2001-08-30  Havoc Pennington  <hp@redhat.com>
2910         
2911         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
2912         assertion that tag is in a table
2913
2914 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
2915
2916         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
2917         g_strcasecmp on NULL strings. (#59058)
2918
2919 2001-09-06  Alex Larsson  <alexl@redhat.com>
2920
2921         * gtk/gtkbin.c:
2922         * gtk/gtkfontsel.c:
2923         * gtk/gtkspinbutton.c:
2924         * gtk/gtktipsquery.c:
2925         Use GtkType/GType instead of uint.
2926
2927 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
2928
2929         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
2930         sort column.
2931
2932         * gtk/gtktreestore.c (gtk_list_store_init): ditto
2933
2934         * gtk/gtktreesortable.c: add docs.
2935
2936 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
2937
2938         * Version 1.3.7
2939
2940         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
2941         docs for gtk-config
2942
2943         * modules/input/Makefile.am (install-data-local): Don't
2944         run gtk-query-immodules if DESTDIR is set.
2945
2946         * NEWS: Various additions.
2947
2948 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
2949
2950         * NEWS: updates for 1.3.7 release.
2951
2952 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
2953
2954         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
2955         handle default sort feature
2956
2957         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
2958         new function to handle default sort.
2959         (gtk_tree_sortable_has_default_sort_func): check if default sort
2960         is set.
2961
2962         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
2963         handle default sort feature
2964
2965 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
2966
2967         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
2968         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
2969         #59731
2970
2971 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
2972
2973         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
2974         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
2975         time, #59727
2976
2977         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
2978         correctly.
2979
2980 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
2981
2982         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
2983         so that we don't eternally update the keymap after we
2984         get a change notification.
2985
2986         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
2987         incorrect cast.
2988
2989 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
2990
2991         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
2992         it working. It mostly works now, although there're still a few issues
2993         to be worked out.
2994
2995         * tests/testtreesort.c (main): changes to have a better test
2996         application for the GtkTreeModelSort.
2997
2998 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
2999
3000         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
3001         fix for bug #59222.
3002
3003         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
3004         gpointer search_data argument to function definition and
3005         prototype, to match GtkTreeViewSearchEqualFunc typedef.
3006
3007 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
3008
3009         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
3010         per jrb's request.
3011
3012 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
3013
3014         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
3015
3016         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
3017
3018 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
3019
3020         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
3021         Instead of always mirroring the selection to a single PRIMARY
3022         selection, allow it to be mirrored to any number of clipboards.
3023
3024         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
3025         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
3026
3027         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
3028         GtkClipboard argument, and for paste_clipboard, the
3029         @override_location argument from @paste_primary.
3030
3031         * gtk/gtktextview.c: Adapt to above change.
3032         
3033 2001-08-30  Havoc Pennington  <hp@redhat.com>
3034
3035         * gtk/gtktextview.c (invalidated_handler): put validate idle at
3036         resize - 2 just for flexibility
3037
3038 2001-08-30  Havoc Pennington  <hp@redhat.com>
3039
3040         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
3041         object from the empty-child-anchor case by drawing a little box.
3042         
3043         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
3044         if the child anchor has no anchored widgets - fixes #59328.
3045
3046         Also, remove bizarre deletion of preedit string that seems to have
3047         gotten in here somehow.
3048
3049 2001-08-30  Havoc Pennington  <hp@redhat.com>
3050
3051         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
3052         to #58420 from Hidetoshi Tajima and Matthias Clasen
3053
3054 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
3055
3056         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3057         change color when the GtkTreeView loses focus.
3058
3059         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3060         ditto.
3061         
3062         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
3063
3064 2001-08-28  Havoc Pennington  <hp@pobox.com>
3065
3066         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
3067
3068 2001-08-28  Havoc Pennington  <hp@pobox.com>
3069
3070         * demos/gtk-demo/main.c (setup_default_icon): add default icon
3071
3072         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
3073         warning fix
3074         (gtk_radio_button_new_with_label): warning fix
3075
3076         * gtk/gtkdnd.c: used some random GtkImage private structs, 
3077         update to reflect GtkImage changes
3078
3079         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
3080         whether the hint is supported, just always set the icon. A task
3081         list might want to use it even if the WM doesn't, and the WM may
3082         change over time. Also, XDeleteProperty() if list == NULL.
3083
3084         * gtk/gtkwindow.c (gtk_window_set_icon_list)
3085         (gtk_window_get_icon_list)
3086         (gtk_window_set_icon)
3087         (gtk_window_get_icon)
3088         (gtk_window_set_default_icon_list)
3089         (gtk_window_get_default_icon_list):
3090         new functions
3091
3092         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
3093
3094         * gtk/gtkimage.c: Implement property support, bug #59408
3095
3096         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
3097         on reparent-without-removing-first a bit more helpful.
3098         Let's just destroy this FAQ.
3099
3100 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
3101
3102         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
3103         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
3104
3105 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
3106
3107         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
3108         of use_text_format to the end of the function. (#56447)
3109
3110 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
3111
3112         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
3113         only in response to an area_prepared signal.
3114
3115 2001-08-28  Alex Larsson  <alexl@redhat.com>
3116
3117         * gtk/gtkwidget.c (gtk_widget_class_init):
3118         Make unrealize GTK_RUN_LAST.
3119
3120 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
3121
3122         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
3123         with_label and with_mnemonic should create radio buttons, not
3124         check buttons
3125
3126 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
3127
3128         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
3129         * tests/treestoretest.c (make_window): ditto
3130         * demos/gtk-demo/main.c (create_tree): ditto
3131         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
3132
3133 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
3134
3135         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
3136         GTK selection types rather than GtkTreeSelectionMode.
3137
3138         * docs/Changes-2.0: Add comment about selection change.
3139
3140 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
3141
3142         * gtk/gtkenums.h (GtkSelectionMode): deprecate
3143         GTK_SELECTION_EXTENDED.
3144
3145         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
3146         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
3147
3148         * gtk/gtkctree.c: ditto
3149
3150         * gtk/gtklist.c: ditto
3151
3152         * gtk/gtktree.c: ditto
3153
3154 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
3155
3156         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
3157         of typos in compat macros. (#59624, Skip Montaro)
3158
3159 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
3160
3161         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
3162         macro.
3163
3164          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
3165  
3166         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
3167         interface to be a standard setter from gtk_menu_item_right_justify.
3168         (gtk_menu_item_get_right_justified): a getter to go with the setter
3169
3170         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
3171         gtk_menu_item_right_justify.
3172
3173         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
3174         gtk_menu_item_set_right_justified.
3175  
3176 2001-08-27  Jens Finke <jens@gnome.org>
3177
3178         * gtk+.spec.in: Updated to match gpp requirements, reworked the
3179         files section to make it work with 1.3.x releases.
3180
3181 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3182
3183         * gtk/gtkbutton.[ch]:
3184         Add properties for labels, mnemonics and stock items.
3185         Added C accessor functions for the properties.
3186         Removed deprecated button->child.
3187
3188         * gtk/gtkradiobutton.c:
3189         * gtk/gtktogglebutton.c:
3190         Update to use the functions in GtkButton.
3191
3192         * gtk/gtkcheckbutton.c:
3193         Update to use the functions in GtkButton.
3194         Changed size allocation of child. Now only gets as much
3195         space as it requests.
3196
3197         * gtk/gtkclist.c:
3198         Don't use GtkButton->child
3199
3200         * gtk/gtklabel.c:
3201         Fixed typo in docs
3202         
3203 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
3204
3205         * tests/testgtk.c:
3206         * tests/Makefile.am:
3207         Ressurect the properties test.
3208         I don't care if it is inferior, I just want to test my property code.
3209
3210 2001-08-25  Chema Celorio  <chema@celorio.com>
3211
3212         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
3213         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
3214         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
3215
3216 2001-08-24  Havoc Pennington  <hp@pobox.com>
3217
3218         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
3219         these are already in gtkmenu.h, and the copies
3220         here were broken.
3221
3222         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
3223
3224         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
3225         special-case bitmaps to allow no colormap
3226         (bitmap1): implement no-colormap bitmap-getting
3227         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
3228         alpha
3229         (rgb8): indentation
3230         (rgb1a, rgb1): change the way we read the data out of the image, 
3231         old way didn't seem to work quite right.
3232
3233         I'm pretty sure a lot of the rgbconvert code is still broken.
3234         
3235         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
3236         above position constraint (I really intended to do this before,
3237         don't know what's up with that)
3238         (gtk_XParseGeometry): shut up gcc
3239
3240         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
3241         and "0" should have been. remove the attempted 4-bytes-at-once
3242         optimization, it was totally broken.
3243
3244 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
3245
3246         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
3247         on push to buttons (based on patch from Soeren Sandmann, #54720)
3248
3249           - Add child_displacement_x/y style properties to control how far the
3250             child moves when the button is depressed.
3251
3252           - Add non-exported function _gtk_button_set_depressed to clean
3253             up the handling of the in/out shadow and separate it frmo
3254             widget->state.
3255
3256           - Lots of code cleanup and simplification of state handling
3257             for GtkButton/GtkToggleButton.
3258  
3259         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
3260         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
3261
3262 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
3263
3264         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
3265         and make gtk_image_new() take no arguments. The compiler will
3266         catch it, and it is vastly more useful than having
3267         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
3268
3269         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
3270         to add tearoff-title property (#51319, Lee Mallabone)
3271
3272 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
3273
3274         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
3275         gtk_menu_item_configure(). (#58925)
3276
3277 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
3278
3279         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
3280         "use_align" to give people the option to just make a cell visible.
3281
3282         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
3283         we were scrolling past the end of the tree.
3284
3285         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
3286         rename gtk_tree_view_column_pack_start_cell_renderer to
3287         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
3288
3289 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
3290
3291         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
3292         a stray g_object_ref() left over from gtk_object_ref/sink.
3293         (Pointed out by Josh Pritikin.)
3294
3295 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
3296
3297         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
3298         to gtk_container_get_children. Added deprecated compatibility
3299         macro. (Suggested by Vitaly Tishkov, #59051)
3300
3301         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
3302         calls.
3303
3304 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
3305
3306         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
3307         gtk_menu_bar_append/prepend/insert, forgot to do this
3308         when we deprecated gtk_menu_append/prepend/insert.
3309
3310         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
3311         compat macros.
3312
3313         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
3314         renamed by compat macro.
3315
3316         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
3317         gtk_font_selection_dialog_get_font(). (Suggested by
3318         Vitaly Tishkov, #59383)
3319
3320 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
3321
3322         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
3323         Rename from gtk_text_tag_table_size(). (#59366)
3324
3325 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
3326
3327         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
3328         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
3329         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
3330         (#59173).
3331
3332 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
3333
3334         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
3335         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
3336         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
3337
3338 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
3339
3340         [ Patch from Sebastian Wilhelmi, 52790 ]
3341
3342         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
3343
3344         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
3345         Move compatibility macros from g[dt]kcompat.h to within 
3346         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
3347
3348         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
3349
3350         * demos/Makefile.am demos/gtk-demo/Makefile.am 
3351           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
3352           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
3353
3354         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
3355                  testpixbuf.c}: Fix usages of deprecated functions.
3356
3357 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
3358
3359         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
3360         when changing models.
3361
3362 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
3363
3364         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
3365         We check the current event for modifiers rather than try to trap
3366         all presses.
3367
3368 2001-08-22  Anders Carlsson  <andersca@gnu.org>
3369
3370         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
3371         It's LIST_STORE, not LISTSTORE.
3372
3373 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
3374
3375         * gtk/gtk.h: Remove commented out gtkpacker reference.
3376
3377 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3378
3379         * configure.in (all_loaders): Add tga loader, 
3380         patch by Nicola Girardi. (#56067)
3381
3382 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
3383
3384         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
3385         a little.  More needs to be done tomorrow.
3386
3387 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
3388
3389         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
3390
3391 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
3392
3393         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
3394         reported by Kristian Rietveld <kristian@planet.nl> to handle row
3395         == NULL.
3396         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
3397         <kristian@planet.nl> to change destroy order.
3398
3399 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
3400
3401         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
3402         correct marshaller.
3403
3404 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
3405
3406         * gtk/gtkliststore.c: Fix up warnings, #58928.
3407
3408         * gtk/gtktreeselection.h: Change signal prototype, #58647
3409
3410         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
3411         #59221.
3412
3413         * gtk/gtkstyle.c: Actually prelight arrow, #50981
3414         
3415 2001-08-18  Hans Breuer  <hans@breuer.org>
3416
3417         * gdk/gdk.def : updated externals
3418
3419         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
3420         is required to get (at least) visible in entry fields. Some selections
3421         are really handled now - even on win32 - but copying via middle
3422         mouse button into a different app needs to wait ... 
3423
3424         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
3425         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
3426
3427         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
3428         handling. I'm not sure if it is better now, but at least not worse
3429
3430         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
3431         with SetWindowPos () which allows more fine-tuning backing-store wise
3432
3433         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
3434         Also changed move/resize to be more like the X version.
3435
3436         * gtk/gtk.def : updated externals
3437
3438 2001-08-19  Sven Neumann  <sven@gimp.org>
3439
3440         * gtk/gtktooltips.c
3441         * tests/testtreesort.c
3442         * tests/treestoretest.c: inserted some casts to get rid of compiler
3443         warnings.
3444
3445 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
3446
3447         * gtk/gtktreeviewcolumn.c
3448         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
3449
3450         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
3451         (_gtk_tree_view_find_node): If *node is NULL,
3452         *tree should be NULL too.
3453
3454         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
3455         column/renderers.
3456         * tests/testtreecolumns.c: ditto
3457         * tests/testtreefocus.c: ditto
3458         * tests/testtreesort.c: ditto
3459         * tests/testtreeview.c: ditto
3460         * tests/treestoretest.c: ditto
3461
3462 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
3463
3464         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
3465         signals; is_expander/is_expanded.
3466
3467         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
3468         pixbufs.
3469
3470         * gtk/gtktreeview.c: set above properties.
3471
3472 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
3473
3474         * gtk/gtkwidget.h: Really remove set_default_style().
3475
3476         * docs/Changes-2.0.txt: added a note about
3477         gtk_widget_push/pop/set_default_style.
3478
3479 2001-08-18  Havoc Pennington  <hp@pobox.com>
3480
3481         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
3482         hints_changed in addition to the other cases.
3483         (gtk_window_move_resize): include last position from configure
3484         notify in debug spew
3485
3486 2001-08-18  James Henstridge  <james@daa.com.au>
3487
3488         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
3489         second argument to the weak ref notify, cleaning up some uglyness.
3490         (gtk_accel_group_attach): remove and add the weak notifier when
3491         changing the accel groups slist.
3492         (gtk_accel_group_detach): same here.
3493
3494 2001-08-17  Darin Adler  <darin@bentspoon.com>
3495
3496         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
3497         missing parameters to utf8 functions to make it compile.
3498
3499 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
3500
3501         * gtk/gtktreeprivate.h:
3502         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
3503         (gtk_tree_view_init), (gtk_tree_view_set_property),
3504         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
3505         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
3506         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
3507         (gtk_tree_view_set_destroy_count_func),
3508         (gtk_tree_view_set_enable_search),
3509         (gtk_tree_view_get_enable_search),
3510         (gtk_tree_view_get_search_column),
3511         (gtk_tree_view_set_search_column),
3512         (gtk_tree_view_get_search_equal_func),
3513         (gtk_tree_view_set_search_equal_func),
3514         (gtk_tree_view_search_dialog_destroy),
3515         (gtk_tree_view_search_position_func),
3516         (gtk_tree_view_interactive_search),
3517         (gtk_tree_view_search_delete_event),
3518         (gtk_tree_view_search_button_press_event),
3519         (gtk_tree_view_search_key_press_event),
3520         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
3521         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
3522         * gtk/gtktreeview.h:
3523         Add heavily modified patch from Kristian Rietveld to handle
3524         interactive searching.
3525
3526 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
3527
3528         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
3529         string parameter.
3530
3531         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
3532         GtkMenuShell::selection_done, now that we have it, instead of 
3533         ::deactivate so we're not tearing the menu apart and notify
3534         the user prematurely.
3535
3536 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
3537
3538         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
3539         window, clear window->need_default_position to avoid infinite loops.
3540         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
3541
3542 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
3543
3544         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
3545         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
3546         (gtk_tree_view_set_property): don't cast possible NULL objects.
3547         (gtk_tree_view_destroy): reset the model to NULL.
3548
3549         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
3550         parent_class handler.
3551
3552 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3553
3554         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
3555
3556 2001-08-17  Anders Carlsson  <andersca@gnu.org>
3557
3558         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
3559         point numbers so that the result will be floating point.
3560
3561 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3562
3563         * tests/testgtk.c (create_handle_box): 
3564         (create_toolbar): Replace gtk_window_set_policy calls by
3565         gtk_window_set_resizable.
3566
3567 2001-08-16  Jakub Steiner <jimmac@ximian.com>
3568
3569         * gtk/stock-icons/dialog_info.png: new style bulb
3570         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
3571         * gtk/stock-icons/dialog_warning.png: need a hand?
3572         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
3573           the aa border gets chopped off ok
3574         * gtk/stock-icons/stock_colorselector.png: using the new hand
3575         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
3576           this one is for, but the old icon was butt ugly.
3577         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
3578         * gtk/stock-icons/stock*_insert_object.png: "
3579         * gtk/stock-icons/stock_index.png: using new hand icon
3580         * gtk/stock-icons/stock*_new.png: the document template being used 
3581           elsewhere too
3582         * gtk/stock-icons/stock*_print*.png: new print and print preview 
3583           icons (panel/menu)  
3584         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
3585           icons based on Tuomas' floppy image.
3586         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
3587         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
3588         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
3589         * gtk/stock-icons/stock*_undelete.png: "
3590         * gtk/stock-icons/stock_preferences.png: I have a version with a 
3591           document base if the sliders are no good.
3592         * gtk/stock-icons/stock_properties.png: properties 
3593         
3594
3595         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
3596           (tigert@ximian.com) clipboard icons
3597         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
3598         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
3599         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
3600           little bigger IMHO
3601
3602 2001-08-16  Sven Neumann  <sven@gimp.org>
3603
3604         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
3605
3606 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
3607
3608         * gtk/gtkcellrenderertext.c:
3609         Avoid warning when specifying NULL for "attributes" property
3610
3611 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3612
3613         * docs/debugging.txt: Add a warning about --enable-debug=no,
3614         some editorial changes.
3615
3616 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3617
3618         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
3619         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
3620         debugging info, remove unused debug flags. (#58330)
3621
3622 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
3623
3624         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
3625         (gtk_tree_selection_select_all): Remove strict checking for rows.
3626
3627 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3628         
3629         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
3630         Don't remove the tooltip window when the tip text changes. (#15891)
3631
3632 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
3633
3634         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
3635         $(srcdir).
3636
3637 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
3638
3639         * Makefile.am (EXTRA_DIST): Fix problem with trying to
3640         dist files from intl/, which is no longer there.
3641
3642 2001-08-11  Hans Breuer  <hans@breuer.org>
3643
3644         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
3645           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
3646           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
3647           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
3648           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
3649           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
3650
3651         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
3652           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
3653         GDK_TYPE_EVENT signals
3654
3655         * gtk/gtkalignment.c : removed 'direct allocation bug',
3656         which Tim discovered while reading the patch
3657
3658 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
3659
3660         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
3661         compat macros for push/pop/set_visual that were supposed
3662         to be added a long time ago, but got dropped. 
3663
3664 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
3665
3666         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
3667         property notifies.
3668
3669 2001-08-07  Havoc Pennington  <hp@pobox.com>
3670
3671         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
3672
3673         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
3674         some fixage is needed here, but nothing simple. Owen understands
3675         it. ;-)
3676
3677         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
3678         sizing and positioning.  Also, fix bug in compute_geometry_hints
3679         (width/height confusion for setting min size). 
3680         (gtk_window_move): new function
3681         (gtk_window_resize): new function
3682         (gtk_window_get_size): new function
3683         (gtk_window_get_position): new function
3684         (gtk_window_parse_geometry): new function
3685         
3686         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
3687         (gtk_widget_get_size_request): new function
3688         (gtk_widget_get_usize): delete, that was a short-lived function
3689         ;-)
3690         (gtk_widget_set_usize): deprecate
3691         (gtk_widget_set_uposition): deprecate, make it a trivial 
3692         gtk_window_move() wrapper
3693         (gtk_widget_class_init): remove x/y/width/height properties,
3694         add width_request height_request
3695         
3696         * demos/*: update to avoid deprecated functions
3697         
3698         * gtk/gtklayout.c: add x/y child properties
3699
3700         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
3701         uses of "gint16"
3702
3703         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
3704         sizing test
3705
3706         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
3707         configure events on toplevel windows are always in root window
3708         coordinates, following ICCCM spec that all synthetic events 
3709         are in root window coords already, while real events are 
3710         in parent window coords. Previously the code assumed that 
3711         coords of 0,0 were parent window coords, which was 
3712         really broken.
3713   
3714         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
3715         warning
3716  
3717         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
3718         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
3719         hints in gtk_window_parse_geometry()
3720  
3721         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
3722         new USER_POS USER_SIZE hints    
3723
3724 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3725
3726         * tests/prop-editor.c (properties_from_type): Use 
3727         g_object_class_list_properties to get the param specs 
3728         for a given type. (#58609)
3729
3730 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3731
3732         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
3733         free the text_aa parts. (#57549)
3734
3735 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3736
3737         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
3738         not the foreground color. (#57621)
3739
3740 2001-08-09  Alexander Larsson <alexl@redhat.com>
3741
3742         * gdk/win32/gdkfont-win32.c:
3743         Update to the new pango win32 api.
3744
3745 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
3746
3747         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
3748         COMPOUND_TEXT instead of TEXT
3749         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
3750         interpret the return value of g_string_to_compound_text()
3751         (#55152)
3752
3753 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3754
3755         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
3756         fail if iter is NULL. (#58347)
3757
3758 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3759
3760         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
3761         some off-by-one issues, fixing selection of line-ends. (#50323)
3762
3763 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
3764
3765         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
3766         functions in order to make mouse operation work again in the
3767         color wheel. (#58604)
3768
3769 2001-08-07  James Henstridge  <james@daa.com.au>
3770
3771         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
3772         the accelerator when the accel object is changed.  Fixes bug
3773         #58628.
3774
3775 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
3776
3777         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
3778         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
3779         (gnome bugzilla #58202)
3780
3781 2001-08-06  Havoc Pennington  <hp@pobox.com>
3782  
3783         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
3784         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
3785         it was expecting a GdkWindow, not a GdkWindowImplX11.
3786  
3787         Also, we were getting the window rect in screen coords 
3788         and the screen rect in window coords then intersecting 
3789         them; instead, get window rect in window coords.
3790  
3791         Finally, there were codepaths that resulted in a stuck server grab
3792         (when the window was fully onscreen, or on gdk_image_new()
3793         failure); make the server ungrab thing a bit more
3794         robust/consistent.
3795
3796 2001-08-06  Sven Neumann  <sven@gimp.org>
3797
3798         * gdk/gdkpango.c (gdk_pango_context_destroy): 
3799         check if info->colormap != NULL before unref'ing it. It might have
3800         been set to NULL using gdk_pango_context_set_colormap().
3801
3802 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
3803
3804         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
3805         Fix conversion from float to int so that we don't get
3806         skew in the int => float => int roundtrip. 
3807         (#58120, reported by Vitaly Tishkov). Also fix problem
3808         where if no alpha was set, the returned alpha
3809         from (say) set_current_alpha() was returned as 1, not 65535.
3810
3811 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
3812
3813         * gtk/gtklist.c (gtk_list_clear_items): Fix
3814         problem with selecting a new focus child.
3815
3816         * gtk/gtklist.c (gtk_list_clear_items): Clear 
3817         list->undo/list_focus_child after unparenting
3818         child, since unparenting the child can result
3819         in list->last_focus_child being set. (#58024)
3820
3821         * Makefile.am (SUBDIRS): Add target specific pc
3822         files to DISTCLEANFILES.
3823
3824         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
3825         (58327, Matthias Clasen)
3826
3827 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
3828
3829         * tests/testgtk.c: Patch from Hans (with various modifications),
3830         to add the ability to use testgtk as a rough-and-ready
3831         benchmark. Try, 'testgtk --bench all:5' (if you want decent
3832         numbers, run without a window manager)
3833
3834 2001-08-04 Alexander Larsson <alexl@redhat.com>
3835
3836         * gdk/win32/gdkinput.c:
3837         Add #ifdef HAVE_WINTAB around wintab.h include.
3838
3839         * gtk/gtk.def:
3840         Removed marshals that have been moved to glib.
3841         Commented out plug and socket. They didn't compile for me 
3842         on win32.
3843
3844 2001-08-04  Hans Breuer  <hans@breuer.org>
3845
3846         * gtk/stocks-icons/makefile.msc : new file
3847         * gtk/makefile.msc.in : use it
3848
3849         * gtk/gtkstyle.c : not all platforms do provide M_PI and
3850         friends, but luckily there is G_PI
3851
3852         * gtk/gtk.def : updated
3853
3854         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
3855         windows WS_POPUP, but only those without a parent. This fixes the 
3856         mis-alignment between the selectable (temp, input only) window and 
3857         the window text of GtkLabel.
3858
3859         (gdk_window_show) : respect private->state when actually showing
3860         the window.
3861
3862         (gdk_window_set_transient_for) : Implementation from Wolfgang 
3863         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
3864         error handling. Should fix #50586.
3865
3866         * gdk/win32/gdkevents-win32.c : beautify log output
3867
3868 2001-08-04  Michael Natterer  <mitch@gimp.org>
3869
3870         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
3871         Need to show the image after adding it to the GtkImageMenuItem.
3872         This used to work without in testgtk because of the
3873         gtk_widget_show_all() at the end of the function.
3874         (Closes #54978).
3875
3876 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
3877
3878         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
3879         (gtk_notebook_set_child_property): fix finding of child's page,
3880         since we have to validly deal with labels and menus here as well.
3881         (gtk_notebook_get_child_property): fix warning.
3882         (gtk_notebook_class_init): property tab_pack is of type
3883         GTK_TYPE_PACK_TYPE (enum) not boolean.
3884         (gtk_notebook_find_child): don't always warn, we might be looking
3885         for a label or menu child.
3886         (gtk_notebook_map): fix mapping of panel.
3887
3888         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
3889         widget's mapped state, regardless of the value being set equals
3890         old settings, since things like REALIZED(parent) or MAPPED(parent)
3891         may have changed since the old value was set. make it an error to
3892         invoke this function on a toplevel widget.
3893
3894 2001-07-31  Darin Adler  <darin@bentspoon.com>
3895
3896         * gdk/gdkprivate.h:
3897         * gdk/x11/gdkx.h:
3898         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
3899
3900         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
3901         GTK_OBJECT.
3902
3903 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
3904
3905         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
3906         scoping error pointed out by matthiasc@poet.de.
3907
3908 2001-07-31  Sven Neumann  <sven@gimp.org>
3909
3910         * demos/gtk-demo/appwindow.c
3911         * demos/gtk-demo/item_factory.c
3912         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
3913
3914 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
3915
3916         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
3917         argument order for g_signal_has_handler_pending.
3918
3919 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
3920
3921         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
3922         instead of long deprecated g_scanner_stat_mode().
3923
3924 2001-07-29  Hans Breuer  <hans@breuer.org>
3925
3926         * gdk/makefile.msc : build in the backend dir after
3927         auto-generating files
3928
3929         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
3930         with code from win32-production-branch.
3931
3932         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
3933         before calling DestroyWindow, which indirectly calls 
3934         gdk_window_destroy_notify ()
3935
3936         (performance patch merged from win32-production-branch)
3937         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
3938         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
3939         R2_COPYPEN rop). It is claimed to be much faster.
3940
3941 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
3942
3943         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
3944         add an "attributes" property to the text renderer for ATK.
3945
3946 2001-07-26  Alex Larsson  <alexl@redhat.com>
3947
3948         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
3949         Initialize image->bits_per_pixel from the drawable, not from
3950         the root window.
3951
3952         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
3953         Fix cast. argument is an IMPL already.
3954
3955 2001-07-15  James Henstridge  <james@daa.com.au>
3956
3957         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
3958         (gtk_window_remove_accel_group): same here.
3959         (gtk_window_key_press_event): same here.
3960
3961         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
3962         (gtk_widget_remove_accelerator): same here.
3963         (gtk_widget_remove_accelerators): same here.
3964
3965         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
3966
3967         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
3968         instead of GtkObject.
3969
3970         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
3971         now takes GObjects.
3972
3973         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
3974         pass a GObject to gtk_accel_group_entries_from_object.
3975         (gtk_item_factory_create_item): s/accel_widget/accel_object/
3976
3977         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
3978
3979         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
3980
3981         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
3982         GObjects can have accelerators set now.  Add compatibility
3983         defines.
3984
3985         * gtk/gtkmarshal.list: add missing marshallers.
3986
3987         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
3988         accelerators on plain GObjects.  gtk_accel_group_object_destroy
3989         has been converted into a weak reference, and
3990         gtk_accel_group_delete_entries is now a destroy notify for that
3991         piece of data.
3992
3993 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
3994
3995         * gdk/gdkdraw.c: Added a check on the colormap depth to
3996         gdk_drawable_set_colormap()
3997         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
3998         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
3999         for pixmaps without visuals (more specifically, bitmaps)
4000         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
4001         doesn't set a colormap with the wrong depth
4002
4003
4004 2001-07-22  Anders Carlsson  <andersca@gnome.org>
4005
4006         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
4007         expander_height and expander_width properties with a single
4008         property, expander_size.
4009         (gtk_tree_view_init): Set the tab_offset to expander_size
4010         plus some padding.
4011         (gtk_tree_view_unrealize): Remove the expand/collapse
4012         timeout if it exists.
4013         (coords_are_over_arrow): Fix a small bug.
4014         (gtk_tree_view_motion_draw_column_motion_arrow): Use
4015         expander_size.
4016         (gtk_tree_view_draw_focus): Use "treeview" instead of
4017         "add-mode" as detail when drawing the focus.
4018         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
4019         instead of "add-mode" as detail when drawing the focus.
4020         (gtk_tree_view_deleted): If we have a node currently being
4021         expanded or collapsed, remove the timeout and set the node 
4022         to NULL.
4023         (gtk_tree_view_queue_draw_arrow): New function that just
4024         redraws the arrow of a node.
4025         (gtk_tree_view_draw_arrow): Use expander_size instead of
4026         expander_width/expander_height, also pass a different
4027         expander_style to gtk_paint_expander depending on the 
4028         state of the node being drawn.
4029         (expand_collapse_timeout): New function for expanding 
4030         or collapsing a node depending on the previous state.
4031         (gtk_tree_view_real_expand_row): Add timeout and set 
4032         correct state for node being expanded.
4033         (gtk_tree_view_real_collapse_row): Add timeout and set
4034         correct state for node being collapsed.
4035
4036         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
4037         information about the node currently being expanded or
4038         collapsed, and also a timeout id.
4039
4040         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
4041         with expander_style for draw_expander.
4042
4043         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
4044         expander_style.
4045         (create_expander_affine): New function for creating an 
4046         expander affine.
4047         (apply_affine_on_point): New function for applying an 
4048         affine to a point.
4049         (gtk_default_draw_expander): Modified to take expander_style
4050         instead of is_open, and to draw the rectangle rotated differently
4051         depending on the expander style.
4052         (gtk_paint_expander): Replace is_open with expander_style.
4053
4054         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
4055
4056         * gtk/gtkenums.h: Add expander style enum.
4057
4058 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
4059
4060         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
4061         value from gtk_tree_model_get_iter, the model might be empty.
4062
4063 2001-07-20  Hans Breuer  <hans@breuer.org>
4064
4065         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
4066         gdk/gdkinput.c like the other backends
4067
4068         * gdk/win32/gdkinput-win32.h :
4069         * gdk/win32/gdkinput.c :
4070         * gdk/win32/gdkvisual-win32.c :
4071         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
4072         GdkVisual GObjectification. UNTESTED for pen-devices because
4073         I simply have none.
4074
4075         * gdk/gdk.def :
4076         * gtk/gtk.def : updated externals
4077
4078         * gtk/gtkiconfactory.c :
4079         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
4080         before passing &error to functions to avoid strange crashes
4081         
4082         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
4083
4084         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
4085
4086         * gtk/makefile.msc.in : updated
4087
4088 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
4089
4090         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
4091         Add property support. (#51858)
4092
4093 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
4094
4095         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
4096         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
4097         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
4098
4099 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
4100
4101         * gtk/gtkcolorsel.c: Add propery support (roughly
4102         based on patch from Lee Mallabone, #51014)
4103
4104         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
4105         deprecated, since we already g_warning() on it.
4106
4107 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
4108
4109         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
4110         typo that sometimes caused selection not to work properly.
4111
4112         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
4113         entry when tabbing in. (#57743)
4114         
4115         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
4116         user drags up above or down below the entry, move
4117         to the end or the beginning of the entry. (Suggestion
4118         from Jay Cox, #50940)
4119
4120         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
4121         a current selection, then when moving by chars or
4122         words, move to the end of the selection rather than
4123         from entry->current_pos. (Suggestion from Jay Cox,
4124         #50942)
4125         
4126 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
4127
4128         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
4129         set window->decorated. (Patch from Hidetoshi Tajima,
4130         #55846)
4131
4132 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
4133
4134         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
4135         the widget/child realization/mapping invariants.
4136
4137         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
4138         gtk_widget_[get/set]_child_visible() to control
4139         whether visible children of a mapped window are
4140         mapped.
4141
4142         * docs/widget_system.txt: Updated for changes in
4143         container contract, and addition of GTK_CHILD_VISIBLE.
4144
4145         * gtk/gtkcontainer.c: Add generic map()/unmap()
4146         functions that work for almost all containers.
4147
4148         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
4149         gtk_widget_set_child_visible() where necessary.
4150
4151         * gtk/*.c: Remove excess map(), unmap(), and 
4152         realization/mapping invariant enforcing code
4153         from many containers.
4154
4155 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
4156
4157         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
4158         Get the foreground color from 'text', nor 'fg'. (#57568)
4159
4160 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
4161
4162         * gtk/*.c: Patch from Matthias Clasen to remove remove
4163         all instances of g_return_if_fail (foo != NULL); that are
4164         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
4165         since the second check catches the NULL anyways.
4166
4167 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
4168
4169         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
4170         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
4171         GDK_THREADS_ENTER()/LEAVE() pairs.
4172
4173         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
4174         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
4175         pairs. (Problem found by M. Meeks)
4176
4177 2001-07-18  Darin Adler  <darin@bentspoon.com>
4178
4179         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
4180         that we don't get a g_warning message every time we register a new
4181         icon size.
4182
4183         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
4184         using pixel variable of the correct type.
4185         
4186 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
4187
4188         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
4189         so that using X functions on a GdkWindow is possible, if
4190         a little hairy.
4191
4192         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
4193         and ts_origin of a GC, so that external parties can offset/restore
4194         a GC, when using gdk_window_get_internal_paint_info().
4195
4196 2001-07-17  Darin Adler  <darin@bentspoon.com>
4197
4198         * .cvsignore: Ignore the sgml directory made by gtkdoc.
4199         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
4200         instead of the deprecated gtk_window_set_policy.
4201         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
4202         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
4203         function to get rid of warning and some code too.
4204         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
4205         missing const.
4206         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
4207         unused local.
4208         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
4209         const.
4210         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
4211         (gdk_utf8_to_compound_text): Add missing const.
4212         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
4213         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
4214         cast and get rid of an unnecessary one.
4215         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
4216         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
4217         local.
4218         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
4219         Remove unused local.
4220         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
4221         missing const.
4222         * tests/testsocket.c: (add_child): Add cast so the printf format
4223         doesn't make us implicitly depend on what integer type
4224         gtk_socket_get_id returns.
4225         * tests/testtextbuffer.c: Add missing const.
4226         * tests/testtreefocus.c: (main): Remove unused local.
4227         * tests/treestoretest.c: (iter_remove): Remove unused local.
4228         (uppercase_value): Remove unused function.
4229         (make_window): Add statement to quiet the compiler's uninitialized
4230         variable warning.
4231
4232 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
4233
4234         * gtk/gtkrange.c:
4235         (second_timeout): 
4236         (initial_timeout): 
4237         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
4238         (gtk_range_calc_layout): compute the new layout based on an
4239         adjustment->value being passed in as argument.
4240         (gtk_range_button_press): for button2 slider warps, first recalc
4241         the layout, then adjust the value. also, use update_slider_position()
4242         for adjusting the value, so we keep pixel quantisation at which we
4243         usually operate (upon motion or button releases). the reason for this
4244         is that, we can't change the adjustment upon button2 presses to a non
4245         quantised value and upon button2 release re-quantise the value since
4246         that'd alter the value even if we didn't get any motion events (causing
4247         unexpected scroll area warps upon release and/or slider pixel-jitter).
4248         (gtk_range_motion_notify): update the slider position from queried
4249         coordinates, not event coordinates.
4250
4251 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
4252
4253         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
4254         the default gc values are: width=0, CapBut, JoinMiter.
4255
4256 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
4257
4258         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
4259         into account the xpad and ypad when calculating the width and the
4260         height of the pixbuf cel.
4261
4262 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
4263
4264         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
4265         Rename to gtk_radio_menu_item_get_group(), add deprecated
4266         alias. (#57044)
4267
4268         * gtk/gtkfilesel.c: Indentation fix.
4269
4270 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
4271
4272         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
4273         Hasselmann to fix warnings in compat macros. 
4274         (#56773)
4275
4276         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
4277         stupid wrong cast added in last patch.
4278
4279 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
4280
4281         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
4282         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
4283
4284 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
4285
4286         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
4287         missing cast.
4288
4289         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
4290         NULL/FALSE return value confusion.
4291
4292         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
4293         problem when scrollbar completely fills range. (Patch
4294         from  Matthias Clasen, #57047)
4295
4296 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
4297
4298         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
4299         clean up when handling events for move-resize emulation.
4300         (Problem traced down by Matthias Clasen, #57271)
4301
4302 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
4303
4304         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
4305           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
4306           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
4307           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
4308           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
4309           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
4310           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
4311         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
4312
4313 2001-07-09  Peter Williams  <peterw@ximian.com>
4314
4315         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
4316         for when srcdir != builddir
4317
4318 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
4319
4320         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
4321         gtk_tree_model_get_iter_root.
4322
4323         * gtk/gtkliststore.c: Add a bunch of g_return statements.
4324         (gtk_list_store_iter_n_children): Fix up.
4325
4326         * gtk/gtktreestore.c: Add a bunch of g_return statements.
4327
4328 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
4329
4330         * gtk/gtkwidget.c (gtk_widget_class_init):
4331         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
4332         restore some workingness.
4333
4334         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
4335         handle of window type for input-only windows.
4336
4337 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
4338
4339         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
4340         Patch from Gregory Merchan to add 
4341         gtk_button_box_set_secondary(), which separates
4342         the child into a separate group from the normal
4343         buttons. (#56331)
4344
4345         * gtk/gtkdialog.c: Make help buttons secondary by
4346         default.
4347
4348         * gtk/gtkbbox.c: Added a child property "secondary".
4349
4350         * gtk/testgtk.c: Turn on the help button for the 
4351         color selector to check that it properly appears
4352         as secondary.
4353
4354 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
4355  
4356         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
4357         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
4358         Add gdk_set_pointer_hooks() to allow pointer-querying to
4359         be hooked by an event record/playback system like GERD.
4360         (#56914)
4361         
4362 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
4363
4364         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
4365         in the right value of initial_emission to
4366         gtk_widget_set_style_internal (#57091)
4367
4368 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
4369
4370         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
4371         Make compile.
4372
4373         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
4374         with calling gtk_widget_set_style_internal() with
4375         the old style, not the new style. (#56989)
4376
4377 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
4378
4379         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
4380           gtk/gtkwidget.c:
4381         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
4382         not GTK_WIDGET_GET_ANCESTOR ... see 
4383         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
4384         Indicate the best practice in the docs for gtk_widget_get_toplevel().
4385
4386         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
4387         so GtkPlug can give the correct signals when transforming
4388         from a child to a toplevel.
4389         
4390         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
4391         reparentation correctly.
4392
4393         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
4394         Propagate the previous_toplevel argument down properly.
4395
4396         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
4397         of wrong atr list.
4398
4399         * gtk/gtkplug.[ch]: Add an "embedded" signal.
4400
4401         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
4402         signals.
4403
4404         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
4405         functions gtk_plug_get_id(), gtk_socket_get_id(),
4406         to avoid the user having to worry about realization,
4407         and gdkx.h.
4408
4409         * tests/testsocket.c: Extend to try out the new signals
4410         and gtk_plug/socket_get_id().
4411
4412         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
4413         setting of underline attributes.
4414
4415         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
4416         DestroyNotify events from SubstructureNotifyMask
4417
4418         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
4419         Switch GDK_WINDOW_TYPE (window) as needed.
4420
4421         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
4422         allow creation of toplevel windows as children of
4423         foreign windows.
4424
4425         * gtk/gtkplug.c: Remove hacks involving changing private
4426         fields of GdkWindow.
4427
4428         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
4429         exactly the same signals and notification
4430         be emitted for local embedding as for inter-process
4431         embedding.
4432
4433 2001-07-04  James Henstridge  <james@daa.com.au>
4434
4435         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
4436
4437 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
4438
4439         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
4440         XEMBED embedding add a _XEMBED_INFO property to the
4441         client with version number and a "mapped" flags.
4442         Use the mapped flag instead of the racy MapRequestEvent
4443
4444         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
4445         code to reliably set things (when the child is a passive
4446         embedder participating in the XEMBED protocol) intead
4447         of just being a hack for embedding non-participating
4448         programs. Fix various bugs and race conditions.
4449         
4450         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
4451         work by simply making the GtkSocket the gtk parent
4452         of the GtkPlug. Set a flag in this case and make
4453         the GtkPlug work like a normal container by overriding
4454         methods such as check_resize and "chaining past" GtkWindow
4455         to GtkBin.
4456
4457         * gtk/gtkentry.c (gtk_entry_real_activate)
4458           gtk/gtkmain.c (gtk_propagate_event): 
4459         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
4460         
4461         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
4462         gtk_widget_get_ancestor):
4463         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
4464         might not give the expected result and recommend
4465         an alternative.
4466
4467         * tests/testsocket.c tests/testsocket_child.c
4468         tests/testsocket_common.c tests/Makefile.am: Extended
4469         to test different type of adding plugs to sockets
4470         (local,active,passive), and to test mapping/unmapping
4471         the plug.
4472
4473         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
4474         mark the window as destroyed until after we
4475         called _gdk_windowing_window_destroy().
4476         (_gdk_windowing_window_destroy() may use GDK functions
4477         on the window.)
4478
4479         * gdk/x11/gdkinput.c: Remove the check for finalization - 
4480         devices can be finalized under some circumnstances.
4481  
4482         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
4483         small problem with GDK_TYPE_DEVICE.
4484  
4485 2001-07-02  Havoc Pennington  <hp@pobox.com>
4486
4487         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
4488         use constants not atoms.
4489
4490 2001-07-02  James Henstridge  <james@daa.com.au>
4491
4492         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
4493         PANGO_TYPE_TAB_ARRAY.
4494
4495         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
4496         for PANGO_TYPE_TAB_ARRAY.
4497
4498         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
4499         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
4500
4501         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
4502         the file.  Remove Pango types from defs -- they are now defined in
4503         libpango.
4504
4505 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
4506
4507         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
4508
4509         * gtk/gtkobject.c (gtk_object_destroy): invoke
4510         g_object_run_dispose().
4511
4512         * gtk/gtkwindow.c: 
4513         * gtk/gtkwidget.c: 
4514         * gtk/gtkobject.c:
4515         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
4516         method.
4517
4518 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
4519
4520         * gtk/gtktypeutils.c (gtk_type_class): Remove
4521         change check for GTK_TYPE_OBJECT derivation to
4522         G_TYPE_OBJECTS - it's Tim-approved to use this 
4523         for arbitary objects.
4524
4525         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
4526         prefix gtk_container_dequeue_resize_handler().
4527
4528         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
4529         to the hierarachy_changed signal, since you otherwise
4530         have to always keep that around.
4531
4532         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
4533         for extra argument to hierarchy_changed.
4534
4535 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
4536
4537         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
4538         for style to mean "revert to default style"
4539
4540         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
4541           gtk_widget_restore_default_style): Make this functions
4542         deprecated aliases for gtk_widget_set_style (widget, NULL).
4543
4544         * gtk/gtkwidget.[ch]: Remove:
4545            gtk_widget_set_default_style ()
4546            gtk_widget_push_style ()
4547            gtk_widget_pop_style ()
4548         These functions interact are overriden by RC files, and
4549         thus virtually useless, and complicated.
4550
4551 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
4552
4553         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
4554         most of the previous global variables in gtkrc.c. This is
4555         in preparation for multi-head, since each screen can
4556         have different GtkSettings and RC information.
4557
4558         * gtk/gtkrc.[ch]: 
4559
4560         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
4561         GtkSettings parameter to GtkRcStyle::parse.
4562
4563         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
4564         Add two new settings gtk-theme-name, gtk-key-theme-name,
4565         for RC files that are loaded by name after reading
4566         the default RC files.
4567         
4568         * gtk/gtkrc.c: Allow priorities for styles, as wll as
4569         bindings.
4570
4571         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
4572         and use it by default for RC files loaded via 
4573         gtk-theme-name, gtk-key-theme-name.
4574
4575         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
4576         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
4577         tests/testgtkrc: Require pathnames to be absolute.
4578
4579         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
4580         the source when parsing, since the operation of looking up a
4581         pixmap from an RC file depends on the parsing context.
4582
4583         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
4584         reset RC styles on all widgets when files are reparsed.
4585
4586         * tests/testgtk.c (create_rc_file) 
4587           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
4588         Simplify, now that gtk_rc_reparse_all() resets styles on
4589         all widgets itself.
4590
4591         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
4592         return value.
4593
4594         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
4595         GtkSettings argument.
4596
4597         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
4598         gtk_settings_get_global().
4599
4600         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
4601         to get the appropriate GtkSettings for a widget. (For now,
4602         just gets the default GtkSetttings.) 
4603
4604         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
4605           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
4606         changes.
4607
4608         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
4609         getting a style for a path without actually having a widget.
4610         (Allows using a style for a subpart of a widget, for
4611         example.)
4612
4613         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
4614         the RC files to be reloaded for just one GtkSettings
4615         (not sure how useful this really is.)
4616
4617         * gtk/gtkrc.h: Deprecate
4618         gtk_rc_add_widget_name/widget_class/class_style
4619
4620 2001-06-30  Alex Larsson  <alexl@redhat.com>
4621
4622         * gdk/linux-fb/gdkinput-none.c:
4623         * gdk/linux-fb/gdkinput.c:
4624         * gdk/linux-fb/gdkinputprivate.h:
4625         Convert GdkDevice to a GObject.
4626
4627         * linux-fb/gdkprivate-fb.h:
4628         * linux-fb/gdkvisual-fb.c:
4629         Convert GdkVisual to a GObject.
4630
4631 2001-06-29  Alex Larsson  <alexl@redhat.com>
4632
4633         * gdk/gdkvisual.h:
4634         * gdk/gdkcolor.c:
4635         * gdk/x11/gdkx.h:
4636         * gdk/x11/gdkvisual-x11.c:
4637         Convert GdkVisual to a GObject.
4638
4639         * gdk/gdkinput.h:
4640         * gdk/gdkevents.c:
4641         * gdk/x11/gdkinputprivate.h:
4642         * gdk/x11/gdkinput-gxi.c:
4643         * gdk/x11/gdkinput-none.c:
4644         * gdk/x11/gdkinput-x11.c:
4645         * gdk/x11/gdkinput-xfree.c:
4646         * gdk/x11/gdkinput.c:
4647         Convert GdkDevice to a GObject.
4648
4649 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
4650
4651         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
4652         to just plain new, fixing the number of columns, and column types
4653         at creation time.
4654
4655         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
4656
4657         * gtk/gtkcellrenderertext.c
4658         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
4659         height to a specific font.
4660
4661         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
4662
4663         * tests/*c: change to work with new store models.
4664
4665 2001-06-29  Havoc Pennington  <hp@redhat.com>
4666
4667        * Throughout: fixes to compile with G_DISABLE_COMPAT
4668         (s/g_signal_connectc/g_signal_connect/,
4669         s/g_signal_newc/g_signal_new/,
4670         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
4671
4672 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
4673
4674         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
4675         add path argument to selection callbacks.
4676
4677 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
4678
4679         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
4680         walk through a model in a depth first manner, with the option to
4681         break out.
4682
4683 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
4684
4685         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
4686         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
4687         column and follow it when draged, rather than a location in the
4688         view. "expander_column" property and drawing functions changed
4689         accordingly.  Fixes bug #55942.
4690
4691         (gtk_tree_view_{set,get}_expander_column): Now works with a
4692         GtkTreeViewColumn* instead of int.
4693
4694 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
4695
4696         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
4697
4698 2001-06-28  Havoc Pennington  <hp@pobox.com>
4699
4700         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
4701         image data to the screen, using a server grab to avoid race
4702         conditions.
4703
4704         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
4705         check for NULL return from gtk_image_new_from_stock(), it never
4706         returns NULL.
4707         (gtk_item_factory_create_item): fix bug where we parsed the stock
4708         ID as an inline pixbuf
4709
4710         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
4711
4712         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
4713         support (should be using binding set here)
4714
4715         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
4716         support (should be using binding set here)
4717
4718         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
4719         support
4720
4721         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
4722
4723         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
4724
4725         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
4726
4727         * gtk/gtkimcontextsimple.c
4728         (gtk_im_context_simple_filter_keypress): keypad
4729
4730         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
4731
4732         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
4733
4734         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
4735
4736         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
4737         should be binding-setted)
4738
4739         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
4740
4741         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
4742
4743         * gtk/gtkcalendar.c: numeric keypad fixes
4744
4745         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
4746         support
4747
4748         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
4749         screwup
4750
4751         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
4752         clip the render area to the drawable's clip region in advance,
4753         so we don't get data from the server that we don't need.
4754
4755         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
4756         check return value of gdk_pixbuf_get_from_drawable(), fall back 
4757         to bilevel alpha if we can't get the pixbuf to composite against.
4758
4759         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
4760
4761         * gdk/gdkimage.c (gdk_image_get_colormap): add
4762         gdk_image_set_colormap, gdk_image_get_colormap
4763
4764         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
4765         take a region of the image, instead of converting the entire
4766         image.
4767
4768         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
4769         keybinding signal. Add default bindings for it. Add default
4770         handler for show_help that shows the tooltip for the widget.
4771
4772         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
4773         "close" keybinding signal, remove key press handler.
4774
4775         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
4776         it's not our usual practice to leave a deprecated function around
4777         with a runtime warning, plus we don't want it to appear in docs,
4778         plus if we make them yellow no one will want to change them
4779         anyhow.
4780
4781 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
4782
4783         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
4784         GTK_WIDGET_REALIZE() for resize queueing.
4785
4786         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
4787         GTK_WIDGET_REALIZE() for post event delivery destruction upon
4788         GDK_DESTROY.
4789         
4790         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
4791         sompensate for former (pre-2.0) connect_after() facility.
4792         (gtk_widget_send_expose): 
4793         (gtk_widget_event): assert the widget is realized, since event delivery
4794         to non-realized widgets is essentially a bug. event handlers should
4795         be able to unconditionally rely on widget->window (unless they
4796         emit events on their own which can trigger widget destruction).
4797         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
4798         logic. event delivery happens as follows:
4799         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
4800         b) if !was_handled in (a) and the widget is still realized, emit event-
4801            specific signal (RUN_LAST handler). returns was_handled.
4802         c) emission of GtkWidget::event-after for notification if the widget is
4803            still realized (regardless of was_handled from previous stages, no
4804            class handler). no return value.
4805         d) was_handled gets passed on to caller, to determine further
4806            propagation. if the widget got unrealized meanwhile, was_handled
4807            is returned as TRUE.
4808
4809         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
4810         gdk_event_get_coords().
4811
4812 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
4813
4814         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
4815         age 0, binary age 0. depend on glib 1.3.7.
4816
4817         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
4818
4819         * gtk/gtkmenubar.c: same here.
4820         
4821         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
4822
4823         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
4824
4825         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
4826         
4827         * gtk/gtkmenubar.c (add_to_window): likewise.
4828         
4829         * gtk/gtktextbtree.c: and here...
4830         
4831         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
4832         
4833         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
4834         
4835         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
4836         
4837         * gtk/gtktreeviewcolumn.c:
4838         (_gtk_tree_view_column_set_tree_view): yet again.
4839
4840         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
4841         signal connections without g_signal_connect_data().
4842         
4843         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
4844         demo of the matter.
4845         
4846         * demos/testpixbuf.c (main): running out of equality phrases for the
4847         ChangeLog, but had to adapt connections here as well.
4848         
4849         * demos/testanimation.c (progressive_timeout): and for the fun of it,
4850         tackled this the same way.
4851         
4852         * tests/testtext.c (create_view): ok, it's becoming a pain at this
4853         point, but had enough enery for one more fix.
4854
4855         * tests/testtreecolumns.c (main): stand up man, do your work!
4856
4857         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
4858         fix, either that's been all of it or CVS gtk is broken yet again.
4859         
4860 2001-06-29  James Henstridge  <james@daa.com.au>
4861
4862         The following changes correspond to bug #56812
4863
4864         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
4865         code for GdkDevice.
4866
4867         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
4868         GdkCursor.
4869
4870 2001-06-19  Havoc Pennington  <hp@pobox.com>
4871
4872         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
4873         for mapping a window without fooling with stacking order, but
4874         updating the "withdrawn" flag
4875
4876         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
4877         filtering as soon as possible, moving move resize and wmspec_check
4878         handling after the event filter.  Make default filter apply to all
4879         events, not just those with no GdkWindow wrapped around the X
4880         window. Fix a FIXME about how the window could be a pixmap using 
4881         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
4882
4883         Also, be robust against events not on a known GdkWindow.
4884
4885         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
4886         gdk_x11_ungrab_server): export reference-counted server grabs, so
4887         other people can grab server over a GDK function that also does
4888         so.
4889
4890 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
4891
4892         * gtk/gtktreeviewcolumn.c
4893         (gtk_tree_view_column_pack_start_cell_renderer): New function to
4894         reflect that you can (hypothetically) pack cell renderers into a
4895         column.
4896         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
4897         (gtk_tree_view_column_cell_is_visible): Move more functionality to
4898         the column.
4899         (gtk_tree_view_column_cell_can_focus): Move more functionality to
4900         the column.
4901
4902         * gtk/gtktreeview.c: Move to use new column-packing code.
4903         (gtk_tree_view_real_expand_row): remove totally braindead code.
4904         (gtk_tree_view_real_collapse_row): ditto.
4905
4906 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
4907
4908         * gtk/gtktreeviewcolumn.c: Fix a typo.
4909         
4910 2001-06-26  Joel Becker  <jlbec@evilplan.org>
4911
4912         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
4913           at the end of the file
4914
4915 2001-06-26  Havoc Pennington  <hp@redhat.com>
4916
4917         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
4918
4919 2001-06-26  Havoc Pennington  <hp@redhat.com>
4920
4921         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
4922         property
4923
4924 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
4925
4926         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
4927         stupid missing statement
4928
4929         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
4930         private function for ATK.  It notifies you of how many _visible_
4931         children are deleted when a node is deleted.  Should be used by
4932         atk only.
4933
4934 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
4935
4936         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
4937         Use new pango_context_get_metrics() to fix problems
4938         with font lists in descriptions. (#56184, reported by
4939         Jonas Borgström)
4940
4941 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
4942
4943         * gtk/gtkiconfactory.c:
4944         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
4945         item factory so inlined pixbufs actually work.
4946
4947 2001-06-25  Havoc Pennington  <hp@redhat.com>
4948
4949         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
4950         s/RESIZEABLE/RESIZABLE/
4951
4952         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
4953
4954 2001-06-25  Alexander Larsson  <alexl@redhat.com>
4955
4956         * configure.in:
4957         Added --enable-fbmanager. This is some experimental code
4958         that lets several GtkFB apps coordinate their access to the
4959         framebuffer.
4960         
4961         * acconfig.h:
4962         Added ENABLE_FB_MANAGER.
4963
4964         * gdk/linux-fb/Makefile.am:
4965         Added gdkfbmanager and gdkfbswitch.
4966
4967         * gdk/linux-fb/gdkkeyboard-fb.c:
4968         * gdk/linux-fb/gdkmouse-fb.c:
4969         * gdk/linux-fb/gdkprivate-fb.h:
4970         Split device init and open so that
4971         they can be opened and closed while switched
4972         away.
4973
4974         * gdk/linux-fb/gdkmain-fb.c:
4975         Add the basic manager communication.
4976
4977         * gdk/linux-fb/gdkrender-fb.c:
4978         Don't update to the shadow fb if we're
4979         blocked by the fb manager.
4980
4981 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
4982
4983         * docs/Changes-2.0.txt: Add note about child property
4984         changes.
4985
4986 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
4987
4988         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
4989         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
4990
4991         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
4992         with un'reffing wrong list reported by Jeff Franks.
4993
4994         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
4995
4996         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
4997         for the default icon. Remove inline XPM.
4998
4999         * gtk/gtkstock.h gtk/gtkiconfactory.c:
5000         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
5001         is used for GTK_STOCK_DND, but it is a bit too small.)
5002
5003         * gtk/stock-icons/stock_dnd_multiple.png
5004         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
5005
5006         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
5007         TRUE when starting a drag. In other cases, we are
5008         just observing. (#52995)
5009
5010         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
5011         function to set the icon for a drag from a GdkPixbuf
5012         or stock ID.
5013
5014         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
5015         Likewise, for drag sources.
5016
5017         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
5018         (Now should be done using the stock system.)
5019
5020 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
5021
5022         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
5023         Removed - didn't work and not particularly useful anyways
5024         if it did. 
5025
5026 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
5027
5028         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
5029         introduced last night that was making things decidedly not work.
5030
5031         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
5032         so that we have getter/setter pairing everywhere it makes
5033         sense. (#55767)
5034
5035         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
5036         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
5037         deprecated compat macro. (#55516)
5038
5039         * gtk/gtklabel.[ch]: Add functions
5040         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
5041         gtk_label_set_label(), which mirror the property API for GtkLabel.
5042         Make gtk_label_get_attributes() only reflect the attributes
5043         set by gtk_label_set_attributes.
5044
5045         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
5046         from gtk_notebook_set_page().
5047
5048 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
5049
5050         * configure.in: Fix tests for XShm.h.
5051
5052         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
5053         gdk_image_new() by use of goto, properly use g_object_unref().
5054
5055 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
5056
5057         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
5058         calls, as GdkImage is an object. these should be g_obejct_unref()
5059         instead but that won't work because of the g_error() statement
5060         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
5061         to spot these places.
5062
5063 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
5064
5065         * modules/input/gtkimcontextxim.c: Fixup some problems with 
5066         text length handling in error cases.
5067
5068         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
5069         a bit to make test actually warn on attempt to allocation
5070         a negative size. (#56101, Matthias Clasen)
5071
5072 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
5073
5074         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5075         noticed by Brian Cameron.
5076         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
5077         Cameron.
5078
5079 2001-06-22  Hans Breuer  <hans@breuer.org>
5080
5081         * gdk/gdk.def : updated externals
5082
5083         * gdk/win32/gdkdrawable-win32.c : corrected some casts
5084         in GDK_NOTEs
5085
5086         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
5087         to translate coordinates to the internal > 16 bit system
5088         Try to handle WM_WINDOWPOSCHANGED to get better performance for
5089         when moving/resizing
5090
5091         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
5092         and gdk_keymap_get_direction (). The latter is untested for
5093         the RTL case
5094
5095         * gtk/gtk.def : updated externals
5096
5097         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
5098         from pango_language_from_string (), not an already freed pointer
5099
5100         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
5101         binary (-kb) to be useable on windoze
5102  
5103 2001-06-21  Alexander Larsson  <alexl@redhat.com>
5104
5105         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
5106         Update to new PangoLanguage changes.
5107         
5108         * gtk/gtkwindow-decorate.c:
5109         * gtk/gtkwindow.[ch]:
5110         Added setting argument to gtk_window_set_has_frame ()
5111         
5112 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
5113
5114         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
5115         the case without XKB properly.
5116
5117         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
5118         unused gtk_rc_auto_parse variable.
5119
5120         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
5121         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
5122         longer needed with GdkPixbuf.
5123
5124         * gtk/gtkrc.c (_gtk_rc_init): Make private.
5125
5126 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
5127
5128         * gtk/gtkentry.h: Mark deprecated functions with
5129         GTK_DISABLE_DEPRECATED.
5130
5131 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
5132
5133         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
5134
5135         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
5136
5137         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
5138           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
5139           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
5140           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
5141           to recent changes in Pango.
5142
5143         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
5144           to test whether the basic engine honors them.
5145
5146 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
5147
5148         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
5149         gtk_container_child_get_property().
5150
5151 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
5152
5153         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
5154         (gtk_tree_view_move_cursor_page_up_down): implement.
5155
5156 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
5157
5158         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
5159         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
5160         don't use automatic fixed size buffer for printf-ing floats, doubles
5161         can expand to really _huge_ strings, use g_strdup_printf() instead.
5162
5163 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
5164
5165         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
5166         construct property in 1.2 and still needs to be.
5167
5168         * gtk/gtkwidget.c: "composite_child" is not a settable property.
5169
5170 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
5171
5172         * gtk/gtkliststore.c (gtk_list_store_clear): 
5173         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
5174         clear a model.
5175
5176 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
5177
5178         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
5179
5180         * gtk/Makefile.am:
5181         * gtk/gtk.h: disabled GtkPacker compilation.
5182
5183         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
5184
5185         * gtk/gtknotebook.c:
5186         * gtk/gtktable.c:
5187         * gtk/gtkbox.c: ported this over to child properties.
5188
5189         * gtk/gtksettings.c: fetch class properties via
5190         g_object_class_list_properties().
5191
5192         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
5193         child arg interface. use gobjectnotifyqueue.c for child property
5194         notification.
5195
5196         * gtk/gtkwidget.[hc]: provide necessary means for container child
5197         properties, i.e. ::child_notify signal,
5198         gtk_widget_freeze_child_notify(),
5199         gtk_widget_child_notify(),
5200         gtk_widget_thaw_child_notify().
5201
5202         * tests/testgtk.c: removed inferior property handling code, for
5203         property editing, a generic module should be used, and GLE
5204         coincidentally fullfills that purpose.
5205
5206         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
5207         needs to be adapted to g_object_class_list_properties() before this
5208         builds again.
5209
5210 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
5211
5212         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
5213         test if a node is expanded.
5214
5215 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
5216
5217         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5218         where collapsing a selected row would result in the cursor/anchor
5219         getting screwed up.
5220
5221 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
5222
5223         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
5224         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
5225         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
5226         Now I can really reorder/sort all Store widgets.  treesorttest
5227         seems to just work now.
5228         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
5229         testtreesort worked through a big coincidence all this time.
5230         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
5231         code.
5232         * tests/testtreecolumns.c: Big 'ol warning at the top letting
5233         people know that this code should never ever ever be copied.
5234
5235 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
5236
5237         * gtk/gtkwindow.h: Fixed a small typo, it should be
5238         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
5239         on line 134.
5240
5241 2001-06-14  Havoc Pennington  <hp@redhat.com>
5242
5243         Docs fixups, and:
5244         
5245         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
5246         GTK_DISABLE_DEPRECATED
5247
5248 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
5249
5250         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
5251         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
5252         finish it off tonight, though it basically works now when it's a
5253         list.  Also, I have a sinking feeling neither GtkTreeStore or
5254         GtkListStore actually resort when adding a new item.  I'll look
5255         into it.
5256
5257 2001-06-14  Havoc Pennington  <hp@redhat.com>
5258
5259         * demos/gtk-demo/main.c (load_file): fix bug identified by
5260         warnings I just added to gtktextbuffer
5261
5262 2001-06-14  Havoc Pennington  <hp@redhat.com>
5263
5264         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
5265
5266         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
5267
5268         * gtk/gtktextbtree.c: don't leak node data all over the place.
5269
5270         * demos/gtk-demo/main.c (main): create fontify tags for the right
5271         buffer
5272
5273         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
5274         to mention tags in the same table can't have the same name,
5275         suggested by Skip Montanaro
5276
5277 2001-06-11  Havoc Pennington  <hp@redhat.com>
5278
5279         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
5280         for trying to add two tags with same name to the tag table
5281
5282         * demos/gtk-demo/main.c (main): fix colors ;-)
5283
5284 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
5285
5286         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
5287         that allows grouping together multiple windows so that grabs
5288         within that set of windows only affect those windows.
5289
5290         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
5291         signal for notification when a widget becomes shadowed
5292         by a grab or is no longer shadowed by a grab.
5293
5294         * gtk/gtkwidget.c (gtk_widget_propagate_state)
5295           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
5296         insenstive widgets to maintain a grab.
5297
5298 2001-06-14  Alexander Larsson  <alexl@redhat.com>
5299
5300         * docs/README.linux-fb:
5301         Add some example config files that can be used with the URW fonts.
5302         
5303         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
5304         Set up the color ramps for DirectColor mode.
5305
5306 2001-06-11  Havoc Pennington  <hp@redhat.com>
5307
5308         * Release 1.3.6
5309          
5310 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5311
5312         * gdk/linux-fb/gdkwindow-fb.c:
5313         Unify shaped window code and make it repaint the area that used
5314         to be part of the shape, but isn't anymore.
5315
5316 2001-06-11  Havoc Pennington  <hp@redhat.com>
5317
5318         * NEWS: Updates
5319
5320         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
5321
5322         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
5323         
5324 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5325
5326         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
5327         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
5328         passes zero instead, so do we.
5329         
5330 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
5331
5332         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
5333         Deep copy dash_list too.
5334         (_gdk_fb_gc_new): Set default cap_style before
5335         setting values.
5336
5337 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
5338
5339         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
5340         gdk_keymap_get_direction): New functions.
5341
5342 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
5343
5344         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
5345         gtk_tree_model_get_flags by adding a second flag for atk.
5346
5347         * gtk/gtktreemodel.c: make cursor behavior interact better with
5348         mouse presses.
5349
5350 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
5351
5352         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
5353         expand_row/collapse_row to be 2 signals each -- test_expand_row
5354         and row_expanded as well as test_collapse_row and row_collapsed.
5355
5356 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
5357
5358         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
5359         signal name to be changed instead of selection_changed.
5360
5361 2001-06-08  Havoc Pennington  <hp@redhat.com>
5362
5363         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
5364         "scroll_offset" property for notification when the layout offsets
5365         may have changed
5366         (gtk_entry_adjust_scroll): add notify for scroll_offset
5367         (gtk_entry_layout_index_to_text_index): function to compensate for
5368         preedit string when doing coordinate stuff on the entry's layout
5369         (gtk_entry_text_index_to_layout_index): inverse function
5370         (gtk_entry_get_layout_offsets): hook to get current position of
5371         the layout      
5372         (gtk_entry_get_layout): hook to get the layout itself.
5373
5374         * gtk/gtklabel.c (gtk_label_get_layout): new function
5375
5376 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
5377
5378         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
5379         keybinding.
5380         (gtk_tree_view_focus): Fix merge conflict.
5381
5382 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
5383
5384         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
5385         clean up cursor handling.
5386
5387 2001-06-08  Havoc Pennington  <hp@redhat.com>
5388
5389         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
5390         function
5391
5392         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
5393         this function
5394
5395 2001-06-08  Alex Larsson  <alexl@redhat.com>
5396
5397         * gtk/gtkcompat.h.in:
5398         Added compat macros for all old GTK_TYPE_GDK_xxx types.
5399         Fixes bug #52892
5400
5401 2001-06-08  Havoc Pennington  <hp@redhat.com>
5402         
5403         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
5404         parent still
5405
5406 2001-06-08  Havoc Pennington  <hp@redhat.com>
5407
5408         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
5409         don't call g_list funcs on GSList
5410
5411         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
5412         gtk_container_focus(), since some widgets have focusable locations
5413         which are not other widgets. These widgets should not have to be 
5414         containers just to manage the focus. For example, GtkHSV is
5415         currently a container for no good reason. Also, this cleans
5416         up the "if (is_container && is_sensitive && is_drawable)
5417         container_focus ()" mess in widget implementations.
5418
5419         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
5420         function, and have it just call gtk_widget_child_focus().
5421
5422         * gtk/gtkhsv.c: derive from widget not container
5423         
5424         Throughout: fix to reflect GtkContainer::focus change
5425         
5426 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
5427
5428         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
5429         range.  Fix bug #55921
5430
5431         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
5432         (#55920).
5433
5434 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
5435
5436         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
5437         and gdk_keymap_get_current_direction().
5438
5439         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
5440           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
5441         the current locked group, use it to set the keymap
5442         direction.
5443
5444         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
5445         to determine whether we draw a split cursor or use
5446         a jumping cursor based on the current direction.
5447
5448         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
5449         Obey the split cursor setting. 
5450
5451 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
5452
5453         * gtk/gtkimmulticontext.c (activate_cb): Only activate
5454         when toggling on, not when toggling off... (#55906)
5455
5456 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
5457
5458         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
5459         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
5460         in docs. (#55812, Vitaly Tishkov)
5461
5462 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
5463
5464         * demos/gtk-demo/main.c (create_tree): Changed signal name from
5465         selection_changed to changed in signal connection to GtkTreeSelection,
5466         also used g_signal_connectc since GtkTreeSelection is now a GObject.
5467
5468 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
5469
5470         * gtk/gtktreeselection.c: Now it's a GObject instead of a
5471         GtkObject.  The GtkTreeSelection::selection_changed signal is now
5472         the GtkTreeSelection::changed signal.
5473
5474         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
5475         object.
5476
5477         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
5478         object.
5479
5480 2001-06-07  Havoc Pennington  <hp@redhat.com>
5481
5482         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
5483
5484 2001-06-07  Havoc Pennington  <hp@redhat.com>
5485         
5486         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
5487         (not tested yet because with absolute path to srcdir I can't build
5488         atk, but it was broken anyway so this may help) 
5489
5490 2001-06-07  Havoc Pennington  <hp@redhat.com>
5491
5492         * configure.in: output m4macros/Makefile
5493         
5494 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
5495
5496         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
5497         buttons.  Fixes #55460 reported by matthiasc@poet.de.
5498
5499 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
5500
5501         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
5502         expansion/collapsing so it only happens in one place.
5503         (gtk_tree_view_real_expand_row): ditto.
5504
5505 2001-06-07  Havoc Pennington  <hp@redhat.com>
5506
5507         * tests/Makefile.am: add missing -I flag
5508
5509         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
5510
5511         * configure.in: use pkg-config to see if GModule is
5512         supported; fix to properly turn on included loaders 
5513         when GModule isn't supported; don't use AC_CHECK_LIB 
5514         when libs are not installed yet
5515
5516         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
5517
5518         * Makefile.am (SUBDIRS): add m4macros subdir
5519
5520         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
5521         dependencies also.
5522
5523 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
5524
5525         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
5526         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
5527
5528 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
5529
5530         * gtk/gtktreeview.c
5531         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
5532         bindings to expand and collapse rows.
5533         (gtk_tree_view_real_select_cursor_parent): New key binding.
5534         (gtk_tree_view_real_toggle_cursor_row): New key binding.
5535
5536         * gtk/gtkmarshal.list: new
5537         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
5538
5539 2001-06-06  Havoc Pennington  <hp@redhat.com>
5540
5541         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
5542
5543         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
5544         Down to move visually rather than logically, since it confuses 
5545         people. Add -/+ and Ctrl--/+ bindings for logical movement.
5546
5547 2001-06-06  Alex Larsson  <alexl@redhat.com>
5548
5549         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5550         Fix up error messages.
5551
5552 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
5553
5554         * gtk/gtktooltips.h: Include gtkwidget.h 
5555         (#55798, Karl Nelson)
5556
5557         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
5558         a valid latin-1 character. (Marc Lehmann, #35467)
5559
5560         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
5561         (Marc Lehmann, #35467)
5562         
5563 2001-06-05  Alex Larsson  <alexl@redhat.com>
5564
5565         * demos/gtk-demo/appwindow.c (do_appwindow):
5566         Don't swap the order of the args to gtk_widget_destroyed.
5567
5568         * tests/testgtk.c (destroy_properties):
5569         Don't crash when the properties window is destroyed.
5570
5571         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
5572         Use with_mnemonics to handle the case of stock items with
5573         underscores in them.
5574
5575 2001-06-05  Havoc Pennington  <hp@redhat.com>
5576
5577         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
5578         gtk_text_iter_reorder
5579
5580 2001-06-05  Havoc Pennington  <hp@redhat.com>
5581
5582         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
5583
5584 2001-06-05  Havoc Pennington  <hp@redhat.com>
5585
5586         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
5587         to the range that was set
5588
5589         * gtk/gtkrange.c: add value_changed signal, primarily 
5590         intended for use with GtkScale
5591         (gtk_range_set_increments): new function
5592         (gtk_range_set_range): new function with weird name
5593         (gtk_range_set_value): new function
5594         (gtk_range_get_value): new function
5595
5596         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
5597         from gtk_spin_button_get_value_as_float(). Compat #define
5598         added for get_value_as_float.
5599
5600         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
5601
5602         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
5603
5604 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
5605
5606         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
5607
5608 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
5609
5610         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
5611
5612         * tests/testgtk.c (create_tooltips): Remove usage of
5613         gtk_widget_set().
5614
5615 2001-06-05  Havoc Pennington  <hp@redhat.com>
5616
5617         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
5618
5619         Applying patch from Jeff Franks, with function docs added.
5620         
5621         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
5622         remove call to set_mnemonic_widget, change docs a bit.  
5623
5624         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
5625         new function
5626
5627         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
5628         new function
5629
5630         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
5631
5632         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
5633         function
5634         (gtk_radio_button_new_with_mnemonic_from_widget): new function
5635
5636         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
5637         new function
5638
5639         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
5640         function        
5641
5642         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
5643         auto-selection of mnemonic widget.
5644
5645 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
5646
5647         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
5648         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
5649         (gtk_tree_view_column_set_min_width): ditto.
5650
5651 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
5652
5653         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
5654         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
5655
5656 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
5657
5658         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
5659         gtk_clist_thaw().
5660
5661 2001-06-04  Havoc Pennington  <hp@pobox.com>
5662
5663         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
5664 r       eleases for buttons 6, 7
5665
5666 2001-06-04  Havoc Pennington  <hp@redhat.com>
5667
5668         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
5669         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
5670         #55562
5671
5672 2001-06-04  Havoc Pennington  <hp@redhat.com>
5673
5674         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
5675         where text_view->layout == NULL by assuming its size is 0, 
5676         i.e. same as if we haven't done any reflow. Reported by 
5677         Hidetoshi Tajima #55448 
5678
5679 2001-06-04  Havoc Pennington  <hp@redhat.com>
5680
5681         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
5682         and 7 for scroll left/right, from Thomas Broyer
5683
5684 2001-05-10  Havoc Pennington  <hp@redhat.com>
5685
5686         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
5687         we need to parse the xsetting as if it were an RC file string.
5688
5689         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
5690         value of palette from settings, not from static variable
5691
5692         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
5693         xsettings translation table
5694
5695         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
5696         hardcoding the toolbar style conflicts with new customizable 
5697         toolbar style philosophy
5698         (gtk_toolbar_class_init): add settings for default toolbar style;
5699         these are used unless the app specifically forces a toolbar style
5700
5701         * gtk/gtksettings.c (settings_install_property_parser): only
5702         return at the start if we warn and parser == NULL
5703
5704         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
5705         palette changed handler so we don't notify dead color selections
5706
5707         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
5708         xthickness/ythickness of 0 or 1 properly 
5709         (gtk_default_draw_resize_grip): clear the background behind the
5710         resize grips, and align to bottom right if we square the 
5711         area to be drawn.
5712
5713         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
5714         statusbar label to 1, so it doesn't make toplevels resize oddly
5715         (gtk_statusbar_size_request): add grip size to request
5716         (gtk_statusbar_size_allocate): hack so the hbox still works with 
5717         the grip size in the request
5718
5719         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
5720         bug where showing all on a toplevel makes the toolbar 
5721         button text appear despite the toolbar mode
5722
5723         * gtk/gtkmenubar.c: add internal padding style property
5724
5725         * gtk/gtktoolbar.c: Add internal padding style property; add
5726         shadow type style property
5727
5728         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
5729         state; and put Container::border_width outside the frame
5730
5731         * gtk/gtktextview.c: don't draw focus rectangle if we're in
5732         interior focus mode, we just use blinking cursor
5733
5734 2001-06-04  Havoc Pennington  <hp@redhat.com>
5735
5736         * configure.in: Make gdk-pixbuf have same version number as GTK
5737
5738 2001-06-04  Havoc Pennington  <hp@redhat.com>
5739
5740         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
5741         digits greater than 6. If there actually are limits (which there
5742         likely aren't), should clamp to them not warn.
5743         (gtk_spin_button_new_with_range): don't take log of 0
5744         (gtk_spin_button_size_request): use digits to compute size
5745         request, rather than step increment.
5746
5747         * tests/testgtk.c (create_spins): test larger values of digits
5748         
5749         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
5750         font on map not expose, so we don't get weirdness during scrolling
5751
5752 2001-06-04  Havoc Pennington  <hp@redhat.com>
5753
5754         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
5755         Sam Solon, bug #54577, update value even if not drawable.
5756
5757 2001-06-04  Havoc Pennington  <hp@redhat.com>
5758
5759         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
5760         SCROLL_LEFT, reported by Thomas Broyer.
5761
5762 2001-06-04  Havoc Pennington  <hp@redhat.com>
5763
5764         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
5765         Process updates immediately, to prevent funny lag effect
5766         when scrolling, at some mild potential efficiency cost.
5767
5768 2001-06-04  Havoc Pennington  <hp@redhat.com>
5769
5770         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
5771         slider on the click.
5772
5773 2001-06-03  Havoc Pennington  <hp@pobox.com>
5774
5775         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
5776         hscale/vscale details, so we can use it for scrollbar as well.
5777
5778         * tests/testgtk.c (reformat_value): honor digits from GtkScale
5779
5780         * gtk/gtkenums.h (GtkTroughType): Remove this enum
5781         (GtkScrollType): add START and END from GtkTroughType
5782
5783         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
5784         its x/y arguments
5785
5786         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
5787         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
5788         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
5789         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
5790         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
5791
5792         Notable changes in the process:
5793          
5794         - stepper_size style property is the height for vertical 
5795           ranges, width for horizontal; the other dimension matches
5796           the trough size
5797         - add ability to do NeXT-style steppers (and several other styles
5798           that don't make any sense)
5799         - added min_slider_length, fixed_slider_length properties to
5800           GtkScrollbar
5801         - cleaned some private (or at least useless) functions out of
5802           gtkscale.h    
5803         - moved bindings to GtkScale from subclasses, even arrow keys,
5804           since blind users don't know scale orientation.
5805         - change move_slider action signal to use new GtkScrollType,
5806           remove GtkTroughType argument
5807         - digits rounds the values a range will input to the given 
5808           number of decimals, but will not try to force adjustment 
5809           values set by other controllers. That is, we no longer
5810           modify adjustment->value inside a value_changed handler.
5811         - added getters for GtkScale setters
5812         - middle-click begins a slider drag
5813         
5814 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
5815
5816         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
5817         getting the focus code to work.
5818         (gtk_tree_view_class_init): Add a bunch of keybindings.
5819
5820         * gtk/gtktreeviewcolumn.c
5821         (gtk_tree_view_column_set_cell_data_func):
5822         s/GtkCellDataFunc/GtkTreeCellDataFunc.
5823         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
5824         of "properties_changed" to help justify the death of the latter
5825         signal. (-:
5826
5827         * tests/testtreefocus.c (main): Let some columns be focussable to
5828         test focus better.
5829
5830 2001-06-01  Havoc Pennington  <hp@redhat.com>
5831
5832         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
5833         
5834         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
5835         overwrite in overwrite mode if we already deleted the selection
5836         and replaced it with new text.  
5837
5838         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
5839         selection to an empty range, clear the clipboard if we owned it.
5840         (gtk_label_set_selectable): give up selection if we become
5841         unselectable.
5842         (gtk_label_state_changed): override state changed to unselect text
5843         when insensitive
5844         (get_text_callback): add paranoia check that indexes aren't
5845         outside of label->text
5846         (gtk_label_select_region): make -1 for start_offset mean "end of
5847         label," for consistency with GtkEditable
5848
5849         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
5850         GTK_DIALOG_NO_SEPARATOR flag
5851
5852 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
5853
5854         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
5855         notifications on non-existant "enable_arrow_keys".
5856         (#53753, Skip Montanaro)
5857
5858 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
5859
5860         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
5861         GDK_TYPE_RECTANGLE.
5862
5863         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
5864         of allocation argument be GDK_TYPE_RECTANGLE.
5865
5866 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
5867
5868         * gtk/gtkoptionmenu.c: Account for the fact that the border
5869         width is _outside_ the window. (Fixes #54585, bug found
5870         by Bastien Nocera.)
5871
5872 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
5873
5874         * gtk/gtksettings.c (gtk_settings_get_property): Validate
5875         value from GDK settings against parameter spec.
5876
5877         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
5878         to temporary values and use g_value_transform(), since
5879         thinking that GValue was going to be easy or efficient
5880         to use was, of course, a mistake.
5881
5882         * gtk/gtksettings.c: Add cursor blink setting.
5883         
5884         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
5885
5886         * gtk/gtkentry.c: Add cursor blinking.
5887
5888         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
5889         cursor blink global settings.
5890
5891         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
5892         for :text_position in places where it is missing.
5893
5894 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
5895
5896         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
5897
5898 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
5899
5900         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
5901         not pkg-config. (#51032)
5902
5903         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
5904         (fixes #51952, James Henstridge)
5905         
5906 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
5907
5908         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
5909         Rename to the more correct gtk-go-up.
5910
5911         * gtk/stock-icons/stock_menu_sort_ascending.png:
5912         Added new file.
5913         
5914         * gtk/stock-icons/stock_menu_sort_descending.png:
5915         Changed to show descending instead of ascending.
5916
5917         * gtk/gtkiconfactory.c:
5918         Added menu size icon to sort ascending.
5919
5920         * gtk/stock-icons/Makefile.am:
5921         Added stock_menu_sort_ascending.png.
5922         
5923         * gtk/gtkseparatormenuitem.c:
5924         Use correct typenames.
5925
5926 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
5927
5928         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
5929         gulong as in GSignal.
5930
5931 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
5932
5933         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
5934         instances of GtkCellRenderer in code (all but dnd icon code).
5935         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
5936         there, and I can do multiple Cells per column.
5937
5938         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
5939
5940         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
5941         when model was unreffed prior to removing the row reference.
5942
5943 2001-05-25  Havoc Pennington  <hp@redhat.com>
5944
5945         * gtk/gtkiconfactory.c: fix so that default icons are created if 
5946         you call gtk_stock_list_ids()
5947
5948         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
5949         in list
5950
5951 2001-05-25  Havoc Pennington  <hp@redhat.com>
5952
5953         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
5954         set can render without falling back to missing image icon
5955
5956         * gtk/gtktextview.c (gtk_text_view_size_request): request full
5957         size of text, instead of random values
5958
5959         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
5960         size of tree view, instead of random values
5961
5962         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
5963         image in an appropriate size
5964
5965         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
5966         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
5967
5968         Throughout: fix GTK_STOCK_BUTTON_ instances
5969         
5970         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
5971         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
5972         Add a bunch of new stock items/icons
5973
5974         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
5975         new function, convenience for inserting columns with a data func
5976
5977         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
5978         (_gtk_icon_factory_list_ids): use list of all factories to
5979         generate a list of all known IDs
5980
5981         * gtk/gtkstock.c (gtk_stock_list_ids): replace
5982         gtk_stock_list_items() with a function that returns all IDs known
5983         including those for GtkIconFactory.
5984
5985 2001-05-25  Hans Breuer  <hans@breuer.org>
5986
5987         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
5988         work -> check boxes and radio buttons are drawn now, even on win9x.
5989         Improved line settings a bit, still no clue how to get really dotted
5990         lines on win9x, on NT it's PS_ALTERNATE.
5991
5992         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
5993         GDK_HINT_MIN_SIZE as well
5994
5995         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
5996
5997         * gtk/gtk.def : updated
5998
5999         * gtk/gtktreeprivate.h : change column_drop_func to be a function
6000         pointer not a function pointer pointer
6001
6002         * tests/testdnd.c : include <stdlib.h> for putenv prototype
6003
6004         * tests/testsocket.c : made it compile on win32 again
6005
6006         * tests/makefile.msc : one more test-app uses prop-editor.obj
6007
6008 2001-05-22  Havoc Pennington  <hp@pobox.com>
6009
6010         * gtk/gtkbin.c (gtk_bin_get_child): New function
6011
6012 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
6013
6014         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
6015         to ignore when doing compose processing.
6016
6017 2001-05-22  Joe Shaw  <joe@ximian.com>
6018
6019         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
6020         Simplify as suggested by Havoc. Just get the last iter and work
6021         backward to the tag instead of getting a line and working back from
6022         there. Fixes passing in an invalid offset to
6023         iter_init_from_byte_offset().
6024
6025 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
6026
6027         * gtk/gtktreeview*.h: 
6028         * gtk/gtkcell*.h:
6029         * gtk/gtk*store.h:
6030         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
6031         macros to all objects.
6032
6033 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
6034
6035         * gtk/gtkcellrenderertext.c
6036         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
6037         with very large (TM) amounts of text.  May be moved to
6038         GtkCellRenderer in the future, though I'm not sure it wants to be
6039         this accessible.
6040
6041         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
6042         More sanity brought to this class.  I like it.
6043
6044         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
6045         case.  Kids, don't try this at home.
6046
6047         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
6048         convenience function.
6049
6050         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
6051
6052 2001-05-21  Alexander Larsson  <alexl@redhat.com>
6053
6054         * gtk/gtkfontsel.c:
6055         Added properties. Based on patch by Lee Mallabone.
6056
6057         * gtk/gtkruler.c:
6058         * gtk/gtkhruler.c:
6059         * gtk/gtkvruler.c:
6060         * gtk/gtktext.c:
6061         * gtk/gtktextview.c:
6062         Converted GtkArg to GParam. Based on patches by John Margaglione.
6063
6064         * tests/Makefile.am:
6065         * tests/testtext.c:
6066         Add a property editor to testtext.
6067         
6068 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
6069
6070         * gtk/gtk{h,v,}paned.c: Only show the separator if 
6071
6072         * configure.in: Fixed reversed conditional causing all image
6073         libraries to be linked in.
6074
6075 2001-05-21  Joe Shaw  <joe@ximian.com>
6076
6077         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
6078         that top_y needs to be >= 0.
6079
6080 2001-05-11  Havoc Pennington  <hp@pobox.com>
6081         
6082         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
6083         losing connection to the X server.
6084
6085 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
6086
6087         * configure.in: Start checks for X from pangox/pangoxft
6088         CFLAGS to avoid duplicate libraries.
6089
6090         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
6091
6092         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
6093         to include gobject.
6094         
6095 2001-05-18  Alexander Larsson  <alexl@redhat.com>
6096
6097         * gtk/gtkspinbutton.c:
6098         Convert GtkArgs to GParams. Based on patch by John Margaglione.
6099         Also do size request reasonable for MAXDOUBLE. Previously it printed
6100         the limits to a buffer and overran it. Instead do it using log10() and
6101         limit the width to 10 digits.
6102         
6103         * gtk/gtkwidget.c (gtk_widget_get_property):
6104         Correctly handle setting the parent property to NULL.
6105
6106 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
6107
6108         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
6109         style attributes even if the widget isn't realized.
6110
6111         * demos/gtk-demo/main.c: Use a slightly smaller font.
6112
6113 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
6114
6115         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
6116         This is something that only a widget writer would ever want
6117         to change.
6118
6119         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
6120         gtk_signal_emit_by_name().
6121
6122         * gtk/gtkviewport.c: Fix some warnings.
6123
6124         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
6125         allowing the requisitions of multiple widgets to be grouped
6126         together.
6127
6128         * tests/testgtk.c: Add GtkSizeGroup test
6129
6130         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
6131
6132         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
6133         warnings.
6134
6135         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
6136
6137 2001-04-28  Martin Baulig  <baulig@suse.de>
6138
6139         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
6140         to gtk_image_menu_item_set_icon() and made it work if there's already
6141         an image.
6142         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
6143         (gtk_image_menu_item_new_with_label): New function.
6144
6145 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
6146
6147         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
6148         highlighting code!!!!  The result is okay so long as you don't try
6149         to stress it.  It also highlights a bug in the TextView so it's in
6150         an unproportional font right now until it's fixed.
6151
6152         *demos/gtk-demo/*.c: Clean up code a bit to make it
6153         ugly-parser(TM) friendly. (-:
6154
6155 2001-05-17  Joe Shaw  <joe@ximian.com>
6156
6157         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
6158         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
6159         if it is only partially onscreen.
6160
6161 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
6162
6163         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
6164         not by characters.
6165
6166         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
6167         are not zero or one; that is, when graphemes of multiple characters
6168         are involved.
6169
6170         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
6171         FIXME.
6172
6173 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
6174         
6175         * gtk/gtkbbox.c:
6176         Add properties, based on patch by Lee Mallabone.
6177
6178         * gtk/gtknotebook.c:
6179         * gtk/gtktoolbar.c:
6180         Convert from GtkArg to GParam, based on patch by John Margaglione.
6181         
6182         * gtk/gtkhscale.c:
6183         * gtk/gtkvscale.c:
6184         * gtk/gtkhscrollbar.c:
6185         * gtk/gtkvscrollbar.c:
6186         * gtk/gtkrange.c:
6187         Move adjustment property to GtkRange.
6188
6189         * gtk/gtklabel.c:
6190         Setup mnemonics on property changes
6191
6192         * gtk/gtkwidget.c (gtk_widget_get_property):
6193         GdkExtensionMode is an enum, not a flag. Set it with
6194         g_value_set_enum ().
6195
6196         * tests/prop-editor.c:
6197         Better propery editor.
6198
6199         * tests/testgtk.c:
6200         Add new property test. Pass zero to the property editor to
6201         get properties from all derived types.
6202         
6203 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
6204
6205         * autogen.sh (have_automake): Require libtool-1.4,
6206         automake-1.4p1.
6207
6208         * acinclude.m4: Remove libtool macros.
6209
6210         * gdk-pixbuf/Makefile.am: Add dependencies to loade
6211         modules.
6212
6213         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
6214         for libgdk.
6215
6216         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
6217         libgdk.la for libgtk.
6218
6219         * modules/input/Makefile.am: Make modules have full
6220         dependencies.
6221
6222 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
6223
6224         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
6225         #54699 where paths weren't being checked for correctness.
6226
6227 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
6228
6229         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
6230         in any order you wan, whether or not the column is added to the
6231         tree, or the tree is realized.  Yay!
6232
6233         * gtk/gtktreeviewcolumn.c
6234         (gtk_tree_view_column_setup_sort_column_id_callback): handle
6235         sorting columns a lot saner
6236
6237         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
6238         new function to actually set wether or not a column is
6239         reorderable.
6240
6241         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
6242         if we have 'em.
6243
6244         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
6245         Fix nasty bug where we were showing the button just before
6246         realizing it.  As a result, the parent window was
6247         tree_view->window instead of tree_view->priv->header_window.
6248
6249         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
6250         to let you easily reorder a list or tree.
6251
6252 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
6253
6254         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
6255         from args to properties.
6256
6257 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
6258
6259         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
6260         from args to properties. (#51957)
6261
6262         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
6263         calls to after ->set_property call.
6264
6265 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
6266
6267         * tests/prop-editor.c: Block against redundant changes.
6268
6269         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
6270         properties.
6271
6272 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
6273
6274         * gdk/gdkpixmap.h: Remove creative formatting.
6275
6276 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
6277
6278         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
6279         property API. (#51669)
6280
6281         * gtk/gtkscale.c: Patch from John Margaglione converting to
6282         property API. (#51891)
6283
6284         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
6285         to property API. (#50985)
6286
6287 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
6288
6289         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
6290         buffering state across expose event, so we still call end_paint().
6291
6292 2001-05-11  Alexander Larsson  <alexl@redhat.com>
6293
6294         * gtk/gtkhsv.c (paint_triangle):
6295         Expose the ring in the triangle at the correct place when
6296         exposing just a part of the triangle.
6297
6298         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
6299         Return FALSE, or window focusing will not work.
6300
6301 2001-05-11  Havoc Pennington  <hp@pobox.com>
6302
6303         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
6304         #54144
6305
6306         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
6307         bug #54330
6308
6309 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
6310
6311         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
6312         propagate exposes to NULL child.
6313
6314         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
6315         against not having one of the scrollbars.
6316
6317         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
6318         we don't keep a mnemonic window if we have no mnemonic installed.
6319
6320 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
6321
6322         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
6323         it has the _important_ side effect of initializing a class.
6324
6325 2001-05-10  Alexander Larsson  <alexl@redhat.com>
6326
6327         * gdk/linux-fb/gdkprivate-fb.h:
6328         Make sure you can compile out the implementation/wrapper assert
6329         macros.
6330
6331         * gdk/linux-fb/gdkdrawable-fb2.c:
6332         Check implementation/wrappers, initialize type for pixmap dummys.
6333
6334         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
6335         Hide the cursor if reading from the screen.
6336
6337         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6338         Fix sign bug in tiling code.
6339
6340         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
6341         Handle background pixmaps.
6342
6343 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
6344
6345         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
6346         function to let user control where columns are dragged.
6347
6348         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
6349         Escape is pressed.
6350
6351 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
6352
6353         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
6354         "columns_changed" signal.
6355         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
6356         motion code to draw arrows to the side if indicator is outside the
6357         widget.
6358         (gtk_tree_view_map_expanded_rows): Implement.
6359
6360 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6361
6362         * demos/testpixbuf-save.c: 
6363         * demos/testpixbuf-drawable.c:
6364         Include gdkfb.h on linux-fb.
6365
6366 2001-05-07  Alexander Larsson  <alexl@redhat.com>
6367
6368         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
6369         New function for getting toplevel window at position.
6370         (gdk_drag_find_window): Use get_toplevel_window () instead
6371         of gdk_window_get_pointer(). (gdk_drag_status): Use
6372         correct context for getting window.
6373
6374         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
6375         g_strdup the atom name.
6376
6377         * gdk/linux-fb/gdkwindow-fb.c:
6378         Costmetic fix.
6379
6380         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
6381         Add code for changing cursor on linux-fb backend (same as
6382         win32).
6383
6384 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
6385
6386         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
6387         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
6388         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
6389         report was not for the development branch of GTK+, but it applies
6390         anyways).
6391
6392 2001-05-04  Havoc Pennington  <hp@redhat.com>
6393
6394         * configure.in: fix some shell typos
6395
6396         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
6397
6398         * gtk/gtkimage.c: handle animations
6399
6400         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
6401         border_width * 2, not just border_width
6402
6403         * gtk/gtkscale.c: add "format_value" signal to allow people
6404         to override the way values are drawn.
6405         (gtk_scale_get_value_size): fix width/height mistake,
6406         and compute size from actual displayed text, not 
6407         from made-up text.
6408
6409         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
6410         signal registration
6411
6412         * tests/testtext.c: Add "Remove all tags" menu item for testing
6413
6414         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
6415
6416         * demos/gtk-demo/main.c (main): add hack so we can find modules
6417         without installing gtk
6418
6419         * demos/gtk-demo/textview.c (insert_text): demo font scaling
6420
6421         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
6422         factor)
6423         (gtk_cell_renderer_text_set_property): remove some bogus
6424         g_object_notify
6425
6426         * gtk/gtktexttag.c: add "scale" property which is a font scaling
6427         factor
6428
6429         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
6430         to layout
6431
6432         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
6433         gtk_text_iter_is_first
6434
6435 2001-01-06  Hans Breuer  <hans@breuer.org>
6436
6437         * gdk/gdk.def : updated exports
6438
6439         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
6440         gdk won't compile anymore
6441  
6442         * gdk/win32/gdkevents-win32.c : initialize ret_val when
6443         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
6444         Improved gdk_flush () to not only do pending drawing operations
6445         but also process all currently pending events. This should make
6446         the behaviour more similar to the X11 version.  
6447
6448         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
6449         option needs to be set even if there is no GDK_GC_BACKGROUND.
6450         (gdk_win32_hdc_get) : use predraw_set_background () independent
6451         of value_mask. This allows to draw dashed lines leaving the original
6452         background intact.
6453
6454         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
6455         after processing, because we can't reuse it as the X11 version does.
6456
6457         * gtk/gtk.def : updated exports
6458
6459         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
6460         would like to get rid of this file again, and use straight
6461         makefile.msc again, as the other Gtk+ subdirs do)
6462
6463         * test/makefile.msc (new file) : build the test apps here
6464
6465 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
6466
6467         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
6468         strike-through setting
6469         (gdk_draw_layout_line_with_colors): Render strike-through
6470
6471 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
6472
6473         * Release 1.3.5
6474
6475         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
6476
6477         * NEWS: Updated
6478
6479         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
6480         Makefile breakage.
6481
6482 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
6483
6484         * demos/gtk-demo/images.c (progressive_timeout): Fix
6485         typo in filename.
6486
6487         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
6488         out FIXME warning; just too annoying.
6489
6490 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
6491
6492         * gdk/linux-fb/gdkcolor-fb.c:
6493         Better error messages.
6494
6495         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
6496         Initialize abs_x and abs_y.
6497         
6498         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
6499         Correct handling of stipple offset.
6500
6501         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
6502         Treat directcolor framebuffers as truecolor.
6503         
6504 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
6505
6506         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
6507         dependency on Atk for accessibility support.
6508
6509         * configure.in **/Makefile.am: Major reworking of substituted
6510         variables for CFLAGS/LIBS to make a lot more sane and 
6511         keep the the compile/link lines a bit shorter.
6512
6513         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
6514
6515 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
6516
6517         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
6518         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
6519         use _gtk_boolean_handled_accumulator.
6520
6521 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
6522
6523         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
6524         to fix things so clicking inside selection leaves cursor
6525         at point where clicked. (#50324)
6526
6527         * gtk/gtksettings.c (gtk_settings_class_init): Restore
6528         sane value for default double click time.
6529
6530         * tests/testtext.c (test_init): Really path to input modules.
6531
6532 2001-05-03  Sven Neumann  <sven@convergence.de>
6533
6534         * demos/testpixbuf-save.c: include target-specific headers as
6535         done in testpixbuf-drawable.c
6536
6537 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
6538
6539         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
6540         new_text_length appropriately when we run into the 
6541         size limit for the entry. (#53445, reported by Jeff Franks)
6542
6543         * tests/testgtk.c (create_entry): Remove most of the
6544         property toggle buttons. Replace with a "Props" button
6545         that brings up a property editor.
6546
6547         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
6548         Split the property editor code out for reuse, improve.
6549
6550 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
6551
6552         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
6553         trap errors around calls to XSetInputFocus since we have
6554         no way of knowing reliably whether we are viewable or
6555         not. (#53947)
6556
6557 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
6558
6559         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6560         fix bug in dropping columns.  Moving columns now basically works
6561         modula some fine tuning.
6562
6563 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
6564
6565         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
6566         autoscroll support.  It mostly works, but could use some fine
6567         tuning.
6568         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
6569         Actually move the column.
6570
6571 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
6572
6573         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
6574           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
6575           New default theme! A slighly improved version of the 2.0 Raleigh
6576           theme, with Windows-esque focus/drawing default. 
6577           (GtkWidget::interior_focus defaults to TRUE.)
6578
6579         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
6580
6581 2001-04-30  Havoc Pennington  <hp@pobox.com>
6582
6583         * tests/testtext.c (line_numbers_expose): fix to work with
6584         gtk_paint_layout change
6585
6586 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
6587
6588         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
6589           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
6590           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
6591           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
6592
6593         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
6594           with GtkWidget::interior_focus = TRUE better.
6595
6596         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
6597         ::default_outside_border for more flexibility.
6598
6599         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
6600         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
6601         change that had to be made with g_object_get.
6602
6603 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
6604
6605         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
6606         (gtk_tree_view_move_column_after): Clean up interface. 
6607
6608 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
6609
6610         * gtk/gtkpacker.h:
6611         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
6612          to gtkenum.h.
6613
6614         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
6615         handled in switch).
6616
6617         * gtk/Makefile.am:
6618         (gtk.defs): generate enum portions with  glib-mkenums.
6619         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
6620         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
6621         
6622         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
6623         addition.
6624
6625         * docs/Changes-2.0.txt: keep a note on signal handlers now
6626         not getting emitted during the emission they were connected within.
6627
6628 2001-04-28  Havoc Pennington  <hp@pobox.com>
6629
6630         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
6631
6632 2001-04-24  Havoc Pennington  <hp@redhat.com>
6633
6634         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
6635         (gtk_text_layout_move_iter_to_next_line): fix these two for
6636         invisible text, lots of other stuff still hosed.
6637
6638         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
6639         new function, replaces the get/set palette stuff. This function 
6640         is intended for use by libgnomeui which should set the hook to a
6641         thing which sets the palette in GConf, and we need the
6642         GConf-to-xsettings proxy which will result in the change being
6643         propagated back to the GTK app.
6644
6645         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
6646         about unusable signals that it may be because the signal has 
6647         parameters.
6648
6649         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
6650         style, otherwise gtkrc.c won't know to create a new GtkStyle for
6651         it.
6652         (gtk_widget_modify_color_component): call
6653         gtk_widget_modify_style() so the rc style will get copied.
6654         (gtk_widget_modify_font): ditto
6655
6656         * gtk/gtkrc.c: make a couple variables static
6657
6658         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
6659         help button by default, since it does nothing
6660
6661         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
6662         around with UI
6663
6664         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
6665         so we can have tooltips
6666
6667         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
6668         can have tooltips
6669
6670         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
6671         GDK_ENABLE_BROKEN, because its memory behavior is completely
6672         hosed.
6673
6674         * gtk/gtknotebook.c: remove key press handler, replace with
6675         binding set, add numeric keypad support
6676
6677         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
6678
6679         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
6680
6681         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
6682         addition to plain Delete
6683
6684         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
6685         GDK_KP_Enter in addition to GDK_Return
6686
6687         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
6688         activate on entry instead of key press
6689         (gtk_font_selection_on_clist_key_press): get
6690         rid of this signal handler, not needed with new font sel.
6691
6692         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
6693         no-longer-needed emit_stop_by_name(), just return TRUE
6694
6695         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
6696         cruft, this widget is no longer focusable.
6697
6698         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
6699         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
6700         move_slider action signal, add binding set for vscale/hscale, in
6701         the process support numeric keypad
6702
6703         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
6704         make GDK_Return and GDK_KP_Enter activate the entry via 
6705         binding set, instead of hardcoded.
6706
6707 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
6708
6709         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
6710         code.  Some documentation added.
6711
6712 2001-04-27  Havoc Pennington  <hp@redhat.com>
6713
6714         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
6715
6716         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
6717
6718         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
6719         line/para separators
6720         (gtk_entry_create_layout): set single paragraph mode on the layout
6721
6722         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
6723         spacing between the image and label; instead, inside a button box 
6724         the button will get extra space that will go there, but if people 
6725         configure button box for 0 chubbiness, then there's no spacing.
6726
6727         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
6728         and min/max size style properties, so people can tune their
6729         chubbiness.
6730
6731         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
6732         functions
6733
6734         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
6735         space_style, and button_relief into style properties, remove
6736         functions for setting them
6737         
6738         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
6739         it back down
6740
6741         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
6742         types from gtk_widget_style_get
6743
6744         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
6745         with a style property.
6746
6747         * gdk/x11/gdkevents-x11.c: namespace the settings
6748
6749         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
6750
6751         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
6752         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
6753         be used. Also, translate doc strings for settings. Also, namespace
6754         the double-click-time property. Also, remove bell properties crap.
6755
6756 2001-04-27  Sven Neumann  <sven@gimp.org>
6757
6758         * Makefile.am: before creating links, check if pkg-config files
6759         exist for the default target. Otherwise link to the pkg-config files
6760         that got installed with this build.
6761
6762 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
6763
6764         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
6765         dragging code.  Revealed some (potential) GdkWindow bugs.
6766
6767         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
6768         _gdk_window_init_position to the end of reparent to fix the case
6769         of reparenting when new_x != old_x and new_y != old_y.
6770
6771 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
6772
6773         * gtk/gtkentry.c (strstr_len): Fix optimization that
6774         was correct for the use here, but completely incorrect
6775         in general.
6776
6777 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
6778
6779         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
6780         until patch adding gtk_window_set_size() is recommitted. 
6781
6782         * **Makefile.am configure.in gdk/x11/gdkim-11.c
6783           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
6784           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
6785           (#10784)
6786
6787 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
6788
6789         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
6790         window == NULL in a number of cases.
6791
6792         * tests/testdnd.c: Set module path for gdk-pixbuf.
6793
6794 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
6795
6796         * gtk/Makefile.am xembed.h: File containing #defines
6797         for XEMBED protocol.
6798
6799         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
6800
6801         - Change protocol from old plug/socket specific protocol
6802           to XEMBED draft
6803         - Various fixes to work with GTK+-2.0
6804
6805         Still quite a bit of work to do here to handle initiation
6806         from the socket side (as specified by XEMBED), to handle
6807         the more advanced features of XEMBED, and to figure out
6808         a good way to handle same-app embedding with less overhead
6809         than using full XEMBED.
6810
6811 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
6812
6813         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
6814         track of whether the toplevel has the focus; only send
6815         focus-in events to the focus widget when the window
6816         actually has the focus.
6817
6818 2001-04-25  Havoc Pennington  <hp@pobox.com>
6819
6820         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
6821         were still in the header
6822
6823 2001-04-24  Alexander Larsson  <alexl@redhat.com>
6824
6825         * gtk/gtkclist.[ch]:
6826         * gtk/gtkctree.c:
6827         When there is a row highlighted for D'n'D it must alse
6828         be painted hightlighted on exposes. Otherwise exposes from
6829         the icon being dragged will mess up the hightlight.
6830
6831         * gtk/gtkfontsel.c:
6832         Don't recenter selected font when exposing the font family
6833         clist. This means you can now actually scroll the font family
6834         list.
6835
6836         * gtk/gtknotebook.c:
6837         Fix focus movement on scrolling tabs that are placed on the left
6838         and right.
6839
6840 2001-04-21  Havoc Pennington  <hp@pobox.com>
6841
6842         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
6843         empty/invisible lines.
6844
6845         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
6846         (gtk_text_iter_set_visible_line_index): new functions to set
6847         indexes excluding invisible text
6848
6849         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
6850         index
6851
6852         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
6853         (gtk_text_iter_get_visible_line_offset): new functions to 
6854         get indexes excluding invisible text
6855
6856         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
6857         bunch of extra padding that served no purpose
6858
6859         * gtk/gtkdialog.c: Make all the spacings configurable via style
6860         properties, for chubbiness configuration in themes
6861
6862         * tests/testtext.c: fix path to the immodules.
6863         
6864 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
6865
6866         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
6867         got munched by #endif.
6868
6869         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
6870
6871         * gtk/gtktreeview.c: Refactored code to clean up a number of
6872         events.
6873
6874         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
6875         values to make consistent with other functions.  Spotted by Jeff
6876         Franks <jcf@tpg.com.au>.
6877
6878         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
6879         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
6880
6881 2001-04-23  Sven Neumann  <sven@gimp.org>
6882
6883         * gtk/Makefile.am
6884         * gtk/gtkplug.c
6885         * gtk/gtksocket.c: on request of Owen, reverted my last change 
6886         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
6887
6888 2001-04-23  Sven Neumann  <sven@gimp.org>
6889
6890         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
6891         compile for non-X11 targets again
6892
6893 2001-04-20  Alexander Larsson  <alexl@redhat.com>
6894
6895         * gtk/gtkcolorsel.[ch]:
6896         API Change. Take GdkColor arguments instead of gdouble *.
6897         Leave the old gtk_color_selection_set_color for compatibility,
6898         but marked deprecated.
6899         Do correct rounding when converting RGB <-> HSV.
6900         
6901         * gtk/gtkcolorseldialog.c:
6902         * tests/testgtk.c:
6903         Use new GtkColorSelection API.
6904
6905         * gtk/gtkhsv.c:
6906         Fix problem selecting colors in triangle when Hue is 330.
6907         Fix some black dots around the HSB triangle.
6908         
6909         * gtk/gtkfilesel.c:
6910         return FALSE from the focus_in_event handler to fix focus problems.
6911
6912 2001-04-18  Havoc Pennington  <hp@redhat.com>
6913
6914         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
6915         set, so keybindings are configurable    
6916         (gtk_window_activate_default): Change to activate the focus widget
6917         instead if there's a focus widget, to be consistent with the
6918         behavior that previously existed in key_press_event
6919
6920 2001-04-18  Havoc Pennington  <hp@redhat.com>
6921
6922         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
6923
6924 2001-04-18  Havoc Pennington  <hp@redhat.com>
6925
6926         Close bug #50615:
6927         
6928         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
6929         the layout
6930
6931         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
6932
6933         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
6934
6935         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
6936         
6937         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
6938         to blue for base, in addition to bg
6939         
6940 2001-04-18  Havoc Pennington  <hp@redhat.com>
6941
6942         * tests/testgtk.c (create_image): allow shrinking the image window
6943         to test that we clip to allocation.
6944
6945         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
6946         #9845
6947
6948         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
6949
6950 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
6951
6952         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
6953         mode on shm segments to 0600. We'll see who complains.
6954
6955         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
6956         _gdk_windowing_window_destroy() AFTER recursing through
6957         children.
6958
6959         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
6960         testsocket_child on X.
6961
6962         * tests/testsocket[_child].c: Fix uses of
6963         gtk_window_get_default_accel_group().
6964
6965         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
6966
6967         * gdk/gdkimage.c: (gdk_image_get):
6968         Deal with the possibility that XGetImage() might return NULL.
6969         Allocate the GdkImagePrivate structure only after XGetImage()
6970         succeeds in order not to dereference a NULL ximage pointer.  This
6971         prevents a core dump when XGetImage() fails - which is unlikely,
6972         but can happen due to race conditions accessing the geometries of
6973         drawables.  An x error will still be triggered, but the gdk image
6974         wrapper at least wont seg fault.
6975         
6976 2001-04-18  Havoc Pennington  <hp@redhat.com>
6977
6978         * gtk/gtkimage.c: fix to properly queue resizes when the image is
6979         set
6980
6981         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
6982         if the insertion point isn't editable
6983
6984         * demos/gtk-demo/images.c: Added a GtkImage demo
6985
6986         * demos/gtk-demo/drawingarea.c: drawing area demo
6987         
6988         * demos/gtk-demo/menus.c (create_menu): cleanups
6989
6990 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
6991
6992         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
6993           gdk/x11/gdkevents-x11.c: Introduce an extra child
6994         of toplevel windows that serves to hold the focus to
6995         avoid events being delivered to embedded windows.
6996
6997         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
6998         some extra variables to clean up code and reduce the
6999         number of casts.
7000
7001         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
7002         guint for 1 bit bit fields, not gboolean.
7003
7004 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
7005
7006         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
7007         not TRUE. (Fixes #52925)
7008
7009 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
7010
7011         * Released 1.3.4
7012
7013         * NEWS: Updated
7014
7015         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
7016         use GTK_TYPE_ENUM.
7017
7018 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
7019
7020         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7021
7022         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
7023         names to compatibility #defines so docs work.
7024
7025         * gtk/gtkenums.h: Remove GtkMenuFactoryType
7026
7027         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
7028
7029         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7030
7031         * tests/testgtkrc: No magenta cursors, please.
7032
7033         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
7034
7035         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
7036         
7037 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
7038
7039         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
7040         grabs, since they are no longer necessary.
7041
7042         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
7043         by signal_connect() and call gtk_button_pressed() rather
7044         than signal_connect_after().
7045
7046         * tests/testgtk.c: Restore radio menu items to combos 
7047         since they'll look OK with Raleigh, and it is easier
7048         than finishing the process of removing them that was
7049         started earlier.
7050
7051 2001-04-16  Hans Breuer  <hans@breuer.org>
7052
7053         * gdk/gdk.def :
7054         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
7055
7056         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
7057         we are interested in the functions return value not the function address
7058         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
7059
7060         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
7061
7062 2001-04-14  Hans Breuer  <hans@breuer.org>
7063
7064         * gdk/gdk.def :
7065         * gdk/makefile.msc : updated
7066
7067         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
7068         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
7069         (the testgtk::text backgound pixmap is drawn again)
7070         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
7071         Win32 Pango change
7072         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
7073
7074         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
7075         Not sure if the returned settings have the right unit, because I couldn't
7076         find any docs for the X version ...
7077
7078         * gtk/gtk.def :
7079         * gtk/makefile.msc.in : updated
7080
7081 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
7082
7083         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
7084         wording problems. (Compared to version from Johannes Stezenbach to
7085         check correctness.)
7086
7087 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
7088
7089         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
7090         this to compile.
7091
7092 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
7093
7094         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
7095         not pixbufpos.
7096
7097         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
7098
7099         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
7100         are unsigned insts, therefore use g_value_set_uint.
7101         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
7102
7103 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
7104
7105         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
7106
7107         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
7108         GTK_TYPE_STRING.
7109
7110         * gtk/gtktreeview.c: New functions to allow initial column
7111         dragging work.
7112
7113         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
7114
7115         * tests/testtreefocus.c: give dave some love.
7116
7117         * tests/testtreesort.c: Modify test to check really long samples.
7118
7119 2001-04-11  Alexander Larsson  <alexl@redhat.com>
7120
7121         * gtk-2.0.m4: Pass pkg-config options
7122         before the other args so it works even if
7123         POSIXLY_CORRECT is set.
7124
7125 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
7126
7127         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
7128         0, interface 0).
7129
7130 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
7131
7132         * gtk/gtkcalendar.c (gtk_calendar_button_press):
7133         check for action_func != NULL
7134
7135 2001-04-04  Sven Neumann  <sven@gimp.org>
7136
7137         * tests/testgtk.c (test_init): corrected path to gtk.immodules
7138
7139 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
7140
7141         * Released Gtk+-1.3.3.
7142
7143 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
7144
7145         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
7146
7147 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
7148
7149         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
7150         files to/from source dir. (if we don't stay in builddir, we
7151         can't reach make-inline-pixbuf.
7152
7153         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
7154         deps.
7155
7156         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
7157         ages 0).
7158
7159 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
7160
7161         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
7162         moved to the GtkTreeSortable interface.
7163
7164         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7165         Make more efficient (fixes #50262).
7166
7167 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
7168
7169         * NEWS: Updated.
7170
7171         * configure.in: Remove support for uninstalled glib.
7172
7173         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
7174         so as not to stop emission.
7175
7176         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
7177         is no longer supported.
7178
7179         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
7180         into tests, change build order to build modules before
7181         gtk/.
7182
7183         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
7184         to here.
7185
7186 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
7187
7188         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
7189         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
7190         GPatternSpec. this is actually unlikely to cause breakage in
7191         third-party apps since except for gle, pretty much ever caller
7192         passes NULL here.
7193
7194         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
7195
7196         * *.c: use g_pattern_*() API.
7197
7198         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
7199
7200         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
7201         directions aren't passed in.
7202
7203         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
7204         functionality to be usable from gtkstyle.c as well, give precedence
7205         for conversion to user-supplied parsers.
7206         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
7207
7208         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
7209         _gtk_settings_parse_convert() for rcporperty value conversion.
7210
7211 2001-04-03  Alexander Larsson  <alexl@redhat.com>
7212
7213         * gdk/linux-fb/gdkevents-fb.c:
7214         Add empty gdk_setting_get().
7215
7216 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
7217
7218         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
7219         variable names.
7220         
7221         * gtk/makeenums.pl: touch this so enum files get remade.
7222
7223 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
7224
7225         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
7226         work again when not sorted.
7227
7228         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
7229         and "expand_row" signal, closing bug 52578.
7230
7231         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
7232         support.
7233
7234         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
7235         support.
7236
7237 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
7238
7239         * gdk/gdkevents.h: Add GdkEventSetting event for notification
7240         of changes to system settings, gdk_setting_get() to retrieve
7241         a single system setting.
7242
7243         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
7244         to the draft XSETTINGS mechanism.
7245
7246         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
7247         XSETTINGS.
7248
7249         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
7250         of GDK settings changes to the GtkSettings object.
7251
7252         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
7253         double-click-timeout property to GDK.
7254
7255         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
7256         Define GDK boxed types here.
7257
7258         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
7259         gdk/gdkenumtypes.[ch] for enum definitions.
7260
7261         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
7262         * gtk/gtk-boxed.defs: Comment out GDK types
7263         * gtk/gtktypeutils.h: Remove GDK types
7264         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
7265
7266 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
7267
7268         * Applied patch from Ron Steinke to add signal accumulators
7269         so that signals with the convention 'TRUE return means
7270         handled' stop emission on a TRUE return.
7271
7272         * gtk/gtkmain.[ch]: Add private accumulator 
7273         _gtk_boolean_handled_accumulator, used throughout GTK+.
7274         
7275         * gtk/gtkspinbutton.c: Add accumulator for ::output.
7276
7277         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
7278         
7279         * gtk/gtkwidget.c: Add accumulators for event signals,
7280         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
7281         for ::mnemonic-activate.
7282
7283         * gtk/gtkwindow.c: Add accumulator for ::frame_event
7284
7285 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
7286
7287         * gtk/gtkwidget.c: Add missing include.
7288
7289 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
7290
7291         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
7292         marshaller.
7293
7294         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
7295         "changed" signal to "range_changed".
7296
7297         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
7298         removing a tree from one model would remove all trees from that
7299         model.
7300         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
7301         changed signal instead.
7302
7303 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
7304
7305         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
7306         chaining up to parent impl, since we have a INPUT_ONLY
7307         window.
7308
7309         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
7310         foreground color for the cursor.
7311
7312 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
7313
7314         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
7315         param spec when caching property values, since we unref it
7316         later when we free the style.
7317
7318         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
7319         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
7320
7321 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
7322
7323         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
7324         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
7325         stupidity.
7326
7327 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
7328
7329         [ First pass at adding style properties. Still needs some definite
7330         fine-tuning. ]
7331
7332         * gtk/gtkbutton.c: Add ::default_spacing style property.
7333          
7334         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
7335         ::indicator_spacing style properties.
7336
7337         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
7338         style properties.
7339
7340         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
7341         rather than a normal property.
7342
7343         * gtk/gtkwidget.c: Add an ::interior_focus style property to
7344         draw focus inside buttons, in the Windows/Java Metal/etc. style.
7345
7346         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
7347         Honor ::interior_focus.
7348         
7349         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
7350         TRUE.
7351
7352         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
7353         Add ::slider_width, ::trough_border, ::stepper_size,
7354         ::stepper_spacing style properties.
7355
7356         * gtk/gtkscale.[ch] Add ::slider-length style property.
7357
7358 2001-04-02 Alexander Larsson   <alexl@redhat.com>
7359
7360         * gdk/linux-fb/gdkwindow-fb.c:
7361         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
7362         warnings that were spewed on startup.
7363
7364         * gtk/gtkwindow-decorate.c:
7365         gtk_window_reposition -> _gtk_window_reposition
7366
7367 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
7368
7369         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7370         Add boxed type for GtkRequistion. Use it for ::size-request.
7371
7372         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
7373         Add a new GtkBorder structure useful for geometry properties
7374         for widgets. Add corresponding GTK_TYPE_BORDER.
7375         
7376         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
7377         Support automatic parser selection like
7378         gtk_settings_install_property_parser().
7379
7380         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
7381         functionality for use by gtk_widget_class_install_style_property.
7382         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
7383
7384 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
7385
7386         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
7387         g_param_spec_unichar(). 
7388
7389 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
7390
7391         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
7392         _NET window managers.
7393
7394         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
7395
7396 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
7397
7398         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
7399         bad needs to be nuked, not just deprecated.
7400
7401         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
7402         gtk_widget_popup().
7403
7404         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
7405         
7406         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
7407         widget.
7408         
7409         * docs/Changes-2.0.txt: updates.
7410         
7411 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
7412
7413         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
7414         for (i = 0; i < 100; i ++)
7415           g_print ("I will confirm it compile before committing\n");
7416
7417 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
7418
7419         * gtk/gtktreestore.c: Initial work on implementing the
7420         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
7421
7422 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
7423
7424         * gtk/gtkwidget.c: fixed a bunch of notifications, added
7425         reference counts around emissions where the widget is used afterwards.
7426         added freeze/thaws around multiple properties being notified.
7427         (_gtk_widget_get_aux_info): cleanups.
7428         
7429         * gtk/gtksettings.c (gtk_settings_install_property): provide
7430         default parsing functions for gdkcolor, enums and flags.
7431
7432         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
7433         applied by owen.
7434         backed out gtk_window_get_location(), gtk_window_set_location(),
7435         gtk_window_get_size() and gtk_window_set_size(), these
7436         have to be sorted out wrg x/y/width/height/default_with/default_height
7437         properties.
7438         kept a flag in GtkWindowGeometryInfo to handle user
7439         resetting default sizes.
7440         cleaned up ZVT comments.
7441         bunch of assorted bug fixes, notification fixes.
7442         (_gtk_window_reposition): make this a really internal function.
7443         
7444         * gtk/testgtk.c: fixups.
7445         
7446 2001-03-31  Hans Breuer  <hans@breuer.org>
7447
7448         * config.h.win32.in : disable USE_MMX for msvc build cause
7449         the assembler doesn't fit and is out of my scope. Disable
7450         USE_GMODULE for msvc build as wel. The right way to share
7451         binaries on win32 would be to use libtiff.dll etc. To reduce
7452         installation hassles IMO it's better to include all fileformats
7453         builtin to gdk-pixbuf
7454
7455         * gdk-pixbuf/makefile.msc : new file
7456
7457         * gdk/gdk.def : updated
7458
7459         * gdk/win32/gdkevents-win32.c : don't erase the background if
7460         .no_bg is set. It improves the scrolling (e.g. of testgtk main
7461         buttons
7462         * gdk/win32/gdkgeometry-win32.c : added comment about the above
7463
7464         * gdk/win32/gdkwindow-win32.c : added three new functions like
7465         the X version. Only one is implemented, because the other two
7466         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
7467         be default behaviour on win32 anyway ...
7468
7469         * gtk/gtk.def : updated
7470
7471         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
7472         from where it was built and add an additional rule to automagically
7473         build gtkmarshal.[hc]
7474
7475         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
7476         before array access for the current entry isn't finished
7477
7478         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
7479         use g_return_val_if_fail
7480
7481         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
7482         for the static array, but let the compiler calculate it. It
7483         makes me wonder if gcc isn't capable to catch bugs like this ...
7484
7485 2001-03-31  James Henstridge  <james@daa.com.au>
7486
7487         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
7488         constant "-1" in the aux info structure.
7489
7490 2001-03-30  Alexander Larsson  <alexl@redhat.com>
7491
7492         * gtk/gtkbutton.c (gtk_button_get_property):
7493         * gtk/gtklabel.c:
7494         Remove leaks.
7495         
7496         * gtk/gtkcontainer.c:
7497         * gtk/gtkhscale.c:
7498         * gtk/gtkhscrollbar.c:
7499         * gtk/gtklayout.c:
7500         * gtk/gtkmisc.c:
7501         * gtk/gtkprogress.c:
7502         * gtk/gtkprogressbar.c:
7503         * gtk/gtkrange.c:
7504         * gtk/gtktable.c:
7505         * gtk/gtkviewport.c:
7506         * gtk/gtkvscale.c:
7507         * gtk/gtkvscrollbar.c:
7508         * gtk/gtkwidget.c:
7509         Property patches, based on patches from John Margaglione and Lee Mallabone.
7510
7511 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
7512
7513         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
7514         adjustment. Cleaned redundant preconditions (spin != NULL). Added
7515         inline API function docs.
7516         (gtk_spin_button_new_with_range): New convenience constructor.
7517         (gtk_spin_button_set_increments): New adjustment helper.
7518         (gtk_spin_button_set_range): New adjustment helper.
7519
7520         * gtk/testgtk.c : added test of the new convenince constructor and
7521         value_changed signals.
7522
7523 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
7524
7525         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
7526         listen to the reorder signal.
7527
7528 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
7529
7530         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
7531         to get the aux info structure fo the widget.
7532
7533         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
7534         above function.
7535
7536         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
7537
7538         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
7539         to get the size of the window manager frame, basically the same
7540         code that gdk_window_get_root_origin() had
7541         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
7542
7543         * gtk/gtkwindow.c (gtk_window_set_default_size): use
7544         gdk_window_resize() if the window is realized and resizeable
7545
7546         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
7547         typo so that setting gravity works
7548
7549         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
7550         allocation if auto_shrink is on, even if the default size
7551         has not changed.
7552
7553         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
7554         g_return_if_fail
7555
7556 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
7557
7558         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
7559         reordering/sorting work.  Now pretty much works.
7560
7561         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
7562         reorder mostly work.  Still need to get the parity correct.
7563
7564         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
7565         signal, so I can listen for the sort_column_changed signal so I
7566         can change my "sort_indicator" property.  Cool.
7567
7568 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
7569
7570         [ Patch from Havoc Pennington, hp@redhat.com ]
7571
7572         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
7573         Add functions gdk_window_begin_resize_drag/begin_move_drag
7574         to start resizing or moving a toplevel window. This
7575         is done either using the _NET_WM_MOVERESIZE protocol,
7576         or, if that isn't present, by emulation.
7577
7578         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
7579         to export the above to GTK+-land.
7580
7581         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
7582         
7583         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
7584         Move this function into gdkwindow, since we need it
7585         when implementing fallback resizing.
7586
7587         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
7588         Fix typo when setting gravity.
7589
7590         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
7591         Add an optional (but on by default) resize grip for resizing 
7592         the parent window.
7593
7594 01-03-29  Alexander Larsson  <alexl@redhat.com>
7595
7596         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
7597         Don't return TRUE from the event handler, that blocks all
7598         event signals on the tooltip widget. Now you can press buttons
7599         in toolbars again.
7600
7601 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
7602
7603         * gtk/testtext.c (create_buffer): Add missing NULL on
7604         valist.
7605
7606         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
7607         c-n-p problem with INCONSISTENT property.
7608
7609         [ Patch from Havoc Pennington  <hp@redhat.com> ]
7610
7611         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
7612         hook.
7613
7614         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
7615         signal as a hook for extending the default popup menu
7616
7617         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7618         use radio menu items for the input method menuitems
7619
7620         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
7621         inserted unicode from Ctrl-Shift-hex input method
7622
7623         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
7624         validatation here, already done at GtkTextBuffer level.
7625
7626         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
7627         popup_menu run action signal and Shift+F10 and Menu keybindings.
7628
7629         * gtk/gtkentry.c: implement a default handler for popup_menu
7630
7631         * gtk/gtktextview.c: implement a default handler for popup_menu
7632
7633         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
7634         from a key event
7635         
7636         * gtk/gtklabel.c: remove "trailer" cruft
7637
7638 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
7639
7640         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
7641         handle reordering of trees.  Seems to mostly work w/ the exception
7642         of the parity flag.
7643
7644         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
7645         signal.
7646
7647 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
7648
7649         * gtk/gtkwidget.h: c++ fixes.
7650
7651 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
7652
7653         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
7654         memory.
7655
7656 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
7657
7658         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
7659         Nils Barth fixing event return values. (#51041)
7660
7661         * gtk/gtkwidget.c: Fix some return values for default
7662         functions.
7663
7664         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
7665         return values for trough_keys functions.
7666
7667         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
7668         value for add_accelerator (shoudl have been a void
7669         return.)
7670
7671         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
7672         Fix return type of EVENT.
7673
7674         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
7675         signal return a boolean.
7676
7677 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
7678
7679         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
7680         reordered signal.
7681
7682         * tests/testtreesort.c (main): fix spelling.
7683
7684 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
7685
7686         * gtk/gtkliststore.c: More work on implementing sortable
7687         interface.
7688
7689 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
7690
7691         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
7692         reference the widgets in the resulting list. (#11821)
7693         This makes this consistent with gtk_container_children.
7694
7695         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
7696         uses of gtk_window_list_toplevels.
7697
7698 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
7699
7700         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
7701         a virtual function to set whether the IM context should use 
7702         the preedit string. (#51922)
7703         
7704 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
7705
7706         * gdk/gdkpango.h: Remove stale FIXME comment.
7707
7708 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
7709
7710         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
7711         Fixed bug that returned NULL if a filename was selected.
7712
7713 2001-03-24  Havoc Pennington  <hp@pobox.com>
7714
7715         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
7716         to contain the word "theme"
7717
7718 2001-03-24  Havoc Pennington  <hp@pobox.com>
7719
7720         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
7721         slower but finer-grained
7722         (gtk_hsv_focus): get initial focus on the ring or triangle 
7723         according to tab direction
7724
7725         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
7726
7727 2001-03-23  Havoc Pennington  <hp@pobox.com>
7728
7729         * gtk/gtkhsv.c: make this somewhat key-navigable
7730
7731         * gtk/gtkfontsel.c: mnemonics
7732
7733         * gtk/gtkgamma.c: mnemonics
7734
7735         * gtk/gtkcolorsel.c: add mnemonics to labels
7736
7737 2001-03-22  Havoc Pennington  <hp@pobox.com>
7738
7739         Applied big patch from Seth Lytle to fix event handler return
7740         values, slightly modified.
7741
7742         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
7743         handled.
7744         (gtk_calendar_key_press): return TRUE for GDK_space triggers
7745         select_day
7746
7747         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
7748         (gtk_clist_button_release): return TRUE if handled
7749
7750         * gtk/gtkcolorsel.c (mouse_release):
7751         (palette_activate): 
7752         (palette_press): 
7753         (palette_new): 
7754         (mouse_press): 
7755         (get_screen_color): 
7756         fixed return type (void to gboolean), return TRUE,
7757         added GTK_SIGNAL_FUNC cast
7758
7759         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
7760         (void to gboolean), and return TRUE
7761         (gtk_combo_button_release): changed return value to TRUE after
7762         gtk_grab_add on combo->popwin
7763
7764         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
7765         collapse or expand
7766
7767         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
7768         button/motion
7769
7770         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
7771         press/release and motion that trigger act
7772
7773         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
7774
7775         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
7776         for GDK_Return
7777         
7778         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
7779         (gtk_list_button_release): return TRUE if selection
7780
7781         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
7782         press
7783
7784         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
7785         (gtk_menu_shell_button_release): chain parent_menu_shell retval
7786
7787         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
7788         nothing triggered
7789         (gtk_notebook_button_release): return TRUE if we do anything
7790
7791         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
7792         (gtk_spin_button_button_release): return TRUE or chained retval
7793
7794         * gtk/gtktext.c (gtk_text_button_press): 
7795         (gtk_text_button_release): return TRUE
7796         (gtk_text_key_press): remove redundant retval code
7797         
7798         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
7799         and sensitive
7800         (gtk_tree_item_subtree_button_click): changed type to gint, and return
7801         TRUE if sensitive
7802
7803         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
7804         return TRUE
7805
7806 2001-03-23  Havoc Pennington  <hp@redhat.com>
7807
7808         * gtk/testgtk.c: fix warnings
7809
7810         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
7811
7812         * gtk/gtktextview.c: fix warnings
7813
7814         * gtk/gtktext.c (find_cursor_at_line): fix warning
7815
7816         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
7817
7818         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
7819         of this function
7820
7821         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
7822         fix warning
7823
7824         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
7825
7826         * gtk/gtkfontsel.c: fix warning
7827
7828         * gtk/gtkcolorsel.c: fix warnings
7829
7830 2001-03-23  Havoc Pennington  <hp@redhat.com>
7831
7832         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
7833
7834         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
7835
7836         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
7837         and deprecated gtk_check_menu_item_set_show_toggle().
7838         
7839         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
7840
7841         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
7842
7843         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
7844
7845 2001-03-23  Havoc Pennington  <hp@redhat.com>
7846
7847         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
7848         some docs
7849
7850 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
7851
7852         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
7853         this.
7854
7855         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
7856         set_cell to set_value
7857
7858         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
7859         set_cell to set_value
7860
7861 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
7862
7863         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7864         fix braino.
7865         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
7866         support.
7867
7868         * gtk/gtktreeview.c: Addition of initial sortable support.
7869
7870         * gtk/gtktreestore.c: Addition of initial sortable support.
7871
7872         * gtk/gtkliststore.c: Addition of initial sortable support.
7873
7874         * gtk/gtkmarshal.list: yet another marshaller.
7875
7876         * gtk/gtktreedatallist.[ch]: shared code between the store models
7877         for handling sorting headers.
7878
7879 2001-03-22  Havoc Pennington  <hp@redhat.com>
7880
7881         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
7882         (gtk_container_unset_focus_chain): Add ability to override the 
7883         focus chain for a container explicitly
7884
7885 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
7886
7887         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
7888         added PROP_MNEMONIC_WIDGET.
7889
7890         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
7891         (gtk_window_remove_mnemonic): 
7892         (gtk_window_add_mnemonic): fixed assertions.
7893         (gtk_window_activate_mnemonic): constrain modifier checks to those
7894         permitted by gtk_accelerator_get_default_mod_mask().
7895         got rid of gtk_window_get_default_accel_group().
7896
7897         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
7898         activatable widgets either by focussing or a warning.
7899         added a signal accumulator to ::activate_mnemonic which stops the
7900         emission once a handler returned TRUE.
7901
7902 2001-03-22  Havoc Pennington  <hp@pobox.com>
7903
7904         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
7905         the stock item label
7906
7907         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
7908
7909         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
7910
7911         * demos/gtk-demo/*.c: Add mnemonics all over the place
7912
7913         * gtk/gtklabel.h: mark parse_uline deprecated
7914
7915 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7916
7917         * gtk/gtkitemfactory.[ch]:
7918         Add support for stock and normal imagemenuitems.
7919         
7920         * gtk/testgtk.c:
7921         Add some tests for mnemonics, stock toolbars, stock
7922         and image menuitems in itemfactory and gdk_window_scroll.
7923
7924 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7925
7926         * gtk/gtkbutton.[ch]:
7927         * gtk/gtkdialog.c:
7928         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
7929         removed accel_group argument. Renamed gtk_button_new_accel() to
7930         gtk_button_new_with_mnemonic() and removed accel_group argument.
7931
7932         * gtk/gtkcheckbutton.[ch]:
7933         New function gtk_check_button_new_with_mnemonic().
7934
7935         * gtk/gtkentry.c:
7936         Override activate_mnemonic and just grab focus.
7937
7938         * gtk/gtkitemfactory.c:
7939         Don't add menu uline accel group, instead use mnemonics support.
7940
7941         * gtk/gtklabel.[ch]:
7942         New support for mnemonics.
7943
7944         * gtk/gtkmarshal.list:
7945         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
7946
7947         * gtk/gtkmenu.[c]:
7948         * gtkmenushell.c:
7949         Use mnemonics instead of accel groups for uline
7950         support in menu items.
7951         Removed gtk_menu_get_uline_accel_group() and
7952         gtk_menu_ensure_uline_accel_group().
7953
7954         * gtk/gtkmenuitem.c:
7955         Override activate_mnemonic to handle switching between
7956         menu items if there are collisions.
7957         
7958         * gtk/gtknotebook.c:
7959         Connect to activate_mnemonic on the tab_label, so that
7960         activating it switches to that notebook page.
7961
7962         * gtk/gtkwidget.[ch]:
7963         Add activate_mnemonic signal. New function
7964         gtk_widget_activate_mnemonic() to emit it.
7965         Default implementation does activate/grab_focus.
7966
7967         * gtk/gtkwindow.[ch]:
7968         Add support for mnemonics in windows.
7969         New functions:
7970         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
7971         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
7972
7973         * gtk/testgtk.c:
7974         Update to function name changes.
7975         
7976 2001-03-21  Alexander Larsson  <alexl@redhat.com>
7977
7978         * gtk/gtkimagemenuitem.[c]:
7979         Add gtk_image_menu_item_new_from_stock()
7980
7981 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
7982
7983         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
7984         Fix buglet in meeting.
7985
7986 2001-03-19  Havoc Pennington  <hp@redhat.com>
7987
7988         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
7989         add a bunch of accessor functions. This is because we have
7990         reasonable expectations of extending what fields it contains in
7991         the future.
7992
7993         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
7994         changes
7995
7996         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
7997         GtkIconSource   
7998
7999 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
8000
8001         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
8002         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
8003
8004         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
8005           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
8006           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
8007           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
8008         Change float to double everywhere with the exception of 0<->1.0 alignment
8009         and GtkCurve.
8010
8011 2001-03-19  Tor Lillqvist  <tml@iki.fi>
8012
8013         * gdk/win32/gdkdrawable-win32.c
8014         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
8015         output.
8016
8017         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
8018         gdkwin32.h.
8019
8020 2001-03-18  Tor Lillqvist  <tml@iki.fi>
8021
8022         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
8023         print_event_state, print_event): Use preprocessor macro to make
8024         code more compact. Print also GDK_WINDOW_STATE events.
8025         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
8026         
8027         * gtk/gtk.def
8028         * gtk/makefile.mingw.in: Update.
8029
8030         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
8031         to catch also Cygwin.
8032
8033 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
8034
8035         * gtk/gtkspinbutton.[hc]: added rc-style argument
8036         GtkSpinButton::shadow_type.
8037         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
8038         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
8039         rc-style settings.
8040
8041         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
8042
8043         * gtk/gtkwidget.c: quark cleanups.
8044
8045         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
8046         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
8047         to create_rc_style() (we don't do cloning in standard OO sense).
8048         added per rc style properties.
8049         
8050         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
8051         property values and for caching those. some cleanups.
8052         
8053         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
8054         
8055         * gtk/gtksettings.[hc]: new file for global rc-file properties
8056         (at least currently, should get extended to support X properties
8057         and other communication mechanisms).
8058         
8059         * gtk/gtkwidget.[hc]: added style property support:
8060         (gtk_widget_class_install_style_property_parser): install style
8061         property pspec with parser function for rc-file values other
8062         than LONG, DOUBLE or STRING.
8063         (gtk_widget_class_install_style_property): same as above without
8064         parser (parsers are going to be needed quite infrequently).
8065         (gtk_widget_style_get_property): retrive style property value.
8066         (gtk_widget_style_get_valist): same as above with varargs support,
8067         has NOCOPY semantics.
8068         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
8069
8070 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
8071
8072         * demos/gtk-demo/main.c (row_activated_cb): modified to use
8073         "row_activated" signal.
8074
8075         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
8076         stupidity.  Lets actually pass in the row with this signal...
8077
8078 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
8079
8080         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
8081
8082         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
8083
8084         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
8085         everything into the ::destroy function, and freed a lot more.
8086
8087 2001-03-16  Havoc Pennington  <hp@redhat.com>
8088
8089         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
8090         instead of gint16, to avoid overflow issues, since sizes > 16-bit
8091         are now allowed.
8092
8093 2001-03-16  Havoc Pennington  <hp@redhat.com>
8094
8095         * Applied patch from Nils Barth (bug # 51041) to 
8096         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
8097         in various places.
8098
8099 2001-03-15  Havoc Pennington  <hp@redhat.com>
8100         
8101         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
8102         for properties to set on the tag.
8103
8104         * gtk/testtext.c: fixups to reflect create_tag change
8105         
8106         * gtk/gtktexttag.c (gtk_text_tag_set_property):
8107         background/foreground stipple are objects, not boxed.
8108
8109         * demos/gtk-demo/textview.c: intellihancing
8110
8111 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
8112
8113         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
8114         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
8115
8116 2001-03-16  Alexander Larsson  <alexl@redhat.com>
8117
8118         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
8119         Fix sign error with queued region translations.
8120
8121 2001-03-15  HideToshi Tajima  <tajima@happy>
8122
8123         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
8124         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
8125         * gtk/gtkentry.c (update_im_cursor_location): 
8126         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
8127         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
8128         set_cursor_pos to set_cursor_location in GtkInputContext class
8129
8130 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
8131
8132         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
8133         the location of the cell relative to its area.
8134         * gtk/gtkcell*: modified for above change
8135         * gtk/gtktreeview.c: modified for above change.
8136
8137 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
8138
8139         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
8140          (gtk_tree_view_finalize): actually unref the model.  Thanks to
8141         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
8142
8143 2001-03-14  Havoc Pennington  <hp@redhat.com>
8144
8145         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
8146         
8147         * gtk/gtk.h: remove gtkdata.h
8148
8149         * gtk/Makefile.am: remove gtkdata
8150         
8151         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
8152         not "disconnect" on the adjustments.
8153         
8154         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
8155         GtkData
8156
8157         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
8158         not GtkData
8159
8160         * configure.in: handle case where X render exists, but Pango lacks
8161         Xft support.
8162
8163 2001-03-15 Alexander Larsson  <alexl@redhat.com>
8164
8165         * gtk/gtktoolbar.[ch]:
8166         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
8167         to add stock items to toolbars.
8168
8169         * gtk/Makefile.am:
8170         Remove ../gdk/gdkim.h from gdk_headers.
8171
8172 2001-03-15  Sven Neumann  <sven@gimp.org>
8173
8174         * gdk/gdkim.h: removed
8175         
8176         * gdk/gdkprivate.h
8177         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
8178
8179 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
8180
8181         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
8182         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
8183         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
8184         set_cursor_pos() virtual method
8185
8186         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
8187         (gtk_im_context_xim_set_cursor_pos): add implementation for
8188         set_cursor_pos() method
8189
8190         * gtk/gtkentry.c (recompute_idle_func): set current cursor
8191         position to input methods
8192
8193 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
8194
8195         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
8196         code a lot.
8197
8198         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
8199         g_mem_chunk.
8200         (_gtk_tree_data_list_alloc): use g_mem_chunk.
8201         (_gtk_tree_data_list_node_to_value): Fix to switch on
8202         G_TYPE_FUNDAMENTAL.
8203         (_gtk_tree_data_list_value_to_node): Fix to switch on
8204         G_TYPE_FUNDAMENTAL.
8205         (_gtk_tree_data_list_node_copy): Fix to switch on
8206         G_TYPE_FUNDAMENTAL.
8207
8208 2001-03-12  Havoc Pennington  <hp@redhat.com>
8209
8210         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
8211         to convert to new property API. Also, change default_width and
8212         default_height get_property to return 0 as the flag value for
8213         "unset"; -1 is not a valid value for these fields.
8214
8215 2001-03-12  Havoc Pennington  <hp@redhat.com>
8216
8217         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
8218         enum with registration for icon sizes, instead of strings.
8219
8220         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
8221         gtkwidget.c: Fix to reflect GtkIconSize
8222         
8223 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8224
8225         Make GtkFB compile and link.
8226         
8227         * gdk/linux-fb/gdkdrawable-fb2.c:
8228         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8229         
8230         * gdk/linux-fb/gdkwindow-fb.c:
8231         window->mapped to GDK_WINDOW_IS_MAPPED(). 
8232         Added gdk_window_shape_combine_region.
8233         Added assorted placeholders for unimplemented new GdkWindow API calls.
8234
8235 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8236
8237         * gtk/gtkfilesel.c:
8238         Add more test when converting filenames from/to utf-8.
8239         Don't allow entering text in the filename entry which isn't allowed in
8240         a filename. Just beep instead.
8241
8242 2001-03-12  Alexander Larsson  <alexl@redhat.com>
8243
8244         * gtk/gtkclist.c:
8245         Scroll using gdk_window_scroll(). Don't wait for exposes.
8246         Move the column headers in an order that makes them flash less.
8247
8248 2001-03-10  Hans Breuer  <hans@breuer.org>
8249
8250         * gdk/gdk.def : updated
8251
8252         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
8253         to offseting the clip_mask at the right place
8254
8255         * gdk/win32/gdkwindow-win32.c : don't create background brushes
8256         for all the gdkClasses, especially not for the input_only case.
8257         Otherwise flickering wont be avoidable, because we don't get
8258         WM_ERASEBKGND message for these windows.
8259
8260         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
8261         and fixed massive redraw problems apparently triggered by Alexanders 
8262         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
8263         but it seems to work quite well :-)
8264
8265         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
8266         prototype
8267
8268 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
8269
8270         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
8271         (gtk_list_store_set_cell): Fix a stupid typo.
8272
8273 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
8274
8275         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
8276         select_all not work if you're in SINGLE mode (it doesn't make that
8277         much sense, anyway.)
8278
8279         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
8280         handle types more sanely.
8281         (_gtk_tree_data_list_value_to_node): handle types more sanely.
8282         (_gtk_tree_data_list_node_copy): handle types more sanely.
8283
8284         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
8285         GValue better. Converts the type as well.
8286
8287         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
8288         GValue better. Converts the type as well.
8289
8290 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
8291
8292         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
8293         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
8294         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
8295         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
8296
8297         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
8298         gdk_im/gdk_ic.
8299
8300 2001-03-09  Hans Breuer  <hans@breuer.org>
8301
8302         * gdk/gdk.def : updated
8303
8304         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
8305         for their palette
8306
8307         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
8308         removing
8309
8310         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
8311         removing and implemented Havoc's GdkWindow state functions; 
8312         stick/unstick only as no-op, cause I don't know how to emulate 
8313         on win32 ...
8314
8315         * gtk/gtk.def : updated
8316
8317         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
8318
8319         * gtk/gtktypeutils.c : #include <string.h>
8320
8321         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
8322
8323 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
8324
8325         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
8326         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
8327         not a boxed.
8328
8329 2001-03-09  Alexander Larsson  <alexl@redhat.com>
8330
8331         * docs/Changes-2.0.txt:
8332         Document expose event->region change and that gtk_widget_event
8333         doesn't allow passing expose events.
8334
8335         * gdk/gdkevents.h:
8336         Add region to expose event.
8337         
8338         * gdk/gdkevents.c:
8339         Handle event->region in gdk_event_copy() and gdk_event_free().
8340
8341         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
8342         Generate expose_event->region when creating expose events.
8343
8344         * gdk/x11/gdkevents-x11.c:
8345         Generate expose events with regions when translating X events.
8346
8347         * gtk/gtkcontainer.[ch]:
8348         Default expose handler that propagates expose events to NO_WINDOW
8349         children. New function gtk_container_propagate_expose()
8350
8351         * gtk/gtkwidget.[ch]:
8352         Moved gtk_widget_event implementation to gtk_widget_event_internal.
8353         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
8354         expose events. New function gtk_widget_send_expose() to send expose
8355         events. New function gtk_widget_region_intersect() to calculate
8356         window/region intersections.
8357         
8358         * gtk/gtkmain.c (gtk_main_do_event):
8359         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
8360         Use gtk_widget_send_expose() to send expose events.
8361         
8362         * gtk/gtkbin.c:
8363         * gtk/gtkbox.c:
8364         * gtk/gtkfixed.c:
8365         * gtk/gtkimagemenuitem.c:
8366         * gtk/gtklist.c:
8367         * gtk/gtkpacker.c:
8368         * gtk/gtktable.c:
8369         * gtk/gtktree.c:
8370         Remove expose handler, using the default container implementation
8371         instead.
8372         
8373         * gtk/gtkbutton.c:
8374         * gtk/gtkcheckbutton.c:
8375         * gtk/gtkeventbox.c:
8376         * gtk/gtkfixed.c:
8377         * gtk/gtkhandlebox.c:
8378         * gtk/gtklayout.c:
8379         * gtk/gtklistitem.c:
8380         * gtk/gtkmenu.c:
8381         * gtk/gtkmenubar.c:
8382         * gtk/gtkmenuitem.c:
8383         * gtk/gtknotebook.c:
8384         * gtk/gtkoptionmenu.c:
8385         * gtk/gtkpaned.c:
8386         * gtk/gtkscrolledwindow.c:
8387         * gtk/gtktogglebutton.c:
8388         * gtk/gtktoolbar.c:
8389         * gtk/gtktreeitem.c:
8390         * gtk/gtkviewport.c:
8391         Chain expose handler to parent class handler. Use
8392         gtk_container_propagate_expose() to propagate exposes.
8393
8394         * gtk/gtkclist.c (check_exposures):
8395         * gtk/gtktext.c (process_exposes):
8396         Use gtk_widget_send_expose instead of gtk_widget_event.
8397
8398 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
8399
8400         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
8401
8402 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
8403
8404         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
8405         unref the nodes.   Fixes bug #50058.
8406
8407         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
8408         "::ref_iter" to "::ref_node".
8409         (gtk_tree_model_unref_node): change "::unref_iter" to
8410         "::unref_node". Fixes bug #50064.
8411
8412 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
8413
8414         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
8415         support for invisible cells.
8416          (gtk_tree_view_bin_expose): ditto
8417
8418 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
8419
8420         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
8421         on gobjects.
8422
8423         * tests/testtreefocus.c (main): New test file.
8424
8425         * tests/testtreeview.c: update to latest glib changes.
8426
8427         * tests/testtreecolumns.c: update to latest glib changes.
8428
8429 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
8430
8431         * gtk/testgtk.c: re-enabled event watcher emission hooks.
8432
8433 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
8434
8435         * *.c: added accumulator data argument to g_signal_newc()
8436         functions.
8437
8438         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
8439         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
8440         * gtk/treestoretest.c (make_window):
8441         s/g_signal_connect/g_signal_connectc/.
8442
8443         * gtk/gtktextbuffer.c: completed signal arg fixups,
8444         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
8445
8446 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
8447
8448         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
8449         G_CONST_RETURN.
8450
8451         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
8452         ::hierarchy-changed signal when a widget changes
8453         from anchored to unanchored or vice versa.
8454         (anchored means 
8455          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
8456         Use a private flag to keep track of this efficiently.
8457
8458 2001-03-07  Havoc Pennington  <hp@redhat.com>
8459
8460         * gtk/testgtk.c (create_spins): uglify so that size request gets
8461         tested.
8462
8463         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
8464         request on values for upper/lower, completes #6152
8465
8466 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
8467
8468         * Makefile.am: Remove gtk-config-2.0 again.
8469         (Grrrr, pkg-config. And stops make loops.)
8470
8471 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
8472
8473         * gtk/gtksignal.[hc]: removed old emission hook API.
8474         
8475         * docs/Changes-2.0.txt: fixed sections.
8476         
8477         * gtk/gtktextbuffer.c: signal arg fixups.
8478
8479 2001-03-07  Havoc Pennington  <hp@redhat.com>
8480
8481         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
8482
8483         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
8484         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
8485         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
8486         validation and the redraw which is higher priority than the
8487         validation.
8488
8489 2001-03-07  Havoc Pennington  <hp@redhat.com>
8490
8491         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
8492         (gtk_entry_set_property): remove trailer
8493
8494         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
8495         (gtk_entry_get_width_chars): new functions, to set size request to 
8496         a given number of characters
8497
8498         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
8499
8500         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
8501         (gtk_dialog_get_has_separator): new function
8502         (run_delete_handler): fix to not emit "response" signal
8503         because we already did in the delete event handler installed
8504         at dialog creation time.
8505         
8506         * gtk/gtkdialog.h: add a has_separator property,
8507         add GTK_DIALOG_NO_SEPARATOR flag
8508
8509 2001-03-07  Havoc Pennington  <hp@redhat.com>
8510
8511         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
8512         off decorations for a window.
8513
8514         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
8515         changes
8516
8517         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
8518         to get location of PangoLayout inside the label, closes #51198
8519
8520         * gtk/testgtk.c (create_bbox): fix up button box usage
8521
8522         * gtk/testcalendar.c (create_calendar): fix up button box usage
8523
8524         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
8525
8526         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
8527
8528         * gtk/gtkhbbox.h: deprecations
8529
8530         * gtk/gtkvbbox.h: deprecations
8531
8532         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
8533         emulate deprecated gtk_button_box_get_spacing
8534
8535         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
8536         the "set global default" functions
8537         (struct _GtkButtonBox): remove "spacing" field, use the one from 
8538         GtkBox base class
8539
8540         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
8541
8542         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
8543         render the icon, return the missing image icon.
8544
8545         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
8546         image icon if the load fails.   
8547
8548         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
8549         when no image is found; should be the Netscape "missing image"
8550         icon eventually but for now is a random image
8551
8552         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
8553         role for the session manager
8554
8555         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
8556
8557         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
8558         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
8559
8560         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
8561
8562 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
8563
8564         * gtk/*.c: marshaller fixes.
8565         
8566         * gtk/gtkmarshal.list: extreme cleanup.
8567
8568         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
8569         param spec for now.
8570
8571         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
8572         where appliable.
8573
8574         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
8575         special cased autogenerated boxed types from gtktypebuiltins_ids.c
8576         which are not reference counted:
8577         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
8578         PangoFontDescription, GtkTreeIter and GtkTreePath.
8579
8580 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
8581
8582         * gtk/gtktreeselection.h: 
8583         * gtk/gtktreemodel.c:
8584         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
8585         file should be included directly, and gobject/gmarshal.h
8586         as well as gtk/gtkmarshal.h even can't be included directly.
8587
8588         * Makefile.am: grr, install gtk-config-2.0.
8589
8590         * gtk/testgtk.c:
8591         * gtk/simple.c:
8592         * gtk/gtkmenu.c:
8593         * gtk/gtkitemfactory.c: use g_object_connect() instead of
8594         passing "*signal*::*" args to gtk_widget_set().
8595         
8596         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
8597         
8598         * gtk/*.c: removed trailer arg from property setters and getters.
8599         macro fixups.
8600
8601 2001-03-07  Alexander Larsson  <alexl@redhat.com>
8602
8603         * gtk/gtklabel.c (set_markup): Removed warning
8604
8605 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
8606
8607         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
8608         field to allow you to hide cell renderers.
8609
8610         * gtk/gtkcellrenderer.c: Add support for invisible cells.
8611
8612         * gtk/gtktreeview.c: Add support for invisible cells.
8613
8614 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
8615
8616         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
8617         Add "clicked" signal back to columns.
8618
8619         * ChangeLog: remove conflict markers.
8620
8621 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
8622
8623         * gtk/gtkbutton.c: Add animation of activation by, on 
8624         activate, pressing the button, and adding a timeout that 
8625         releases the button after 250ms or on key release and
8626         emits ::clicked. (#51501)
8627
8628         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
8629         action area, we connect to ::clicked instead of ::activate
8630         so the dialog stays up through the animation.
8631
8632 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
8633
8634         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
8635         check the ignore_enter flag for the menu shell that
8636         the item is actually a child of, not for attached
8637         submenus. (#51536)
8638
8639 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
8640
8641         * gtk/gtkmain.c (gtk_propagate_event): Only do special
8642         special key-press grab handling for widgets within
8643         GtkWindows. Otherwise, fall through to normal case.
8644
8645         This prevents key events being sent twice to GtkInvisible
8646         widgets, which can cause all sorts of mischief.
8647
8648 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
8649
8650         * gtk/gtkmain.c (gtk_propagate_event): When a grab
8651         widget is in effect, give the grab widget a first
8652         crack at KEY_PRESS/RELEASE events. (#424)
8653
8654 2001-03-06  James Henstridge  <james@daa.com.au>
8655
8656         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
8657         offset for the window_state_event to point at window_state_event
8658         rather than no_expose_event.
8659
8660 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
8661
8662         * gtk/gtkimmodule.h: fix busted /* comment */
8663
8664 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
8665
8666         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
8667         object properties.
8668
8669 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
8670
8671         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
8672         add object properties.
8673
8674         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
8675         to add object properties.
8676
8677         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
8678         object properties.
8679
8680         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
8681         add object properties.
8682
8683         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
8684         object properties.
8685
8686 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
8687
8688         * gtk/gtktreemodel.c: renamed "child_toggled" to
8689         "has_child_toggled".
8690
8691         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
8692         handle new signal name.
8693
8694         * gtk/gtktreestore.c: Updated to handle new signal name.
8695         * gtk/gtklisttore.c: Updated to handle new signal name.
8696         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
8697
8698 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8699
8700         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
8701         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
8702
8703 2001-03-05  Michael Natterer  <mitch@gimp.org>
8704
8705         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
8706         pixbuf-engine coincidentially also failed to make one of it's
8707         parent_class pointers static, causing overwriting of GtkLabel's
8708         parent_class pointer in pixbuf_style_class_init().
8709         (Will commit the fix to the pixbuf-engine too).
8710
8711 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8712
8713         * gdk/gdkwindow.h:
8714         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
8715         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
8716         gdk_window_set_icon_list for net wmspec functionality.
8717
8718         * gdk/x11/gdkwindow-x11.c:
8719         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
8720         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
8721         gdk_window_set_icon_list.
8722         Added gdk_wmspec_change_state helper function and used it in the code.
8723         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
8724
8725         * gtk/gtkdialog.c (gtk_dialog_init):
8726         Set GDK_WINDOW_TYPE_HINT_DIALOG.
8727
8728         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
8729         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
8730
8731         * gtk/gtkwindow.c:
8732         new function gtk_window_set_type_hint.
8733         On realize, set type hint and modal hint.
8734
8735         * gtk/gtkwindow.h:
8736         Added type_hint field and gtk_window_set_type_hint.
8737
8738 2001-03-05  Alexander Larsson  <alexl@redhat.com>
8739
8740         * gtk/gtklabel.[ch]:
8741         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
8742         New function gtk_label_get_accel_keyval () to get the underline accelerator
8743         of the label. Setting the label pattern overrides other attributes.
8744
8745 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
8746
8747         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
8748         Added missing initializers to gtk_rc_style_init().
8749
8750 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
8751
8752         * gtk/gtktextview.c: fixed bug #51097 about setting 
8753         gtk_text_view_set_border_window_size() if the widget is 
8754         already realized.
8755
8756 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
8757
8758         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
8759
8760         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
8761         comment. Won't do to have duplicated doc comments between
8762         the platform subdirs.
8763
8764 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
8765
8766         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
8767           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
8768
8769         Detectable auto-repeat - make a repeating key generate
8770         press/press/press/release instead of press/release pairs.
8771
8772         If we have Xkb and XkbSetDectableAutoRepeat supports
8773         that, we do it that way. Otherwise, when we get
8774         a release event, we check ahead with XPending to see
8775         if the next key is a KeyPress with the same keycode
8776         and timestamp. (Not 100% reliable, but pretty close.)
8777           
8778 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
8779         
8780         * gtk/gtkmain.c (gtk_propagate_event): Only do special
8781         special key-press grab handling for widgets within
8782         GtkWindows. Otherwise, fall through to normal case.
8783  
8784         This prevents key events being sent twice to GtkInvisible
8785         widgets, which can cause all sorts of mischief.
8786  
8787 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
8788  
8789         * gtk/gtkmain.c (gtk_propagate_event): When a grab
8790         widget is in effect, give the grab widget a first
8791         crack at KEY_PRESS/RELEASE events. (#424)
8792  
8793 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
8794
8795         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
8796         to extend the selection. (Roughly based on patch
8797         from Jay Cox, #50939)
8798
8799         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
8800         to properly handle previous GDK_BUTTON_PRESS. 
8801         (Patch from Jay Cox, #50938)
8802
8803         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
8804         '\0' back along with the deleted text. (#51148)
8805
8806 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
8807
8808         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
8809         the group when extracting it from the X keyboard event.
8810
8811         * modules/input/Makefile.am modules/input/imipa.c: 
8812         Simple module for entering IPA. (Do we need a 
8813         gtk-stupid-input-tricks CVS module?)
8814
8815 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
8816
8817         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
8818         const.
8819
8820         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
8821
8822         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
8823         is no focus widget for the dialog currently, grab the focus as well
8824         as the default.
8825
8826         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
8827         the action area's children to iterate through, not the
8828         dialog's children.
8829
8830 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
8831
8832         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
8833         Add plug-socket tests. (Won't work worth a darn until I commit
8834         the rest of the plug-socket changes, but no reason these
8835         can't go into CVS now.)
8836
8837 2001-03-02  Havoc Pennington  <hp@redhat.com>
8838
8839         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
8840         _gdk_region_get_xrectangles()
8841
8842         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
8843
8844         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
8845
8846         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
8847         function, contributed by Ron Steinke    
8848
8849         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
8850         gdk_net_wm_supports
8851
8852         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
8853         New function, contributed by Ron Steinke
8854
8855         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
8856         used to line up the text in the entry when using the entry for
8857         editable sheet cell hacks
8858
8859         * gtk/testgtk.c (create_entry): test the activate_default setting
8860         on GtkEntry
8861
8862         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
8863         cause the entry to activate the default button for a dialog when 
8864         activated
8865         (gtk_entry_get_activates_default): new function
8866
8867 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
8868
8869         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
8870         Hwang to move call to sync_selection() up a few lines
8871         to before the row list is modified, to fix crash when
8872         removing rows in the undo_selection list.
8873
8874         (Test case provided by Daniel Elstner:
8875
8876         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
8877
8878 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
8879
8880         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
8881         of tree->root_tree in parent_set rather than _map(), 
8882         fixing #50892 in a bit better manner.
8883
8884 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
8885
8886         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
8887
8888 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
8889
8890         * gtk/gtkstyle.c : Remove duplicate fwd decl for
8891         gtk_default_draw_shadow.
8892
8893 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
8894
8895         * gdk/gdkimage.c (gdk_image_new): Remove excess 
8896         warning, make warnings more verbose, treat a error
8897         in shmat as permanent, and don't try again.
8898         (#51163, Ed Randall.)
8899
8900 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
8901
8902         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
8903         delay for the first click before starting to scroll.
8904         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
8905
8906         * gtk/gtktext.c: GtkText should have I-beam cursor. 
8907         (based on gtk-enf-990513-1.patch, Eric Fisher.)
8908
8909 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
8910
8911         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
8912         cleanup to remove some references to unused
8913         ->xoffset, ->yoffset.
8914
8915 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
8916
8917         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
8918         mask. (#51039, fix from Martin Maierhofer)
8919
8920 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
8921
8922         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
8923         for unshifted + and shifted = for non-us keyboards.
8924         Make <Control>+ and <Control>- work as well as 
8925         <Control>KP_Plus, <Control>KP_Minus for recursive
8926         open/close.  (#2682, René Seindal)
8927
8928 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
8929
8930         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
8931         the active menu item before deactivating the menu,
8932         so gtk_menu_popdown doesn't change the history. (#50964)
8933         
8934 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
8935
8936         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
8937         draw lines with text_gc rather than black_gc.
8938         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
8939
8940 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
8941
8942         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
8943         Move handling of buttons fully in gtktreeviewcolumn.  This code is
8944         less interrelated then it was, but it still requires the
8945         GtkTreeView to map it.
8946
8947         * test/testtreecolumn.c: Now I can add a column to one view,
8948         remove it, add it to the another view, remove it, then re-add it
8949         to the first.  Nifty.
8950
8951 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
8952
8953         * docs/tutorial/gtk-tut.sgml: Minor corrections
8954
8955 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
8956
8957         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
8958         GtkRowReference.
8959
8960 2001-02-28  Havoc Pennington  <hp@redhat.com>
8961
8962         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
8963         draw_default
8964         (gtk_widget_draw_focus): remove this function; we could instead
8965         make it just gtk_widget_draw(), but in most cases I think the
8966         result would be broken user code, so think it's better to have
8967         that code not compile and get fixed
8968         (gtk_widget_draw_default): ditto
8969
8970         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
8971         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
8972         
8973         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
8974         widgets lose/get the default, instead of calling draw_default
8975         
8976         * docs/Changes-2.0.txt: note about all this
8977
8978         Then fixed every widget in GTK, I won't list all the filenames.
8979
8980 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
8981
8982         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
8983         _gtk_tree_row_reference_deleted.
8984         (inserted_callback): Proxy out to
8985         _gtk_tree_row_reference_inserted.
8986         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
8987         get around signal emission ordering problem.
8988
8989         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
8990         fix to work with SINGLE 
8991         (_gtk_tree_selection_internal_select_node): Major sanitization on
8992         selections.  SINGLE now seems to work.
8993
8994         * tests/Makefile.am: add testtreecolumn.c:
8995
8996         * tests/testtreecolumn.c: New test.  Mostly points out selection
8997         bugs currently, but will test columns later.
8998
8999         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
9000         selection bug.  I hate touching this code -- it's scary.
9001
9002 2001-02-26  Havoc Pennington  <hp@redhat.com>
9003
9004         * gtk/testgtk.c: test the window state stuff
9005
9006         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
9007         window come to the user's attention as if it were just created
9008         (gtk_window_iconify): new function
9009         (gtk_window_deiconify): new function
9010         (gtk_window_stick): new function
9011         (gtk_window_unstick): new function
9012         (gtk_window_maximize): new function
9013         (gtk_window_unmaximize): new function
9014
9015         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
9016
9017         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
9018
9019         * gdk/x11/gdkevents-x11.c: create window state events when
9020         appropriate
9021         (gdk_wmspec_supported): new function
9022
9023         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
9024         iconification before showing the window
9025         (gdk_window_deiconify): new function
9026         (gdk_window_stick): new function
9027         (gdk_window_unstick): new function
9028         (gdk_window_maximize): new function
9029         (gdk_window_unmaximize): new function
9030
9031         * gdk/gdkwindow.c: store the window state in the window; 
9032         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
9033         window->mapped.
9034         (gdk_window_get_state): return the current window state
9035
9036         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
9037         (gdk_event_get_state): handle GDK_WINDOW_STATE
9038         (gdk_synthesize_window_state): function to create the window state
9039         events
9040
9041         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
9042         event, for changes to "window state" such as maximized, sticky, 
9043         etc.
9044         
9045         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
9046         focuses a window
9047
9048         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
9049         finds out if we support a given WM spec hint
9050
9051 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
9052
9053         * docs/faq/gtk-faq.sgml: New question re memory leaks.
9054
9055 2001-02-25  Hans Breuer  <hans@breuer.org>
9056
9057         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
9058         cause we want to loose those prototypes only in the latter case
9059
9060         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
9061         GdkPixmapImplWin32 because it itsn't derived from it. Use the
9062         impl member variable instead
9063
9064         * gtk/gtk.def : updated
9065
9066         * gtk/gtklist.c : 
9067         * gtk/gtkmenus.c : include <string.h> for memset ()
9068
9069         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
9070         for everthing built here, but for gtk-x.x.dll only. This solves
9071         problem of indifferent gtk type definitions
9072
9073 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
9074
9075         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
9076
9077 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
9078
9079         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
9080         column that is exposed.
9081
9082         (_gtk_tree_view_update_size): Changed name from set_size, and
9083         changed function to do more work, and not force people calling it
9084         to figure out the size.  Simplifies a lot of code elsewhere.
9085
9086 2001-02-23  Alexander Larsson  <alexl@redhat.com>
9087
9088         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
9089         return solid masks for xpms that have no transparent color.
9090         This makes the ..._create_from_xpm... API backwards
9091         compatible.
9092
9093 2001-02-23  Tor Lillqvist  <tml@iki.fi>
9094
9095         * README.win32: Update. Mention the gtk-1-3-win32-production
9096         branch.
9097
9098         * gdk/win32/bdfcursor.c: New file. A program that generates
9099         xcursors.h. Thanks to Stefan Ondrejicka.
9100
9101         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
9102         compact format.
9103
9104         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
9105
9106         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
9107         function, uses xcursors.h.
9108         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
9109         cursor from inline data instead of using LoadCursor() to generate
9110         it from a resource.
9111
9112         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
9113         event, must check the Windows message for mouse button state, as
9114         the GDK event state might not have been built if it is
9115         undelivered. Remove one goto.
9116
9117         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
9118         SetCursor() if the current cursor as returned by GetCursor() is
9119         the window's previous cursor. The ChildWindowFromPoint() test
9120         apparently didn't work correctly.
9121
9122         * gdk/win32/rc/*.cur: Remove.
9123
9124         * gdk/win32/rc/gdk.rc.in: Remove cursors.
9125
9126         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
9127
9128         * gtk/makefile.{mingw,msc}.in: Updates.
9129
9130 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
9131
9132         * gtk/gtktreemodel.h: add functions for signal emission.
9133
9134         * gtk/gtktreestore.c: move to use above functions instead of
9135         g_signal_emit.
9136
9137         * gtk/gtkliststore.c: ditto
9138
9139 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
9140
9141         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
9142         GObject instead of GtkObject.
9143
9144         * gtk/gtkliststore.c: ditto.
9145
9146         * gtk/gtktreemodelsort.c: ditto.
9147
9148         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
9149         GtkTreeModelIface, instead of in each model.
9150
9151 2001-02-21  Havoc Pennington  <hp@redhat.com>
9152
9153         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
9154         unbreak this function
9155
9156         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
9157         properties
9158
9159         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
9160         properties
9161
9162         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
9163         properties
9164
9165         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
9166         mean unset the max length
9167
9168 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
9169
9170         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
9171         Changed name to be set_cell_data_func to make it clear what
9172         the functino does.  Close bug #51069.
9173
9174 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
9175
9176         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
9177         have memory actually freed.  Keeps box running longer.
9178
9179 2001-02-21  Alexander Larsson  <alexl@redhat.com>
9180         
9181         * gtk/gtkseparatormenuitem.[ch]:
9182         Added new menu separator item. The drawing and size handling
9183         is still done in GtkMenuItem, but the API is a bit more sane.
9184         
9185         * gtk/Makefile.am:
9186         Add gtkseparatormenuitem.[ch].
9187
9188         * gtk/gtk.h:
9189         Add gtkseparatormenuitem.h.
9190         
9191         * gtk/gtkentry.c:
9192         * gtk/gtkmenufactory.c:
9193         * gtk/gtktextview.c:
9194         Use the new API for menu separators.
9195         
9196         * demos/gtk-demo/menus.c (create_menu):
9197         Add some GtkSeparatorMenuItem demo code.
9198
9199 2001-02-20  Havoc Pennington  <hp@redhat.com>
9200
9201         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
9202         Lee Mallabone
9203
9204         * gtk/gtkarrow.c: Convert to new property API, patch from 
9205         Lee Mallabone
9206
9207 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
9208
9209         * tests/testtreeview.c (toggled_callback): fix to reflect change
9210         in GtkTreeModelStore.
9211
9212 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
9213
9214         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
9215         function to create an icon set from a pixbuf.
9216
9217 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9218
9219         * gtk/gtkcellrenderertext.[ch]:
9220         Add a "markup" property.
9221
9222         * gtk/treestoretest.c:
9223         Use the markup property, remove some leftover stuff from
9224         GtkTreeModelMapping.
9225
9226 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9227
9228         * gtk/gtklabel.c (gtk_label_set_selectable):
9229         Queue a redraw if the selectable setting was changed.
9230
9231 2001-02-20  Alexander Larsson  <alexl@redhat.com>
9232
9233         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
9234         Actually copy the whole gc, not just the public parts.
9235         
9236         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
9237         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
9238         labels.
9239
9240 2001-02-19  Havoc Pennington  <hp@pobox.com>
9241
9242         * gdk/gdkwindow.c: docs
9243
9244         * gdk/gdkrgb.c: docs
9245
9246         * gdk/gdkregion-generic.c: docs
9247
9248         * gdk/gdkgc.c (gdk_gc_set_values): docs
9249
9250         * gdk/gdkdraw.c: docs
9251
9252         * gdk/gdkdrawable.h: deprecate drawable get/set data
9253
9254 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
9255
9256         * demos/gtk-demo/dialog.c: Add simple new demo.
9257
9258 2001-02-19  Havoc Pennington  <hp@redhat.com>
9259
9260         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
9261         insert_child_anchor signal, bug #50245
9262
9263         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
9264         from create_child_anchor, so the anchor is passed in
9265
9266         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
9267         (_gtk_widget_segment_new): have the child anchor object passed in, 
9268         instead of creating it.
9269
9270         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
9271         to gtk_text_buffer_get_modified
9272
9273 2001-02-19  Havoc Pennington  <hp@redhat.com>
9274
9275         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
9276         changed GLib without fixing GTK
9277
9278         * gtk/gtkrange.h: Rename all the stupid implementation detail 
9279         functions to have an underscore in front. Most of them should 
9280         probably just go away, but for starters don't export them.
9281         Bug #50482
9282
9283 2001-02-19  Havoc Pennington  <hp@redhat.com>
9284
9285         * gdk/gdkcolor.h: test was backward, so deprecated functions were
9286         excluded by default
9287
9288         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
9289         clean up the old code a bit
9290
9291         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
9292         inconsistent state
9293
9294         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
9295         draw inconsistent state
9296
9297         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
9298         (create_menu): add inconsistent test
9299
9300         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
9301         new function
9302         (gtk_check_menu_item_get_inconsistent): new function
9303         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
9304         state (using etched in for now)
9305
9306         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
9307         draw inconsistent state
9308
9309         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
9310         function, used when the user has selected a range of stuff in
9311         different states
9312         (gtk_toggle_button_get_inconsistent): accessor for that
9313         (gtk_toggle_button_paint): draw inconsistent state (etched in?
9314         don't know what else to do)
9315
9316 2001-02-19  Hans Breuer <hans@breuer.org>
9317
9318         * gtk/gtk.def : updated exported symbols
9319
9320         * gtk/makefile.msc.in : updated
9321
9322         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
9323         a colormap, when invoked from testgtk::entry. I'm not sure where
9324         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
9325         avoids immediate crashing ...
9326
9327         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
9328         any objections ?
9329
9330         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
9331         0 parameter. At least msvc doesn't like macros with var args. 
9332         I simply removed the extra 0, was it a feature or a typo ?
9333
9334         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
9335         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
9336         because the value assignment to the internal struct wasn't working.
9337         I'm not absolutely sure. The problem could have been resolved by
9338         changing the "func" declartion in the struct, but was the pointer
9339         to the function pointer intended ?
9340
9341         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
9342
9343         * gdk/gdk.def : updated exported symbols
9344
9345         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
9346         only use SetDIBitsToDevice if there is a palette at the drawable
9347         and the image is GDK_VISUAL_PSEUDO_COLOR
9348
9349         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
9350
9351         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
9352
9353         * gdk/*/makefile.msc : updated
9354
9355 2001-02-19  Havoc Pennington  <hp@redhat.com>
9356
9357         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
9358         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
9359
9360         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
9361         (gdk_key_repeat_restore): nuke
9362
9363         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
9364         (gdk_init_check): no atexit func
9365
9366         * gdk/gdkrgb.h: mark some stuff deprecated
9367
9368         * gdk/gdkcolor.h: mark some stuff deprecated
9369         
9370         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
9371
9372         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
9373
9374 2001-02-16  Havoc Pennington  <hp@redhat.com>
9375
9376         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
9377         scroll steps.
9378
9379         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
9380         steps, and add Ctrl-arrow shortcuts for paging visually as with
9381         HScale, since Page Up and Page Down move logically.
9382
9383         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
9384         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
9385         
9386         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
9387         steps
9388         (gtk_range_scroll): handle the visual steps
9389
9390         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
9391         scroll steps
9392
9393         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
9394         steps, not the logical ones.
9395
9396         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
9397         (scroll_vertical): handle up/down steps
9398
9399 2001-02-19 Alexander Larsson  <alexl@redhat.com>
9400
9401         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
9402         Copy data and free data with free().
9403
9404         * gdk-pixbuf/gdk-pixbuf.c:
9405         * gdk-pixbuf/io-jpeg.c:
9406         * gdk-pixbuf/io-png.c:
9407         Use g_try_malloc/g_free instead malloc/free.
9408         
9409         * gdk-pixbuf/test-gdk-pixbuf.c:
9410         Must... initialize... gobject...
9411         
9412         * gdk-pixbuf/pixops/timescale.c:
9413         * gtk/gtkcalendar.c:
9414         Use g_malloc instead of malloc.
9415         
9416 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
9417
9418         * gtk/testgtkrc:
9419         Comment out property assignments, these don't work yet.
9420
9421 2001-02-17  Havoc Pennington  <hp@pobox.com>
9422
9423         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
9424         bit.
9425
9426 2001-02-17  Havoc Pennington  <hp@pobox.com>
9427
9428         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
9429         shadowed variables that had broken size request in some cases,
9430         leading to bogus tooltips (#50996)
9431
9432 2001-02-06  Jon K Hellan  <hellan@acm.org>
9433
9434         Implement fast browsing of tooltips, bug #50619
9435         
9436         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
9437         and last_popdown
9438         
9439         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
9440         use_sticky_delay and last_popdown.
9441         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
9442         time of popdown.
9443         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
9444         is NULL.
9445         (gtk_tooltips_recently_shown): New static function.  Return true
9446         if < sticky_delay has elapsed since last popdown.
9447         (gtk_tooltips_event_handler): Display window after sticky_delay
9448         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
9449         since last popdown.
9450         
9451 2001-02-17  Havoc Pennington  <hp@pobox.com>
9452
9453         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
9454         instead of (). #6394
9455
9456         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
9457         G_CONST_RETURN, make it return by reference, #50473
9458         
9459 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
9460
9461         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
9462         generated ENTER_NOTIFY event with 0, otherwise not explicitely
9463         setup fields contain garbage (e.g. subwindow, breaking
9464         gdk_drawable_ref() upon event copy).
9465         (gtk_menu_stop_navigating_submenu_cb): same here.
9466
9467         * gtk/gtklist.c (gtk_list_vertical_timeout): 
9468         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
9469         * gtk/gtkclist.c (vertical_timeout): 
9470         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
9471         default-zero-intialization for unions to memset(,0,), as unions are
9472         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
9473         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
9474
9475         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
9476         g_closure_sink() warning.
9477
9478         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
9479         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
9480         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
9481         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
9482         
9483 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
9484
9485         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
9486         gtk_*_store_get, and moved to GtkTreeModel.
9487
9488         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
9489
9490         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
9491
9492         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
9493
9494         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
9495         set the func.
9496
9497         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
9498         freeze/thaw notify between setting all the properties for a cell.
9499
9500         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
9501
9502 2001-02-15  Havoc Pennington  <hp@redhat.com>
9503
9504         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
9505         the X coordinates so they're with respect to the line, rather than 
9506         with respect to the layout.
9507
9508         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
9509         Mallabone
9510
9511         * gtk/testgtk.c (create_range_controls): add vscale tests, 
9512         and inverted test
9513
9514         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
9515         #50806
9516
9517         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
9518
9519         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
9520         gtk_text_iter_is_end
9521
9522         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
9523         rename gtk_text_buffer_get_end_iter
9524
9525         * gtk/testgtk.c (create_labels): Add test for selectable
9526
9527         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
9528         the selection stuff. This code is kind of broken since it doesn't 
9529         use the theme engine.
9530
9531         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
9532         fix infinite loop and y offset problem
9533         (gdk_draw_layout_line_with_colors): fix foreground color handling
9534
9535         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
9536         that makes the label selectable.
9537         
9538         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
9539         layout when the style is set, since fonts etc. could have changed.      
9540
9541 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
9542
9543         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
9544
9545         * gtk/gtktreemodelsimple.[ch]: removed.
9546
9547 2001-02-16  Alexander Larsson  <alexl@redhat.com>
9548
9549         * gtk/gtktreemodelmapping.[ch]:
9550         New files. Implement GtkTreeModelMapping.
9551         
9552         * gtk/Makefile.am:
9553         Add gtktreemodelmapping.[ch].
9554         
9555         * gtk/gtk.h:
9556         Add gtktreemodelmapping.h
9557
9558         * gtk/treestoretest.c:
9559         Test the GtkTreeModelMapping
9560
9561 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
9562
9563         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
9564         have a demo, we might as well pass in real values.  Thanks to
9565         clahey for pointing this out.
9566
9567 2001-02-14  Havoc Pennington  <hp@pobox.com>
9568
9569         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
9570         "static" to a private function
9571         (gtk_image_menu_item_class_init): remove destroy handler,
9572         add "image" object property
9573
9574 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
9575
9576         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
9577         Add a shortcut if the window and the current clip_region doesn't
9578         overlap. This is needed when there are a lot of windows in a
9579         window. The layout test in testgtk is a good test.
9580
9581         * gdk/linux-fb/gdkwindow-fb.c:
9582         Whitespace fix.
9583
9584 2001-02-13  Sven Neumann  <sven@convergence.de>
9585
9586         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
9587
9588 2001-02-13  Alexander Larsson  <alexl@redhat.com>
9589
9590         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
9591         Don't reference last_cursor if it is null. Fixes crash when rotating
9592         the screen before having moved the mouse.
9593
9594         * gdk/linux-fb/gdkcc-fb.c: Zapp!
9595
9596         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
9597
9598         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
9599         when using 90 or 270 degrees rotation.
9600
9601 2001-02-12  Havoc Pennington  <hp@pobox.com>
9602
9603         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
9604         it always set the foreground, even if we were only using
9605         a stipple.
9606         (gdk_draw_layout_line_with_colors): new function, allow
9607         override colors
9608         (gdk_draw_layout_with_colors): new function, allow override
9609         colors
9610         (gdk_pango_layout_line_get_clip_region): function to get the clip
9611         region for a logical text range
9612         (gdk_pango_layout_get_clip_region): get the clip region for a
9613         logical text range
9614
9615         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
9616         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
9617         the right number of arguments.
9618
9619         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
9620         enhance the function to check that node data corresponds to a 
9621         view still belonging to the tree.
9622
9623         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
9624         GtkTreePath
9625         (gtk_tree_view_inserted): ditto
9626         (gtk_tree_view_child_toggled): ditto
9627
9628         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
9629         simplify this code.
9630
9631         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
9632         a PangoAttrList
9633
9634         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
9635
9636         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
9637
9638         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
9639         size in the size request 
9640         (gtk_menu_bar_size_allocate): consider toggle size here
9641
9642         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
9643         that displays a widget in the toggle slot
9644
9645         * gtk/testgtk.c: test GtkImageMenuItem
9646
9647         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
9648         
9649         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
9650         request and allocation
9651
9652         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
9653
9654         * gtk/gtkcheckmenuitem.c
9655         (gtk_check_menu_item_toggle_size_request): ditto
9656         
9657 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
9658
9659         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
9660         reference.
9661
9662         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
9663         and refuse to initialize GTK+ if they fail.
9664
9665 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
9666
9667         * configure.in: Add check for gtk-doc version.
9668
9669 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
9670
9671         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
9672         where the xpad/ypad was only being used on one side!
9673
9674 2001-02-11  Tor Lillqvist  <tml@iki.fi>
9675
9676         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
9677         function, copied from X11 version.
9678
9679         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
9680         DestroyCursor failures. The reason for the problem (despite the
9681         inconsistent messages from GetLastError()) was that
9682         DestroyCursor() cannot be called while a cursor is set in a
9683         window. Set the new cursor first and then destroy the old one.
9684         Thanks to jpe@archaeopteryx.com.
9685
9686         * gdk/win32/gdkcc-win32.c: Remove.
9687
9688         * gdk/win32/Makefile.am: Remove from here, too.
9689         
9690         * gdk/gdk.def
9691         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
9692
9693         * gtk/gtk.def
9694         * gtk/makefile.mingw.in: Updates.
9695
9696 2001-02-08  Havoc Pennington  <hp@redhat.com>
9697
9698         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
9699         add a widget to a bin that already has a child.
9700
9701         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
9702
9703         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
9704         
9705         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
9706
9707         * gdk/gdk.h: remove gdkcc.h
9708
9709         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
9710
9711         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
9712         GdkPixbuf, since the previous implementation was GdkColorContext
9713         dependent.
9714
9715         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
9716         
9717 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
9718
9719         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
9720         a sane value!
9721
9722 2001-02-08  Havoc Pennington  <hp@redhat.com>
9723
9724         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
9725         lighten them.
9726
9727 2001-02-08  Havoc Pennington  <hp@redhat.com>
9728
9729         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
9730         validation idle
9731
9732         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
9733         cell renderer
9734
9735         * demos/pixbuf-demo.c (timeout): remove deprecated
9736         gtk_widget_draw
9737
9738         * demos/testpixbuf-save.c (main): remove deprecated
9739         gtk_drawing_area_size
9740
9741         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
9742         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
9743         at the start of the allocation.
9744         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
9745         unsetup or NULL model.
9746
9747         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
9748         even/odd/sorted cells in the tree view.
9749
9750         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
9751         bugfixes
9752
9753         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
9754         backgrounds with draw_flat_box using different detail for even/odd
9755         rows.
9756
9757         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
9758         row, so we can draw the alternating colors thing
9759
9760         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
9761         property from a synonym property, notify for the synonym.
9762         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
9763         (gtk_text_tag_get_property): Always return the font, even if
9764         all its fields aren't set
9765
9766         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
9767         store the attr list; it leaves us with no way to change attributes
9768         in _render according to the render flags, and no way to implement
9769         get_property. Instead store all the specific text attributes. 
9770         Separate whether an attribute is enabled from its value. Sync all
9771         properties with GtkTextTag, make them all consistent, etc.
9772
9773         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
9774         renderers can highlight the sort row/column     
9775
9776         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
9777         accessor functions to get values; this has the side effect of
9778         showing up which accessor functions were missing. Added those.
9779
9780         * gtk/gtktreeviewcolumn.h: Replace set_justification with
9781         set_alignment, to be consistent with GtkLabel, GtkMisc
9782
9783         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
9784         arrow.
9785
9786         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
9787
9788         * gtk/gtktreesortable.h: updates in here
9789
9790 2001-02-07  Sven Neumann  <sven@convergence.de>
9791
9792         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
9793         pango dimensions after painting the background. We used to draw
9794         gigantic flat boxes here.
9795
9796 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
9797
9798         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
9799         error introduced with earlier commit) (pointed out by
9800         Ollie Lho)
9801
9802 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
9803
9804         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
9805         which are no longer necessary.
9806
9807 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
9808
9809         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
9810
9811 2001-02-04  Tor Lillqvist  <tml@iki.fi>
9812
9813         * gdk/gdk.def
9814         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
9815         Provide dummy implementations.
9816
9817 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
9818
9819         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
9820
9821         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
9822         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
9823         deprecated this function.
9824
9825         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
9826         argument.
9827
9828 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
9829
9830         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
9831
9832 2001-02-03  Havoc Pennington  <hp@pobox.com>
9833
9834         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
9835         Mikael Hermansson with patch from Mikael (if there was a toggle
9836         start one after the first character in the range, this function
9837         was broken). Bug #50380
9838
9839 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
9840
9841         * configure.in: Remove confusing comment about X11.
9842
9843 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
9844
9845         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
9846         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
9847         
9848 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
9849
9850         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
9851         it breaks things on BSD. If you want to compile GTK+ with
9852         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
9853         when configuring, since GTK+ simply can't be "pure ANSI" 
9854         in the header files it uses. (#8170, Greg Hudson)
9855
9856 2001-02-02  Havoc Pennington  <hp@redhat.com>
9857
9858         * gtk/gtkwindow.c: docs
9859
9860         * gtk/gtkwidget.c: docs
9861         (gtk_widget_set_colormap): add a reference to the colormap
9862         (gtk_widget_get_default_colormap): add a reference to the colormap
9863
9864         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
9865
9866         * gtk/gtktextiter.c: docs
9867
9868         * gtk/gtkmain.c (gtk_propagate_event): docs
9869
9870         * gtk/gtkpaned.c (gtk_paned_get_position): docs
9871         (gtk_paned_set_position): docs
9872
9873         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
9874         sort interface, no implementation yet.
9875
9876         * demos/testpixbuf.c (new_testrgb_window): replace
9877         gtk_drawing_area_size() with gtk_widget_set_usize()
9878
9879         * demos/testpixbuf-drawable.c (main): ditto
9880         
9881         * gtk/testgtk.c: remove use of GtkStatusbarMsg
9882
9883         * gtk/gtktextbuffer.c: docs
9884
9885         * gtk/gtkstock.c: docs
9886
9887         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
9888
9889         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
9890
9891         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
9892         
9893         * gtk/gtkimage.c: add some docs in here
9894         (gtk_image_size_request): change name of
9895         gtk_widget_render_stock_icon
9896         (gtk_image_get_icon_set): don't dup returned string
9897         (gtk_image_get_icon_set): don't dup returned string
9898
9899         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
9900         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
9901         and gtkiconfactory.h functions
9902
9903         * gtk/gtkiconfactory.c: add some docs in here
9904
9905         * gtk/gtkmain.c (gtk_get_default_language): document
9906         (gtk_get_current_event): document
9907         (gtk_get_current_event_state): document
9908         (gtk_get_event_widget): document
9909
9910         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
9911
9912         * gtk/gtkcontainer.c: Add some documentation
9913         (gtk_container_add): give a more explanatory warning on adding an
9914         already-parented widget, this is kind of a FAQ and also a common
9915         typo that's easier to debug with a nice warning 
9916
9917         * gtk/gtkcellrenderertoggle.c
9918         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
9919         adding this, it's useless
9920         (gtk_cell_renderer_toggle_set_active): remove
9921         (gtk_cell_renderer_toggle_get_radio): add
9922
9923         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
9924         the NULL cell renderer, that doesn't make any sense to me. 
9925
9926         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
9927         demo code should never use deprecated features.
9928
9929         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
9930         code should never use deprecated features.
9931
9932         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
9933         gtk_widget_queue_clear_area deprecated
9934
9935         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
9936         deprecated
9937
9938         * gtk/gtklabel.h: mark gtk_label_get() deprecated
9939
9940         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
9941         a GdkImage deprecated, replaced by new consistently-named
9942         functions       
9943
9944         * gtk/gtkmain.h: Mark gtk_exit() deprecated
9945
9946         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
9947
9948         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
9949         deprecated
9950
9951         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
9952         so it won't appear in docs and confuse people.
9953
9954         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
9955
9956         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
9957         macros deprecated. (can't mark the type itself deprecated, since
9958         GtkProgressBar is not deprecated and we need the type decl to use
9959         GtkProgressBar)
9960
9961         * gtk/gtkpixmap.h: Mark deprecated
9962
9963         * gtk/gtkoldeditable.h: Mark deprecated
9964
9965         * gtk/gtklist.h: Mark deprecated
9966
9967         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
9968         for anything anymore.
9969
9970         * gtk/gtkctree.h: Mark deprecated
9971
9972         * gtk/gtkclist.h: Mark deprecated
9973
9974         * gtk/gtkpreview.h: Mark deprecated
9975
9976         * gtk/gtkpacker.h: Mark deprecated
9977
9978         * gtk/gtktipsquery.h: Mark deprecated
9979
9980         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
9981
9982         * gtk/gtkvruler.h: Add comment that it will move out of GTK
9983
9984         * gtk/gtkhruler.h: Add comment that it will move out of GTK
9985
9986         * gtk/gtkruler.h: Add comment that it will move out of GTK
9987
9988         * gtk/gtkgamma.h: Add comment that it will move out of GTK
9989
9990         * gtk/gtkcurve.h: Add comment that it will move out of GTK
9991
9992 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
9993
9994         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
9995         gdk_colormap_sync private since it was never exported
9996         in a header file.
9997
9998         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
9999         colormap->colors[] for StaticGray, StaticColor colormaps.
10000
10001         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
10002         was being used as if it was image->bits_per_pixel.
10003
10004         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
10005         for the image in the GdkImage structure since it isn't
10006         reconstructable, and we need it to handle packed types
10007
10008         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
10009         the assumption that on Win32 image->bits_per_pixel == image->depth,
10010         always.
10011
10012         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
10013
10014         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
10015         warning message if no converter can be found. 
10016
10017 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
10018
10019         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
10020         chars to isupper() / tolower(). (#567)
10021
10022         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
10023         to clear up 64-bit warnings. (#567)
10024
10025 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
10026
10027         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
10028         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
10029
10030         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
10031         since some people set $(libdir) separately. (#1290, David Kaelbling)
10032
10033 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
10034
10035         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
10036         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
10037         MAXPATHLEN, but the code here depends on a fixed value.)
10038         (#4524)
10039
10040 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
10041
10042         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
10043         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
10044
10045 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
10046
10047         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
10048         viewable there is no way that moving the node will cause the 
10049         focus row to become not viewable, so omit check on the visibility
10050         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
10051
10052 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
10053
10054         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
10055         selection before inserting new text.
10056
10057 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
10058
10059         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
10060         Make the sensitivity of the reparented child track that of
10061         the original parent menu item. (#34218, David Hodson)
10062
10063         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
10064         the case where the current item is destroyed properly.
10065
10066         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
10067         some edge cases with child-less menuitems.
10068         
10069 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
10070
10071         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
10072         key pop down window. (#12074, Jon K Hellan)
10073
10074 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
10075
10076         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
10077         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
10078         The solution here isn't perfect - you get an extraneous
10079         emission of "toggle", which could conceivably confuse an app,
10080         but better than the current situation. LXR search seems to
10081         indicate that no apps in GNOME CVS connect to "toggle".
10082
10083 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
10084
10085         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
10086         gtk_public_h_sources to directly here to avoid warning when
10087         building srcdir != builddir. (#9656)
10088
10089 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
10090
10091         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
10092         handlers in gtkrange.c return the proper values (TRUE == handled)
10093         (#10316).
10094
10095         This is just the tip of the iceberg, but gtkrange.c is the
10096         most common place where the propagation is problematical,
10097         and also a place where it is almost certainly safe to change
10098         this in the stable branch.
10099
10100         (You don't want right click popups on a range control or anything...)
10101
10102 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
10103
10104         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
10105         area on focus out, even if a background pixmap isn't set.
10106         (#13941)
10107         
10108 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
10109
10110         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
10111         to deal with setting the shape properly when scrolling arrows are
10112         turned on, but not visible because there is sufficient space.
10113         (#13432)
10114
10115 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
10116
10117         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
10118         items with submenus, destroy the item along with the submenu.
10119         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
10120         properly.
10121
10122         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
10123         later.
10124
10125 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
10126
10127         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
10128         the focus widget sometimes wasn't drawn with the default if there
10129         was no default widget.
10130
10131         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
10132         unreference pixmaps. 
10133
10134         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
10135         for some extra safety.
10136
10137 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
10138
10139         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
10140         the text of a cell to the old pointer value better, by
10141         copying the new text before freeing the old text. Some code
10142         cleanup. (#8079, Karl Nelson)
10143
10144 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
10145
10146         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
10147         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
10148
10149 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
10150
10151         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
10152         item from a menu, check to see if it matches 
10153         menu->old_active_menu_item, and if so, unref and clear
10154         old_active_menu_item (Patch from Pavel Cisler)
10155
10156         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
10157         menu_shell->active_menu_item, if it is the child being
10158         removed. (Patch based on that of Gene Ragan, #50337)
10159
10160 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
10161
10162         * gdk/linux-fb/gdkselection-fb.c: 
10163         * gdk/linux-fb/gdkcolor-fb.c: 
10164         * gdk/linux-fb/gdkdrawable-fb2.c: 
10165         * gdk/linux-fb/gdkfont-fb.c: 
10166         * gdk/linux-fb/gdkim-fb.c: 
10167         * gdk/linux-fb/gdkinput.c: 
10168         * gdk/linux-fb/gdkkeyboard-fb.c: 
10169         * gdk/linux-fb/gdkmain-fb.c: 
10170         * gdk/linux-fb/gdkrender-fb.c: 
10171         A bunch of whitespace cleanup.
10172         
10173 2001-01-30  Havoc Pennington  <hp@pobox.com>
10174
10175         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
10176         #ifdef GTK_ENABLE_BROKEN.
10177
10178         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
10179         GTK_ENABLE_BROKEN just before including the broken headers.
10180         
10181         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
10182         deprecated types registered.
10183
10184         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
10185         we have to test the broken stuff.
10186
10187         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
10188         
10189 2001-01-30  Havoc Pennington  <hp@redhat.com>
10190
10191         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
10192         here where prev pointer was set to the wrong thing
10193
10194         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
10195         (gtk_tree_path_is_descendant): new function
10196
10197         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
10198         cached length
10199         (gtk_list_store_get_iter): don't modify iter if we can't get the
10200         path.
10201
10202         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
10203         
10204         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
10205         GtkTreeDragDest
10206
10207         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
10208         was causing segfault
10209
10210         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
10211         pointer to NULL
10212
10213         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
10214
10215         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
10216         on returning FALSE
10217         (gtk_list_store_iter_children): ditto
10218         (gtk_list_store_iter_nth_child): ditto
10219         (gtk_list_store_iter_nth_child): ditto
10220         (gtk_list_store_iter_parent): ditto
10221
10222         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
10223         on iter->user_data != NULL instead of silently accepting it.
10224         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
10225         we are returning TRUE.
10226         (gtk_tree_store_iter_children): ditto
10227         (gtk_tree_store_iter_nth_child): ditto
10228         (gtk_tree_store_iter_parent): ditto
10229         (gtk_tree_store_insert): remove handling of parent->user_data ==
10230         NULL, replace with parent == NULL       
10231
10232         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
10233         and a comment explaining things
10234
10235         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
10236         interface support to GtkTreeStore.
10237
10238         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
10239         FALSE if no prev, fix
10240
10241         * gtk/gtktreeview.c (set_source_row): use a row reference
10242         (set_dest_row): use a row reference
10243
10244 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
10245
10246         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
10247         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
10248         (gtk_tree_selection_select_iter): The same as above.
10249
10250 2001-01-26  Havoc Pennington  <hp@redhat.com>
10251
10252         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
10253         which holds a handle to a specific row (particular set of values
10254         in the model, i.e. pointer-identity row).
10255
10256         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
10257         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
10258         Still need to use it for the src/dest row saved on the drag context.
10259
10260 2001-01-26  Havoc Pennington  <hp@redhat.com>
10261
10262         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
10263
10264         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
10265         not offset by TREE_VIEW_HEADER_HEIGHT
10266         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
10267         TREE_VIEW_HEADER_HEIGHT
10268
10269         * configure.in (included_loaders): for me, --with-included-loaders
10270         generates the error "the specified loader yes does not exist",
10271         i.e. the arg defaults to "yes", so change test for value ""
10272         to test for value "yes", and include all loaders in that case.
10273
10274         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
10275
10276         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
10277         handle TREE_VIEW_VERTICAL_SEPARATOR
10278         (gtk_tree_view_bin_expose): fix to consider the row offset as
10279         pointing halfway into vertical separator.       
10280         (gtk_tree_view_draw_node_focus_rect): ditto
10281
10282         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
10283         --gtk-debug=updates, which causes gdk_window_set_debug_updates
10284         (TRUE) to be called.
10285
10286         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
10287         debug mode where the invalid region is colored in on invalidate,
10288         so you can see the flicker and know whether your redraw code is 
10289         doing a good job.
10290
10291         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
10292         tree window coordinates (clip rect is in tree window coords)
10293
10294         * gtk/Makefile.am: add gtktreednd.[hc]
10295
10296         * gtk/gtkliststore.c: implement gtktreednd interfaces.
10297
10298         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
10299         drag-and-drop data operations on a model (so we can set up tree
10300         drag-and-drop automatically)
10301
10302         * gtk/testgtk.c: Add a window to change sensitivity in the
10303         GtkLabel test; add a way to change the entry frame in GtkEntry
10304         test
10305
10306         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
10307         (gtk_entry_get_has_frame): new functions to remove the frame
10308         around an entry
10309         (gtk_entry_size_request): shrink requisition if no frame
10310         (gtk_entry_draw_focus): don't draw frame if no frame
10311
10312         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
10313         checks inside a cell renderer
10314         (gtk_default_draw_option): ditto for options
10315
10316         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
10317         children from the alignment, not the button
10318         (gtk_tree_view_column_init): ref/sink the column, to emulate
10319         GObject refcounting.
10320
10321         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
10322         
10323         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
10324         Use theme functions to draw the toggles 
10325
10326         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
10327
10328         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
10329         GdkPangoAttrEmbossed to use in rendering insensitive text
10330
10331         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
10332
10333         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
10334         using new GDK features
10335         
10336 2001-01-24  Alexander Larsson  <alexl@redhat.com>
10337
10338         * gtk/gtkimage.c:
10339         Splitted gtk_image_clear into gtk_image_clear() and
10340         gtk_image_reset(). Call gtk_image_clear() in ::destroy
10341         to avoid leaks.
10342
10343         * gtk/gtklabel.c (set_markup):
10344         Don't leak text.
10345
10346         * gtk/gtktextlayout.c:
10347         Always free display->shaped_objects.
10348
10349         * gtk/testgtk.c (create_clist):
10350         Don't leak custom style.
10351
10352 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10353
10354         * gtk/gtkcolorsel.c (grab_color_at_mouse):
10355         Don't leak image. Simplify using gdk_colormap_query_color().
10356         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
10357
10358         * linux-fb/gdkcolor-fb.c:
10359         Implemented gdk_colormap_query_color.
10360
10361 2001-01-23  Alexander Larsson  <alexl@redhat.com>
10362
10363         * linux-fb/gdkcursor-fb.c:
10364         Don't leak built-in cursors.
10365
10366         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
10367         Don't leak tmp_points.
10368
10369         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
10370         Don't modify desc. Don't leak font if the PangoFont
10371         isn't found.
10372         
10373         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
10374         Free dash_list.
10375
10376         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
10377         Don't leak string.
10378         
10379 2001-01-20  Havoc Pennington  <hp@pobox.com>
10380
10381         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
10382         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
10383         me, matches Pango
10384
10385 2001-01-22  Havoc Pennington  <hp@redhat.com>
10386
10387         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
10388
10389         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
10390
10391         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
10392         Remove, move back to gdk-pixbuf
10393
10394         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
10395         to all the word functions
10396
10397         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
10398         before doing anything on NULL layout or if we don't have the focus
10399
10400         * gtk/testtext.c (fill_example_buffer): "justification"
10401
10402         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
10403         to be called "justification" not "justify"
10404
10405         * demos/gtk-demo/textview.c (create_tags): "justification"
10406         
10407         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
10408
10409 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10410
10411         * gdk/gdkwindow.c (gdk_window_invalidate_region):
10412         Don't leak visible_region. Use visible_region instead of region.
10413         
10414         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10415         Don't do extra gdk_drawable_ref(). This is not X.
10416         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
10417         gdk_fb_focused_window is ref:ed.
10418         (gdk_fb_window_send_crossing_events): Watch out for destroyed
10419         windows.
10420
10421 2001-01-22  Alexander Larsson  <alexl@redhat.com>
10422
10423         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
10424         Don't leak the PangoFontDescriptor.
10425
10426 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
10427
10428         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
10429         when not realized.
10430         (gtk_tree_view_scroll_to_cell): Make work when not realized.
10431         (gtk_tree_view_realize): add scroll_to support
10432         (gtk_tree_view_finalize): add a finalize method.  Populate.
10433         (gtk_tree_view_insert_column): ref and sink the column.
10434         (gtk_tree_view_append_column): ref and sink the column.
10435         (gtk_tree_view_queue_draw_node): New function to handle redrawing
10436         individual nodes.  Should make the code much more efficient, if
10437         actually used.
10438
10439 2001-01-19  Havoc Pennington  <hp@redhat.com>
10440
10441         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
10442         byte_offset variable was being used to mean both "offset into
10443         layout" and "offset into buffer line" which was no longer true
10444         with addition of preedit string; fix
10445
10446 2001-01-19  Havoc Pennington  <hp@redhat.com>
10447
10448         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
10449
10450         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
10451         function
10452
10453         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
10454         implement
10455
10456         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
10457         scroll_to_cell, matches TextView scroll functions better
10458         (gtk_tree_view_tree_to_widget_coords): new function
10459         (gtk_tree_view_widget_to_tree_coords): new function
10460         (gtk_tree_view_get_visible_rect): new function
10461         (gtk_tree_view_get_path_at_pos): accept negative coordinates
10462         (gtk_tree_view_draw_node_focus_rect): new function moved from
10463         draw_focus, also, use width of bin_window as width of the focus
10464         rect
10465         (gtk_tree_view_expand_row): fix bug where it didn't recognize
10466         already-expanded rows
10467         (gtk_tree_view_get_cell_rect): new function
10468         (gtk_tree_view_get_path_at_pos): return the click position
10469         relative to the passed-in cell
10470         (gtk_tree_view_set_expander_column): new function
10471
10472         * configure.in: remove gtk-config-2.0 chmod
10473
10474         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
10475         and properly handle drags with targets we don't understand
10476         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
10477         scrolling anyway
10478         (gtk_text_view_drag_drop): stop scrolling here though, and set the
10479         mark invisible
10480
10481         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
10482         function
10483         (gtk_drag_dest_get_target_list): new function
10484         (gtk_drag_dest_set_target_list): new function
10485         
10486         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
10487
10488         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
10489         related to drag-and-drop
10490
10491 2001-01-19  Alexander Larsson  <alexl@redhat.com>
10492
10493         * gdk/linux-fb/gdkprivate-fb.h:
10494         Define EMULATE_GDKFONT.
10495         Add extra pango_font stuff to GfkFontPrivate.
10496         
10497         * gdk/linux-fb/gdkdrawable-fb2.c:
10498         * gdk/linux-fb/gdkfont-fb.c:
10499         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
10500         emulation using PangoFont.
10501
10502 2001-01-17  Havoc Pennington  <hp@pobox.com>
10503
10504         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
10505         all the non-deprecated set_foo functions. Added missing object
10506         properties, and added g_object_notify() to setters. 
10507         Wrote docs.
10508         
10509 2001-01-18  Tor Lillqvist  <tml@iki.fi>
10510
10511         * gtk/gtkmain.c
10512         * gtk/gtkrc.c: (Win32) Use the new
10513         g_win32_get_package_installation_(sub)directory() functions.
10514
10515         * config.h.win32.in: New file.
10516         
10517         * config.h.win32: Removed.
10518
10519         * configure.in: Output config.h.win32.
10520
10521         * Makefile.am: Add it to EXTRA_DIST.
10522
10523         * gtk/gtk.def: Update.
10524
10525 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
10526
10527         * gtk/gtklabel.c (gtk_label_size_request): Set the
10528         attributes onto the PangoLayout even if they are newly
10529         created from label->pattern.
10530
10531 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
10532
10533         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
10534
10535         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
10536         structures in functions. Fixes bug where gtk_dataset_*
10537         was accidentally still being used in one place, causing
10538         every dest side event to be treated independently.
10539
10540         * gtk/gtkdnd.c: Remove last vestages of handling
10541         ::draw (fixes warning)
10542         
10543         * gtk/gtkentry.[ch]: Add drag and drop support.
10544
10545         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
10546         new function gtk_check_drag_threshhold() for checking
10547         to check if (dx,dy) has exceeded the threshhold for starting
10548         a drag and use it everywhere.
10549
10550 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
10551
10552         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
10553         add -I{includedir}/gtk-2.0.
10554
10555         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
10556         gdk/gdk-pixbuf.h: Doc fixups.
10557         
10558         * gtk/gtkobject.h: Remove trailing , from enum
10559
10560 2001-01-17 Alexander Larsson <alexl@redhat.com> 
10561
10562         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
10563         Doh! Mixed up x and y.
10564
10565         * gdk/linux-fb/gdkglobals-fb.c:
10566         Removed gdk_fb_pointer_grab_window_events,
10567         added _gdk_fb_pointer_grab_owner_events and
10568         _gdk_fb_keyboard_grab_owner_events.
10569
10570         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
10571         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
10572         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
10573         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
10574         Send crossing events after ungrab finished.
10575         (gdk_keyboard_grab): Set ..._owner_events
10576         (type_masks): Move out of function.
10577         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
10578         gdk_fb_keyboard_event_window): New functions, return the
10579         window an event should be targeted at. Handles grabs and
10580         event propagation. Can return NULL.
10581         (gdk_event_make): Remove event_mask checking. Now always
10582         returns an event.
10583                 
10584         * gdk/linux-fb/gdkkeyboard-fb.c:
10585         * gdk/linux-fb/gdkproperty-fb.c:
10586         * gdk/linux-fb/gdkselection-fb.c:
10587         Use new event_window/gdk_event_make() behaviour.
10588         
10589         * gdk/linux-fb/gdkmouse-fb.c:
10590         Use new event_window/gdk_event_make() behaviour.
10591         Only send motion events if in the same window.
10592         If grabbed, use cursor from window if sibling of grabbed
10593         window, and cursor from grabbed window otherwise.
10594
10595         * gdk/linux-fb/gdkprivate-fb.h:
10596         Update gdk_fb_window_send_crossing_events, gdk_event_make
10597         and grab varaible declarations. Add gdk_fb_*_event_window().
10598
10599         * gdk/linux-fb/gdkwindow-fb.c:
10600         Use new event_window/gdk_event_make() behaviour.
10601         Keep correct track of focus window.
10602         (gdk_window_set_events): Set all specific button motion masks
10603         if GDK_BUTTON_MOTION_MASK set.
10604
10605         * gtk/gtkdnd.c (gtk_drag_update):
10606         Free info->last_event if gdk_drag_motion returned FALSE.
10607
10608 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10609
10610         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
10611         Eliminate redraws when input-only windows are shown or
10612         hidden. Thanks to jpe@archaeopteryx.com.
10613
10614 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
10615
10616         * docs/faq/gtk-faq.sgml: FAQ update:
10617           - Update to bugzilla
10618           - Add GTK+ and security/SUID/SGID
10619           - Add DnD question
10620
10621 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
10622
10623         * gdk/linux-fb/gdkdnd-fb.c:
10624         Some cleanups.
10625         
10626 2001-01-15  Havoc Pennington  <hp@pobox.com>
10627
10628         * tests/testtreeview.c: add test stuff for CellRendererToggle
10629
10630         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
10631         accessor
10632
10633         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
10634         only toggle on button press (would do release like GtkButton, but
10635         we'd need implicit grab code for treeview cells)
10636
10637 2001-01-16  Tor Lillqvist  <tml@iki.fi>
10638
10639         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
10640
10641         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
10642         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
10643
10644         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
10645         to g_{locale,filename}_{to,from}_utf8 to match current API.
10646
10647         * gtk/makefile.msc.in (gtk_OBJECTS)
10648         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
10649
10650         * gtk/gtk.def: Update.
10651
10652 2001-01-15  Tor Lillqvist  <tml@iki.fi>
10653
10654         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
10655         implementaion that more closely mimics the events that an X server
10656         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
10657         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
10658         with nested preview widgets, for instance, more responsive when
10659         you move the mouse quickly into them.
10660         (find_window_for_pointer_event): Make it actually compile.
10661         (gdk_event_translate): Set send_event to the value of
10662         InSendMessage (). This doesn't really mean the same as X11's
10663         send_event flag, but is close enough, says jpe@archaeopteryx.com
10664
10665 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10666
10667         * gdk/linux-fb/gdkdnd-fb.c:
10668         Implemented drag and drop.
10669         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
10670         when it tries to free and then copy the same event (info->last_event).
10671         I am not sure about why this happens, but will continue looking.
10672
10673 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10674
10675         * gdk/linux-fb/gdkwindow-fb.c:
10676         Use gdk_window_invalidate_rect instead of
10677         gdk_window_invalidate_rect_clear to minimise flashing.
10678         When hiding windows you need to clear the root window though.
10679
10680 2001-01-15  Alexander Larsson  <alexl@redhat.com>
10681
10682         * gdk/linux-fb/gdkdrawable-fb2.c:
10683         For optization, add an full_shapes argument to gdk_fb_clip_region.
10684         If this is false, only the cliprects of the shapes are used.
10685
10686         * gdk/linux-fb/gdkprivate-fb.h:
10687         Export gdk_fb_window_peek_shape.
10688         Add full_shapes to gdk_fb_clip_region.
10689
10690         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
10691         When moving a window, don't clear everything under the it, just the
10692         root window. Makes stuff faster and flash less.
10693         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
10694         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
10695         offset of the shape.
10696         
10697
10698 2001-01-12  Havoc Pennington  <hp@redhat.com>
10699
10700         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
10701         current invalid region, fixes redraw bug while scrolling the 
10702         text widget
10703
10704         * gtk/gtktextview.c, gtk/gtktextview.h:
10705         Rearrange the scrolling/validation/etc. code in a major way, 
10706         so it seems to make sense to me. Probably isn't genuinely that
10707         much better, but...
10708
10709         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
10710         notifies
10711
10712         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
10713
10714 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
10715
10716         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
10717         Hide mouse pointer while rotation. Show it afterwards.
10718
10719 2001-01-12  Alexander Larsson  <alexl@redhat.com>
10720
10721         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
10722         windows in consideration when generating clip region.
10723
10724         * gdk/linux-fb/gdkfb.h:
10725         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
10726
10727         * gdk/linux-fb/gdkprivate-fb.h:
10728         Add shape to GdkWindowFBDatat.
10729         exported gdk_fb_window_get_abs_shape().
10730         removed gdk_fb_draw_lines declaration.
10731
10732         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
10733         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
10734         send focus changes when there is a grabbed window.
10735         (gdk_window_get_pointer): Handle shaped windows.
10736         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
10737         (gdk_fb_window_peek_shape): Returns the shape for a window,
10738         handles GDK_FB_USE_CHILD_SHAPE.
10739         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
10740         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
10741         (gdk_window_shape_combine_mask): Implement.
10742
10743         * gtk/gtkwindow-decorate.c:
10744         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
10745         setting the shape of a window makes the window transparent.
10746
10747 2001-01-11  Havoc Pennington  <hp@redhat.com>
10748
10749         * gtk/gtktreemodelsimple.h: Oops, broke some macros
10750
10751 2001-01-10  Havoc Pennington  <hp@redhat.com>
10752
10753         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
10754         add this function, bug 40251
10755
10756         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
10757         of type macro   
10758
10759 2001-01-11  Alexander Larsson  <alexl@redhat.com>
10760
10761         * acconfig.h:
10762         Added ENABLE_SHADOW_FB
10763
10764         * configure.in:
10765         Added --disable-shadowfb
10766
10767         * gdk/linux-fb/gdkcursor-fb.c:
10768         Update shadowfb when updating cursor
10769
10770         * gdk/linux-fb/gdkdrawable-fb2.c:
10771         Added wrappers for shadowfb that calls  the normal drawable
10772         methods, but calls gdk_shadow_fb_update(bounding box) when
10773         GdkWindows are drawed to.
10774         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
10775         which also returns the bounding box.
10776
10777         * gdk/linux-fb/gdkfb.h:
10778         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
10779
10780         * gdk/linux-fb/gdkgeometry-fb.c:
10781         Update shadowfb when scrolling window.
10782
10783         * gdk/linux-fb/gdkglobals-fb.c:
10784         Add _gdk_fb_screen_angle.
10785         
10786         * gdk/linux-fb/gdkkeyboard-fb.c:
10787         Test code for screen rotation. Shift-F2 in the xlate driver
10788         rotates the screen.
10789
10790         * gdk/linux-fb/gdkmain-fb.c:
10791         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
10792
10793         * gdk/linux-fb/gdkmouse-fb.c:
10794         Use fb_width/height instead of modeinfo.xres/yres.
10795
10796         * gdk/linux-fb/gdkprivate-fb.h:
10797         Added fb_men, fb_width, fb_height & fb_stride. When using
10798         shadow fb these can differ from the framebuffer stuff.
10799         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
10800         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
10801         _gdk_fb_screen_angle. Removed CM, RP.
10802
10803         * gdk/linux-fb/gdkrender-fb.c:
10804         Added code for shadowfb handling and screen rotation using
10805         shadowfb.
10806
10807         * gdk/linux-fb/gdkwindow-fb.c:
10808         Use fb_mem, fb_stride, fb_width, fb_height.
10809         Added recompute_rowstride to reset the rowstride of all windows.
10810         Added gdk_fb_recompute_all() which recomputes rootwindow size,
10811         window abs positions and window rowstrides. Usefull when the
10812         rotation has changed.
10813
10814 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
10815
10816         * docs/faq/gtk-faq.sgml: update to make web site updating easier
10817
10818 2001-01-10  Havoc Pennington  <hp@redhat.com>
10819
10820         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
10821         where sibling == iter
10822         (gtk_tree_store_insert_after): handle sibling == iter
10823         (gtk_tree_store_prepend): remove stamp checks
10824         (gtk_tree_store_insert_before): ditto
10825         (gtk_tree_store_append): ditto
10826         (gtk_tree_store_get_path): ditto
10827         (gtk_tree_store_get_value): ditto
10828         (gtk_tree_store_iter_has_child): ditto
10829         (gtk_tree_store_iter_n_children): ditto
10830         (gtk_tree_store_iter_nth_child): ditto
10831         (gtk_tree_store_insert_after): ditto
10832         (gtk_tree_store_is_ancestor): ditto
10833         (gtk_tree_store_iter_depth): ditto
10834         (gtk_tree_store_insert_before): assert that sibling's parent is
10835         the same as the passed-in parent
10836         (gtk_tree_store_insert_after): assert that sibling's parent is
10837         the same as the passed-in parent
10838
10839         
10840         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
10841         function to get the first iterator in a model
10842         
10843         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
10844         conventionally the "root" in this sense is just NULL afaict.
10845
10846         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
10847         where sibling == iter
10848         (gtk_list_store_insert_after): handle case where sibling == iter
10849
10850         * tests/testtreeview.c (run_automated_tests): fairly lame basic
10851         automated tests for ListStore, TreeStore
10852
10853         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
10854         (gtk_list_store_insert): update tail pointer, and fix it to work
10855         (gtk_list_store_insert_before): update tail pointer, and fix it to work
10856         (gtk_list_store_append): use tail to be faster
10857         (gtk_list_store_prepend): fix it, update tail pointer
10858         (gtk_list_store_insert_after): fix it, update tail pointer
10859
10860         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
10861         the list
10862
10863 2001-01-09  Havoc Pennington  <hp@redhat.com>
10864
10865         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
10866         is NULL due to a pending resize
10867
10868         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
10869         column width to values less than 1
10870
10871         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
10872         width to be between min/max width, and still set the width 
10873         even if autosize is turned on, so the tree view can use this 
10874         function in order to autosize.
10875         (gtk_tree_view_column_init): set initial width to 1 not 0
10876
10877         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
10878         setter function to modify column width, so we get notification
10879         (gtk_tree_view_insert_iter_height): ditto
10880         (gtk_tree_view_calc_size): ditto
10881         (gtk_tree_view_check_dirty): ditto
10882
10883         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
10884         properties to change all the interesting attributes of the tree
10885         view column.
10886         (gtk_tree_view_column_set_header_clickable): rename set_clickable
10887         (gtk_tree_view_column_get_clickable): add
10888         (gtk_tree_view_column_set_cell_renderer): don't unset the current
10889         attributes; assume a cell renderer with equivalent object
10890         properties has been swapped in. Do g_object_notify().
10891         (gtk_tree_view_column_set_visible): g_object_notify
10892         (gtk_tree_view_column_get_sizing): rename from get_col_type
10893         (gtk_tree_view_column_set_sizing): g_object_notify
10894         (gtk_tree_view_column_set_width): add g_object_notify
10895         (gtk_tree_view_column_set_min_width): ditto
10896         (gtk_tree_view_column_set_max_width): ditto
10897         (gtk_tree_view_column_set_title): ditto
10898         (gtk_tree_view_column_set_clickable): ditto
10899         (gtk_tree_view_column_set_widget): ditto
10900         (gtk_tree_view_column_set_justification): ditto
10901
10902 2001-01-09  Havoc Pennington  <hp@redhat.com>
10903
10904         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
10905         there are no rows in the model
10906
10907         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
10908         NULL, then return the start of the list
10909
10910         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
10911         if we can't get any rows from an empty model 
10912
10913         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
10914         extraneous * after function pointer typedef usage
10915
10916         * Makefile.am: don't specify full path to cp and rm
10917
10918         * gtk/gtkcellrenderertextpixbuf.c
10919         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
10920         NULL before dereferencing, fixes a segfault that happened from
10921         time to time
10922
10923         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
10924         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
10925         and reindent the function
10926         (gtk_cell_renderer_pixbuf_get_size): indentation
10927
10928         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
10929         we quit it
10930         (gtk_dialog_add_buttons_valist): add g_return_if_fail
10931         (gtk_dialog_set_default_response): New function, to set default
10932         button
10933         (gtk_dialog_set_response_sensitive): New function, to set 
10934         sensitivity of buttons
10935
10936         * gtk/gtkcellrendererpixbuf.c
10937         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
10938         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
10939
10940         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
10941         handle any G_TYPE_OBJECT subclass, not just the base class, and 
10942         also boxed types.
10943         (_gtk_tree_data_list_value_to_node): ditto
10944
10945         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
10946         --gtk-debug=tree
10947
10948         * gtk/gtkmain.c: add GTK_DEBUG_TREE
10949
10950         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
10951
10952 2001-01-09  Tor Lillqvist  <tml@iki.fi>
10953
10954         * gdk/win32/gdkevents-win32.c: Implement better mouse
10955         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
10956         (find_window_for_pointer_event): New function.
10957         (gdk_event_translate): Use it when handling mouse events.
10958
10959 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
10960
10961         * configure.in:
10962         Added --with-included-loaders option
10963
10964         * gdk-pixbuf/Makefile.am:
10965         * gdk-pixbuf/gdk-pixbuf-io.c:
10966         Add support for including selected gdk-pixbuf loaders only.
10967
10968         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
10969         gtk_window_set_has_frame):
10970         Added inline documentation.
10971
10972         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
10973         * docs/reference/gdk/tmpl/windows.sgml:
10974         Added inline documentation.
10975
10976 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
10977
10978         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
10979         realizing buttons that have already been realized.
10980
10981 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
10982
10983         * tests/testtreeview.c (main): Show menu items before adding to
10984         option menu.
10985
10986         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
10987         around if we kill them.
10988
10989         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
10990         Return if we pass in a NULL model.
10991
10992 2001-01-08  Havoc Pennington  <hp@redhat.com>
10993
10994         * tests/testtreeview.c: hack on this some
10995
10996         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
10997         gtk_tree_store_set_valist, v is for arrays, valist for varargs
10998         list
10999         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
11000
11001         * gtk/gtkliststore.h: Add varargs set() and get() convenience
11002         functions
11003
11004 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11005
11006         * gtk/gtkwindow-decorate.[hc]:
11007         * gtk/Makefile.am:
11008         New files. Contains an implementation of a minimal WM for
11009         linux-fb.
11010
11011         * gtk/gtkwindow.h:
11012         Add the possibility for GtkWindows to specify a frame. This
11013         is used for the window decoration code, but could concievably
11014         be used for X programs too (xmms style windows).
11015         GtkWindow->frame is the toplevel window if the window is framed.
11016         The signal frame_event gets all events that are targeted to
11017         GtkWindow->frame.
11018         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
11019         
11020         * gtk/gtkwindow.c:
11021         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
11022         Call out to gtkwindow-decorate.c for WM support in linx-fb.
11023
11024 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11025
11026         * docs/README.linux-fb:
11027         Correct filename ~/.pangoft2_aliases
11028
11029         * gdk/gdkwindow.h:
11030         Added new function gdk_window_get_decorations.
11031
11032         * gdk/linux-fb/gdkfb.h:
11033         Removed _gdk_window_get_decorations declaration.
11034         Renamed _gdk_window_set_child_handler to
11035         gdk_fb_window_set_child_handler.
11036
11037         * gdk/linux-fb/gdkwindow-fb.c:
11038         Renamed _gdk_window_set_child_handler to
11039         gdk_fb_window_set_child_handler.
11040
11041         * gdk/x11/gdkwindow-x11.c:
11042         New function gdk_window_get_mwm_hints().
11043         Implemented gdk_window_get_decorations.
11044
11045         * docs/reference/gdk/tmpl/windows.sgml:
11046         * docs/reference/gdk/gdk-sections.txt:
11047         Added gdk_window_get_decorations docs.
11048         
11049 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
11050
11051         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
11052         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
11053         gdk_fb_window_send_crossing_events):
11054         Possibly send focus events when the mouse moves from one
11055         window to another.
11056
11057 2001-01-07  Tor Lillqvist  <tml@iki.fi>
11058
11059         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
11060         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
11061         to match current API.
11062
11063         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
11064         environment variable is set, don't call g_error when on a
11065         palettized (PseudoColor) display. Some people want to use GTK+ 
11066         in 256-colour mode even though works only partially.
11067
11068         * gdk/gdk.def
11069         * gtk/gtk.def
11070         * gtk/makefile.mingw.in: Update.
11071
11072 2001-01-05  Havoc Pennington  <hp@redhat.com>
11073
11074         * tests/testtreeview.c: hack on this a bit
11075
11076         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
11077         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
11078
11079         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
11080         was spelled incorrectly
11081         (GTK_IS_TREE_MODEL_SIMPLE): ditto
11082
11083         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
11084         from gtk_tree_view_set_headers_active   
11085
11086         * gtk/gtktexttag.c:
11087         (gtk_text_tag_get_property): handle PROP_DIRECTION
11088         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
11089         properties, bug 40235
11090
11091         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
11092         forward_to_line_end
11093
11094 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
11095
11096         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
11097         modules/input/gtkimcontextxim.c: Adapt to new prototypes
11098         for unicode,locale,filename conversion functions.
11099
11100 2001-01-05  Havoc Pennington  <hp@redhat.com>
11101
11102         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
11103         broken if called on the first position in the buffer.
11104
11105         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
11106         forward_to_delimiters to be called only if we aren't already at
11107         the delimiters.
11108
11109 2001-01-05  Havoc Pennington  <hp@redhat.com>
11110
11111         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
11112
11113 2001-01-05  Alexander Larsson  <alexl@redhat.com>
11114
11115         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
11116         colormap in here. Sync from X port.
11117         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
11118         Sync from X port.
11119         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
11120         This happens now and then, and i don't think it is a bug.
11121         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
11122         != endpoint.
11123         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
11124         GDK_LINE_SOLID.
11125
11126         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
11127         some of the fields filled in at least.
11128
11129         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
11130         miLineArcD is no more, remove it from the function definition.
11131
11132 2001-01-04  Havoc Pennington  <hp@redhat.com>
11133
11134         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
11135         this
11136
11137         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
11138         user_data instead of tree_node
11139
11140         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
11141         TREE_VIEW_COLUMN_SIZE
11142
11143         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
11144         "size" field to "width" finishes bug 40061
11145
11146         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
11147         for bitfields, bug 40268
11148
11149 2001-01-04  Havoc Pennington  <hp@redhat.com>
11150
11151         Rename some stuff:
11152         
11153         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
11154
11155         s/GtkModelSimple/GtkTreeModelSimple/g;
11156         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
11157         s/gtk_model_simple/gtk_tree_model_simple/g;
11158         s/gtkmodelsimple/gtktreemodelsimple/g;
11159
11160         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
11161
11162         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
11163         s/column_set_col_type/column_set_sizing/g;
11164
11165         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
11166         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
11167
11168         s/GtkCellRendererType/GtkCellRendererState/g;
11169         
11170         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
11171         (gtk_cell_renderer_toggle_class_init): change "state" property to
11172         "active", to match GtkToggleButton
11173         (gtk_cell_renderer_toggle_get_active): new function, bug
11174         40269
11175         (gtk_cell_renderer_toggle_set_active): new function
11176         (gtk_cell_renderer_toggle_set_property): route changes to toggle
11177         state through gtk_cell_renderer_set_active
11178
11179 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
11180
11181         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
11182         temporarily until they work again.  Brought up to date with
11183         changes in the model.
11184         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
11185         model.
11186
11187 2001-01-04  Havoc Pennington  <hp@redhat.com>
11188
11189         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
11190         equal to the line length, then position iterator before paragraph 
11191         separators. Fixes crash reported by Mikael Hermansson when
11192         pressing left arrow from the start of a line.   
11193
11194         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
11195         about byte indexes off the end
11196         (iter_set_from_char_offset): add g_error about char offsets
11197         off the end
11198
11199 2001-01-03  Havoc Pennington  <hp@redhat.com>
11200
11201         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
11202
11203         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
11204         of private functions; remove inclusion of private headers.
11205
11206         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
11207         function, so we don't need private functions in gtktextdisplay.c
11208
11209         * gtk/gtktextiterprivate.h: underscore-ification
11210
11211         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
11212         to instead say "only useful to implement widgets"
11213
11214         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
11215         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
11216         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
11217
11218         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
11219         This function was completely broken
11220
11221         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
11222
11223         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
11224
11225         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
11226
11227         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
11228
11229         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
11230
11231         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
11232
11233         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
11234         gtk_paint_layout
11235
11236         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
11237         gtk_paint_layout
11238
11239         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
11240         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
11241         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
11242         which were not implemented.     
11243
11244         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
11245         insert_pixbuf signal. Rename delete_text to delete_range since it
11246         also deletes pixbufs and child anchors. This almost closes bug
11247         40245 (still need to deal with child anchors)
11248
11249         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
11250         insert_pixbuf, change signal names as appropriate, change types of
11251         signals taking marks/tags to have the specific type, not just
11252         G_TYPE_OBJECT
11253         
11254         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
11255         closes bug 40051
11256
11257         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
11258         unnecessary remove_contents() call
11259         (gtk_option_menu_class_init): add a "changed" signal, closes
11260         bug 40039
11261         (gtk_option_menu_update_contents): emit "changed" if the 
11262         active menu item changes
11263
11264         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
11265         cast to GtkObject, reported by Jonas Borgstrom
11266         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
11267         we can't do stuff with side effects in finalize. Instead, spew a
11268         warning if the loader isn't closed.
11269
11270         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
11271         colormap in here, non-X ports probably need to sync to this change
11272
11273         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
11274         assertion that colormap != NULL, you can set the colormap to NULL
11275         if you like.
11276         
11277         * Makefile.am: remove gtk-config-2.0
11278
11279         * configure.in: Use pkg-config to locate GLib. Remove
11280         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
11281         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
11282         Use pkg-config to locate Pango. Output correct Pango libs to
11283         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
11284
11285         * Makefile.am (pkgconfig_DATA): install only target-specific pc
11286         files
11287         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
11288         X11 pc files
11289
11290         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
11291         unref from here
11292
11293 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
11294
11295         * configure.in:
11296         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
11297
11298 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
11299
11300         * gtk/gtktextlayout.c
11301         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
11302         variable when moving back onto a single line.
11303
11304 2001-01-01  Havoc Pennington  <hp@redhat.com>
11305
11306         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11307
11308         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
11309
11310         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
11311         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
11312
11313 2001-01-01  Havoc Pennington  <hp@redhat.com>
11314
11315         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
11316
11317         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
11318         GtkTextAttributes
11319
11320         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
11321         #40246
11322         (gtk_text_attributes_copy_values): rename from 
11323         gtk_text_attributes_copy
11324         (gtk_text_attributes_copy): a more standard GTK copy function, 
11325         which returns a new object
11326
11327 2001-01-01  Havoc Pennington  <hp@redhat.com>
11328
11329         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
11330         
11331         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
11332         don't fill in tree_view->priv->selection, kind of an unexpected
11333         side effect
11334
11335         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
11336         gtkintl.h
11337         
11338         * gtk/gtkcellrenderer.c: Remove definition of _ and include
11339         gtkintl.h
11340         (gtk_cell_renderer_get_property): remove calls to g_value_init
11341
11342         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
11343         gtkintl.h
11344
11345         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
11346         and include gtkintl.h
11347         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
11348         property names
11349
11350         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
11351         GtkTreeSelection
11352         (_gtk_tree_selection_new_from_with_view): rename, return
11353         GtkTreeSelection
11354         (_gtk_tree_selection_set_tree_view): rename with uscore
11355         (gtk_tree_selection_get_selected): fill in the "model" out param
11356         first, so it gets filled in even if we return at the top of the 
11357         function
11358         (gtk_tree_selection_real_select_all): add a comment and an else{}
11359         to clarify this a bit
11360         (gtk_tree_selection_real_unselect_all): add the same else{}
11361
11362         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
11363         set_tree_view to have underscore prefixes, move them to the
11364         private header, fix return type of new_with_tree_view
11365         (struct _GtkTreeSelection): mark struct
11366         fields private  
11367
11368         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
11369         GtkTreeModelFlags, not a guint
11370         (gtk_tree_path_prev): return gboolean not gint
11371         (gtk_tree_path_up): return gboolean not gint
11372
11373         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
11374         return GtkTreeModelFlags, not a guint
11375
11376         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
11377         that child model is non-null before unrefing it
11378         (g_value_int_compare_func): make this a qsort compare func, not 
11379         a boolean predicate
11380
11381         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
11382         (add -umn to the end), and mark it unimplemented
11383         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
11384         I don't see what it's for - doesn't the model always sort itself?
11385         (gtk_tree_model_sort_set_compare): this had the wrong signature
11386
11387         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
11388         Fix the docs to say that it destructively replaces existing
11389         attributes (previously said that it added attributes).
11390         (gtk_tree_view_column_set_visible): canonicalize bool before
11391         equality testing. Also, check for realization before
11392         hiding/showing the tree_column->window; if this window could exist
11393         before realization, then it's busted and needs fixing, we can't 
11394         create GDK resources pre-realization. Also, remove
11395         superfluous queue_resize(), since set_size() does that for us.
11396         (gtk_tree_view_column_set_col_type): check realization before 
11397         using tree_column->window
11398
11399         * gtk/gtktreedatalist.c: fix filename in copyright notice
11400
11401 2000-12-31  Havoc Pennington  <hp@pobox.com>
11402
11403         * gtk/gtktextview.c: Rearrange all the
11404         scroll-while-dragging-or-selecting code to be different, not
11405         necessarily better. ;-)
11406         (gtk_text_view_scroll_to_mark): Change this
11407         function to take within_margin as a fraction instead of a pixel
11408         value, and to take alignment arguments (indicating where to align 
11409         the mark inside the visible area)
11410         
11411         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
11412         to GtkObject
11413
11414         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
11415         behavior so that offsets past the end of the line are not 
11416         allowed, and an offset equal to the line length moves the iterator
11417         to the next line
11418         (gtk_text_iter_set_line_index): make parallel change
11419         (gtk_text_iter_get_bytes_in_line): add this function
11420         
11421         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
11422         of byte indexes off the end of the line; byte index at the end of
11423         the line now returns FALSE and doesn't fill in the requested
11424         values, byte index past the end of the line is an error.  Also,
11425         don't allow -1 offset anymore, since its meaning is unclear.
11426
11427         This change exposes some bug in visual cursor motion, where we
11428         end up with a huge invalid byte index; needs fixing. Symptom of 
11429         bug is a crash when you hit up arrow.
11430         
11431         (_gtk_text_line_char_locate): match the change to byte_locate
11432
11433         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
11434         from start of line properly. fixes bug reported by Mikael
11435         Hermansson where backspace would delete all text before the
11436         cursor.
11437
11438 2000-12-30  Tor Lillqvist  <tml@iki.fi>
11439
11440         * gdk/win32/gdkwindow-win32.c
11441         (gdk_window_impl_win32_get_visible_region): New function, as in
11442         the X11 backend.
11443         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
11444         instead of duplicating the same code here.
11445
11446         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
11447         GDK_COLORMAP macro.
11448
11449         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
11450         destroy function.
11451         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
11452         access that.
11453
11454         * gtk/gtk.def: Update.
11455
11456         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
11457
11458 2000-12-30  Havoc Pennington  <hp@pobox.com>
11459
11460         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
11461         colormap on input only windows, to avoid special cases all over
11462         the code for these windows.
11463
11464 2000-12-26  Tor Lillqvist  <tml@iki.fi>
11465
11466         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
11467         we are on a palettized display ("PseudoColor" in X11), as the code
11468         for that doesn't work anyway, and never has.
11469
11470 2000-12-22  Alexander Larsson  <alexl@redhat.com>
11471
11472         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
11473         Don't use isprint() for chars > 255.
11474
11475 2000-12-21  Havoc Pennington  <hp@redhat.com>
11476
11477         * tests/testtreeview.c: more work
11478
11479 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11480
11481         * docs/README.linux-fb:
11482         Update the docs to the new pangoft2 way.
11483
11484 2000-12-21  Alexander Larsson  <alexl@redhat.com>
11485
11486         * configure.in:
11487         For linux-fb get the pangoft2 cflags and libs. This needs a recent
11488         pango version.
11489         Remove modules/linux-fb/Makefile.
11490
11491         * gdk/linux-fb/gdkdrawable-fb2.c:
11492         Render glyphs using freetype.
11493
11494         * gdk/linux-fb/gdkfb.h:
11495         Add new fb-specific functions needed for managing windows.
11496
11497         * gdk/linux-fb/gdkmain-fb.c:
11498         Remove gdk_font_init/fini() calls.
11499
11500         * gdk/linux-fb/gdkpango-fb.c:
11501         Remove old implementation. Use pangoft2 instead.
11502
11503         * gdk/linux-fb/gdkprivate-fb.h:
11504         Remove PangoFBFont and related stuff.
11505
11506         * gdk/linux-fb/gdkwindow-fb.c:
11507         Implement drawable->get_visible_region.
11508         Implement support for _gdk_window_set_child_handler () and
11509         _gdk_window_get_decorations().
11510
11511         * modules/Makefile.am:
11512         Remove linux-fb subdir.
11513
11514         * modules/linux-fb/*:
11515         Removed all.
11516         
11517 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
11518
11519         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
11520         calls, as they are no longer needed.
11521
11522         * gtk/gtktreemodelsort.c: Fix up the comparison code.
11523         
11524         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
11525         figure out how to emit a signal on an interface.
11526
11527 2000-12-20  Havoc Pennington  <hp@redhat.com>
11528
11529         * tests: new directory to contain tests, gtk/test* should move
11530         here sometime (with appropriate on-cvs-server hackery)
11531
11532         * tests/testtreeview.c, tests/Makefile.am: a test
11533         
11534         * configure.in (AC_OUTPUT): add tests/Makefile
11535
11536         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
11537         and "invisible_set" which were missing
11538
11539         * gtk/gtkrbtree.h: some cheesy indentation fix
11540         
11541 2000-12-20  Alexander Larsson  <alexl@redhat.com>
11542
11543         * gtk/gtkinvisible.c (gtk_invisible_realize):
11544         Attach the style to the window so that the style it is not
11545         leaked when unrealizing the window.
11546
11547 2000-12-18  Havoc Pennington  <hp@redhat.com>
11548
11549         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
11550         begin/end user action where appropriate
11551         (gtk_text_view_commit_handler): add begin/end user action
11552
11553         * gtk/gtktextbuffer.c: add begin/end user action signals, and
11554         bracket interactive operations with begin/end user action pair.
11555         
11556         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
11557         "interactive" arg from insert_text and delete_text signals.
11558         Add begin_user_action, end_user_action signals
11559         (gtk_text_buffer_begin_user_action): 
11560         (gtk_text_buffer_end_user_action): New functions to delimit 
11561         a user-visible action
11562
11563         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
11564         signals.
11565         
11566 2000-12-18  Havoc Pennington  <hp@redhat.com>
11567
11568         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
11569         was pretty non-working.
11570
11571         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
11572         by passing the length to g_utf8_validate().
11573
11574 2000-12-16  Havoc Pennington  <hp@pobox.com>
11575
11576         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
11577         Port to GObject, can go back in gdk-pixbuf after setting up 
11578         a gdk-pixbuf-marshal.h header over there.
11579
11580         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
11581         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
11582         args
11583         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
11584         set
11585         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
11586         here, do it when we create the buttons later
11587         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
11588         (gtk_tree_view_map): paranoia checks that column->button is shown 
11589         and unmapped
11590         (gtk_tree_view_size_request): only request visible children.
11591         Move header size calculation in here, for cleanliness, and 
11592         to maintain invariants for child widgets if we eventually 
11593         let users set different children inside the buttons
11594         (gtk_tree_view_map_buttons): factor out code to map buttons,
11595         since it was being called several times
11596         (gtk_tree_view_size_allocate_buttons): move_resize the drag
11597         windows instead of just moving them; their height may change 
11598         if we allow random widgets in there, or the theme changes.
11599         (gtk_tree_view_size_allocate): move button size allocation 
11600         above emitting the scroll signals, to ensure a sane state when we
11601         hit user code
11602         (gtk_tree_view_button_release): remove queue_resize after
11603         tree_view_set_size(), set_size() will handle any resize queuing
11604         that's needed
11605         (gtk_tree_view_focus_in): just queue a draw, don't fool with
11606         draw_focus goo
11607         (gtk_tree_view_focus): use gtk_get_current_event() and
11608         gdk_event_get_state()
11609         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
11610         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
11611         semicolon
11612         (gtk_tree_view_create_button): show the button here
11613         (gtk_tree_view_button_clicked): actually emit the clicked signal
11614         on the column
11615         (_gtk_tree_view_set_size): return right away if the size is
11616         unchanged, as a cheesy optimization
11617         (gtk_tree_view_setup_model): rename set_model_realized to 
11618         setup_model to match the flag that indicates whether we've 
11619         called it
11620         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
11621         exist, because set_scroll_adjustment does that and it shouldn't
11622         matter what order you call these in
11623         (gtk_tree_view_get_vadjustment): ditto
11624         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
11625         for paranoia
11626         (gtk_tree_view_set_headers_visible): call
11627         gtk_tree_view_map_buttons() instead of using cut-and-paste code
11628         (gtk_tree_view_append_column): clarify whether the return value
11629         is the count of columns before or after, and do the increment 
11630         separately from the return statement so you can tell from the code.
11631         (gtk_tree_view_remove_column): ditto
11632         (gtk_tree_view_insert_column): ditto
11633         (gtk_tree_view_get_column): remove g_return_if_fail for columns
11634         outside the existing range, the docs say that outside-range
11635         columns are allowed, so we handle them as documented. (Presumably
11636         this allows a nice loop with column != NULL as test.)
11637         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
11638         mean (left/right/center etc.).
11639         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
11640         (gtk_tree_view_expand_row): add docs
11641         (gtk_tree_view_collapse_row): add docs
11642
11643         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
11644         function to emit the clicked signal on a column
11645         
11646         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
11647         state of an event
11648         (gdk_event_get_time): don't treat GDK_SCROLL 
11649         as a button event, remove default case from switch so gcc 
11650         will whine if we don't explicitly handle all event types
11651
11652         * gtk/gtktreeselection.h: added some FIXME 
11653         
11654         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
11655         "columns" to "n_columns" and "column" to "columns" for clarity
11656
11657 2000-12-16  Havoc Pennington  <hp@pobox.com>
11658         
11659         * gtk/gtktextiter.c: General cleanup of the log attr iteration
11660         stuff. This should make e.g. the delete key work again in the
11661         text widget...
11662         (gtk_text_iter_forward_cursor_positions): handle negative count
11663         (gtk_text_iter_backward_cursor_positions): handle negative count
11664         (gtk_text_iter_forward_word_ends): handle negative count
11665         (gtk_text_iter_backward_word_starts): handle negative count
11666
11667         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
11668         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
11669         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
11670         GObject. No doubt will cause breakage.
11671
11672         * demos/gtk-demo/textview.c: remove hacks around
11673         non-GObject-ification of the text objects
11674
11675         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
11676         the text tag
11677         
11678 2000-12-14  Havoc Pennington  <hp@pobox.com>
11679
11680         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
11681         that we have Xrender
11682
11683 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
11684
11685         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
11686         Add two virtualized functions gdk_drawable_get_clip_region - to
11687         get the clip region when drawing.
11688         
11689         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
11690         use invalidate_region.
11691
11692         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
11693         region.
11694
11695         * acconfig.h configure.in: Check for Xft. For now, assume
11696         that if Xft is found, Pango was compiled with Xft support
11697         as well.
11698
11699         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
11700         gdk_colormap_query_color().
11701         
11702         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
11703         with Xft if appropriate.
11704
11705         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
11706         a pangoxft context if we have XFT and the environment
11707         variable GD_USE_XFT is set.
11708         
11709         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
11710         and also possibly an XftDraw structure.
11711
11712         * gtk/gtkfontsel.c: Handle the case where the font from the
11713         style doesn't match any of the fonts a bit better.
11714         
11715         * gtk/testgtk.c: Add tabs between directional segments for
11716         hebrew/arabic test. (Not really necessary, just a little
11717         prettier.)
11718
11719 2000-12-14  Havoc Pennington  <hp@redhat.com>
11720
11721         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
11722         reading a file
11723
11724 2000-12-14  Havoc Pennington  <hp@redhat.com>
11725
11726         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
11727         unused call to get_last_line()
11728
11729         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
11730         here until boxed is working (and maybe after that - we should
11731         really not gratuitously break old code)
11732
11733         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
11734         specific types for font_desc and tabs args, move them to
11735         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
11736         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
11737
11738         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
11739         use GTK_TYPE_POINTER for signal signatures as a hack-around
11740
11741         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
11742         PangoTabArray
11743
11744         * gtk/gtktextlayout.c (line_display_iter_to_index): 
11745         make static
11746         (line_display_index_to_iter): make static
11747
11748         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
11749         to marshal a string not a boxed
11750
11751         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
11752
11753         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
11754         since the UTF-8 isn't validated yet
11755
11756         * gtk/gtktextsegment.c (char_segment_check_func): don't require
11757         lines to end in '\n'
11758         
11759         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
11760         forward_to_delimiters, and grapheme boundaries
11761         (gtk_text_view_delete_from_cursor): properly handle non-newline
11762         delimiters, and grapheme boundaries
11763
11764         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
11765         to gtk_text_iter_forward_to_delimiters, and make it work properly
11766         if empty lines end with a character other than '\n'
11767
11768         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
11769         position
11770
11771 2000-12-15  Tor Lillqvist  <tml@iki.fi>
11772
11773         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
11774
11775         * gtk/gtk.def
11776         * gdk/gdk.def: Update.
11777
11778         * gdk/win32/gdkmain-win32.c
11779         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
11780         gdkmain-win32.c here.
11781
11782         * gdk/win32/makefile.mingw.in (all): No need to make
11783         gdk-win32res.o here, the makefile one step up will call us to make
11784         it.
11785
11786         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
11787         gdkkeys-win32.
11788
11789         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
11790
11791         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
11792         call to g_source_add().
11793
11794         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
11795         leak. Thanks to Andreas Kemnade.
11796
11797 2000-12-13  Havoc Pennington  <hp@pobox.com>
11798
11799         * gtk/gtktextbtree.h: Remove double _ in front of some functions
11800
11801         * gtk/gtktext*.[hc]: update accordingly
11802         
11803 2000-12-13  Havoc Pennington  <hp@pobox.com>
11804
11805         * gtk/gtktextbtree.h: Put _ in front of every function in this 
11806         header file
11807
11808         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
11809
11810 2000-12-13  Alex Larsson  <alexl@redhat.com>
11811
11812         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
11813         Add support for ps2 intellimouse.
11814
11815         * gdkkeyboard-fb.c:
11816         Move shift-F1 repaint handling to xlate handler only.
11817         
11818         * docs/README.linux-fb:
11819         Add imps2 to docs.
11820         Document the new refresh keys.
11821         
11822 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
11823
11824         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
11825
11826         * gtk/gtkbox.c: change property types from (u)long to (u)int for
11827         ::position and ::padding.
11828
11829         * gtk/gtkcontainer.c: make ::border_width an INT property.
11830
11831         * gtk/gtkpacker.c: make ::position an INT property.
11832
11833         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
11834         guard against NULL h/v scrollbars, since this is used at construction
11835         time.
11836
11837         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
11838         internal gtk_clist_constructor().
11839
11840         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
11841         gtk_ctree_constructor().
11842
11843         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
11844         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
11845
11846         * docs/reference/Makefile.am: fun stuff, disabled docs generation
11847         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
11848
11849         * gtk/gtkwidget.[hc]:
11850         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
11851         and gtk_widget_get().
11852         (gtk_widget_new): use g_object_new_valist().
11853         (gtk_widget_set): use g_object_set_valist().
11854
11855         * gtk/gtkobject.[hc]:
11856         removed gtk_object_arg_get_info(), gtk_object_getv(),
11857         gtk_object_query_args(), gtk_object_newv(),
11858         gtk_object_class_add_signals(),
11859         gtk_object_class_user_signal_new(),
11860         gtk_object_class_user_signal_newv(),
11861         gtk_object_arg_set(), gtk_object_arg_get(),
11862         gtk_object_args_collect(),
11863         gtk_object_default_construct(),
11864         gtk_object_constructed(),
11865         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
11866         removed nsignals, signals and n_args members from GtkObjectClass.
11867         (gtk_object_new): use g_object_new_valist().
11868         (gtk_object_set): use g_object_set_valist().
11869         (gtk_object_get): use g_object_get_valist().
11870         
11871         * gtk/gtkcompat.h: define gtk_object_default_construct().
11872         
11873         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
11874         g_object_new().
11875
11876         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
11877         fucntions, cleaned up method assignments (make sure your structures
11878         are setup properly before calling out). removed all GTK_CONSTRUCTED
11879         hacks ;)
11880
11881 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
11882
11883         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
11884         off-by-one error in checks. (Dave Lambert)
11885
11886 2000-12-12  Alexander Larsson  <alexl@redhat.com>
11887
11888         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
11889         Don't free gdk_fb_keyboard twice.
11890
11891 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
11892
11893         * gtk/testgtk.c:
11894         (create_tooltips): 
11895         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
11896         use GObject swapped_signal:: properties instead.
11897
11898         * gtk/gtkcellrenderertoggle.c: 
11899         * gtk/gtkcellrenderertextpixbuf.c: 
11900         * gtk/gtkcellrenderertext.c: 
11901         * gtk/gtkcellrendererpixbuf.c: 
11902         * gtk/gtkcellrenderer.c:
11903         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
11904         missing warnings for invalid property ids, install properties
11905         with g_object_class_install_property() now.
11906         
11907         * gtk/gtksignal.c:
11908         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
11909         
11910 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
11911         
11912         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
11913         to determine if a window is the focus widget within
11914         its toplevel.
11915
11916         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
11917         to be boolean.
11918
11919         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
11920         of the case where the container CAN_FOCUS to here instead
11921         of having it in each individual move-the-focus place.
11922
11923         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
11924         focusing to be geometric in a much more obvious sense. Arrowing
11925         around is still non-intuitive because it isn't perfect and
11926         because entries, etc, grab the arrow keys, but it at least
11927         usually will do what you expect now.
11928         
11929         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
11930         file.
11931
11932         * gtk/gtknotebook.c: Change tabs to be a single item in
11933         the focus chain. Make movement of focus on tabs with arrow
11934         keys wrap around.
11935         
11936         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
11937         CHECK_FIND_CHILD macro to give informative error messages
11938         instead of silent returns.
11939
11940         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
11941         flag since we handle GdkReturn on the tabs.
11942
11943         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
11944         windows rather than sending expose events directly.
11945
11946         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
11947         definition for GtkNotebookPage into .c file, since it is private.
11948
11949         * gtk/testgtk.c (create_notebook): Add option for 
11950         testing borderless notebook.
11951
11952         * gtk/testgtk.c (page_switch): Removed egregious poking
11953         around in GTK+ internals.
11954
11955         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
11956
11957         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
11958         properly through gtk_clist_focus. Make the title headers a
11959         single item in the tab-focus chain, and make left-right wrap
11960         around.
11961
11962         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
11963         focus method so that wrapping around works properly.
11964
11965         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
11966         that is handled for the widget now. 
11967
11968 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
11969
11970         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
11971         widgets as TOPLEVEL.
11972
11973         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
11974         TOPLEVEL widgets are containers.
11975
11976         * gtk/gtkinvisible.h: Remove useless include.
11977
11978 2000-12-11  Havoc Pennington  <hp@redhat.com>
11979
11980         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
11981         Handle chopping off \r\n and 0x2029 in addition to \n before
11982         passing to PangoLayout
11983
11984         * gtk/gtkimcontextsimple.c
11985         (gtk_im_context_simple_get_preedit_string): 
11986         return an empty string if no match is pending
11987
11988         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
11989         assertion that the returned preedit string was sane
11990
11991         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
11992         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
11993         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
11994
11995 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
11996
11997         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
11998         Fix up finalizer to chain to its parent.
11999
12000 2000-12-11  Alexander Larsson  <alexl@redhat.com>
12001
12002         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
12003         Clearified the difference between the keyboard types. Wrote a note
12004         about the magic sysrq key to get out of raw mode.
12005
12006 2000-12-09  James Henstridge  <james@daa.com.au>
12007
12008         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
12009         member to hold masks for detecting the start of a protocol packet.
12010         (mouse_devs): add packet start masks for ps2 and ms device types.
12011         Left the mask for fidmour blank, as I have no idea what it should
12012         be.
12013         (handle_mouse_io): skip bytes until we get to the start of a
12014         packet.  My Logitech mouse seems to be passing an extra NULL pad
12015         byte, and GPM does a similar thing here.
12016         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
12017         this is the ms mouse driver.
12018         (gdk_fb_mouse_ms_packet): fix up button handling, which was
12019         completely broken except for button1.  It was checking the wrong
12020         bit in the packet for the status of the right mouse button, and
12021         wrongly assuming right == button2 rather than 3.  I fixed that and
12022         also added support for middle button (button2).
12023
12024 2000-12-08  Havoc Pennington  <hp@redhat.com>
12025
12026         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
12027         that cause a segfault on text insertion
12028
12029         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
12030         warning
12031
12032         * gtk/gtktextiter.c (test_log_attrs): use
12033         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
12034
12035         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
12036         Get log attrs for a line, using a cache stored on the buffer
12037         
12038         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
12039         reported by Jeff Franks
12040
12041 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12042
12043         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
12044         /dev/ttyS0 -> /dev/mouse
12045
12046 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12047
12048         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
12049         Added dummy gdk_fontset_load.
12050
12051 2000-12-08  Alexander Larsson  <alexl@redhat.com>
12052
12053         * docs/README.linux-fb:
12054         * docs/Makefile.am:
12055         Initial GtkFB docs.
12056         
12057         * gdk/linux-fb/Makefile.am:
12058         Define GDK_DATA_PREFIX.
12059
12060         * gdk/linux-fb/gdkmain-fb.c:
12061         Fix typo.
12062         Change default display to /dev/fb0.
12063
12064         * gdk/linux-fb/gdkpango-fb.c:
12065         Add $(prefix)/share/fonts/ to font path.
12066         
12067 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12068
12069         * gdk/linux-fb/gdkkeyboard-fb.c:
12070         New file containing the abstracted keyboard driver. Most code
12071         taken from gdkinput-ps2.c
12072
12073         * gdk/linux-fb/gdkinput-ps2.c:
12074         Removed file.
12075         
12076         * gdk/linux-fb/Makefile.am:
12077         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
12078
12079         * gdk/linux-fb/gdkcolor-fb.c:
12080         display->fb was renamed to display->fb_fd.
12081
12082         * gdk/linux-fb/gdkcursor-fb.c:
12083         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12084
12085         * gdk/linux-fb/gdkinput.c:
12086         Moved gdk_input_init here from gdkinput-ps2.c
12087
12088         * gdk/linux-fb/gdkmain-fb.c:
12089         display->fb was renamed to display->fb_fd.
12090         Now the tty and the console is opened here instead
12091         of in the keyboard driver. Also check GDK_VT to see what
12092         tty to open.
12093         Move gdk_beep () here from gdkinput-ps2.c
12094         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12095
12096         * gdk/linux-fb/gdkmouse-fb.c:
12097         Add header.
12098         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12099         Return correct keyboard modifiers.
12100         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
12101
12102         * gdk/linux-fb/gdkprivate-fb.h:
12103         Add tty and vt info to display.
12104         Add orignal modeinfo storage to display
12105         Update global functions
12106
12107         * gdk/linux-fb/gdkwindow-fb.c:
12108         Added gdk_fb_window_find_focus().
12109         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12110
12111 2000-12-07  Havoc Pennington  <hp@pobox.com>
12112
12113         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
12114         function, noticed by Alex
12115
12116 2000-12-06  Elliot Lee  <sopwith@redhat.com>
12117
12118         * configure.in: Detect freetype properly
12119
12120         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
12121         above.
12122
12123 2000-12-06  Alexander Larsson  <alexl@redhat.com>
12124
12125         * gdk/linux-fb/Makefile.am:
12126         Add gdkmouse-fb.c
12127         
12128         * gdk/linux-fb/gdkmouse-fb.c:
12129         New file. Abstracted the mouse drivers a bit.
12130
12131         * gdk/linux-fb/gdkcursor-fb.c:
12132         The cursor hide/show functions was moved here from gdkinput-ps2.c.
12133
12134         * gdk/linux-fb/gdkinput-ps2.c:
12135         Removed old mouse handling code. Moved cursor handling code
12136         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
12137         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
12138         gdk_mouse_get_info.
12139
12140         * gdk/linux-fb/gdkmain-fb.c:
12141         Pass NULL pointers for x,y in gdk_mouse_get_info call.
12142
12143         * gdk/linux-fb/gdkprivate-fb.h:
12144         Removed public gdk_fb_find_common_ancestor, added and renamed
12145         functions for the new mouse handling code.
12146
12147         * gdk/linux-fb/gdkwindow-fb.c:
12148         Moved gdk_fb_window_send_crossing_events here. added global
12149         variable gdk_fb_window_containing_pointer. made
12150         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
12151         renamed to gdk_mouse_get_info.
12152
12153 2000-12-06  Alexander Larsson  <alexl@redhat.com>
12154
12155         * gdk/linux-fb/gdkevents-fb.c:
12156         Update to match latest gmain/gsource changes.
12157
12158         * gdk/linux-fb/gdkinput-ps2.c:
12159         Bogus gdk_keymap_get_entries_for_keycode implementation so that
12160         it links. Will be implemented later.
12161
12162 2000-12-03  Havoc Pennington  <hp@pobox.com>
12163
12164         * gdk/Makefile.am: add gdkkeys.[hc]
12165
12166         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
12167         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
12168
12169         * acconfig.h, configure.in: add checks and command line options
12170         for XKB
12171
12172         * gdk/x11/gdkkeys-x11.c: Implement the above functions
12173         
12174         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
12175         and group in the key event
12176
12177         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
12178         field with the low-level hardware key code, and a group
12179         field with the keyboard group
12180
12181         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
12182         and declare a couple globals used for keymap handling
12183         
12184         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
12185         hold down Shift-Control and type a hex number to get a Unicode 
12186         character corresponding to the hex number
12187         (gtk_im_context_simple_get_preedit_string): Fix cursor position
12188         (return bytes not chars)
12189
12190 2000-12-05  Elliot Lee  <sopwith@redhat.com>
12191
12192         * gdk/gdkcolor.h: Make GdkColor specify element sizes
12193         to avoid waste on 64-bit platforms.
12194
12195 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
12196
12197         * INSTALL: Fix link to PNG home, remove reference
12198         to fribidi.
12199
12200         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
12201         
12202         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
12203         tested.)
12204
12205         * gtk/gtkcheckmenuitem.c: Permanently turn on
12206         always_show_toggle.
12207
12208         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
12209         be NULL. (Vladimir Klebanov, #26545)
12210
12211         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
12212         some signed/unsigned comparison problems. (#6510,
12213         David Kaelbling)
12214
12215         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
12216         return type to boolean (Oskar Liljeblad, #18648)
12217
12218 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12219
12220         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
12221         Remove bogus colormap setting.
12222
12223 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12224
12225         * gdk/linux-fb/gdkcolor-fb.c:
12226         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
12227
12228         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
12229         Must set colormap.
12230         
12231 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
12232
12233         * docs/tutorial/gtk-tut.sgml: DND updates
12234
12235 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
12236
12237         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12238         Remove old debug g_warning().
12239         (gdk_fb_draw_drawable): The src argument can be either a wrapper
12240         or an implementation, just pass the implementation to draw_drawable_2.
12241         
12242         * gdk/linux-fb/gdkprivate-fb.h:
12243         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
12244
12245         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12246         clear and invalidate area when window is destroyed.
12247         (send_map_events): Remove old commented out code.
12248
12249 2000-12-05  Alexander Larsson  <alexl@redhat.com>
12250
12251         * gdk/linux-fb/gdkpango-fb.c:
12252         Use italic instead of oblique in font aliases.
12253         
12254         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
12255         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
12256         other unsupported functions.
12257
12258 2000-12-04  Havoc Pennington  <hp@redhat.com>
12259
12260         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
12261
12262         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
12263
12264         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
12265
12266         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
12267         hack to avoid infinite loops (synthetic expose event) - 
12268         Owen has more appropriate fixes in a branch he'll check in later.
12269
12270         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
12271         separator, CR, and CRLF as line ends
12272
12273         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
12274         into lines using pango_find_paragraph_boundary(); other bits of
12275         the widget are still going to be broken if the boundary isn't '\n'
12276         though
12277
12278 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12279
12280         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
12281         multiply.
12282
12283         * gdk/linux-fb/gdkpango-fb.c:
12284         Copied some 26.6 scaling macros from pango to clean up the rounding.
12285         (pango_fb_font_get_glyph_info): Correct sign on x value.
12286
12287         * gdk/linux-fb/gdkprivate-fb.h:
12288         Removed unreferenced external functions.
12289
12290         * modules/linux-fb/Makefile.am: Use ` instead of '.
12291
12292         * modules/linux-fb/basic.c:
12293         Remove dead code. In particular the dummy lang engine which broke all
12294         pango layouts in GtkFB. Don't include tables-big.i anymore.
12295
12296         * modules/linux-fb/tables-big.i:
12297         Upgrade to latest version from pango. Left for reference, basic_ranges
12298         moved to basic.c.
12299         
12300 2000-12-04  Havoc Pennington  <hp@redhat.com>
12301
12302         Fix bugs Alex found:
12303         
12304         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
12305         to "draw"
12306
12307         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
12308
12309         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
12310
12311         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
12312         implementation in here, apparently the expose() implementation was
12313         dead code.
12314
12315 2000-12-04  Alexander Larsson  <alexl@redhat.com>
12316
12317         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12318         Return positive descent.
12319
12320 2000-12-02  Havoc Pennington  <hp@pobox.com>
12321
12322         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
12323         method and signal
12324         
12325         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
12326         calls gdk_window_process_updates() to push the exposes through
12327         (gtk_widget_class_init): No more draw signal, no
12328         gtk_widget_real_draw()  
12329         
12330         * gtk/gtkbin.c (gtk_bin_draw): remove
12331
12332         * gtk/gtkbox.c (gtk_box_draw): remove
12333
12334         * gtk/gtkbutton.c (gtk_button_draw): remove
12335
12336         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
12337
12338         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
12339
12340         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
12341
12342         * gtk/gtkclist.c (gtk_clist_draw): remove
12343
12344         * gtk/gtkentry.c (gtk_entry_draw): remove
12345
12346         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
12347
12348         * gtk/gtkfixed.c (gtk_fixed_draw): remove
12349
12350         * gtk/gtkframe.c (gtk_frame_draw): remove
12351
12352         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
12353
12354         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
12355
12356         * gtk/gtklayout.c (gtk_layout_draw): remove
12357
12358         * gtk/gtklist.c (gtk_list_draw): remove
12359
12360         * gtk/gtklistitem.c (gtk_list_item_draw): remove
12361
12362         * gtk/gtkmenu.c (gtk_menu_draw): remove
12363
12364         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
12365
12366         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
12367
12368         * gtk/gtknotebook.c (gtk_notebook_draw): remove
12369
12370         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
12371
12372         * gtk/gtkpacker.c (gtk_packer_draw): remove
12373
12374         * gtk/gtkrange.c (gtk_range_draw): remove
12375
12376         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
12377
12378         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
12379
12380         * gtk/gtktable.c (gtk_table_draw): remove
12381
12382         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
12383
12384         * gtk/gtktext.c (gtk_text_draw): remove
12385
12386         * gtk/gtktextview.c (gtk_text_view_draw): remove
12387
12388         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
12389
12390         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
12391
12392         * gtk/gtktree.c (gtk_tree_draw): remove
12393
12394         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
12395
12396         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
12397
12398         * gtk/gtkviewport.c (gtk_viewport_draw): remove
12399
12400         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
12401
12402         * gtk/gtkvscale.c (gtk_vscale_draw): remove
12403
12404         * gtk/gtkwindow.c (gtk_window_draw): remove
12405
12406 2000-20-01  Anders Carlsson  <andersca@gnu.org>
12407
12408         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
12409         a GtkToggleButton is both insensitive and active, it was being
12410         drawn by the GtkButton draw handler which doesn't check the
12411         state. Now it's calling gtk_toggle_button_paint instead.
12412         
12413 2000-12-01  Havoc Pennington  <hp@redhat.com>
12414
12415         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
12416         dangling pointers to the appearance attributes from the 
12417         line display
12418
12419         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
12420         width/height to mean "full width/height of drawable"
12421
12422         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
12423         click to select word/line
12424         
12425         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
12426         when getting log attrs. Get a slice, so that pixmaps and stuff
12427         are properly handled.
12428
12429         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
12430         paste into the selection (replaces selection now, previously
12431         crashed or added to selection). Reveals longstanding btree bug -
12432         select multiple lines, middle-click on the selection, boom. This
12433         isn't related to my changes though.
12434
12435         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
12436         PangoLogAttrs changes
12437         (gtk_entry_move_backward_word): ditto
12438
12439         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
12440         functions return bool whether the iter moved onto a
12441         dereferenceable position.
12442  
12443         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
12444         functions for motion in terms of display lines.
12445
12446         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
12447         get the buffer a mark is inside
12448         
12449 2000-12-01  Alexander Larsson  <alexl@redhat.com>
12450
12451         * gdk/linux-fb/Makefile.am:
12452         * modules/linux-fb/Makefile.am:
12453         Freetype 2 final uses freetype-config
12454
12455         * gdk/linux-fb/gdkpango-fb.c:
12456         Upgrade to use Freetype 2 final.
12457         More flexible support for font aliases, this also fixes a bug with
12458         GtkFontSelector, as the aliases must be visible in the font/family list,
12459         or GtkFontSelector reads uninitialized memory.
12460
12461 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
12462
12463         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
12464         XGetIMValues to properly terminate variable argument list, and do
12465         NULL return check for ic_values and xim_styles.
12466
12467         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
12468         Restore preedit state after XmbResetIC().
12469         
12470         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
12471         XvaCreateNestedList() should take XvaNestedList, but not
12472         XvaNestedList*.
12473
12474         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
12475         preedit_draw_callback, preedit_caret_callback): Match
12476         "preedit-changed" signal name to "preedit_changed" to be
12477         consistent to the spec.
12478
12479         * gtk/gtkimcontextsimple.c (check_table):
12480         Match "preedit-changed" to "preedit_changed" to be consistent
12481         to the spec.
12482
12483 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
12484
12485         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
12486         gc->clip_region == NULL>
12487
12488 2000-11-30  Tor Lillqvist  <tml@iki.fi>
12489
12490         Changes by Hans Breuer:
12491         
12492         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
12493         Dont't use negative width and height as max_hints. This fixes
12494         Owen's recent testgtk changes for win32.
12495
12496         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
12497         gdk_win32_hdc_release): These are exported and may be called with
12498         other drawable types than our GdkDrawableImplWin32 (?).
12499
12500         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
12501         so always #define USE_BACKING_STORE.
12502
12503         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
12504         of printf for debugging output.
12505
12506         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
12507         
12508         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
12509
12510         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
12511         declaration.
12512
12513         * gtk/gtktexttypes.h: Ditto.
12514
12515         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
12516         (GDK_VoidSymbol) also if in case of arg check failure.
12517
12518         * gtk/gtkimcontextsimple.c
12519         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
12520         position to the pointer, but to the variable it points to.
12521
12522         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
12523
12524         * gtk/gtk.def: Updates.
12525
12526 2000-11-29  Elliot Lee  <sopwith@redhat.com>
12527
12528         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
12529         GTK_TYPE_TREE_MODEL.
12530
12531 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12532
12533         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
12534         Set the size of the font from the description.
12535         (gdk_text_width): Gross hack that calculates the width
12536         of text by text_length * size/2. This is necessary because
12537         GtkLabel does some ugly gtk_string_width call to calculate
12538         an good size.
12539         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
12540
12541 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
12542
12543         * docs/tutorial/gtk-tut.sgml: DND updates
12544
12545 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12546
12547         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
12548         If you pass width or height == 0 to gdk_window_clear_area they
12549         should be calculated from the window size.
12550
12551 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12552
12553         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
12554         a grab, but no grab-cursor, use the cursor from the grabbed
12555         window. (gdk_fb_window_send_crossing_events): Send normal
12556         enter/leave notifications if grab and owner_events == TRUE.
12557
12558 2000-11-29  Alexander Larsson  <alexl@redhat.com>
12559
12560         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12561         Do implicit button grabs, even if the window doesn't
12562         want the event.
12563         (gdk_fb_window_send_crossing_events): If there is a
12564         grab, only the grabbed window gets normal enter/leave
12565         notifications. On ungrab go from grabbed window to current.
12566         Don't send any notification to b when propagating from c -> b.
12567         If setting a grab on window, don't set prev_window.
12568         (handle_mouse_input): Send enter/leave events to the window the
12569         mouse is over, not the grabbed one.
12570         
12571 2000-11-28  Elliot Lee  <sopwith@redhat.com>
12572
12573         * gdk/gdkregion-generic.c: Zap warning.
12574         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
12575         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
12576
12577 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
12578
12579         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
12580         The cursor should be hidden if it is part of either the
12581         source or destination region. Not only if it is in both.
12582         (gdk_window_set_transient_for): Silence warnings.
12583
12584 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12585
12586         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
12587         The default mode in X is Pie Arcs, therefore that is
12588         what Gtk+ uses.
12589
12590 2000-11-28  Alexander Larsson  <alexl@redhat.com>
12591
12592         * gdk/linux-fb/gdkinput-ps2.c:
12593         Implement correct EnterNotify/LeaveNotify:
12594         (gdk_fb_window_send_crossing_events): New function that sends
12595         all GdkCrossingEvents from the last mouse-window to the specified
12596         destination.
12597         (gdk_fb_window_visibility_crossing): Removed function.
12598         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
12599         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
12600         instead of gdk_window_get_pointer() for better readability.
12601
12602         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
12603         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
12604
12605         * gdk/linux-fb/gdkprivate-fb.h:
12606         removed gdk_fb_window_visibility_crossing, added
12607         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
12608
12609         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
12610         New function that finds the least common ancestor of two windows.
12611         (gdk_window_show, gdk_window_hide):
12612         Use gdk_fb_window_send_crossing_events.
12613         (gdk_fb_window_move_resize): Send configure events to toplevel
12614         windows. Use gdk_fb_window_send_crossing_events.
12615
12616 2000-11-27  Havoc Pennington  <hp@redhat.com>
12617
12618         * gtk/gtkprivate.h (enum): Remove a trailing comma
12619
12620 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
12621
12622         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
12623         the "changed" callback of the adjustment.  We need to redraw the
12624         spin button's arrows when the adjustment's range changes.
12625         (adjustment_changed_cb): Draw the arrows.
12626         (gtk_spin_button_value_changed): Draw the arrows.
12627
12628 2000-11-23  Alexander Larsson  <alexl@redhat.com>
12629
12630         * gdk/linux-fb/gdkselection-fb.c:
12631         Initial selection implementation.
12632
12633         * gtk/gtkselection.c:
12634         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
12635         requestor in gtk_selection_request.
12636         
12637         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
12638         Added gdk_selection_property atom.
12639
12640         * gdk/linux-fb/gdkprivate-fb.h:
12641         Export _gdk_selection_window_destroyed.
12642         Removed mask_off_x/y from GdkCursorPrivateFB.
12643         Removed hbearing, added top, left to PangoFBGlyphInfo.
12644
12645         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
12646         Call _gdk_selection_window_destroyed
12647         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
12648         the root window has been created.
12649         (static_dx_hack, static_dy_hack, compare_draw_rects,
12650         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
12651         in region. They are already sorted. Instead just traverse them in
12652         reverse if draw_direction < 0.
12653         
12654         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
12655         Double-clicks must be sent after the normal button_press.
12656         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
12657         
12658         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
12659         Pass _gdk_fb_screen_gc instead of NULL.
12660
12661         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
12662         Initialize gdk_selection_property.
12663         (gdk_event_make): Remove unused code.
12664
12665         * gdk/linux-fb/gdkcursor-fb.c:
12666         Make the pixmap for the cursor the same size as the mask. Also remove
12667         the mask_off_x/y fields in GdkCursorPrivateFB and combine
12668         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
12669         Now the whole cursor is visible.
12670
12671         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
12672         Fix bug where xdest+height instead of ydest+height was used
12673         to calculate if the source and dest overlapped. This fixes the
12674         redraw bug when the main window in testgtk was scrolled when
12675         partially covered by a tall window.
12676         Copy rectangles in region in order depending on draw_direction.
12677         Also moved the draw_direction flipping of start_y and end_y into
12678         the gc functions, as this might not be what all of them want.
12679         (gdk_fb_draw_lines): Support dashed lines.
12680         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
12681         so that the text is positioned correctly (was 1 pixel high).
12682
12683         gdk/linux-fb/gdkgc-fb.c:
12684         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
12685         all lines were drawn a pixel to short. Also checked the default of
12686         the rest of the values, and they're the same as X now.
12687
12688         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
12689         Clean up pixel positioning of the glyphs. Just use bgy->top and
12690         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
12691         to all divisions to get correct rounding behaviour.
12692
12693         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
12694         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
12695         Moved start_y/end_y flip into draw_drawable implementations.
12696         Flip also x rendering when draw_direction < 0.
12697         Remove unneccesary multiply with draw_direction.
12698
12699 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
12700
12701         * docs/tutorial/gtk-tut.sgml:
12702           - get rid of gtk_toggle_button_toggled FUD
12703           - start DND section - needs work - based on:
12704                 http://wolfpack.twu.net/docs/gtkdnd/
12705
12706 2000-11-22  Alexander Larsson  <alexl@redhat.com>
12707
12708         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
12709         Correct calculation of font metrics. Now GtkEntrys have sane
12710         size.
12711
12712 2000-11-22  Alexander Larsson  <alexl@redhat.com>
12713
12714         * gdk/gdktypes.h:
12715         Add new type GdkSpan
12716         
12717         * docs/reference/gdk/gdk-sections.txt,
12718         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
12719         gdk/gdkregion.h:
12720         Implement and document gdk_region_spans_intersect_foreach.
12721
12722         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
12723         Add new file gdkrender-fb.c which contains all core
12724         rendering code.
12725         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
12726         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
12727         (optimized rectangle fillers).
12728
12729         * gdk/linux-fb/gdkdrawable-fb2.c:
12730         Move all rendering code to gdkrender-fb.c.
12731         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
12732         Use the new span intersection functions in gdk_fb_fill_spans.
12733         gdk_fb_draw_rectangle() clips filled rectangles and calls
12734         gc->fill_rectangle with the result.
12735         gdk_fb_fill_spans() gets extra argument "sorted".
12736
12737         * gdk/linux-fb/gdkevents-fb.c:
12738         Remove unused includes and defines.
12739         New function gdk_fb_get_time() to get correct time for events.
12740
12741         * gdk/linux-fb/gdkinput-ps2.c:
12742         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
12743         Make sure to set the time of all events.
12744
12745         * gdk/linux-fb/gdkmain-fb.c:
12746         Use gdk_fb_get_time ().
12747
12748         * gdk/linux-fb/gdkprivate-fb.h:
12749         New virtual GC calls: fill_span & fill_rectangle.
12750         Export gdk_fb_get_time().
12751         gdk_fb_fill_spans() gets extra argument "sorted".
12752
12753         * gdk/linux-fb/mi*.c:
12754         Use GdkSpan instead of GdkRectangle.
12755         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
12756         from XFree 4 source)
12757         
12758 2000-11-22    <jrb@redhat.com>
12759
12760         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
12761         reversing the order in an if statement will do.  Doing so managed
12762         to make the treemodelsort half work.  Other half will follow after
12763         I get the insert function fully fixed.
12764
12765 2000-11-21  Elliot Lee  <sopwith@redhat.com>
12766         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
12767         more than 2 bits. Besides, I need to implement an evil hack. :)
12768
12769 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
12770
12771         * docs/tutorial/gtk-tut.sgml: minor corrections
12772
12773 2000-11-20  Jonathan Blandford <jrb@redhat.com>
12774         * gtk/gtktreemodelsort.h: Add convertion functions to let you
12775           convert to and from relative path's and iters.
12776
12777         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
12778           testing sorting functions a bit better.  Currently broken -- will
12779           fix in morning.
12780
12781 2000-11-20  Havoc Pennington  <hp@redhat.com>
12782
12783         * gtk/gtkwidget.c: Documented a bunch of functions in here
12784         (gtk_widget_realize): Warn if you try to realize
12785         a widget with no parent that isn't a toplevel
12786         (gtk_widget_intersect): return a gboolean
12787
12788 2000-11-20  Havoc Pennington  <hp@redhat.com>
12789
12790         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
12791         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
12792         scrolling to be implemented in GDK to finish. Also, right now
12793         we just size_allocate all children on every layout change,
12794         which is pretty lame. Test commented out of testtext.c, 
12795         until it works better.
12796
12797 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
12798
12799         * gdk/linux-fb/gdkdrawable-fb2.c:
12800         Removed unused arguments from gdk_fb_drawable_get_pixel().
12801
12802         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
12803         Renamed fidur specific mouse packet data in MouseDevice to
12804         generic. Used it in ps2 mouse handling code to avoid blocking
12805         reads.
12806
12807 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
12808
12809         * demos/gtk-demo/main.c: Changed to have the list become
12810         non-italic when the demo window is destroyed through an external
12811         event (like a close button).  Doing so found three bugs in the
12812         widget.
12813
12814         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
12815
12816         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
12817         we actually set the cell.
12818
12819         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
12820
12821         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
12822         free a leaked path.  Thanks memprof.
12823
12824 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
12825
12826         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
12827         off-by-one error when destroying allocated segments
12828         on failure. (Elliot)
12829
12830 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
12831
12832         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
12833         memleaks found by Evan Martin.
12834
12835 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
12836
12837         * Released 1.3.2
12838         
12839         * NEWS: Updates for 1.3.2
12840
12841 2000-11-17  Tor Lillqvist  <tml@iki.fi>
12842
12843         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
12844         but in general for window system specific events.
12845
12846         * gtk/gtk.def
12847         * gtk/makefile.mingw.in
12848         * gtk/makefile.msc.in: Update.
12849         
12850         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
12851
12852 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
12853
12854         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
12855         distribute gtk.immodules.
12856
12857         * gtk/Makefile.am (install-data-local): Don't install the
12858         gtk.immodules file created for the uninstalled modules;
12859         instead run gtk-query-immodules after install
12860
12861 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
12862
12863         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
12864         -rpath to the right install location.
12865
12866         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
12867         -export-dynamic.
12868
12869         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
12870         properly.
12871
12872 2000-11-15  Havoc Pennington  <hp@pobox.com>
12873
12874         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
12875         patch from Mikael Hermansson to temporarily stop blinking while
12876         the user is using the keyboard to type or navigate. 
12877
12878         Also, when blinking, stay on for longer than we stay off. Also,
12879         return from start_cursor_blink if !cursor_visible, to save
12880         checking that flag all over the place before we call
12881         start_cursor_blink.
12882
12883 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
12884
12885         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
12886         only contain a "fontset" line, which is now ignored.
12887
12888         * gtk/gtkentry.c (gtk_entry_button_release): Make 
12889         double-click-to-select-word work.
12890         
12891 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
12892
12893         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
12894         Don't move back one char when we are actually at the end of the 
12895         paragraph.
12896
12897 2000-11-15  Robert Brady  <robert@suse.co.uk>
12898
12899         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
12900         'o' < 'p'.
12901         
12902         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
12903         bind_textdomain_codeset.
12904
12905         (gtk_init_check): Make the warning about translating default:LTR
12906         sterner.
12907         
12908 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
12909
12910         * **/Makefile.am : remove unecessary rules for win32-specific
12911         config-substituted targets. If you want these rules, use
12912         --enable-maintainer-mode (called automatically by autogen.sh).
12913         Stops a lot of unneccessary make-time warnings.
12914
12915         * gtk/gtktext{layout,display}.c: Factor in total width as
12916         well as screen when figuring alignment for word-wrap as well as
12917         no wrap; this is necessary to handle lines that cannot be wrapped
12918         at all.
12919
12920 2000-11-15  Havoc Pennington  <hp@redhat.com>
12921
12922         * gtk/testtext.c: Implement essential color cycling feature
12923
12924 2000-11-15  Havoc Pennington  <hp@redhat.com>
12925
12926         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
12927         when we invalidate the main window.
12928
12929         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
12930         GtkTextView will now invalidate the side windows for us when text
12931         changes.
12932
12933 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
12934
12935         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
12936         unconditionally, since we may need to update the horizontal
12937         scrollbars even if the height didn't change.
12938
12939         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
12940         the extra attrs, since some of them affect size.
12941
12942         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
12943         x_offset correctly.
12944
12945 2000-11-15  Havoc Pennington  <hp@redhat.com>
12946
12947         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
12948         don't move the first line out into the margin, instead move the
12949         whole paragraph in order to make space for the first line within 
12950         the margin
12951
12952 2000-11-15  Havoc Pennington  <hp@redhat.com>
12953
12954         * gtk/gtktextview.c (changed_handler): offset redraw rect by
12955         xoffset in addition to yoffset, so horizontal scrolling doesn't
12956         break redraws
12957
12958 2000-11-15  Havoc Pennington  <hp@redhat.com>
12959
12960         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
12961         from the cursor
12962         (render_layout_line): fix reversed test that caused weird
12963         underlines to get drawn
12964
12965 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
12966
12967         * gdk/linux-fb/gdkprivate-fb.h:
12968         Fix debug macros.
12969         
12970 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
12971
12972         * gdk/linux-fb/gdkprivate-fb.h:
12973         Added virtual functions set_pixel, get_color,
12974         fill_span and draw_drawable to the GC.
12975         Added global _gdk_fb_screen_gc to use instead of
12976         NULL when drawing to the screen.
12977         Added _gdk_fb_gc_calc_state() prototype.
12978
12979         * gdk/linux-fb/gdkgc-fb.c:
12980         Call _gdk_fb_gc_calc_state() on any gc state change.
12981
12982         * gdk/linux-fb/gdkglobals-fb.c:
12983         Add _gdk_fb_screen_gc
12984                 
12985         * gdk/linux-fb/gdkdrawable-fb2.c:
12986         _gdk_fb_gc_calc_state() calculates best functions
12987         for the GC state and depth.
12988         Moved bpp specialized code to separate functions.
12989         Added optimized 24 bpp AA draw_drawable.
12990
12991         * gdk/linux-fb/gdkevents-fb.c:
12992         Silence gcc warning.
12993
12994         * gdk/linux-fb/gdkimage-fb.c:
12995         Use _gdk_fb_screen_gc
12996
12997         * gdk/linux-fb/gdkwindow-fb.c:
12998         Init and use _gdk_fb_screen_gc
12999
13000         * gdk/linux-fb/mitypes.h:
13001         Remove unused types.
13002
13003 2000-11-14  Havoc Pennington  <hp@pobox.com>
13004
13005         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
13006         to pixels
13007
13008 2000-11-14  Havoc Pennington  <hp@pobox.com>
13009
13010         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
13011
13012         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
13013         unknown char, no real reason we were using a variable. 
13014         Remove gtk_text_unknown_char variable. Fix all the text widget
13015         files accordingly.
13016
13017         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
13018         since the Unicode spec seems to prefer that character for our
13019         purposes.
13020
13021 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
13022
13023         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
13024         value of g_getenv() isn't freeable, so g_strdup it.
13025
13026         * modules/input/inuktitut.c: Inuktitut input method.
13027
13028         * modules/input/Makefile.am: Build this.
13029         
13030 2000-11-14  Elliot Lee  <sopwith@redhat.com>
13031
13032         * gtk/Makefile.am: Install gtk.immodules, needed for operation
13033         of gtk programs.
13034
13035 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
13036
13037         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
13038         reversed > that was causing Home to go to end of previous line.
13039
13040         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
13041         modified-keypresses (leave for bindings.)
13042
13043         * modules/input/Makefile.am: Remove useless -export-dynamic
13044         from module LDFLAGS.
13045
13046 2000-11-14  Havoc Pennington  <hp@redhat.com>
13047
13048         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
13049         higher.
13050
13051         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
13052         account. Also, render rise, underline, background, etc. for
13053         pixbufs as well as text. Also, draw underlines one pixel higher.
13054
13055         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
13056         PangoAttribute for the rise, so it gets drawn properly. Also,
13057         add the GtkTextAppearance attribute for pixbuf/widget segments
13058         as well; we should go ahead and have rise, underline, background,
13059         stipple work for those
13060
13061         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
13062         Pango
13063
13064 2000-11-15  Tor Lillqvist  <tml@iki.fi>
13065
13066         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
13067
13068         * gtk/gtk.def: Update.
13069
13070         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
13071         included.
13072         (gtk_rc_get_im_module_file): Use run-time installation directory
13073         on Win32.
13074
13075         * gdk/win32/rc/gdk.rc: Remove.
13076         * gdk/win32/rc/gdk.rc.in: New file.
13077         * gdk/win32/rc/Makefile.am: New file
13078         * gdk/win32/Makefile.am: Corresponding changes.
13079
13080         * gtk/gtk.rc: Remove.
13081         * gtk/gtk-win32.rc.in: New file.
13082         * gtk/Makefile.am: Corresponding changes.
13083
13084         * configure.in: Corresponding changes.
13085
13086         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
13087         has a built gtkcompat.h. Developers using CVS code on Win32 can
13088         hand-edit it from gtkcompat.h.in.
13089
13090         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
13091         gtkcompat.h from gtkcompat.h.win32.
13092
13093 2000-11-14  Havoc Pennington  <hp@redhat.com>
13094
13095         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
13096         to default to GDK_ACTION_MOVE if the drag is within a single
13097         widget. Defaults to GDK_ACTION_COPY between widgets.
13098
13099 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
13100
13101         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
13102
13103         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
13104
13105         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
13106         srcdir != builddir
13107
13108         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
13109
13110         * configure.in (GTK_VERSION): Up to 1.3.2
13111
13112         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
13113         gtkimcontextxim.h
13114
13115         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
13116         missing doc comment.
13117
13118 2000-11-14  Alexander Larsson  <alexl@redhat.com>
13119
13120         * modules/linux-fb/basic.c:
13121         Use the glib iconv wrappers.
13122
13123 2000-11-13  Havoc Pennington  <hp@pobox.com>
13124
13125         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
13126         still more bugs.
13127
13128         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
13129         scroll the GdkWindows before realization.
13130
13131 2000-11-13  Havoc Pennington  <hp@redhat.com>
13132
13133         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
13134         where GC didn't always get updated properly
13135
13136         * demos/gtk-demo/textview.c (create_tags): Use subattributes
13137         of fonts instead of setting the entire font
13138
13139         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
13140         setting entire font
13141
13142         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
13143
13144         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
13145         a bunch of individually-settable font attributes. You can still 
13146         use the "font" and "font_desc" args, they just set all the font
13147         attributes at once.
13148
13149 2000-11-13 Elliot Lee <sopwith@redhat.com>
13150
13151         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
13152
13153 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
13154
13155         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
13156         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
13157
13158         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
13159         work better.
13160
13161 2000-11-13  Havoc Pennington  <hp@redhat.com>
13162
13163         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
13164         the module file.
13165
13166         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
13167         dest->language
13168
13169         * gtk/testtext.c: Test pixels above/below/inside paragraphs
13170         settings
13171
13172         * gtk/gtktextview.c: Implement object args and setters/getters for
13173         all the aspects of the GtkTextAttributes that are not set from
13174         GtkWidget attributes. This is spacing, justification, margins,
13175         etc.
13176
13177         (gtk_text_view_set_arg)
13178         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
13179         args
13180         (gtk_text_view_class_init): Add args for justify, left_margin,
13181         right_margin, indent, and tabs
13182         
13183
13184         * gtk/gtktextlayout.c (set_para_values): fix to display indent
13185         attribute properly
13186
13187         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
13188         replace with indent attribute
13189
13190         * gtk/gtktextlayout.c (set_para_values): multiply indent by
13191         PANGO_SCALE
13192
13193         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
13194         rearranging code to do that
13195         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
13196         i.e. don't subtract the top_margin first, just to keep
13197         all margin-futzing in one place.
13198
13199         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
13200
13201         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
13202         special case of last line, Pango now handles this itself.
13203         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
13204         Y coordinate
13205         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
13206         (find_display_line_above): wasn't moving the byte index as it
13207         iterated over lines, so always returned byte 0. Also, port to use
13208         PangoLayoutIter.
13209         (find_display_line_below): same problem as
13210         find_display_line_above. Also, port to use PangoLayoutIter.
13211
13212 2000-11-13  Alexander Larsson  <alexl@redhat.com>
13213
13214         * gdk/linux-fb/*.[ch]:
13215         Massive reindent to gtk+ standard. My hands hurt.
13216
13217         * gdk/linux-fb/gdkcolor-fb.c:
13218         Move GdkColorPrivateFB from inherited to windowing_data
13219
13220         * gdk/linux-fb/gdkcursor-fb.c:
13221         _gdk_cursor_new_from_pixmap made static
13222
13223         * gdk/linux-fb/gdkdnd-fb.c:
13224         GdkDragContextPrivate moved to windowing_data
13225
13226         * gdk/linux-fb/gdkdrawable-fb2.c:
13227         Removed endian.h, use glib endianness macros instead
13228         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
13229         and GDK_DRAWABLE_IMPL_FBDATA
13230
13231         * gdk/linux-fb/gdkfont-fb.c:
13232         Add empty gdk_font_load(). Needed for linking of Gtk+.
13233
13234         * gdk/linux-fb/gdkimage-fb.c:
13235         Removed endian.h, use glib endianness macros instead
13236         Moved GdkImagePrivateFB to windowing_data
13237         gdk_image_new_bitmap didn't always allocate enough
13238         memory.
13239
13240         * gdk/linux-fb/gdkinput-ps2.c:
13241         Added semi-working support for MS serial mice.
13242
13243         * gdk/linux-fb/gdkprivate-fb.h:
13244         s/GdkWindowPrivate/GdkWindowObject/
13245         Removed GdkWindowPrivate typedef
13246         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
13247         Removed GDK_DRAWABLE_P
13248         Move GdkColorPrivateFB from inherited to windowing_data
13249         Moved GdkImagePrivateFB to windowing_data
13250
13251         * gdk/linux-fb/gdkvisual-fb.c:
13252         Removed some unused debug code.
13253
13254         * gdk/linux-fb/gdkwindow-fb.c:
13255         Use stock cursors instead of including X headers.
13256         s/GdkWindowPrivate/GdkWindowObject/
13257
13258         * gdk/linux-fb/mitypes.h:
13259         Removed unused types.
13260
13261         * modules/linux-fb/basic.c:
13262         Use the pango fribidi wrappers.
13263
13264 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
13265
13266         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
13267         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
13268         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
13269         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
13270         GEqualFunc where applicable.
13271         
13272         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
13273         pango_font_description_equal as changed in pango.
13274         
13275         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
13276
13277         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
13278
13279         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
13280
13281         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
13282
13283         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
13284
13285         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
13286
13287         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
13288         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
13289
13290         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
13291         gtk_rc_styles_compare -> gtk_rc_styles_equal.
13292
13293 2000-11-12  Havoc Pennington  <hp@pobox.com>
13294
13295         * demos/gtk-demo/Makefile.am (democodedir): change demo install
13296         dir to datadir/gtk+-2.0/demo
13297
13298         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
13299         sorts of text widget and Pango font bugs. Urgh.
13300
13301         * demos/gtk-demo/Makefile.am (demos): Add textview.c
13302
13303         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
13304         tree that you should double click to see the demo. Fix 
13305         types of variables to reflect changed return values from 
13306         GtkTreeStore and GtkTreeViewColumn constructors.
13307
13308         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
13309         newly-created buffer to prepare for GObject semantics
13310
13311         * gtk/testtext.c: don't leak the buffer with GObject semantics
13312
13313         * gtk/testtextbuffer.c: ditto
13314         
13315 2000-11-12  Havoc Pennington  <hp@pobox.com>
13316
13317         Rename this testgtk to gtk-demo to avoid confusion, and 
13318         install it so people can use it as a supplement to 
13319         the documentation.
13320         
13321         * demos/gtk-demo: Moved from demos/testgtk
13322
13323         * demos/testgtk: Removed
13324
13325         * configure.in: make Makefile in gtk-demo
13326         
13327         * demos/gtk-demo/Makefile.am: Install sample source to 
13328         datadir/gtk-demo (maybe there's a better place?), and 
13329         rename the binary to gtk-demo
13330         
13331         * demos/gtk-demo/main.c (load_file): Load installed sample
13332         source if source isn't found in pwd.
13333
13334 2000-11-09  Havoc Pennington  <hp@pobox.com>
13335
13336         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
13337         argument to set the char displayed when visibility == FALSE
13338         (gtk_entry_create_layout): If !entry->visible, replace 
13339         all chars with the "invisible char"
13340
13341         * gtk/testgtk.c: Test the invisible_char deal
13342         
13343 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
13344
13345         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
13346         can't get a native font in the right encoding.
13347
13348 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
13349
13350         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
13351         respectively.
13352
13353 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
13354
13355         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
13356         Fix warning when moving between paragraphs.
13357
13358         * gtk/gtkentry.[ch]: Change move => move_cursor, 
13359         delete => delete_from_cursor, insert => insert_at_cursor
13360
13361 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
13362
13363         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
13364
13365         * modules/input/imthai-broken.c: A Thai input method for use if
13366         Thai keys are really generating Latin1 keysyms.
13367
13368         * modules/input/Makefile.am: Build these.
13369
13370 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
13371
13372         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
13373         g_filename_{to,from}_utf8 now takes an extra parameter.
13374
13375         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
13376         strftime into UTF-8.
13377
13378         (column_from_x, gtk_calendar_paint_day_names): Support RTL
13379         calendars.
13380
13381         (gtk_calendar_paint_day_names): Draw day names in the right 
13382         place.
13383         
13384 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
13385
13386         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
13387         problem with using result of g_get_charset() backwards -
13388         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
13389
13390         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
13391         negative min_width/height and max_width/height to
13392         mean "requisition"; this allows setting a window
13393         to be user-resizable in only one direction easily.
13394
13395         * gtk/testgtk.c (create_main_window): Remove hard-coded
13396         usize - set a default size in the vertical direction.
13397
13398 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
13399
13400         * gtk/gtkrange.c: Add some missing casts. Support 
13401         2 and 3 button clicks on the arrows to mean 
13402         "move by pages" and "jump to end". (Like gtkspinbutton)
13403
13404 2000-11-12 Hans Breuer <Hans@Breuer.Org>
13405
13406         * gdk/win32/makefile.msc : reflect build module changes
13407
13408         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
13409         from GdkPixmap*, cast implementation member instead.
13410
13411         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
13412         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
13413         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
13414         more Gdi functions return value checking. 
13415         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
13416         GdkImagePrivateWin32 *.
13417
13418         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
13419         menus useable again. Add #pragma message to keep reminded on this issue.
13420         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
13421         windows. This allows to enable backing store on Win32!
13422
13423         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
13424         in drawable is of impl type. Correct specific type checks appropriate.
13425  
13426         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
13427         GDK_WINDOW_DESTROYED before allocating new resources.
13428
13429         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
13430
13431         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
13432         (gdk_window_foreign_new) initialize parent handle.
13433         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
13434
13435         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
13436         Let the GDI invalidate the window on MoveWindow call to fix scrolling
13437         problems (e.g. main buttons in testgtk). 
13438
13439 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
13440
13441         * gtk/gtkentry.c (gtk_entry_key_press): Call 
13442         gtk_widget_activate for GDK_Return.
13443
13444         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
13445         of preedit cursor position.
13446
13447 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
13448
13449         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
13450         static.
13451
13452 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
13453
13454         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
13455         out support for multiple locales; that simple doesn't
13456         work reliably with current Xlib
13457
13458         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
13459         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
13460         Add support for positioning the cursor within the preedit string.
13461
13462 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
13463
13464         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
13465         at XIM input method module.
13466
13467         * gtk/gtktextview.c: Check for bindings after passing
13468         events to im context filter.
13469
13470 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
13471
13472         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
13473         empty attribute lists properly.
13474
13475 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
13476
13477         * gtk/queryimmodules.c (main): Return non-zero exit
13478         status if errors were encountered querying any
13479         modules.
13480
13481         * modules/input/Makefile.am (moduledir): remove
13482         leftover bin program target.
13483
13484         * docs/make-todo: Fix typo in error message.
13485
13486 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
13487
13488         * configure.in: Add modules/input/Makefile
13489
13490 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
13491
13492         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
13493         don't include gtkthemes.h.
13494
13495         * gtk/testgtk.c gtk/testtext.c: Set environment variables
13496         to point
13497
13498         * gtk/Makefile.am: Add new .c and .h files, build 
13499         gtk-query-immodules and use it to create a gtk.immodules
13500         file for use of test programs.
13501
13502         * gtk/gtkpreview.c: remove extra blank line.
13503
13504 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
13505
13506         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
13507         Add the ability to add extra tables beyond the default
13508         one, and also the ability to have compose sequences 
13509         that are prefixes of other compose sequences. 
13510
13511         * gtk/gtkimcontextsimple.c: Export a preedit string which
13512         consists of possible candidates for keystrokes that have
13513         been entered but not yet committed.
13514
13515         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
13516         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
13517
13518         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
13519         Add a function to add input-method switching menu items
13520         to a menu.
13521
13522         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
13523         when switching input methods.
13524
13525         * gtk/gtkimcontextsimple.[ch]: Change the format of
13526         the compose table to allow compose tables of different
13527         lengths / sequence.
13528
13529 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
13530
13531         * gtk/gtkimmodule.[ch]: Support routines for loading
13532         GtkIMContext implementations dynamically at runtime.
13533
13534         * modules/input/imcyrillic-translit.c: A sample input
13535         method (based on GtkIMContextSimple with an extra table),
13536         which demonstrates preedit strings and the module
13537         system for input modules
13538
13539         * gtk/queryimmodules.c: Program to query the available
13540         input modules and write the results into a file.
13541          
13542         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
13543         extra config options "im_module_file" (cache file for
13544         input method modules), and "im_module_path" - path
13545         to look for modules when generating cache file.
13546
13547         This doesn't scale.
13548
13549 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
13550
13551         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
13552         generic code from gtkthemes into a new abstraction
13553         GtkModule which has the logic for implementing
13554         a loadable module which implements a number of 
13555         GObject types.
13556
13557 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
13558
13559         * gtk/gtkeditable.[ch]: Convert GtkEditable from
13560         a class into an interface  
13561         
13562         * gtk/gtkoldeditable.[ch]: Move the old editable
13563         implementation into here, so legacy widgets can
13564         still rely on the implemenation. GtkOldEditable
13565         exports GtkEditable. Make selection handling
13566         code use new text conversion functions (and
13567         handle UTF-8 as a side-effect). Use GtkClipboard
13568         for CLIPBOARD.
13569
13570         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
13571         Adopt to match above changes.
13572
13573         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
13574         avoid GtkOldEditable implementation. Restructure
13575         to reduce number of places that modify state directly.
13576         Move to GtkBindingSet. Display the preedit string.
13577         Queue recomputation of PangoLayout and scroll position
13578         to improve effiency of doing complex changes naively.
13579         Add a menu with cut/copy/paste and input method selection.
13580
13581 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
13582
13583         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
13584         to set preedit string and attributes; display preedit string by
13585         inserting string and attributes at cursor when creating the
13586         GtkTextLineDisplay.
13587
13588         * gtk/gtktextlayout.c: Move all conversions between byte
13589         positions in PangoLayout and GtkTextIter into new functions
13590         line_display_iter_to_index/index_to_iter that properly
13591         handle the preedit string.
13592
13593         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
13594         it to return const char * (eventually will end up
13595         as GCONST char *, most likely.)
13596
13597         * gtk/gtktextview.[ch]: Handle the preedit string, call
13598         gtk_im_context_reset() as necessary, add a menu to switch
13599         input methods.
13600         
13601         * gtk/gtktextlayout.[ch]: Remove useless
13602         gtk_text_layout_get_log_attrs() function.
13603
13604 2000-11-11  Tor Lillqvist  <tml@iki.fi>
13605
13606         * gdk/gdk.def
13607         * gtk/gtk.def: Update.
13608
13609         * gdk/win32/*.c: Add last argument to g_type_register_static()
13610         calls.
13611
13612         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
13613
13614         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
13615         generated by older wheel mouse drivers. Get the correct y
13616         coordinate from WM_MOUSEWHEEL messages.
13617
13618         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
13619         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
13620         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
13621         Debugging functions.
13622
13623         * gdk/win32/gdkprivate-win32.h: Declare them.
13624
13625         * gdk/win32/gdkinput-win32.h: Add declaration for
13626         gdk_input_window_destroy().
13627
13628         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
13629
13630 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
13631
13632         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
13633         function to help handle keeping things in sync.
13634
13635 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
13636
13637         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
13638         BOXED marshallers.
13639
13640         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
13641         (gtk_list_store_class_init): use the new BOXED marshallers.
13642
13643         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
13644         new_with_values to new_with_types.
13645         (gtk_tree_store_get_column_type): add this.
13646         (gtk_tree_store_class_init): use the new BOXED marshallers.
13647
13648         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
13649         mirror some POINTER marshallers.
13650
13651 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
13652
13653         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
13654         allow more interesting iterators.  Also, made the lifecycle of
13655         iterators more explicit.
13656
13657         * gtk/gtktreemodelsort.[ch]: New model for sorting.
13658
13659         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
13660         types.
13661
13662 2000-11-09  Alexander Larsson  <alexl@redhat.com>
13663
13664         * demos/testgtk/menus.c:
13665         Changes to make the new testgtk compile after
13666         gtk_menu_append was removed.
13667
13668         * gdk/linux-fb/gdkdrawable-fb2.c
13669         (gdk_fb_get_depth, gdk_fb_get_visual,
13670         gdk_drawable_impl_fb_class_init): Implement
13671         these drawable functions. Now GtkImages work again.
13672
13673         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
13674
13675         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
13676         
13677         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
13678         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
13679         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
13680         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
13681
13682 2000-11-08  Havoc Pennington  <hp@pobox.com>
13683
13684         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
13685         visible_set args, don't know where these had gone, I thought they
13686         used to be there
13687
13688         * gtk/testtext.c: Add a menu item to apply invisibility tag;
13689         now we can test the feature and see that it's totally broken.
13690
13691 2000-11-08  Havoc Pennington  <hp@pobox.com>
13692
13693         Make DND copy pixbufs and tags when source and target share a 
13694         tag table.
13695         
13696         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
13697         in-process GTK_TEXT_BUFFER_CONTENTS target
13698         (gtk_text_view_drag_data_received): Paste from
13699         GTK_TEXT_BUFFER_CONTENTS if we receive it.
13700
13701 2000-11-08  Alexander Larsson  <alexl@redhat.com>
13702
13703         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
13704         API changes.
13705
13706         * gtk/gtkmenu.c: Add support for scrolling menus.
13707         Remove gtk_menu_append/prepend/insert, these have been moved to
13708         gtkcompat.h as #defines.
13709
13710         * gtk/gtkcompat.h.in:
13711         Add compatibility #defines for gtk_menu_append/prepend/insert
13712
13713         * gtk/gtkmenu.h: Add data needed for scrolling menus.
13714         GtkMenuPositionFunc gets an extra argument push_in.
13715         gtk_menu_append/prepend/insert removed.
13716         
13717         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
13718         positioning behaviour to fit to scrolling menus.
13719
13720         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
13721         into menuitem->submeny. That is wrong, and broke torn
13722         off submenus of torn off menus, since they were unrealized
13723         when the first menu was unrealized.
13724
13725         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
13726         gtk_menu_shell_select_item() since these need to be overridden in
13727         GtkMenu.
13728
13729         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
13730         positioning behaviour to fit to scrolling menus.
13731         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
13732         the current item so that it is prelighted when the menu pops up.
13733         This is a workaround to the fact that the menu doesn't get the
13734         initial enter event (due to grabs).
13735
13736         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
13737         s/gtk_menu_append/gtk_menu_shell_append/
13738
13739         * gtk/gtknotebook.c:
13740         s/gtk_menu_insert/gtk_menu_shell_insert/
13741
13742         * gtk/testgtk.c (create_menu, create_menus):
13743         Create the first menu with 50 items so that menu scrolling
13744         can be tested.
13745         
13746         
13747         Patch from Jonathan Blandford  <jrb@redhat.com>
13748
13749         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
13750         system to handle size requests.  First, we ask what the size of
13751         the toggle is.  Then, when allocating the size, we allocate the
13752         toggle_size first.  This way we can have multiple menu-item
13753         classes w/o needing a seperate class for each.
13754
13755         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
13756         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
13757
13758         * gtk/gtkcheckmenuitem.c
13759         (gtk_check_menu_item_toggle_size_request): New function to handle
13760         the toggle size-request.
13761
13762 2000-11-07  Havoc Pennington  <hp@redhat.com>
13763
13764         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
13765         Half-ass somewhat fix this function, so that scrolling to the
13766         insertion point works. Pango hacking is in the future to really
13767         fix it.
13768
13769         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
13770         length of data, no longer used.
13771
13772         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
13773         method contents in here, get rid of destroy method
13774         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
13775         that were backward. Remove debug spew.
13776         (cut_or_copy): Make the clipboard work with insert_range to
13777         preserve tags and pixbufs, not just the primary selection.
13778
13779 2000-11-07  Havoc Pennington  <hp@redhat.com>
13780
13781         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
13782         to gtk_text_mark_get_visible
13783
13784         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
13785         bug that was generating an invalid iterator
13786
13787         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
13788         ensure_char_offsets() in front of code placing the iter in an
13789         invalid state.
13790
13791         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
13792         make override_location arg const
13793         (paste): Replace the selection if we paste into the 
13794         current selection
13795
13796         * gtk/gtkselection.h: Remove "GtkSelectioData"
13797         (struct _GtkSelectionData): move the definition here.
13798
13799         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
13800         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
13801
13802         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
13803
13804         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
13805         (gtk_text_buffer_insert_range_interactive): implement
13806         (gtk_text_buffer_get_tags): Remove, replaced by
13807         gtk_text_iter_get_tags()
13808
13809         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
13810         limit parameter, to avoid infinite linear scan.
13811         (gtk_text_iter_backward_search): Add search limit
13812         (gtk_text_iter_forward_find_char): Add search limit
13813         (gtk_text_iter_backward_find_char): Add search limit
13814
13815 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
13816
13817         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
13818         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
13819         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
13820         gdk/linux-fb/gdkwindow-fb.c:
13821         use g_object_new() instead of g_type_create_instance() which
13822         is a private function for fundamental type implementations.
13823
13824         * gdk/linux-fb/gdkinput-ps2.c:
13825         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
13826         instead just store the current modifier state. Add a (somewhat broken)
13827         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
13828         Rename exported function gdk_input_ps2_get_mouseinfo to
13829         gdk_input_get_mouseinfo.
13830
13831         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
13832         gdk/linux-fb/gdkwindow-fb.c:
13833         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
13834         
13835
13836 2000-11-02  Havoc Pennington  <hp@redhat.com>
13837
13838         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
13839         use stock buttons. Should be 100% source compatible, appropriate
13840         filesel fields now point to dialog->vbox and dialog->action_area.
13841         On the bizarre side, dialog->action_area and filesel->action_area
13842         are not the same widget.
13843         (gtk_file_selection_init): Put some padding around the selection
13844         entry, so it isn't touching the GtkDialog separator.    
13845
13846         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
13847         use stock buttons, etc. Should also be source compatible.
13848         Set the dialog default title in _init not _new().
13849         
13850         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
13851         Use stock buttons; don't put a button box inside the existing
13852         dialog button box. Don't bother with push/pop colormap anymore.
13853
13854         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
13855         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
13856         for message dialog, and necessary for the font selection and color
13857         selection with help and apply buttons.
13858         
13859         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
13860         to the created button widget. Set GTK_CAN_DEFAULT on the button.
13861         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
13862         between buttons, put less padding around the action area.
13863         (gtk_dialog_run): Exit on unmap rather than on destroy. 
13864         This will also exit the loop if the widget is hidden.
13865         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
13866         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
13867         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
13868         special-case delete event.
13869
13870         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
13871         formatting
13872         
13873 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
13874
13875         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
13876         button to temporarily disable position recording in the
13877         "saved position" test.
13878
13879 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
13880
13881         * gtk/gtkthemes.c: added compat code that temporarily implements
13882         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
13883         going to be revamped by owen's upcoming GtkModule patches, but
13884         untill then people want gtk to build, right? ;)
13885
13886 2000-11-04  Havoc Pennington  <hp@pobox.com>
13887
13888         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
13889         list
13890
13891         * docs/Changes-2.0.txt: Add note about
13892         gtk_container_get_toplevels()
13893
13894         * gtk/gtktextview.h: formatting
13895         
13896         * gtk/gtktextview.c: don't start descriptions with "Returns",
13897         confuses gtk-doc
13898
13899 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
13900
13901         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
13902         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
13903
13904 2000-11-03  Havoc Pennington  <hp@redhat.com>
13905
13906         * gtk/gtktexttagtable.c: Docs
13907         (gtk_text_tag_table_size): return a signed int
13908
13909         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
13910         (gtk_text_tag_event): make the event_object a GObject
13911
13912         * gtk/gtktextview.c: Write API docs for all functions.
13913
13914         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
13915         for gtk_text_view_get_window_type() called on one of the private
13916         windows.
13917
13918         * gtk/gtktextview.c: Instead of accessing text_view->buffer
13919         directly, call get_buffer() which demand-creates a default
13920         buffer. So gtk_text_view_new() can be used to create a view with a
13921         default buffer in it, if you just want an empty text box users can
13922         put data in. Useful for GUI builders also.
13923
13924 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
13925
13926         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
13927         the charset encodign portion MUST be in lowercase.
13928         * gtk/gtkrc.az: added file for Azeri language
13929
13930 2000-11-03  Havoc Pennington  <hp@redhat.com>
13931
13932         Get widgets working on the btree/buffer side. Display of them 
13933         still doesn't work.
13934         
13935         * gtk/gtktextview.c: start implementing child widget stuff
13936
13937         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
13938
13939         * gtk/gtktextlayout.c: handle embedded widgets
13940
13941         * gtk/gtktextdisplay.c: handle embedded widgets
13942
13943         * gtk/gtktextchild.c: Implement all the child anchor goo
13944
13945         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
13946         function
13947
13948         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
13949         (insert_pixbuf_or_widget_segment): abstract out common portions of 
13950         creating a child anchor or a pixbuf segment.
13951         (gtk_text_btree_create_child_anchor): new function
13952         (gtk_text_btree_unregister_child_anchor): new function
13953
13954         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
13955         allocate_child signal on GtkTextLayout
13956
13957         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
13958         values
13959         (gtk_text_iter_get_child_anchor): new function
13960
13961         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
13962         default handler for the changed signal, which calls
13963         gtk_text_buffer_set_modified(), instead of just always emitting
13964         changed then calling set_modified() manually. I guess this is
13965         maybe more flexible. It seems logical.
13966
13967 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
13968
13969         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
13970         now.
13971
13972         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
13973
13974 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
13975
13976         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
13977         been marked static.
13978
13979 2000-11-02  Havoc Pennington  <hp@redhat.com>
13980
13981         * gtk/testgtk.c (create_labels): had a test backward
13982
13983         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
13984         fields, so the dest GC ends up with the correct clip origin, 
13985         etc. Fixes a bug where colored labels didn't redraw 
13986         properly.
13987
13988 2000-11-02  Alexander Larsson  <alexl@redhat.com>
13989
13990         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
13991         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
13992         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
13993         Add last argument to t_type_register_static call.
13994         
13995         * gdk/linux-fb/gdkdrawable-fb2.c:
13996         Add last argument to t_type_register_static call.
13997         export the get_image drawable virtual function.
13998
13999         * gdk/linux-fb/gdkimage-fb.c:
14000         Add last argument to t_type_register_static call.
14001         rename gtk_image_get to _gdk_fb_get_image and
14002         export it for use by gdkdrawable-fb2.
14003
14004         * gdk/linux-fb/gdkprivate-fb.h:
14005         export _gdk_fb_get_image.
14006
14007         * gdk/linux-fb/gdkselection-fb.c:
14008         Add new api call stubs.
14009
14010         * gtk/Makefile.am:
14011         Missing ( in linux-fb part.
14012
14013         * modules/linux-fb/Makefile.am:
14014         Must link with gdk_pixbuf or get unresolved symbol.
14015
14016 2000-11-01  Havoc Pennington  <hp@pobox.com>
14017
14018         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
14019         GTK_TYPE_TEXT_ITER and BOXED marshallers
14020
14021         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
14022
14023         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
14024         
14025         * gtk/gtk-boxed.defs: add GtkTextIter
14026
14027         * gtk/gtkmarshal.list: Add marshallers for text widget that 
14028         properly use OBJECT and BOXED
14029
14030 2000-11-01  Havoc Pennington  <hp@redhat.com>
14031
14032         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
14033
14034         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
14035         before returning it. 
14036         
14037 2000-11-01  Havoc Pennington  <hp@redhat.com>
14038
14039         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14040         Clip the rectangle to be rendered to the drawable, since
14041         get_from_drawable() requires a region within the drawable
14042
14043 2000-11-01  Havoc Pennington  <hp@redhat.com>
14044
14045         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
14046         from coordinates.
14047
14048 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
14049
14050         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
14051         it isn't NULL.
14052
14053 2000-11-01  Havoc Pennington  <hp@pobox.com>
14054
14055         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
14056         on a label
14057         (gtk_label_finalize): unref the attr list if any.
14058
14059         * gtk/testgtk.c (create_get_image): close test on second click
14060         (make_message_dialog): close dialog if it exists
14061
14062         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
14063
14064         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
14065         gdk-pixbuf
14066
14067         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
14068         from Pango markup format
14069         (gtk_label_set_markup_with_accel): ditto but with accelerator
14070         parsing
14071
14072         * gtk/gtkimage.c (gtk_image_expose): reformatting.
14073
14074         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
14075         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
14076         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
14077         call gdk_window_get_origin().
14078
14079         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14080         implement GDK_PIXBUF_ALPHA_FULL
14081         
14082 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
14083
14084         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
14085         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
14086         g_signal_handlers_disconnect_matched to block/unblock and disconnect
14087         multiple handlers respectively, instead of only treating the
14088         first handler found (bug reported by owen).
14089
14090 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
14091
14092         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
14093
14094         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
14095
14096         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
14097         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
14098         gtk/gtktreeviewcolumn.h: Fixed inline docs.
14099
14100         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
14101         widget.  Needs writing someday.
14102
14103         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
14104         the docs.
14105
14106 2000-10-30  Havoc Pennington  <hp@redhat.com>
14107
14108         * gtk/gtktextview.h, gtk/gtktextview.c:
14109         Rename delete_at_cursor delete_from_cursor, and 
14110         move to move_cursor.
14111
14112 2000-10-30  Havoc Pennington  <hp@redhat.com>
14113
14114         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
14115         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
14116         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
14117         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
14118         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
14119         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
14120         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
14121         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
14122         gtktexttypes.h, gtktextview.c, gtktextview.h:
14123
14124         Massive reindentation and reformatting. Arg alignment and comments
14125         still need fixing in various places.
14126
14127 2000-10-30  Havoc Pennington  <hp@redhat.com>
14128
14129         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
14130         to be named insert_at_cursor and delete_at_cursor so C++ can
14131         handle them.
14132
14133 2000-10-28  Tor Lillqvist  <tml@iki.fi>
14134
14135         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
14136         to get a double directory separator in case the home directory
14137         ends with one. This would cause trouble especially on Windows,
14138         where the path will be confused with the syntax for an an UNC
14139         (network share) path \\server\share\path.
14140         (gtk_rc_add_initial_default_files): Ditto.
14141
14142 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
14143
14144         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
14145
14146         * gtk/gtktextview.c: Use correct marshallers.
14147
14148 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
14149
14150         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
14151         use new iter stuff, and added all the appropriate signals et al.
14152
14153         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
14154         code is internal to gtk only.
14155
14156 2000-10-28  Tor Lillqvist  <tml@iki.fi>
14157
14158         * gtk/gtk.def
14159         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
14160         glib-genmarshal etc.
14161
14162 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
14163
14164         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
14165         parallel builds.
14166
14167 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
14168
14169         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
14170
14171 2000-10-27  Robert Brady  <robert@suse.co.uk>
14172
14173         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
14174         en_GB (British), ia (Interlingua).
14175
14176 2000-10-26  Havoc Pennington  <hp@redhat.com>
14177
14178         * gtk/gtktextiter.c (my_strrstr): fix constness warning
14179
14180         Fixed output of:
14181         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
14182         
14183         * gtk/gtktextsegment.c (char_segment_new): rename
14184         (_char_segment_new_from_two_strings): rename
14185         (_toggle_segment_new): rename
14186         
14187         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
14188         (make_clipboard_widget): make it static
14189         (text_get_func): static
14190         (text_clear_func): static
14191
14192         * gtk/gtkcolorsel.c (adjustment_changed): make this function
14193         static
14194         (hex_changed): make it static
14195         (hsv_changed): make it static
14196         (opacity_entry_changed): make it static
14197
14198         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
14199         (toggle_segment_check_func): rename with _gtk
14200
14201         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
14202         (_widget_segment_new): rename
14203         (_widget_segment_add): rename
14204         (_widget_segment_remove): rename
14205         (_widget_segment_ref): rename
14206         (_widget_segment_unref): rename
14207
14208         * gtk/gtktextmark.c (_mark_segment_new): Rename
14209         _gtk_mark_segment_new   
14210
14211 2000-10-26  Havoc Pennington  <hp@redhat.com>
14212
14213         * gtk/gtkmarshal.list: add new marshallers used by the text widget
14214         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14215         types
14216
14217         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
14218         marshaller types
14219
14220         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
14221         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
14222         license on these files.
14223
14224         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
14225         work.
14226
14227         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
14228         runtime random number different for each tree, instead of 
14229         a constant I made up.
14230
14231 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
14232
14233         * gtk/Makefile.am: buncha cleanups, kludged build sources
14234         dependencies with a Makefile: oldest-source-stamp dependancy
14235         for the moment. automake is really fighting us here, with
14236         intentionally not allowing user-defined rules or dependancies
14237         prior to it's -include $(DEP_FILES) statement. sucks rocks!
14238
14239         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
14240         to public headers. tehy have a comment stating that they are
14241         "semi-public" aren't included by gtk.h and if enums popup there,
14242         they can be /*< skip >*/-ed.
14243
14244         * gtk/gtktextlayout.h: 
14245         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
14246         added LGPL... <SIGH>
14247
14248 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
14249
14250         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
14251         GtkTreeIter.  Added iterators everywhere.
14252
14253         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
14254
14255         * gtk/gtktreeviewselection.c: Changed to use the iterators.
14256
14257         * gtk/gtktreestore.c: Changed to use the iterators.
14258
14259         * gtk/gtkliststore.c: Commented out the code.  Will convert to
14260         iterators tomorrow.
14261
14262         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
14263         iterators tomorrow.
14264
14265         * gtk/treestoretest.c: Changed to use iterators.
14266
14267         * demos/testgtk/main.c: Moved to use the new iterator system.
14268
14269 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
14270
14271         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
14272         localization misbehaviour.
14273
14274         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
14275         a useless type without copy/free.
14276
14277         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
14278         of GTK_TYPE_CTREE_NODE.
14279
14280 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
14281
14282         * gtk/gtksignal.c:
14283         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
14284         applicable.
14285
14286         * gtk/gtk-boxed.defs (GtkSelectionData): specify
14287         gtk_selection_data_copy and gtk_selection_data_free
14288         do GtkSelectionData work as params in signals.
14289
14290 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
14291
14292         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
14293         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
14294         couldn't they at least give it a non-standard name?
14295         
14296         * gtk/gtktextlayout.c: arg! yet another implementation of
14297         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
14298
14299         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
14300         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
14301         home. now i know this _is_ a conspiracy.
14302
14303         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
14304         ::state-changed.
14305
14306         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
14307         (gtk_accel_group_create_add): marshaller signature fixups.
14308
14309         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
14310         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
14311
14312         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
14313         anymore.
14314
14315 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
14316
14317         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
14318         due to the signal system changes, it wouldn't build currently. to
14319         be fixed soon.
14320
14321         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
14322
14323         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
14324         so it needs gtk_marshal_VOID__ENUM() instead of
14325         gtk_marshal_NONE__UINT().
14326
14327         * gdk/gdk*.c: adapted type registration functions.
14328
14329         * gtk/gtkbindings.c:
14330         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
14331         gone.
14332
14333         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
14334
14335         * gtk/gtkobject.c:
14336         (gtk_object_destroy):
14337         (gtk_object_shutdown): fixed recursion guards. basically we have to
14338         catch the case where any of GObject.shutdown() or gtk_object_destroy()
14339         is called during ::destroy, and avoid recursion there.
14340
14341         * gtk/gtktypeutils.c:
14342         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
14343         boxed_copy/boxed_free. this needs a more general solution based on a
14344         publically installed code-generator utility.
14345
14346         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
14347         glib's gobject has support for that now.
14348         define GtkSignalMarshaller in terms of GSignalCMarshaller.
14349
14350 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
14351
14352         * gtk/gtksignal.[hc]:
14353         * gtk/gtkmarshal.[hc]:
14354         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
14355         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
14356         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
14357         care of that.
14358
14359         * *.c: marshaller name fixups.
14360
14361         * gtk/gtkmarshal.list: added a comment briefing the format.
14362
14363 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
14364
14365         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
14366         compatibility macros here now. more specifically, most of
14367         the API is preserved (yes, _most_, nonwithstanding the
14368         following exceptions listed, the API is stil lHUGE ;)
14369         things that got removed completely:
14370         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
14371         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
14372         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
14373         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
14374         gtk_signal_remove_emission_hook().
14375         non-functional functions variants:
14376         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
14377         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
14378         not supported anymore.
14379         (gtk_signal_compat_matched): new internal function to aid
14380         implementation of the compatibility macros, it  provides
14381         functionality to block/unblock/disconnect handlers based
14382         on func/data.
14383
14384         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
14385
14386         * *.c: adaptions to new type registration API signatures.
14387
14388 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
14389
14390         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
14391
14392 2000-10-25  Robert Brady  <robert@suse.co.uk>
14393
14394         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
14395         gdk_property_delete): If window == NULL, assume the root window.
14396         (restoring the behaviour that was in 1.2).
14397         
14398         * gtk/testtext.c (save_buffer): Allow creation of new files when
14399         saving.
14400
14401         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
14402         calls to read().
14403
14404 2000-10-25  Tor Lillqvist  <tml@iki.fi>
14405
14406         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
14407
14408         * gdk/win32/gdkdrawable-win32.c
14409         * gdk/win32/gdkimage-win32.c
14410         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
14411         X11 backend.
14412
14413         * gdk/win32/gdkcc-win32.c
14414         * gdk/win32/gdkcolor-win32.c
14415         * gdk/win32/gdkfont-win32.c
14416         * gdk/win32/gdkinput-win32.c
14417         * gdk/win32/gdkmain-win32.c
14418         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
14419
14420 2000-10-24  Havoc Pennington  <hp@redhat.com>
14421
14422         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
14423         it a static function
14424
14425         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
14426         redraw text when a tag is applied to it.
14427
14428         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
14429         (gtk_text_tag_affects_nonsize_appearance): private functions to
14430         see if a tag requires various kinds of redraw/layout to be queued
14431         up.
14432
14433         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
14434
14435         * gtk/testtext.c (fill_example_buffer): Put the cursor 
14436         at the start of the buffer, so search works by default
14437
14438         * gtk/gtktextiter.c (lines_match): init match_start always
14439
14440         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
14441         function, get iter at a line + a byte index
14442
14443         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
14444         to set byte position within a line
14445         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
14446
14447 2000-10-23  Havoc Pennington  <hp@redhat.com>
14448
14449         * gtk/testtext.c: Re-enable the "find" dialog
14450
14451         * gtk/testgtk.c: Add test for gdk_drawable_get_image
14452         
14453         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
14454         the arguments to gdk_draw_drawable were in the wrong order
14455         (gdk_window_paint_init_bg): This function was ignoring the
14456         init_region, instead of clipping to it, so the entire backing
14457         pixmap was cleared on every begin_paint()
14458         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
14459         was in here again, the loop kept using the same GtkWindowPaint
14460         over and over.
14461         (gdk_window_begin_paint_region): Fix a bug where we had two
14462         x_offset instead of x_offset and y_offset
14463
14464         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
14465         before we get the image.
14466         (gdk_draw_drawable): get the composite before we draw the drawable.
14467         (gdk_drawable_real_get_composite_drawable): default
14468         get_composite_drawable implementation that returns the drawable 
14469         itself
14470
14471         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
14472         get_composite_drawable virtual function
14473
14474         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
14475         list-walking bug
14476
14477         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
14478         make this work if the source drawable is a GdkDrawableImplX11
14479         instead of a public drawable type. This is really broken; the
14480         problem is that GdkDrawable needs a virtual method get_xid(), but
14481         of course that doesn't work in practice. Enter RTTI.
14482
14483         Also, improve mismatched depth message.
14484
14485         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
14486         GdkPixmap
14487
14488         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
14489         install _gdk_x11_get_image as our implementation of get_image
14490         
14491         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
14492         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
14493
14494         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
14495         gdk_drawable_get_image
14496
14497         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
14498
14499         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
14500         get_image
14501
14502         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
14503         trailing semicolon after for loop
14504
14505 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
14506
14507         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
14508         where font_desc for widget's context lagged widget's font_desc by
14509         one step.
14510
14511 2000-10-22  Tor Lillqvist  <tml@iki.fi>
14512
14513         * gdk/win32/gdkgc-win32.c
14514         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
14515
14516         * gtk/makefile.mingw.in
14517         * gtk/gtk.def: Updates.
14518
14519         * gtk/testgtk.c: sleep() is called _sleep in MS's C
14520         library.
14521
14522         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
14523
14524         * gtk/makefile.msc: Remove
14525
14526         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
14527
14528         * gtk/Makefile.am: Add it.
14529
14530         * configure.in: Generate it.
14531
14532         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
14533         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
14534         something even if not implemented, to satisfy picky MSVC.
14535
14536         Patches by Hans Breuer:
14537         
14538         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
14539         SetBkMode() and SetTextAlign() before calling
14540         pango_win32_render().
14541
14542         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
14543         Set hcliprgn to NULL after destroying it.
14544         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
14545
14546         * gdk/win32/gdkgeometry-win32.c
14547         (_gdk_windowing_window_queue_antiexpose): More effective
14548         implementation.
14549
14550         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
14551         depth as default, not the visual's.
14552
14553         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
14554         against empty title.
14555
14556         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
14557         IMAGE_PRIVATE_DATA.
14558
14559         * gdk/win32/gdkimage-win32.c: Use it.
14560
14561 2000-10-22  Robert Brady  <robert@suse.co.uk>
14562
14563         * configure.in: Check for bind_textdomain_codeset
14564
14565         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
14566         present, make use of it.
14567
14568         Add a translatable string "default:LTR" which, if translated
14569         to "default:RTL", will cause the default direction to be
14570         Right-to-Left.
14571
14572         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
14573         direction if marked as flippable.
14574
14575         * gtk/gtkhscale.c: Mark widget as flippable.
14576         
14577 2000-10-04  Havoc Pennington  <hp@redhat.com>
14578
14579         * gtk/testgtk.c (create_buttons): create some stock buttons
14580         with the default accel group
14581         (create_image): test some new GtkImage features
14582         (make_message_dialog): test GtkMessageDialog
14583         (create_modal_window): fix someone's bizzarro indentation
14584
14585         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
14586         GTK_WIN_POS_CENTER_ON_PARENT. 
14587         Add "destroy with parent" setting, which means the window goes
14588         away with its transient parent.
14589         (gtk_window_get_default_accel_group): get the default accel group
14590         for the window.
14591         (gtk_window_set_destroy_with_parent): set/unset destroy with
14592         parent flag
14593         (gtk_window_read_rcfiles): invalidate icon set caches
14594         after reloading rcfiles 
14595
14596         * gtk/gtkenums.h (GtkWindowPosition): add
14597         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
14598         on its parent window when the dialog is mapped for the first time.
14599
14600         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
14601         a simple message dialog class
14602         
14603         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
14604         handler to emit response signal, and maybe later it would
14605         honor a hide_on_delete flag - though that isn't there yet.
14606         Set border width on the vbox to 2, so we get some padding.      
14607         Use a button box for the action area.
14608         (gtk_dialog_key_press): synthesize a delete event if Esc
14609         is pressed and the GtkWidget key press handler didn't 
14610         handle the escape key.
14611         (gtk_dialog_new_with_buttons): new function creates a dialog
14612         with some default buttons in it.
14613         (gtk_dialog_add_action_widget): add an activatable widget
14614         as a button in the dialog - you can also add a non-activatable
14615         widget by accessing the action area directly.
14616         (gtk_dialog_add_button): add a simple button - stock ID or 
14617         label - to the action area
14618         (gtk_dialog_response): emit response signal
14619         (gtk_dialog_run): block waiting for the dialog, return 
14620         the response. Override normal delete_event behavior, so that 
14621         delete_event does nothing inside gtk_dialog_run().
14622
14623         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
14624         emitted when an action widget is clicked or the dialog gets
14625         delete_event
14626
14627         * gtk/gtk.h: add gtkmessagedialog.h
14628
14629         * gtk/Makefile.am: add gtkmessagedialog.[hc]
14630
14631 2000-10-18  Havoc Pennington  <hp@redhat.com>
14632
14633         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
14634         where any number of empty lines would get skipped
14635
14636         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
14637         edge.
14638
14639         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
14640         warning about invalid iterators (explain more thoroughly)
14641         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
14642
14643         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
14644         big
14645
14646         * demos/*.c: Add error handling
14647
14648         * gtk/gtktextbuffer.c: don't modify const iterators
14649
14650         * gtk/gdk-pixbuf-loader.c: Add full error handling here
14651
14652         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
14653         on file load
14654
14655         * gtk/gtkiconfactory.c: Update to reflect addition of error
14656         handling to gdk-pixbuf loaders
14657
14658 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
14659
14660         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
14661         move to new modularized testgtk.
14662
14663 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
14664
14665         * gtk/gtktreeview.c: Draw the arrows correctly.
14666
14667         * gtk/gtktreemodel.c: Added user docs.
14668
14669         * gtk/gtk.h: remove gtktreedatalist.h.
14670
14671         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
14672         parent when generating my type.
14673
14674         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
14675         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
14676
14677 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
14678
14679         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
14680         GtkTreeModel from object to interface.
14681
14682 2000-10-16  Havoc Pennington  <hp@redhat.com>
14683
14684         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
14685         compilation
14686
14687 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
14688
14689         * gtk/gtktreeselection.c: Add API documentation to all public
14690         functions.
14691
14692         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
14693         functions.
14694
14695 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
14696
14697         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
14698         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
14699         docs to all public functions.
14700
14701         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
14702         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
14703         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
14704         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
14705         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
14706         issue.
14707
14708 2000-10-14  Robert Brady  <robert@suse.co.uk>
14709
14710         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
14711
14712 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
14713
14714         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
14715         values other then G_TYPE_STRING.
14716         * gtk/gtktreeselection.c: Minor commenting updates.
14717         * gtk/gtktreeview.c: Format updates.
14718
14719 2000-10-09  Tor Lillqvist  <tml@iki.fi>
14720
14721         * README.win32: Update.
14722
14723         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
14724         lines that had been deleted by mistake (?).
14725
14726         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
14727         also the case fg==white and bg==black (but still not randomly
14728         coloured cursors). Thanks to Wolfgang Sourdeau.
14729
14730         * gdk/win32/*.c: Silence gcc -Wall.
14731
14732         * gtk/gtk.def: Add missing entry points.
14733
14734         Fixes by Hans Breuer:
14735
14736         * gdk/makefile.msc
14737         * gdk/win32/makefile.msc: Update.
14738
14739         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
14740         some MSVC thing, presumably), cause breakpoint on failures. Add
14741         GDK_NOR case. Call g_log_set_always_fatal.
14742
14743         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
14744         should be pased by reference.
14745         
14746         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
14747         
14748         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
14749
14750         * gdk/win32/gdkevents-win32.c
14751         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
14752
14753         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
14754         implementation object.
14755
14756         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
14757         not just windows.
14758         
14759         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
14760         Use the wrapper object.
14761         
14762 2000-10-06  Havoc Pennington  <hp@redhat.com>
14763
14764         * Makefile.am (SRC_SUBDIRS): contrib subdir
14765
14766         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
14767         so it can be used in Xlib version
14768
14769         * demos/testpixbuf.c (update_timeout): error checking from 1.0
14770         tree
14771
14772         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
14773         change from 1.0 tree that returns first frame of animation
14774         if the loaded file is an animation.
14775
14776         * contrib: add new directory to hold stuff that comes with GTK+
14777         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
14778         
14779         * configure.in: add contrib/*
14780
14781 2000-10-05  Havoc Pennington  <hp@redhat.com>
14782
14783         * demos/testpixbuf-save.c: add pixbuf save test
14784
14785         * demos/Makefile.am: add testpixbuf-save.c
14786
14787 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
14788
14789         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
14790         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
14791         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
14792         * gtk/gtktreeselection.[ch]: Replaced
14793         "node_selected"/"node_unselected" signal with "selection_changed"
14794         signal.
14795
14796 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
14797
14798         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
14799         tree widget.
14800
14801 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
14802
14803         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
14804         drawing.
14805
14806 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
14807
14808         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
14809         Move list pointer forwards before removing item from
14810         list. (Crash reported by Salmaso Raffaele)
14811
14812         * gdk/gdkwindow.h: Remove spurious trailing ,
14813
14814         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
14815         dependencies on uninstalled libraries, sorry folks.
14816
14817 2000-10-04  Havoc Pennington  <hp@redhat.com>
14818
14819         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
14820         gtk/gtkiconfactory.c: Fix copyrights    
14821
14822         * demos/testpixbuf.c: add inline pixbuf test
14823         
14824 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
14825
14826         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
14827         Add gdk_window_iconify.
14828
14829         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
14830         (gdk_window_set_geometry_hints): Add win_gravity
14831         to geometry structure.
14832
14833         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
14834         Implement _NET_WM_PING.
14835
14836         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
14837         Set _NET_WM_PID on the client leader.
14838
14839         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
14840         Handle UTF-8 better.
14841
14842         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
14843         UTF-8 better, set _NET_WM_NAME as well. Only set
14844         icon name if it hasn't previously been explicitely 
14845         set.
14846
14847 2000-10-03  Havoc Pennington  <hp@redhat.com>
14848
14849         * gtk/testtextbuffer.c: clean up trailing whitespace,
14850         add extensive tests for tag toggle iteration.
14851         
14852         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
14853         distance
14854
14855         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
14856         optimize case where the tag root is on level 1
14857         (gtk_text_line_previous_could_contain_tag): attempt to implement
14858         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
14859         functionality
14860
14861         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
14862         Implement this, though not very efficiently.
14863
14864         * gtk/gtktextiterprivate.h: reformat
14865
14866         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
14867         iterator
14868
14869         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
14870         this to properly revalidate the iterators.
14871
14872         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
14873         properly at the end of the line (and therefore on empty lines)
14874
14875         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
14876         maybe we should return a value...
14877
14878 2000-10-03  Tor Lillqvist  <tml@iki.fi>
14879
14880         * config.h.win32: Guard definition of alloca(). glib.h now handles
14881         that.
14882
14883         * gdk/gdk.def
14884         * gtk/gtk.def: Add new entry points.
14885
14886         Changes just to make GTK+ build without errors on Win32. No hope
14887         of it working in its current state, though...:
14888         
14889         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
14890         some functions from the X11 backend, just to make GTK+ build.
14891
14892         * gdk/makefile.mingw.in
14893         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
14894         number. Add new object files.
14895
14896         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
14897         GetMessageTime to get timestamp (where on X11 uses
14898         gdk_x11_get_server_time()).
14899
14900 2000-10-02  Havoc Pennington  <hp@pobox.com>
14901
14902         * gtk/gtktextview.c: text_window_* weren't static and should have
14903         been.
14904         Start work on child widgets; not yet complete, syncing to 
14905         office computer.
14906
14907         * gtk/gtktextchild.h: change this to contain a public interface,
14908         starting work on child interfaces.
14909         * gtk/gtktextchildprivate.h: move private interfaces here
14910
14911         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
14912
14913         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
14914         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
14915         gtk/gtktextmark.c: copyright notices
14916
14917         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
14918         internal functions      
14919
14920         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
14921         internal function
14922
14923         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
14924         Reformatting    
14925
14926 2000-09-30  Havoc Pennington  <hp@pobox.com>
14927
14928         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
14929         NULL start/end pointers
14930
14931         * gtk/gtktextbuffer.c: Write some docs
14932         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
14933         NULL, so you can just check whether there's a selection.        
14934
14935         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
14936         cleanup_line or segments_changed ourselves, it gets done 
14937         in unlink_segment
14938
14939         * gtk/gtktextmark.h:
14940         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
14941         
14942         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
14943
14944         * gtk/gtktextmark.c: delete some more old Tk cruft
14945
14946         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
14947         mark before removing it, so we can emit MARK_DELETED with a valid
14948         pointer.
14949         (gtk_text_buffer_mark_set): hold ref across signal emission
14950
14951         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
14952         whining about attempts to delete special marks
14953
14954         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
14955         underscore, since it's internal.
14956
14957         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
14958         now implemented in terms of iterators in gtktextiter.h
14959
14960         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
14961         New function, destructively sets contents of buffer. Also 
14962         a convenient way to clear the buffer by setting text to ""
14963
14964         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
14965         multiline string literal
14966
14967         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
14968         text changes.
14969
14970         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
14971         is not dereferenceable
14972         (gtk_text_iter_forward_lines): fix return value
14973
14974 2000-09-29  Havoc Pennington  <hp@redhat.com>
14975
14976         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
14977
14978         * gtk/gtktextview.c: Implement drag thresholding; change functions 
14979         that set border window size to have nicer name
14980         (gtk_text_view_mark_set_handler):  Fix this to have the 
14981         right signature.
14982
14983         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
14984
14985         * gtk/testtext.c: Update with API changes, put line numbers on 
14986         both sides.
14987         
14988         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
14989         with this
14990
14991         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
14992         pixbuf; delete a big block of #if 0 Tk code
14993
14994         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
14995         insert_pixmap with insert_pixbuf
14996
14997 2000-09-29  Martin Baulig  <baulig@suse.de>
14998
14999         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
15000         confusion with the GdkPixbuf of the GNOME 1.x platform.
15001
15002 2000-09-29  Havoc Pennington  <hp@pobox.com>
15003
15004         * gtk/gtktextview.c: Implement the side windows.
15005
15006         * gtk/testtext.c: Implement simple line numbering in the 
15007         left side window; seems to make scrolling sloooow. Oops.
15008         Also, cursor blink is for some reason causing redraws
15009         of the line numbers. Should investigate...
15010
15011 2000-09-28  Havoc Pennington  <hp@redhat.com>
15012
15013         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
15014         scrolling child windows, and draw focus rectangle properly.
15015         
15016         (gtk_text_view_buffer_to_window_coords):
15017         Coordinate transformation to deal with all these freaking windows
15018         and offsets
15019         (gtk_text_view_window_to_buffer_coords): transform the other way
15020
15021         * gtk/testtext.c (create_buffer): Update to match Pango API change
15022
15023         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
15024         anonymous tags
15025         (foreach_unref): don't emit remove signal from finalize, just
15026         set tag's parent to NULL
15027
15028 2000-09-26  Havoc Pennington  <hp@redhat.com>
15029
15030         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
15031         Fix some warnings       
15032
15033 2000-09-26  Havoc Pennington  <hp@redhat.com>
15034
15035         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
15036         headers into the private header list
15037
15038         * Makefile.am (pkgconfig_DATA): install pkg-config files
15039
15040         * configure.in: add pkg-config files
15041
15042         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
15043
15044         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
15045         outstanding icon caches on theme change.
15046
15047         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
15048         important types:
15049
15050         (GtkIconSource): Specification for creating a pixbuf 
15051         appropriate for a direction/state/size triplet from 
15052         a source pixbuf or filename
15053
15054         (GtkIconSet): List of GtkIconSource objects that are used to
15055         create the "same" icon (e.g. an OK button icon), and cache for
15056         rendered icons
15057
15058         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
15059         up the icon set for a given stock ID.  GTK maintains a stack of
15060         GtkIconFactory to search, and applications or libraries can add
15061         additional icon factories on top of the stack
15062         
15063         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
15064         the set of GtkIconSource specified for a given stock ID into 
15065         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
15066         RcStyle, under the specified stock ID.
15067
15068         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
15069         render_icon used to derive a GdkPixbuf from a GtkIconSource.
15070         This allows people to theme how prelight, insensitive, etc. are
15071         done.
15072
15073         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
15074         icon factories for a style, and return the resulting 
15075         icon set if any.
15076
15077         (gtk_style_render_icon): Render an icon using the render_icon 
15078         method in the GtkStyleClass.
15079
15080         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
15081         Use the style for a given widget to look up a stock ID, get the
15082         icon set, and render an icon using the render_icon method 
15083         of the style
15084
15085         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
15086         (contains information about a stock item), the built-in stock item
15087         IDs, and functions to add/lookup stock items.
15088
15089         * gtk/stock-icons/*: Stock icons that come with GTK
15090
15091         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
15092         a button based on a GtkStockItem
15093         (gtk_button_new_accel): Takes a uline string and accel group, and
15094         installs the accelerator.
15095
15096         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
15097         image-display widget.
15098
15099 2000-09-25  Havoc Pennington  <hp@redhat.com>
15100
15101         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
15102
15103         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
15104         Fix a bug when removing node data, we didn't properly 
15105         re-splice the linked list after removing the data.
15106
15107         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
15108         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
15109
15110         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
15111
15112         * gtk/gtktextlayout.c (set_para_values): Set tab array 
15113         for the layout from the GtkTextTag.
15114
15115         * gtk/gtktexttypes.h: delete tab and search cruft, 
15116         remove g_convert() in favor of GLib version
15117
15118         * gtk/gtktexttypes.c: remove tab implementation from here,
15119         move to Pango
15120
15121         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
15122         tab stuff using new PangoTabArray from Pango
15123
15124         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
15125         unused border_width stuff
15126
15127 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
15128
15129         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
15130         glib) and now useless utf_to_latin1() latin1_to_utf()
15131
15132         * gtk/gtktextview.[ch]: Change ::move_insert and
15133         ::delete_text action signals to ::move and ::delete;
15134         create the signals with the right enumeration type,
15135         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
15136         C-v bindings, change Home, End to move to beginning/end
15137         of line, Add C-Home C-End to move to beginning/end
15138         of buffer. Change ::cut_text to ::cut_clipboard, etc;
15139         combine ::scroll_text into ::move; use new GtkSelectionData
15140         functions to simplify DND text handling.
15141         
15142         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
15143         deletion enumerations here, rename enumeration values to 
15144         be consistently plural.
15145
15146         * gtk/gtktextbuffer.c: Use new clipboard interfaces
15147         for cut/copy/paste and primary selection.
15148
15149         * gtk/gtktextbuffer.[ch]: Remove excess time and
15150         'interactive' arguments from cut/copy/paste;
15151         rename cut to cut_clipboard, etc; remove
15152         gtk_text_buffer_get_clipboard_contents().
15153
15154         * gtk/gtktextlayout.[ch]: Add 
15155         gtk_text_layout_move_iter_to_line_end() to move the iter to 
15156         line ends.
15157
15158         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
15159         Functions to set or get a UTF-8 string on the selection
15160         data.
15161
15162         * gtk/gtkclipboard.[ch]: New, simplified selection handling
15163         interfaces.
15164
15165         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
15166         created widgets - one of these is useless if we don't.
15167
15168         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
15169         a public function clear all targets registered for the
15170         widget.
15171
15172         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
15173         Never call gtk_widget_realize() - that was just asking
15174         for bizarre side-effects.
15175
15176         * gtk/gtkselection.c (gtk_selection_owner_set): Call
15177         gdk_selection_owner_set even if the widget is the
15178         same so that we reliably update the timestamp on
15179         the server.
15180
15181         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
15182         gdk_x11_get_server_time() function.
15183         
15184         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
15185         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
15186         Add some tricky filtering on serial numbers for
15187         selection clear events to fix up long-standard
15188         race condition FIXME's in gtkselection.c.
15189
15190         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
15191         routines to convert from utf8 to compound text or
15192         STRING and from a text property to UTF-8.
15193
15194         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
15195         a convenience function gdk_get_current_event_time().
15196
15197         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
15198         and free selection_data->data properly
15199
15200 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
15201
15202         * gtk/gtkthemes.c: Remove some unecessary includes.
15203
15204 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
15205
15206         * gtk/gtktextdisplay.c
15207         * gtk/gtktextlayout.c
15208         * gtk/gtktexttag.c
15209         * gtk/gtktexttag.h
15210         * gtk/testtext.c: Change the overstrike property to strikethrough,
15211         to closer match pango.
15212
15213 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
15214
15215         * gtk/gtktextview.c: Fix up visibility so that focus,
15216         cursor_visible and blink interact properly.  Reenable cursor blink
15217         which had been roughly disabled. Make blink and focus
15218         properly per-view.
15219
15220         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
15221         Add a flag for whether to display insertion cursor and
15222         a function to set the flag.
15223
15224         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
15225         get_line_y() to get_line_yrange(), to be a bit more generally
15226         useful.
15227
15228 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
15229
15230         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
15231           do stop_navigating_submenu, to clear last timeout properly.
15232           Also in gtk_menu_motion_notify move ignore_enter above
15233           the conditional to make it always happen as suggested by Owen
15234
15235 2000-09-07  Tor Lillqvist  <tml@iki.fi>
15236
15237         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
15238
15239         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
15240         w32api headers.
15241
15242         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
15243         declarations.
15244
15245         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
15246         (gdk_win32_get_colormap): A line had been deleted by mistake.
15247
15248         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
15249         (gdk_event_translate): Handle more virtual keycodes to be able to
15250         generate GDK events for Control-comma, Control-period, etc.
15251
15252         * gtk/gtk.def: Add some missing entry points.
15253
15254 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
15255
15256         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
15257         Doc comment fixing. (Mostly non-matching parameter names.)
15258
15259         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
15260         comments a little to avoid looking like a doc comment.
15261
15262         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
15263         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
15264         conversions be changed to GError?)
15265
15266         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
15267         Move private #defines into .c file.
15268
15269         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
15270         order of argument addition, remove duplicates.
15271
15272         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
15273         parent class is FrameClass, not BinClass.
15274
15275         * gtk/gtk.h: Add gtkinvisible, which was missing.
15276         (It's occasionalyl useful for client apps, if seldom.)
15277
15278         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
15279         #define.
15280
15281 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
15282
15283         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
15284         coordinates when creating window, instead of GDK-space
15285         coordinates. (Avoid BadValue on too large windows.)
15286
15287 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15288
15289         * configure.in (use_mmx_asm): Remove conftest* after use along the
15290         lines of AC_TRY_COMPILE.        
15291         
15292         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
15293         of g_dirname, which is deprecated.
15294         (gtk_rc_parse_any): Removed calls to
15295         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
15296
15297         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
15298         Removed calls to g_hash_table_{freeze,thaw}, as they are
15299         deprecated now.
15300
15301         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
15302         instead of g_basename.
15303         
15304 2000-09-04 Elliot Lee <sopwith@redhat.com>
15305         
15306         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
15307         ANSI warning.
15308
15309 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
15310
15311         * gtk/gtkwidget.h:  Add some documenting comments about 
15312           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
15313           just as owen said on irc.
15314
15315         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
15316           set HAS_DEFAULT.  Only set it if there isn't another window
15317           holding it (a focus window which RECEIVES_DEFAULT) and only unset
15318           it if the widget is not the focused window with RECEIVES_DEFAULT.
15319           This fixes weird double default bugs in dialogs which has things
15320           call gtk_window_set_default at times.
15321
15322 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
15323
15324         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
15325         Nils Barth and David Santiago to improve submenu
15326         navigation. The patch does this by creating a triangular
15327         region from the point where the pointer leaves the
15328         menu to the submenu.  While the pointer is in
15329         that region and a timeout has not expired, events 
15330         that would cause the active submenu to change are
15331         ignored.
15332
15333 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
15334
15335         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
15336         moving a toplevel window immediately after sizing it would
15337         result in it being sized back to the old size since 
15338         impl->width, impl->height aren't updated until we hear
15339         back from the server. There is still a (longstanding) bug
15340         here that gdk_window_get_size() will give the wrong size
15341         until we do hear back.
15342
15343 2000-08-31  Havoc Pennington  <hp@redhat.com>
15344
15345         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
15346         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
15347         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
15348         Rename GtkTextStyleValues to GtkTextAttributes
15349
15350 2000-08-31  Havoc Pennington  <hp@pobox.com>
15351
15352         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
15353         for rapid testing whether an iterator is the end iterator
15354         (gtk_text_btree_new): init end line cache
15355         (gtk_text_line_is_last): use fast cached line to 
15356         see if we're the last line.
15357         (get_last_line): use cached line here too, should 
15358         speed up some random unrelated code.
15359         
15360 2000-08-30  Havoc Pennington  <hp@pobox.com>
15361
15362         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
15363         signals.
15364
15365         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
15366         delete_text signals. This allows the signals to be used for
15367         implementing undo.
15368
15369         * gtk/gtktextbuffer.c: Change signal handler signatures; 
15370         provide "interactive" argument when emitting insert_text or
15371         delete_text signal.
15372         
15373 2000-08-30  Havoc Pennington  <hp@pobox.com>
15374
15375         * gtk/gtktextbuffer.c: Docs
15376
15377 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
15378
15379         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
15380         from switch statements, since Tor removed the enumeration
15381         value.
15382         
15383         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
15384         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
15385
15386 2000-08-29 Elliot Lee <sopwith@redhat.com>
15387         * */*.h: Use G_GNUC_CONST.
15388
15389 2000-08-27  Havoc Pennington  <hp@pobox.com>
15390
15391         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
15392         minor indentation fixes, inserted some FIXME about stuff I
15393         realized was broken while documenting it.
15394         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
15395         GTK convention  
15396
15397 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
15398
15399         * gtk/testgtk.c (create_styles): Fix double free of
15400         font desc.
15401
15402 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
15403
15404         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
15405         
15406         * gtk/testgtk.c (create_styles): Add a test for modifying
15407         the style through gtk_widget_modify_*.
15408
15409         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
15410         a function to get the current modifier style.
15411
15412         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
15413         of the passed in GtkRcStyle instead of ref'ing it.
15414
15415         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
15416
15417 2000-08-20  Tor Lillqvist  <tml@iki.fi>
15418
15419         * gdk/gdkimage.h
15420         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
15421         shared memory image+pixmap GdkImage type, or
15422         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
15423         I am dropping that.
15424
15425         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
15426         actually call gtk_init_abi_check(), passing also
15427         sizeof(GtkWindow). Ditto for gtk_init_check(). 
15428
15429         * gtk/gtk.def
15430         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
15431         New functions, used to check that the GTK+-using code has been
15432         compiled using the correct compiler and switches. In particular,
15433         with gcc one has to use the -fnative-struct switch as GTK+ is
15434         compiled with that.
15435
15436 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
15437
15438         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
15439         ->prev fields when merging lists. (Found simultaneously
15440         by Pawel Salek and Jakub Jelinek)
15441
15442 2000-08-12  Tor Lillqvist  <tml@iki.fi>
15443
15444         * gdk/gdk.def
15445         * gtk/gtk.def: Add missing entries.
15446
15447         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
15448         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
15449
15450         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
15451         function. Dummy implementation at this point.
15452
15453         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
15454         rules. Undefine GTK_COMPILATION when compiling the test programs.
15455         
15456         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
15457
15458 2000-08-11  Tor Lillqvist  <tml@iki.fi>
15459
15460         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
15461         to convert back and forth from UTF-8 and the "system" (or "current
15462         locale") charset when necessary. Indentation/spacing cleanup.
15463
15464 2000-08-10  Havoc Pennington  <hp@redhat.com>
15465
15466         * Makefile.am (snapshot): Change the format of the snapshot
15467         version to match glib
15468
15469         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
15470         from EXTRA_DIST since it doesn't seem to exist
15471
15472 2000-08-10  Tor Lillqvist  <tml@iki.fi>
15473
15474         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
15475         version of the directory name (not the UTF-8 one) when building
15476         the path name to stat().
15477
15478 2000-08-03  Elliot Lee  <sopwith@redhat.com>
15479
15480         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
15481         PANGO_ATTR_SHAPE set.
15482
15483 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
15484
15485         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
15486         Peter Osterlund to simplify the code while keeping the
15487         functionality the same.
15488
15489 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
15490
15491         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
15492         is_viewable() test further inside the function, since removing the 
15493         window from the redraw list without clearing ->update_area
15494         was also very broken.
15495
15496 2000-08-02  Tor Lillqvist  <tml@iki.fi>
15497
15498         * configure.in: Check for <unistd.h>.
15499
15500 2000-08-01  Martin Baulig  <baulig@suse.de>
15501
15502         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
15503         to display the message that this is a development version of GTK+.
15504
15505 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
15506
15507         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
15508         was depending on widget->allocation instead of the width of text_area,
15509         which was incorrect for subclasses like GtkSpinButton.
15510
15511         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
15512         with width == 1 tests that should be width == -1.
15513
15514 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
15515
15516         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
15517         (broken, Elliot, every single window blank on X) custom code with call
15518         to gdk_window_is_viewable() which a) prevents code duplicate and
15519         b) works. 
15520
15521 2000-07-31  Elliot Lee  <sopwith@redhat.com>
15522
15523         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
15524         to get the GDK_PARENT_ROOT() macro to work.
15525         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
15526         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
15527         of, windows that aren't shown.
15528         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
15529         pointer grab stuff.
15530
15531 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
15532
15533         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
15534           s/gtk_main_iteration/g_main_iteration/
15535
15536           Did this already in change:
15537                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
15538           don't know how it got reverted.
15539
15540 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
15541
15542         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
15543         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
15544
15545         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
15546         not gdk_pixbuf.
15547
15548 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
15549
15550         * configure.in,po/{sp,sr}.po: Added Serbian files
15551
15552 2000-07-30  Tor Lillqvist  <tml@iki.fi>
15553
15554         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
15555
15556         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
15557         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
15558         GIOChannel implementation.
15559
15560         * gdk/win32/gdkinput.c
15561         * gdk/win32/gdkpango-win32.c: Update license name here, too.
15562
15563         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
15564         definition to match prototype.
15565
15566         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
15567
15568 2000-07-27  Elliot Lee  <sopwith@redhat.com>
15569
15570         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
15571         function, to allow handling image formats that cannot be detected
15572         by looking at content alone.
15573
15574 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
15575
15576         * docs/tutorial/*.gif *.jpg *.eps
15577           Update these to the same look-n-feel.
15578           Why does including images in DocBook suck so badly?
15579
15580 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
15581
15582         * gtk/gtktable.c: applied patch from Phil Thompson
15583         <phil@river-bank.demon.co.uk> that enables space settings for
15584         the last row/columns as well.
15585
15586 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
15587
15588         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
15589         updates the license headers to the GNU Lesser General Public License,
15590         as well as updating the copyright year to 2000.
15591
15592 2000-07-26  Robert Brady  <rwb197@zepler.org>
15593
15594         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
15595           and po/Makefile, was installing and looking for them under gtk20
15596           and gtk2 respectively.
15597
15598 2000-07-25  Havoc Pennington  <hp@redhat.com>
15599
15600         * gtk/testtext.c: Comment out some stuff that depends on the rest
15601         of my patches.
15602
15603 2000-07-25  Havoc Pennington  <hp@redhat.com>
15604
15605         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
15606         buffer
15607
15608 2000-07-25  Havoc Pennington  <hp@redhat.com>
15609
15610         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
15611         widget changes.
15612
15613         * gtk/gtktextview.h: To be consistent with usage of "line"
15614         throughout the API to mean "newline-terminated thingy", change
15615         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
15616         to MOVEMENT_LINE.
15617
15618         (GtkTextView): Add flags for default editability, and whether to
15619         show the cursor. Add functions to get/set that. Add 
15620
15621         (gtk_text_view_get_iter_location): new function
15622
15623         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
15624         gtktextlayout.h
15625         (g_convert): Add g_convert temporarily, will go in glib in a bit
15626         
15627         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
15628         GtkTextTagTableForeach instead of brokenly using GHFunc.
15629         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
15630
15631         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
15632         moved to public header.
15633
15634         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
15635         "invisible", since "elide" was a bad name.
15636         (gtk_text_tag_get_priority): Added
15637
15638         (GtkTextStyleValues): put this in public header, along with
15639         functions to use it.
15640
15641         * gtk/gtktextmarkprivate.h: Include more headers, since we no
15642         longer include gtktextbtree.h.
15643
15644         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
15645         gtk_text_mark_deleted
15646
15647         * gtk/gtktextlayout.h: Don't include the "really private" headers,
15648         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
15649         to make this possible. Now we only need to install
15650         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
15651         (However the Makefile.am isn't changed yet because of the
15652         logistics of merging gtk-hp-patches piecemeal)
15653
15654         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
15655         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
15656         gtk_text_iter_get_line is now used in the public API for a
15657         different purpose.
15658
15659         * gtk/gtktextiter.h: Clean up function names to be more
15660         consistent. Always call char offset "offset" and byte index
15661         "index". A "line" is always a line number. 
15662
15663         (gtk_text_iter_is_last): new function, more efficient than 
15664         the existing way to check
15665         (gtk_text_iter_is_first): new function, also more efficient
15666
15667         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
15668
15669         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
15670         gtk_text_iter_forward_char, etc.
15671
15672         (gtk_text_iter_forward_to_tag_toggle): Renamed from
15673         forward_find_tag_toggle, since this isn't a linear search
15674
15675         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
15676
15677         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
15678         New functions, search for a buffer substring.
15679
15680         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
15681         interactive and default editable (since we need to store that info
15682         until we receive the selection data).
15683
15684         Remove all the _at_char and at_line etc. versions of functions;
15685         only have iterator versions.
15686
15687         Add _interactive() versions of functions, that consider the
15688         editability of text. (FIXME add interactive flag to the 
15689         insert/delete signals per Darin's suggestion)
15690
15691         (gtk_text_buffer_get_tag_table): new function, demand-creates the
15692         tag table if necessary
15693
15694         Remove declaration of gtk_text_buffer_get_iter_from_string
15695
15696         (_gtk_text_buffer_get_btree): private/internal function, added.
15697         
15698
15699         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
15700         (gtk_text_line_is_last): new function
15701
15702 2000-07-25  Havoc Pennington  <hp@redhat.com>
15703
15704         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
15705         using GtkProgressBar. See Changes-2.0.txt for details.
15706
15707         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
15708         "pulse_step" which are the equivalent of
15709         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
15710         Implement new API.
15711         
15712         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
15713         (use_text_format) to mark whether text set on the progress bar is
15714         a format string. Deprecate entire GtkProgress interface.
15715
15716         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
15717         (gtk_progress_build_string): make this a no-op if use_text_format
15718         is FALSE
15719
15720         * docs/Changes-2.0.txt: Describe progress bar changes.
15721
15722 2000-07-25  Tor Lillqvist  <tml@iki.fi>
15723
15724         * Makefile.am: Include the build directory.
15725
15726         * configure.in: Generate build/Makefile, build/win32/Makefile,
15727         gdk/, gdk/win32/, and gtk/makefile.mingw.
15728
15729         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
15730         Add GETTEXT_PACKAGE.
15731         
15732         * gdk/gdk.def
15733         * gtk/gtk.def: Updates.
15734
15735         * gdk/gdkfont.h
15736         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
15737         need them any longer.
15738
15739         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
15740
15741         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
15742         PANGOWIN32_LIBS and gdk_pixbuf.
15743
15744         * gdk/win32: Compiles, but no doubt doesn't work at all.
15745
15746         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
15747
15748         * gdk/win32/gdkinput.c: New file, temporarily.
15749         
15750         * gdk/win32/gdkinput-win32.h: New file
15751
15752         * gdk/win32/gdkinputprivate.h: Remove.
15753
15754         * gdk/win32/gdkpango-win32.c: New file.
15755
15756         * gtk/makefile.mingw.in: New file
15757
15758         * gtk/makefile.cygwin: Removed
15759         
15760         * gtk/Makefile.am: Update accordingly.
15761
15762         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
15763         made externally visible.
15764
15765         * gtk/gtkmain.c: Use it.
15766         
15767         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
15768         is enough.
15769
15770         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
15771
15772 2000-07-24 Elliot Lee <sopwith@redhat.com>
15773         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
15774         individual backends already.
15775         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
15776         again. Yes, there really is a good reason for this, if you are using the gdkregion
15777         internals, and if you're not, why do you care?
15778         * gdk/gdkwindow.c: Fix inverted condition
15779         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
15780         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
15781         * gtk/gtkrange.c: Redraw trough when moving.
15782         * gtk/gtktypeutils.c: Fix warning by adding const cast.
15783         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
15784
15785 2000-07-23  Tor Lillqvist  <tml@iki.fi>
15786
15787         * configure.in: Check for mkstemp and sigsetjmp. Output
15788         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
15789
15790         More work on GDK for Win32. Still in an intermediate state.
15791
15792         * gdk/makefile.cygwin
15793         * gdk/win32/makefile.cygwin: Removed.
15794         
15795         * gdk/makefile.mingw.in
15796         * gdk/win32/makefile.mingw.in: New files.
15797
15798         * gdk/Makefile.am
15799         * gdk/win32/Makefile.am: Generate and distribute them.
15800
15801         * gdk/win32/gdkwindow-win32.h
15802         * gdk/win32/gdkdrawable-win32.h
15803         * gdk/win32/gdkpixmap-win32.h: New files.
15804
15805         * gdk/win32/gdkcolor-win32.c
15806         * gdk/win32/gdkcursor-win32.c
15807         * gdk/win32/gdkdrawable-win32.c
15808         * gdk/win32/gdkgc-win32.c
15809         * gdk/win32/gdkimage-win32.c
15810         * gdk/win32/gdkprivate-win32.h
15811         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
15812         Rename fields and variables called xcursor, xid, etc (these names
15813         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
15814
15815 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
15816
15817         * gtk/gtkentry.[ch]: Fix some problems with vertical
15818         alignment.
15819
15820         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
15821         char/byte confusion.
15822
15823 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
15824
15825         * gtk/gtktextview.c (changed_handler): Fix bug where
15826         redraw wasn't being done properly when height of
15827         dirty region changed.
15828
15829         * demos/Makefile.am: Remove various references to
15830         -lgmodule
15831
15832 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
15833
15834         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
15835         PangoAttrShape to reserve space for pixmaps, add 
15836         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
15837         in the display functions.
15838         
15839         * gtk/testgtk.c (create_layout): Set some more exotic
15840         scrolled window options
15841
15842         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
15843         Add function to set the shadow type of a window, to allow
15844         putting a shadow around widgets such as GtkLayout or GnomeCanvas
15845         which don't draw their own frame.
15846
15847 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
15848
15849         * docs/tutorial/package-db-tutorial.sh: New file for
15850           packaging DocBook format tutorial
15851
15852 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
15853
15854         * docs/tutorial/gtk-tut.sgml: Minor updates
15855
15856         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
15857
15858 2000-07-19  Tor Lillqvist  <tml@iki.fi>
15859
15860         * gtk/gtksignal.c: Fix C++ comment.
15861
15862         * gtk/gtkimmulticontext.c
15863         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
15864         don't return value from void functions.
15865
15866         * gtk/gtk.def: Add gtk_rc_style_unref.
15867
15868 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
15869
15870         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
15871         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
15872         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
15873         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
15874         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
15875         gtk/gtktypeutils.h: Include files outside of the extern "C"
15876         block. Makes some C++ compiler happy. Reported by Denis Vakatov
15877         <vakatov@peony.nlm.nih.gov>.
15878
15879 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
15880
15881         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
15882           Completes first pass. Hurrah!
15883
15884 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
15885
15886         * docs/tutorial/gtk-tut.sgml: More clean ups.
15887
15888 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
15889
15890         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
15891         paint the background of the text area which was accidentally
15892         removed at some point.
15893
15894         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
15895           
15896          - Move most of the functionality from the theme vtable
15897            into GtkRcStyleClass and GtkStyleClass. The moved
15898            vtable functions were changed a bit in the move to
15899            work better in their new home.
15900
15901          - Get rid of the engine and engine_data fields from
15902            GtkRcStyle and GtkStyle; instead the theme
15903            engine derives theme-specific subclasses of GtkRcStyle
15904            and GtkStyle
15905
15906          - Add extra dlsym() found entry point to themes,
15907            theme_create_rc_style().
15908
15909         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
15910         in gtk_style_real_copy.
15911
15912         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
15913         to register a type associated with an engine. (The engine
15914         won't be unloaded as there is an instance of the type.)
15915
15916
15917 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
15918
15919         * docs/tutorial/gtk-tut.sgml: Clean ups.
15920
15921 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
15922
15923         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
15924           of cleaning up to do.
15925
15926 2000-07-15  Tor Lillqvist  <tml@iki.fi>
15927
15928         * gdk/testgdk.c: New file, quick hack to test backends for
15929         pixel-by-pixel correctness of the most simple graphic operations.
15930
15931 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
15932
15933         * Really release 1.3.1
15934         
15935         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
15936         include structure.
15937
15938 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
15939
15940         * Released 1.3.1
15941
15942 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
15943
15944         * gtk/gtktextlayout.c: use FALSE for size_only most
15945         of the time when calling gtk_text_layout_get_line_display()
15946         to avoid causing double reshapes when a redraw follows
15947         immediately after.
15948
15949 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
15950
15951         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
15952         appropriate region and gdk_window_process_updates() so trough
15953         updating doesn't lag behind the window being scrolled.
15954
15955         * gdk/gdkgc.c: Make parent_class pointer static.
15956          
15957 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
15958
15959         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
15960         include <string.h>.
15961          
15962         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
15963         cut-and-paste error in computing memory offset for 4 channels.
15964
15965 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
15966
15967         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
15968         gtk_rc_append_default_pixmap_path(), since it wasn't
15969         adding an interesting path and we don't have a meaningful
15970         default for this value.
15971
15972 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
15973
15974         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
15975         gtk-config to gtk-config-2.0 move gtk_.m4 to
15976         gtk-2.0.m4
15977
15978         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
15979         gdk/Makefile.am demos/Makefile.am: Change 
15980         library names to libgtk-1.3.la, etc, so that we
15981         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
15982
15983         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
15984         gdk/Makefile.am gdk/x11/Makfile.am
15985         Move include files into /usr/include/gtk-2.0, 
15986         /usr/lib/gtk-2.0/include/
15987          
15988         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
15989         gtk/gtkintl.h: Change package for gettext from 
15990         gtk+ to gtk20. Put hack in autogen.sh to modify
15991         po/Makefile.in.in after gettextize to make this
15992         possible.
15993
15994         * gtk+.spec: Some updates, not tested.
15995
15996         * gdk-pixbuf/Makefile.am: Move loaders into
15997         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
15998
15999         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
16000         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
16001         to THEMENAME/gtk-2.0/. Move engine directory  to
16002         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
16003         
16004 2000-07-12  Tor Lillqvist  <tml@iki.fi>
16005
16006         Win32 changes, still doesn't build though.
16007
16008         * gdk/makefile.cygwin
16009         * gdk/win32/makefile.cygwin
16010         * gtk/makefile.cygwin: Updates.
16011
16012         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
16013         default values for fg and bg pixel as X11 does (0 and 1), not
16014         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
16015         Use 0 for pen width by default (treated as 1 anyway later, but for
16016         apps that might check the value in the GdkGC).
16017         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
16018         interface to gdk_gc_predraw and _postdraw.
16019
16020         * gdk/win32/gdkwin32.h
16021         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
16022
16023         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
16024         extraneous semicolon.
16025
16026         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
16027
16028         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
16029         not the Win32 bitspixel value.
16030
16031         * gdk/win32/gdkcc-win32.c:
16032         * gdk/win32/gdkcolor-win32.c 
16033         * gdk/win32/gdkprivate-win32.h
16034         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
16035         GDK object structure.
16036
16037 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
16038
16039         * docs/tutorial/gtk_tut_12.es.sgml (name): 
16040         * docs/tutorial/gtk_tut_it.sgml (name): 
16041         * docs/tutorial/gtk_tut_fr.sgml (name): 
16042         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
16043         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
16044
16045 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
16046
16047         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
16048           small changes.
16049
16050 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
16051
16052         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
16053         a bug here, never been here and never fixed anything ;(
16054         (don't segfault if tree->root_tree is NULL, which happens prior
16055         to widget realization, but puke instead).
16056
16057 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
16058
16059         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
16060         add the necessary tokens.
16061
16062         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
16063         (gtk_rc_style_to_style): copy thicknesses.
16064         (gtk_rc_init_style): apply thicknesses.
16065         (gtk_rc_parse_style): parse xthickness and ythickness.
16066
16067         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
16068
16069         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
16070         (gdk_window_new): 
16071         (_gdk_windowing_window_init): 
16072         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
16073         (gdk_pixmap_create_from_data): 
16074         (gdk_bitmap_create_from_data): 
16075         (gdk_pixmap_new): 
16076         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
16077         (gdk_image_new): 
16078         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
16079         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
16080         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
16081         (gdk_colormap_get_system): 
16082         (gdk_colormap_new): 
16083         * gdk/gdkwindow.c (gdk_window_init): 
16084         * gtk/gtkstyle.c (gtk_style_new):
16085         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
16086         * gdk/gdkpixmap.c (gdk_pixmap_init): 
16087         * gtk/gtkrc.c (gtk_rc_style_new):
16088         use g_object_new() instead of g_type_create_instance() which
16089         is a private function for fundamental type implementations.
16090
16091 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
16092
16093         * configure.in: Add check for db2html
16094
16095 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
16096
16097         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
16098         hack to set glib_debug_objects based on gtk_debug_flags.
16099
16100 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
16101
16102         * INSTALL.in: Update the Prerequisites section.
16103
16104         * Makefile.am demos/Makefile.am docs/Makefile.am
16105         docs/tutorial/Makefile.am gdk/x11/Makefile.am
16106         gdk/linux-fb/Makefile.am: Dist fixes
16107
16108 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
16109
16110         * NEWS: 10,000 foot view of 1.3.1 changes.
16111
16112 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
16113
16114         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
16115         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
16116         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
16117         gdk/x11/gdkmain-x11.c: 
16118
16119         Patch from George Lebl to add a GdkGrabStatus enumeration to use
16120         as a return value of gdk_*_grab(). Previously, we just
16121         returned the X11 values directly.
16122
16123 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
16124
16125         * gdk/x11/Makefile.am: Patch from George Lebl to 
16126         install all the headers in the right place.
16127
16128 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
16129
16130         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
16131           initial conversion to DocBook.
16132
16133 2000-07-04  Tor Lillqvist  <tml@iki.fi>
16134
16135         * README.win32: Improve a bit.
16136
16137         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
16138         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
16139         Alt+0nnn on the numpad (used to enter characters by numeric code
16140         from current DOS or ANSI codepage) working correctly, as in other
16141         Windows apps.
16142
16143         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
16144         same argument validity tests as in X11 version.
16145         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
16146
16147         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
16148         definitions in case missing from headers.
16149
16150         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
16151         destroy the window-specific cursor.
16152         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
16153         calling GetModuleHandle(NULL).
16154         (gdk_window_set_cursor): Reworked to always copy the passed cursor
16155         with CopyCursor before setting it as the window-specific
16156         cursor. It is OK for the caller to destroy the GdkCursor (and thus
16157         also its Windows cursor) after calling this function. Destroy any
16158         previous window-specific cursor.
16159
16160 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
16161
16162         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
16163         font charset is iso8859-1, not iso-8859-1.
16164
16165 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
16166
16167         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
16168         Use g_get_charset() instead of g_get_codeset().
16169
16170         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
16171         Comment out some strdup'ing functions to keep timj
16172         happy until we finish fighting this out.
16173
16174 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
16175
16176         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
16177         <= width or height.
16178
16179         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
16180         from 1.2 for parent/child states.
16181
16182         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
16183         of typos.
16184
16185         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
16186         event structures, replace with a generic axes field. Replace 
16187         deviceid/sourec with GdkDevice *device.
16188
16189         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
16190         to extract particular axis use value from event. (Also
16191         can be used for normal X/Y.)
16192
16193         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
16194         allow for arbitrary number of axes, namespace everything
16195         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
16196         everywhere.
16197
16198         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
16199         Get rid of the gdk_input_vtable setup if favor of simply
16200         defining the functions in gdkinput-none/gxi/xfree.c in
16201         a similar fashion to the way that the port structure is 
16202         done.
16203
16204         * gtk/gtkdnd.c: Fix fields of synthesized button press event
16205         for new event structures. 
16206
16207         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
16208         new device interfaces.
16209
16210 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
16211
16212         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
16213         set the initial text.
16214
16215         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
16216         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
16217         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
16218         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
16219
16220         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16221         pango_layout_set_font_description to simplify.
16222
16223 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
16224
16225         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
16226         pango_layout_set_font_description to simplify.
16227
16228 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
16229
16230         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
16231         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
16232         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
16233
16234         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
16235         PANGO_PIXELS() macro.
16236
16237 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
16238
16239         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
16240         that returns a PangoContext owned by the widget and updated to
16241         match future changes in the widget. Also, make 
16242         gtk_widget_create_pango_layout() use this context. If we ever
16243         add a ::changed signal to PangoContext, this will make things
16244         much more convenient. 
16245
16246         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
16247         in the appropriate places instead of destroying the layouts and
16248         creating new ones.
16249
16250         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
16251         in a few strategic places.
16252
16253 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
16254
16255         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
16256         gtk_widget_size_request() on reparented child, if one. Otherwise,
16257         queue_resize() on the child never results in it getting size-requested
16258         at all.
16259
16260         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
16261         in option menus, so that (with luck) people won't copy it into
16262         their apps in the future.
16263
16264         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
16265         to gtk_option_menu_calc_size. This isn't perfect, but should fix
16266         a lot of problems with changing the size of the menu's menu
16267         items after adding it to the option menu.
16268
16269         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
16270
16271         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
16272         the text direction for a widget changes.
16273
16274         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
16275         ::direction_changed to get rid of various hacks.
16276
16277 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
16278
16279         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
16280         name.
16281
16282 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
16283
16284         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
16285         flag to the structure. Do not call XFreePixmap on pixmaps created
16286         by gdk_pixmap_foreign_new().
16287
16288 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
16289
16290         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
16291         value using GdkRGB functionality given GdkColormap and GdkColor.
16292         (name not final, waiting for inspiration.)
16293         
16294         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
16295         set the foreground/background of a GC using the GC's colormap
16296         and GdkRGB. (name not final, waiting for inspiration.)
16297
16298         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
16299         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
16300
16301         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
16302         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
16303         purely a function of the corresponding colormap. Make
16304         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
16305
16306         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
16307         gdk_pixbuf_*create_from_xpm_* in terms of
16308         gdk_pixbuf_new_from_xpm_data(), move into platform independent
16309         code.
16310
16311         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
16312         advantage of the new draw_rgb_32_image_dithalign.
16313
16314         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
16315
16316         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
16317         on each created GC.
16318
16319         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
16320
16321         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
16322         which we initialize from the drawable when the GC is created,
16323         if the drawable has a colormap.
16324
16325         * gdk/x11/gdkgc-x11.c: include string.h for memset.
16326
16327         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
16328
16329         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
16330
16331 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
16332
16333         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
16334         actually returning expose events, make sure to set
16335         the count field properly.
16336
16337         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
16338         accidentally reintroced bug which always cleared
16339         the graphics_exposures value. 
16340
16341 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
16342
16343         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
16344
16345 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
16346
16347         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
16348
16349 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
16350
16351         * docs/faq/gtk-faq.sgml: Start of Section 6.
16352
16353 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
16354
16355         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
16356         
16357         (Fixes problem with drawing childless frames. Pointed out
16358         by and a first patch from Anders)
16359         
16360         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
16361         compute a child_allocation, even if we don't have a child.
16362
16363         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
16364         Always chain to the parent's impl, even if we don't have a child.
16365
16366 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
16367
16368         * gdk/gdkrgb.c: If possible, create only a single shm segment and
16369         use multiple parts of it instead of creating a bunch of separate
16370         segments, since the maximum number of segments per system is not
16371         large. (This might be worth backporting to GTK+-1.2.x if we make a
16372         new release )
16373
16374         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
16375         structure in preparation for per-colormap GdkRGB.
16376
16377         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
16378         to False when we get EINVAL from shmget so that the caller of
16379         gdk_image_new can retry with a smaller segment size.
16380
16381 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
16382
16383         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
16384
16385 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
16386
16387         * configure.in: make the current version number 1.3.1 (binary age 0,
16388         interface age 0).
16389         
16390         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
16391         gtkcompat.h is all we want.
16392
16393         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
16394         GLib primitive types. fixed g_type_register_fundamental() argument
16395         ordering.
16396
16397         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
16398         compiles.
16399
16400         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
16401         object code cleanup, comment trigraph fixes, etc...
16402
16403 2000-06-23  Havoc Pennington  <hp@redhat.com>
16404
16405         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
16406         instead of making up a bogus name for first_para_mark
16407
16408         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
16409         0 as a context ID
16410
16411 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
16412
16413         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
16414
16415 2000-06-21  Havoc Pennington  <hp@pobox.com>
16416
16417         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
16418         we didn't check window->bg_pixmap != GDK_NO_BG.
16419
16420         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
16421         gdk-pixbuf
16422
16423 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
16424
16425         * docs/faq/gtk-faq.sgm: Move file to here.
16426           TODO: Update Makfile.am 
16427
16428 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
16429
16430         * docs/gtk-faq.sgm: Add Section 2
16431
16432 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
16433
16434         * docs/gtk-faq.sgm: New file. Start of DocBook
16435           version of the FAQ.
16436
16437 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
16438
16439         * configure.in (GDK_PIXBUF_MAJOR): Define version
16440         numbers for GDK_PIXBUF_*, as they get substituted
16441         into a header file. Need to consider versioning
16442         for gdk-pixbuf more carefully later.
16443
16444 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
16445
16446         Work with srcdir != builddir.   
16447         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
16448         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
16449         * demos/testpixbuf.c: Likewise.
16450         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
16451         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
16452         <gdk/x11/gdkx.h>.
16453         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
16454         "gdk-pixbuf.h".
16455         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
16456
16457 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
16458
16459         * TODO.xml: Change 1.4 version numbers to 2.0.
16460
16461 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
16462
16463         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
16464         fixups to GTK+ standard.
16465
16466 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
16467
16468         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
16469         gdk-pixbuf.
16470
16471         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
16472         fixups for GObject.
16473
16474         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
16475         gdk-pixbuf with GDK dependencies moved into GDK.
16476         
16477         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
16478         move gdk-pixbuf-loader here until GObject has signals.
16479
16480         * demos/: New directory of demos. Move demos from
16481         gdk-pixbuf here.
16482
16483         * demos/pixbuf-init.c: Small bit of code to check for
16484         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
16485         set GDK_PIXBUF_MODULEDIR appropriately.
16486
16487         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
16488         define which no longer makes sense.
16489
16490 2000-06-21  Havoc Pennington  <hp@redhat.com>
16491
16492         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
16493         gtk_get_default_language
16494
16495         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
16496         new function to get the default language
16497
16498         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
16499         s/gtk_text_view_style_values/gtk_text_style_values/
16500
16501         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
16502         Add a "language" field to tags.
16503
16504         (gtk_text_tag_set_arg): Fix bug in setting
16505         "bg_full_height_set" tag.
16506
16507 2000-06-21  Havoc Pennington  <hp@redhat.com>
16508
16509         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
16510         in the interfaces
16511
16512         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
16513         stuff instead when possible.
16514
16515         * gtk/gtktexttypes.h: Delete some unused constants
16516
16517         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
16518         testtextbuffer.c: use glib instead of custom unicode routines
16519
16520 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
16521
16522         * docs/es/: Removed mistakenly added generated sgml
16523
16524         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
16525         Remove outdated info files.
16526
16527         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
16528         Moved tutorial files into subdir
16529
16530         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
16531         subdir.
16532
16533         * docs/man/gtk_button.pod: Remove. (contents will be
16534         integrated into gtk-reference button page.)
16535
16536         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
16537         docs/faq/Makefile.am: Adjust for new organization
16538
16539 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
16540
16541         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
16542         not $(MKINSTALLDIRS)
16543
16544 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
16545
16546         * gtk/testgtk.c (create_text): Finish the job Elliot started
16547         of removing font setting test for text widget. (Since text widget
16548         and GdkFont are not deprecated, and cause portability problems.)
16549
16550 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
16551
16552         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
16553         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
16554         Remove use of libunicode in favor of new GLib functions.
16555
16556         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
16557         nano-x, framebuffer. The X11 include is just a hack until we get
16558         the necessary functions in gdkcolor.h, so there is no reason to
16559         add other includes of platforms.
16560
16561         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
16562         window bigger than the screen change.
16563
16564         * gtk/testgtk.c: Revert some random changes from Elliot
16565         that had no particular point and were causing testgtkrc
16566         not to function correctly.
16567         
16568         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
16569         because GdkSegment and GdkRegionBox have the same fields,
16570         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
16571         results in clearer code.
16572
16573         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
16574         gdk_input_translate_coordinates): Fix missed GdkObjectification
16575
16576 2000-06-18  Elliot Lee  <sopwith@redhat.com>
16577
16578         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
16579         * gtk/gtk{plug,socket}.h: Missed commits from previous.
16580
16581 2000-06-20  Havoc Pennington  <hp@redhat.com>
16582
16583         * modules/linux-fb/Makefile.am: Make this compile
16584         without framebuffer enabled
16585
16586         * gdk/linux-fb/Makefile.am: Add conditional to not build
16587         framebuffer unless specified in configure
16588
16589         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
16590         the size of the target instead of source if -1 was passed for
16591         width/height
16592
16593         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
16594         width/height confusion.
16595
16596 2000-06-19  Havoc Pennington  <hp@redhat.com>
16597
16598         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
16599         GDK_DRAWABLE_XID. In the future, we probably want to make it
16600         faster with G_DISABLE_CHECKS turned on.
16601
16602 2000-06-14  Havoc Pennington  <hp@redhat.com>
16603
16604         * gdk/Makefile.am: add gdkpixmap.c
16605
16606         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
16607         s/gdk_image_init/_gdk_windowing_image_init
16608
16609         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
16610         ref/unref
16611
16612         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
16613
16614         * gdk/gdkcompat.h: remove GdkWindowType compat, since
16615         GdkWindowType is now non-deprecated; 
16616         change gdk_window_get_type() compat to be
16617         gdk_window_get_window_type().
16618
16619         * gdk/gdkdnd.h: make GdkDragContext a GObject.
16620
16621         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
16622         virtual GObject. Make all functions call into the vtable.
16623         Move gdk_image_put() guts in here. Remove GdkDrawableType
16624         and gdk_drawable_get_type(), these are now GdkWindow-specific.
16625         draw_image, get_depth, get_size, set_colormap, get_colormap,
16626         get_visual added to the vtable.
16627         
16628         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
16629         GObject. Virtualize everything. 
16630         (gdk_gc_new_with_values): remove check for destroyed window,
16631         because now GdkWindow::create_gc will check this.
16632         (gdk_gc_set_values): New function to set GC values, this 
16633         was already implemented but wasn't in the header
16634
16635         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
16636
16637         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
16638         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
16639         remove _gdk_window_class; add _gdk_window_impl_get_type() and
16640         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
16641         _gdk_windowing_window_init, rename gdk_image_init to
16642         _gdk_windowing_image_init.
16643         
16644         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
16645         (gdk_draw_layout): Remove check for destroyed window, 
16646         because all the drawable methods already check it.
16647         
16648         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
16649         Add gdkpixmap.c which contains implementation of GdkDrawable
16650         virtual table (by chaining to a platform-specific implementation
16651         object).
16652         
16653         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
16654         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
16655         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
16656         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
16657         GdkColormapPrivate. 
16658
16659         * gdk/gdktypes.h: #include <glib-object.h>
16660
16661         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
16662         Move most functionality to platform-specific implementation
16663         object. GdkWindow itself now handles the backing store, then
16664         chains to the platform-specific implementation.
16665         (gdk_window_get_window_type): return GdkWindowType of the window.
16666         (gdk_window_peek_children): New routine, returns the children of 
16667         a GdkWindow
16668         (gdk_window_get_children): Was in X11-specific code and did 
16669         XQueryTree. Changed to simply return a copy of window->children; 
16670         so it can go in cross-platform code.
16671         
16672         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
16673
16674         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
16675         GdkColormap; just changed to use the new private data instead
16676         of casting to GdkColormapPrivate.
16677
16678         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
16679         gdk_cursor_new().
16680
16681         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
16682         (private data member in the GObject). 
16683         (xdnd_manager_source_filter): Function had broken 
16684         error handling, fix it (use gdk_error_trap_push).
16685
16686         * gdk/x11/gdkdrawable-x11.c: This file now implements
16687         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
16688         base class is purely for the convenience of the X port,
16689         and not part of the interface to cross-platform GDK.
16690
16691         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
16692         
16693         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
16694         specific to X, and returned by the create_gc virtual method
16695         of GdkDrawableImplX11. 
16696         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
16697         rather than gchar, this was also changed in the GdkGC vtable.
16698         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
16699         mask is 0, return immediately, instead of checking every flag.
16700         This is faster, and keeps us from segfaulting if values is NULL
16701         and the mask contains some nonzero flags.
16702
16703         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
16704         GdkWindow.
16705
16706         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
16707         GdkWindowPrivate is gone.
16708
16709         * gdk/x11/gdkim-x11.c: rename things that got renamed.
16710
16711         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
16712         remove the image_put stuff that got transferred to GdkDrawable.
16713         
16714         * gdk/x11/gdkinput.c: renamings
16715
16716         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
16717
16718         * gdk/x11/gdkpixmap-x11.c: GObject conversion
16719
16720         * gdk/x11/gdkprivate-x11.h: indentation fixes
16721
16722         * gdk/x11/gdkproperty-x11.c: renamings
16723
16724         * gdk/x11/gdkselection-x11.c: renamings
16725
16726         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
16727         implements the platform-specific "impl" object.
16728         Moved gdk_window_get_children to gdk/gdkwindow.c
16729
16730         * gdk/x11/gdkx.h: Remove all the private structs and private datas
16731         that no longer exist. Add declaration of GdkGCX11 object here.
16732         Fix all the macros to still work. 
16733
16734         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
16735         GdkDragContext from the boxed types since they are now GObjects.
16736
16737         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
16738         moved xthickness/ythickness into the instance. GtkStyleClass
16739         functions are now in the standard vtable for GtkStyle, so you have
16740         to create a GObject subclass to write a theme engine.
16741         (gtk_style_copy): fixed a leaked PangoFontDescription
16742         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
16743         can be the standard GObject function.
16744         
16745         * Throughout GTK:
16746         s/style->klass->[xy]thickness/style->[xy]thickness
16747         s/pango_layout_unref/g_object_unref/
16748
16749         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
16750         
16751         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
16752         accessing GDK internals.
16753
16754         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
16755         accessing GDK internals.
16756
16757 2000-06-18  Elliot Lee  <sopwith@redhat.com>
16758
16759         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
16760
16761         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
16762         problem by calculating event position relative to the trough
16763         rather than the slider.
16764         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
16765
16766         * gdk/gdkgc.h: Add GDK_NOR.
16767
16768         * configure.in, Makefile.am: Add modules top level dir
16769         * configure.in: Only use pangox library if building x11 target.
16770         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
16771
16772 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
16773
16774         * gtk/gtkcolorsel.c: Change private class member to be named
16775         private_data throughout the file.
16776
16777         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
16778         private_data to avoid clashing with keyword.
16779
16780 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
16781
16782         * gdk/gdkdnd.h: Add comment to remove warning.
16783
16784 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
16785
16786         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
16787         Byelorussian language; changed the Makefile and file names 
16788         to reflect that.
16789
16790 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
16791
16792         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
16793         rather than gdk_window_hide; this makes things work
16794         correctly if the window is programmatically hidden while
16795         iconified.
16796
16797 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
16798
16799         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
16800         cut and paste typo where wrong pixmap was being
16801         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
16802
16803 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
16804
16805         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
16806         Add helper function to compute format / bytes 
16807         relationship. Use in a couple places to fix up
16808         errors which assume 8 * format.
16809
16810         * gtk/gtkselection.c (gtk_selection_request): Use 32
16811         rather than 8 * sizeof (GdkAtom), to work correctly
16812         on Alpha.
16813
16814 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
16815
16816         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
16817         libgtk.la
16818         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
16819         versions
16820
16821         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
16822         checking macros return NULL since the function has a return value.
16823
16824 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
16825
16826         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
16827         GTK+ from building at all.
16828
16829         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
16830
16831 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
16832
16833         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
16834         gtk/Makefile.am: make it possible to configure gtk for different
16835         targets on the same platform. The library name is now 
16836         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
16837         flag. Only the x11 target compiles right now.
16838         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
16839         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
16840         * gdk/nanox/gdk*generic*: delete generic region code.
16841         * gdk/linux-fb/gdk*generic*: delete generic region code.
16842         * README.nanox: update information.
16843         
16844 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
16845
16846         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
16847         prepend not append. (Pointed out by Brett Hall.)
16848
16849 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
16850
16851         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
16852
16853 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
16854
16855         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
16856         need this later, and this makes sure that the atexit for
16857         glib gets called after that for GDK, so atexits are
16858         properly ordered for object leak checking.
16859
16860         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
16861
16862         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
16863         pango_x_shutdown_display()
16864
16865         * gtk/simple.c (main): Close window on destroy.
16866
16867 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
16868
16869         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
16870         to treat initial creation different from setting with 
16871         regards to the graphics-exposures parameter, so add a parameter
16872         indicating whether this is initial or not.
16873
16874 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
16875
16876         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
16877         to sort of work by adding an extra return_exposes arg
16878         to gdk_event_translate() - it might be better to simply
16879         deprecate the function altogether and force people to rewrite
16880         without it. gdk_window_scroll() handles most of it, and where
16881         gdk_window_scroll() doesn't work, simply redrawing more does.
16882
16883         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
16884         assertion.
16885
16886         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
16887
16888         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
16889         bunch of pretty much useless /* Print debugging info */ comments 
16890         which had drifted away from the code they were commenting.
16891
16892 2000-06-02  Havoc Pennington  <hp@pobox.com>
16893
16894         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
16895         is in working order.
16896         
16897         * gtk/testtext.c: Change to reflect anonymous mark API
16898
16899         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
16900
16901         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
16902         field, which was unused.
16903
16904         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
16905         saves some typing.
16906
16907         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
16908
16909         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
16910         flag on the insertion point and selection bound
16911
16912         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
16913         make mark-manipulation functions take a GtkTextMark* instead of a
16914         mark name.
16915         
16916         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
16917         GtkTextMarkBody; will be used to detect attempts to delete
16918         the permanent marks (insert and selection bound)
16919
16920         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
16921
16922 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
16923
16924         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
16925         flag to on.
16926
16927         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
16928         Honor DOUBLE_BUFFRED_FLAG
16929
16930         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
16931         function to set the DOUBLE_BUFFERED flag.
16932
16933         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
16934         or not exposes done on the widget should be double-buffered.
16935
16936         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
16937         to be what would be expected. (Fixes problem with a
16938         g_return_if_fail() validating a TextDirection enumeration)
16939
16940 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
16941
16942         * gtk/gtkwidget.c: Remove all references to 
16943         offscreen flag which was no longer used.
16944
16945         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
16946
16947         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
16948         for non-null label_widget->parent.
16949
16950         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
16951         which no longer was used.
16952
16953         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
16954
16955         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
16956         for null arguments.
16957
16958         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
16959         check for destroyed windows.
16960
16961 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
16962
16963         * gtk/gtkimmulticontext.c: Add a finalize method and unref
16964         the slave context there.
16965
16966         * gtk/gtkinvisible.[ch]: Make reference counting behavior
16967         identical to GtkWindow.
16968
16969 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
16970
16971         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
16972         pangox to here, so we can write them independent of rendering
16973         system, using GDK primitives.
16974
16975         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
16976         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
16977         since we have a rendering-system independent implementation in
16978         terms of draw_glyphs().
16979         
16980         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
16981         function to render a single line.
16982
16983         * gdk/x11/gdkpango.c: Move the guts of this file mostly
16984         into ../gdkpango.c, which simplifies things, since we
16985         don't have to deal with raw X gc's.
16986
16987 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
16988
16989         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
16990         get the logical attributes for a given GtkTextLine.
16991
16992 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
16993
16994         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
16995         g_locale_get_codeset() to g_get_codeset() change.
16996
16997 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
16998
16999         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
17000         descriptions.
17001
17002         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
17003         the entry.
17004
17005         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
17006         redoing (vastly simplifying) for Pango. Still needs quite
17007         a bit of work. (Size selection is currently poor. List of 
17008         predefined sizes is not a good idea, since all of these
17009         sizes won't necessarily be distinct.)
17010
17011 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
17012
17013         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
17014         CODESET results for LANG=C.
17015
17016 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
17017
17018         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
17019         which takes a stringized pango font description;
17020         ignore the older 'font' and 'fontset' declarations.
17021
17022         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
17023         field with a GdkFont derived via gdk_font_from_description(),
17024         for compatibility. (Should we just remove it entirely?
17025         Probably too much compatibility breakage, but people
17026         should be migrating to the new Pango stuff as quickly
17027         as possible.)
17028
17029 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
17030
17031         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
17032
17033 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
17034
17035         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
17036         redoing; there are some bugs in size allocation right
17037         now, the semi-existant distinction between header / day
17038         fonts was removed, but, with Pango, could actually
17039         be made functional in a nice way.
17040         
17041         * gtk/testcalender: Move calender from examples into this
17042         directory as a test program. (We really need to restrcture
17043         testgtk into a whole directory full of tests for every
17044         widget or functionality group, separated into multiple .c
17045         files.)
17046
17047 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
17048
17049         * gtk/testgtk.c (file_exists): Fix stupid typo that
17050         was keeping RC file from being loaded.
17051
17052         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
17053         RC file font code.
17054
17055 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
17056
17057         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
17058         Add function to load a GdkFont from a PangoFontDescription.
17059
17060 2000-05-29  Tor Lillqvist  <tml@iki.fi>
17061
17062         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
17063         variable should be of type GdkEventPrivate.
17064
17065 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
17066
17067         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
17068         to have any widget for the label, use a GtkLabel widget
17069         to display the text. (Based partially on a patch from
17070         Anders Carlson.)
17071
17072         (Quite a bit of code reorganization - strip 90% of the
17073         guts out of gtkaspectframe and add a single virtual
17074         func to GtkFrameClass - compute_child_allocation.)
17075
17076 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
17077
17078         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
17079         (Removed clist->row_center_offset field because caching
17080         it wasn't saving time or code, added private function
17081         _gtk_clist_create_cell_layout()).
17082
17083 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
17084
17085         * gtk/gtkaccellabel.c: Pangoized.
17086
17087         * gtk/[hv]ruler.c: Pangoized
17088
17089 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
17090
17091         * gtk/gtkfilesel.c (gtk_file_selection_init):
17092         Use gtk_clist_set_column_auto_resize() to remove need
17093         need for manual column width computations.
17094
17095 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
17096
17097         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
17098         ensuring Pango correctness, and considerably simplifying the
17099         code.
17100         
17101         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
17102
17103         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
17104         getting of numbers of lines.
17105
17106         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
17107         to the actual requested width of the lable, not to the wrap
17108         width we set.
17109
17110         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
17111
17112         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
17113           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
17114
17115         * gtk/gtktextview.c: Fix structure inheritance.
17116
17117         * gtk/gtkprogressbar.c: Pangoize.
17118
17119 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
17120
17121         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
17122         in a function.
17123
17124         * gtk/gtktextlayout.c (find_display_line_above): Fixed
17125         bug with computing line tops.
17126
17127         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
17128
17129 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
17130
17131         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
17132         and y_offset coordinates to do what we need now. (The offset between
17133         buffer and layout coordinates has been reintroduced, but is a 
17134         bit different than before.)
17135
17136         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
17137         handle the adjustments ourselves, and scroll as necessary using
17138         the new gdk_window_scroll().
17139         
17140         The advantage of this is that when we are incrementally revalidating,
17141         we are essentially rearranging things around the visible portion
17142         of the screen. With the old setup, the visible portion of the
17143         screen was moved around in the layout, so scrolling and redrawing
17144         to track that caused jumping of the display. Since we now
17145         control the scrolling ourselves, we can suppress this and
17146         only redraw when things actually change.
17147
17148 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
17149
17150         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
17151         the region not just redisplay it after-all, since we store the
17152         cursors in the LineDisplay. (Ugly interactions here between
17153         GtkLayout and GtkTextBTree here.)
17154         
17155         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
17156
17157 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
17158
17159         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
17160         Added function to scroll contents of a window while keeping the
17161         window constant. Works by XCopyArea or guffaw-scrolling depending
17162         on the details of how the window is set up. (guffaw-scrolling
17163         still needs to be filled in.)
17164
17165 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
17166
17167         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
17168         move the debugging that was tied to a global variable
17169         to that.
17170
17171         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
17172
17173         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
17174         validated flag, in line data instead of setting height/width to
17175         -1. This allows us to perform operations with partially invalid
17176         buffer (using the old size for invalid lines) and thus to do
17177         incremental vaidation. Keep height/width aggregates up to date
17178         when deleting text and rebalancing the tree.
17179
17180         * gtk/gtktextbtree.[ch]: Add functions validate a line
17181         (gtk_text_btree_validate_line), and to validate up
17182         to a number of pixels (gtk_text_btree_validate).
17183
17184         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
17185         that indicates that something is changed and a revalidation
17186         pass is needed. Change ::need_repaint to ::changed, and
17187         make it take old and new yranges instead of a rectangle.
17188
17189         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
17190         the line_data_destroy() function from 
17191         gtk_text_btree_add_view() to a virtual function in 
17192         GtkTextLayout
17193
17194         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
17195         since we are handling partial repaints in a different fashion
17196         now.
17197
17198         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
17199         of the selection instead of queueing a repaint on the
17200         entire widget.
17201
17202         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
17203         get_selection_bounds() down to btree, make the function
17204         in buffer a wrapper around the btree function.
17205
17206         * gtk/gtktextlayout.[ch]: Add functions to check if the
17207         layout is valid and to recompute either a range of pixels
17208         aroudn a line or a certain total number of pixels.
17209
17210         * gtk/gtktextlayout.[ch]: Cache a single line display;
17211         now that we only redraw the needed portions, the hit rate
17212         for this cache is quite high.
17213         
17214         * gtk/gtktextview.[ch]: Keep track of the first paragraph
17215         on the screen so that when re-laying-out the buffer, we can
17216         keep the same place. This requires connecting to ::value_changed
17217         on the adjustments
17218
17219         * gtk/gtktextview.[ch]: Add idle functions to revalidate
17220         the buffer after we receive an ::invalidated signal.
17221         
17222 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
17223
17224         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
17225         to max of allocation and layout size, not just to the
17226         layout size.
17227
17228         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
17229         Invalidate window so it gets redrawn properly.
17230
17231         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
17232         to mean the entire window.
17233
17234         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
17235         into public header.
17236
17237 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
17238
17239         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
17240         to get the name of a mark.
17241
17242         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
17243         to find the paragraph from a y position.
17244
17245 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
17246
17247         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
17248         nodes have width/height >= 0, not > 0.
17249
17250 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
17251
17252         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
17253         Add a size_only flag, so when we only need the size, we don't create
17254         useless appearance attributes.
17255
17256         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
17257         duplicate setting of font description.
17258
17259         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
17260
17261 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
17262
17263         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
17264         EXTRA_DIST. It does not work well when the file that
17265         everything depends on is not in the tarball.
17266
17267 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
17268
17269         * gtk/testgtk.c: Some hacks and fixes so that it basically
17270         works when not sitting in the GTK+ build tree.
17271
17272 2000-05-03  Havoc Pennington  <hp@redhat.com>
17273
17274         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
17275         Properly determine the ordering of the tag root and the current
17276         line within the tree. Previous algorithm only worked if the tag
17277         root's immediate parent was the common root of both the current
17278         line and the tag root.
17279
17280 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
17281
17282         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
17283         alignment.
17284
17285         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
17286         the widget text directional dynamically.
17287
17288         * gtk/gtktextview.[ch]: Added functions to get and set default
17289         wrap mode.
17290
17291 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
17292
17293         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
17294         in cursor location computation.
17295
17296 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
17297
17298         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
17299         vadjusment values properly when layout gets smaller.
17300
17301         * gtk/gtktextview.c (need_repaint_handler): Areas being
17302         passed in are far completely inaccurate, and sometimes
17303         too small, so, for now, just queue a redraw on the
17304         whole visible region.
17305
17306 2000-04-25  Havoc Pennington  <hp@redhat.com>
17307
17308         * gtk/gtktextbtree.c (summary_destroy): new function to 
17309         destroy tag summary nodes
17310         (gtk_text_line_next_could_contain_tag): this function was 
17311         totally broken if the line passed in wasn't below the tag
17312         root. Fix it.
17313         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
17314         "wildcard" case, we have to do a linear scan. Blah.
17315         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
17316         we have to do the linear scan
17317         (tag_removed_cb): When a tag is removed from the tag table, 
17318         remove the GtkTextTagInfo node from the btree.
17319         (gtk_text_btree_spew): Implement the spew function, for 
17320         our debugging pleasure.
17321
17322 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
17323
17324         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
17325         a problem with referring to the wrong buffer.
17326
17327         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
17328
17329         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
17330         font description to gtk_style_new() - otherwise things
17331         don't work without a .gtkrc file.
17332
17333         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
17334         tags table if we create it ourself, too.
17335
17336         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
17337         it was conflicting with XKB modifiers.
17338
17339         * gtk/gtktextview.[ch]: Add simple support for 
17340         GtkIMContext.
17341
17342 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
17343
17344         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
17345         with deletion from last commit.
17346
17347 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
17348
17349         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
17350         in the context from the current locale.
17351         
17352         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
17353         context, not hardcoded value.
17354
17355         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
17356         not logical.
17357
17358 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
17359
17360         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
17361         attributes - that doesn't handle partial-glyph selection
17362         properly. Instead use new pango_layout_line_get_x_ranges()
17363         functionality to draw the selection.
17364
17365         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
17366         now properly handles out-of-range coordinates.
17367
17368         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
17369
17370         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
17371         public.
17372
17373         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
17374         for paragraphs opposite to the base direction of the widget.
17375
17376         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
17377
17378         * gtk/gtktextlayout.c: Don't split segments on marks, since that
17379         causes Arabic words to reshape as you cursor through.
17380
17381         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
17382         cursor position when moving vertically with the arrow keys and
17383         scrolling with page-up/page-down. (Arrow keys save only the X,
17384         scrolling saves both X and Y.)
17385
17386         This means you can line-up / line-down or page-up / page-down
17387         without losing your place, and also that moving vertically
17388         with the cursor keys keeps the same X position, not the same
17389         character count:
17390
17391         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
17392         arrow keys move by display lines, not paragraphs.
17393
17394 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
17395
17396         * gtk/gtklayout.c: Make sure that the bin window is at least
17397         as big as the allocation. (Should we also make sure that the
17398         bin window is big enough to completely cover widget->window?)
17399
17400         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
17401         function to get the onscreen rectangle.
17402
17403         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
17404         for offsets in window coordinates.
17405
17406 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
17407
17408         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
17409         confusion.
17410
17411         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
17412         from the widget direction.
17413
17414         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
17415         Add a "direction" attribute.
17416
17417         * gtk/gtktextview.c: global s/tkxt/text_view/.
17418
17419         * gtk/testtext.c: Added long block of text in Arabic, to test out
17420         the direction attributes. (Some problems with the shaping system
17421         for arabic become obvious - like the fact the cursor splits words
17422         into unjoined pieces.)
17423
17424 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
17425
17426         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
17427
17428         * gtk/gtktextlayout.c: Fix up alignment.
17429
17430         * gtk/testtext.c: Add some tests for centering, wrapping.
17431
17432 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
17433
17434         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17435         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
17436         If we wrote GTK+-specific layout-render function this could just replace
17437         the draw_layout() operation in the vtable.
17438
17439         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
17440         pango_layout_get_cursor_pos() and use that function.
17441
17442         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
17443         is a non-static symbol.
17444
17445         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
17446         with gtk_text_btree_find_line_by_y()
17447
17448         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
17449         renderer that handles GtkTextAppearance attributes.
17450
17451         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
17452
17453           - Move the values in the style that don't affect geometry into a
17454             GtkTextAppearance structure.
17455           - Change underline to take a PangoUnderline and "font" a string
17456             representation of a font description
17457           - Add a "font_desc" attribute which takes a FontDescription structure.
17458
17459         * gtk/gtktextlayout.[ch]:
17460
17461           - Get rid of the display-line list per each line. Instead, we
17462             generate, on demand, a GtkTextLineDisplay structure which]
17463             contains a PangoLayout * and other necesary information
17464             (offsets, cursor locations) for displaying a paragraph.
17465           - Get rid of the code to wrap lines, create display chunks,
17466             etc. Instead, we just go through a paragraph and convert
17467             it into the necessary inputs to a PangoLayout.
17468           - Implement a new attribute type, GtkTextAttrAppearance. This
17469             holds a GtkTextAppearance, and is used to pass colors, 
17470             stipple, etc, through from the layout to the display without
17471             having to use lots and lots of individual attributes.
17472           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
17473             in terms of PangoLayout functions.
17474         
17475         * gtk/gtktextview.c: 
17476          
17477           - Handle passing the necessary PangoContext to the layout
17478           - Some fixups in painting to deal with the automatic backing store
17479             and offsetting of GTK+-1.4
17480           - Add a style_set handler so that the default style reacts
17481             properly to theme changes.
17482         
17483         * gtk/gtktext?*.[ch]: Random code-style fixes.
17484
17485         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
17486
17487 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
17488
17489         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
17490         in original form preparatory to Pango-ization and gdkimcontext-ization.
17491
17492 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
17493
17494         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
17495         so that we can derive from gtkimcontext in language bindings properly.
17496
17497 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
17498
17499         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
17500         Add a compose table including (almost) all the compose combinations
17501         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
17502         data in the XIM implementation.
17503
17504         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
17505         Moved functions to convert keyvalues from and to unicode here from
17506         the win32 port and made them public.
17507
17508 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
17509
17510         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
17511
17512 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
17513
17514         * gtk/gtkimcontext.[ch]: Base class for new input context system
17515
17516         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
17517         the real input context implementation to be loaded from modules
17518         and switched on the fly.
17519
17520         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
17521         context that just does direct keysymbol => unicode translation.
17522
17523         * gtk/gtkentry.[ch]: Start switching editing over to using
17524         GtkInputContext. (No handling of preedit yet.)
17525
17526 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
17527
17528         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
17529         many substitutions. (klass should not be subsituted.)
17530
17531 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
17532
17533         * configure.in: Add checks for Pango
17534
17535         * configure.in docs/Makefile.am: Add test for sgml2html
17536         and allow 'make dist' without building html, but print out
17537         warnings in that case. (For making snapshots)
17538
17539         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
17540         Add Pango libraries and C flags
17541
17542         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
17543         Add function (gdk_draw_layout) to draw a pango layout.
17544
17545         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
17546         for getting Pango contexts for GDK.
17547
17548         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
17549
17550         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
17551         editing.
17552
17553         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
17554         keysym => unicode translations. More languages can be added
17555         here, but real input-method support is needed.
17556
17557         * docs/Changes-1.4.txt: Added note about entry behavior.
17558         
17559         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
17560         to set the reading direction for a widget and the global direction.
17561         Add test which allows toggling the global direction. Two private
17562         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
17563
17564         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
17565           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
17566
17567         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
17568
17569         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
17570         underlining now handled by Pango.
17571
17572         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
17573         to RCStyle and Style. (Having both this and the old font name and GdkFont 
17574         is temporary.)
17575
17576         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
17577         convenience functions for creating contexts and layouts for widgets.
17578
17579         * gtk/testgtk.c: Enhance label tests with multilingual labels.
17580
17581 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
17582
17583         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
17584         titles to be active, even if they aren't visible.
17585         (gtk_clist_column_titles_passive):  Ditto.
17586
17587 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
17588
17589         * gtkmenu.c:
17590         * gtkmenu.h:
17591         * gtktypeutils.h: Spelling/grammar fixes in comments.
17592
17593 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
17594
17595         * gdk/nanox/*.h: add missing header files.
17596
17597 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
17598
17599         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
17600         send_event to TRUE.
17601         (gtk_drawing_area_size): queue a resize.
17602
17603 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
17604
17605         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
17606         the handlers, also invalidate them. bug nailed down by Karl Nelson
17607         <kenelson@ece.ucdavis.edu>.
17608
17609 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
17610
17611         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
17612         "(nil)" foundries, patch from Grigorios Magklis.
17613
17614         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
17615         on non-available fonts, based on a patch by Grigorios Magklis
17616         <maglis@cs.rochester.edu>.
17617
17618 2000-05-18  Elliot Lee  <sopwith@redhat.com>
17619
17620         * gdk/x11/gdkregion-generic.c: If a region does not have any
17621         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
17622         instead of GDK_OVERLAP_RECTANGLE_IN.
17623
17624 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
17625
17626         * gtk/gtklayout.c (gtk_layout_map): Remove references to
17627         OFFSCREEN, as it is no longer necessary.
17628
17629 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
17630
17631         * gtk/gtkcolorsel.c: Patch from David Santiago
17632         <mrcooger@cyberverse.com> to change things so that the 
17633         indicator of the active palette entry is done independently,
17634         not via the focus, since it should always be visible.
17635
17636 2000-05-17  Tor Lillqvist  <tml@iki.fi>
17637
17638         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
17639         refcount leaks as in the X11 backend.
17640
17641         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
17642         cosmetics.
17643
17644         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
17645         backend. Add _gdk_windowing_window_destroy().
17646
17647         * gtk/gtkcolorsel.c: Include correct backend-specific header.
17648         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
17649         either, but these probably do exist on nanox?)
17650         
17651         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
17652         which isn't necessarily defined by <math.h>.
17653
17654         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
17655         ancestry past GtkObject.
17656
17657         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
17658         from DLL on Win32.
17659
17660         * gtk/gtk.def: Update corresponding to recent changes.
17661
17662         * gtk/makefile.{cygwin,msc}: Updates.
17663
17664 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
17665
17666         * docs/Changes-1.4.txt: A bit of editing.
17667
17668         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
17669         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
17670         to clear the update area for the window, and clear it
17671         when hiding a window.
17672
17673         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
17674         if window destroyed.
17675
17676         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
17677
17678         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
17679         gdk_window_destroy() to the generic code, since there was a lot of 
17680         window-system-independent logic it in. Add a function:
17681         
17682          _gdk_window_destroy() 
17683
17684         to the internal API to destroy a window without unreferencing it.
17685         Add a function:
17686
17687          _gdk_windowing_window_destroy()
17688
17689         That does the windowing-system-dependent part of destroying 
17690         the window.
17691
17692 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
17693
17694         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
17695
17696 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
17697
17698         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
17699         Make gtk_widget_shape_combine_mask() keep a reference count on
17700         the pixmap since it keeps it around.
17701
17702 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
17703
17704         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
17705         leak.
17706
17707         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
17708         leak with event filters.
17709
17710 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
17711
17712         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
17713         signal handlers with the right data arguments. (Fixes
17714         some warnings when a widget was repeatedly set as a drag
17715         destination.)
17716
17717         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
17718         window so we can avoid avoid setting the DND properties on the
17719         toplevel window repeatedly.
17720
17721 2000-05-13  Tor Lillqvist  <tml@iki.fi>
17722
17723         * gdk/win32/gdkwin32.h: Define more message types missing from
17724         mingw headers.
17725
17726         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
17727         call gdk_window_destroy_notify(). It was never called. This
17728         probably meant that the GdkWindow was never freed. Thanks Owen for
17729         noticing (!).
17730
17731         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
17732         window as destroyed before calling DestroyWindow(). DestroyWindow()
17733         causes a call to the window procedure (gdk_WindowProc), which
17734         calls gdk_event_translate(), which calls
17735         gdk_window_destroy_notify(), which gets confused unless the window
17736         is set as destroyed.
17737
17738         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
17739         this function to indicate it's win32 only. Put inside #ifdef
17740         G_ENABLE_DEBUG.
17741
17742         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
17743         debugging function. (gdk_event_translate:) Add a default branch
17744         that uses the above function to print debug messages with all
17745         Windows messages symbolically.
17746
17747         * gdk/win32/gdkprivate-win32.h: Declare it, and
17748         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
17749
17750 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
17751
17752         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
17753         public header file.
17754
17755 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
17756
17757         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
17758
17759         * gtk/gtktext.c: made the adjustments no-construct args, simply
17760         provide default adjustments.
17761         (gtk_text_destroy): release adjustments.
17762
17763         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
17764         adjustment argument non-construct.
17765
17766         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
17767         instead of in finalize.
17768         (gtk_progress_get_text_from_value): 
17769         (gtk_progress_get_current_text): 
17770         (gtk_progress_set_value): 
17771         (gtk_progress_get_percentage_from_value): 
17772         (gtk_progress_get_current_percentage): 
17773         (gtk_progress_set_percentage): 
17774         (gtk_progress_configure): ensure an adjustment is present.
17775
17776 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
17777
17778         * gtk/gtkcolorsel.[hc]:
17779         * gtk/gtkcolorseldialog.[hc]:
17780         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
17781         their parent implementation, use bit fields for boolean values, don't
17782         create unused widgets, usage of glib types, braces go on their own
17783         lines, function argument alignment, #include directives etc. etc. etc..
17784
17785         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
17786
17787 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
17788
17789         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
17790
17791         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
17792         of NULL.
17793
17794         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
17795         to freed data.
17796         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
17797
17798         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
17799         to NULL when the toplevel is getting destroyed.
17800         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
17801         (gtk_menu_destroy): 
17802         (gtk_menu_init): store the information of whether we have to
17803         readd the initial child ref_count during destruction in a new
17804         GtkMenu field needs_destruction_ref_count.
17805
17806         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
17807         here, those reading: learn from my mistake! ;)
17808         in order for set_?adjustment to support a default adjustemnt if
17809         invoked with an adjustment pointer of NULL, the code read (pseudo):
17810         if (v->adjustment) unref (v->adjustment);
17811         if (!adjustment) adjustment = adjustment_new ();
17812         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
17813         now imagine the first unref to actually free the old adjustment and
17814         adjustment_new() creating a new adjustment from the very same memory
17815         portion. here, the latter comparision will unintendedly fail, and
17816         all hell breaks loose.
17817         (gtk_viewport_set_hadjustment):
17818         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
17819         after unreferencing it.
17820
17821         * gtk/gtkcontainer.[hc]: removed toplevel registration
17822         functions: gtk_container_register_toplevel(),
17823         gtk_container_unregister_toplevel() and
17824         gtk_container_get_toplevels() which had wrong semantics
17825         anyways: it didn't reference and copy the list.
17826
17827         * gtk/gtkwindow.c: we take over the container toplevel registration
17828         bussiness now. windows are registered across multiple destructions,
17829         untill they are finalized. the initial implicit reference count
17830         users are holding on windows is removed with the first destruction
17831         though.
17832         (gtk_window_init): ref & sink and set has_user_ref_count, got
17833         rid of gtk_container_register_toplevel() call. add window to
17834         toplevel_list.
17835         (gtk_window_destroy): unref the window if has_user_ref_count
17836         is still set, got rid of call to
17837         gtk_container_unregister_toplevel().
17838         (gtk_window_finalize): remove window from toplevel list.
17839         (gtk_window_list_toplevels): new function to return a newly
17840         created list with referenced toplevels.
17841         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
17842
17843         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
17844         adjustment a non-construct arg.
17845         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
17846         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
17847         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
17848
17849         * gtk/gtkrange.c: added some realized checks.
17850         (gtk_range_destroy): get rid of the h/v adjustments in the
17851         destroy handler instead of finalize. remove timer.
17852         (gtk_range_get_adjustment): demand create adjustment.
17853
17854         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
17855         we simply create them on demand now and get rid of them in
17856         the destroy handler.
17857         (gtk_viewport_destroy): get rid of the h/v adjustments in the
17858         destroy handler instead of finalize.
17859         (gtk_viewport_get_hadjustment): 
17860         (gtk_viewport_get_vadjustment): 
17861         (gtk_viewport_size_allocate): demand create h/v adjustment
17862         if required.
17863
17864         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
17865         gtk_widget_real_destroy () functionality.
17866         (gtk_widget_real_destroy): reinitialize with a new style, instead
17867         of setting widget->style to NULL.
17868
17869 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
17870
17871         * gtk/gtkcalendar.c:
17872         * gtk/gtkbutton.c: ported _get_type() implementation over to
17873         GType, either to preserve memchunks allocation facilities,
17874         or because Gtk+ 1.0 GtkTypeInfo was still being used.
17875
17876         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
17877         over. prepare for ::destroy to be emitted multiple times.
17878         removed reference tracer magic. chain into GObjectClass.shutdown()
17879         to emit ::destroy signal.
17880
17881         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
17882         fundamental.
17883
17884         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
17885         cludge.
17886
17887         * gtk/gtksocket.c:
17888         * gtk/gtkplug.c:
17889         * gtk/gtklayout.c:
17890         * gtk/gtklabel.c:
17891         * gtk/gtkargcollector.c:
17892         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
17893         not being a fundamental anymore, and to work with the new
17894         type system (nuked fundamental type varargs clutter).
17895
17896         * gtk/*.c: install finalize handlers in the GObjectClass
17897         part of the class structure.
17898         changed direct GTK_OBJECT()->klass accesses to
17899         GTK_*_GET_CLASS().
17900         changed direct object_class->type accesses to GTK_CLASS_TYPE().
17901
17902         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
17903         GType. made most of the GTK_*() type macros and Gtk* typedefs
17904         simple wrappers around macros and types provided by GType.
17905         most notably, a significant portion of the old API vanished:
17906         GTK_TYPE_MAKE(),
17907         GTK_TYPE_SEQNO(),
17908         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
17909         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
17910         GTK_TYPE_ARGS,
17911         GTK_TYPE_CALLBACK,
17912         GTK_TYPE_C_CALLBACK,
17913         GTK_TYPE_FOREIGN,
17914         GtkTypeQuery,
17915         gtk_type_query(),
17916         gtk_type_set_varargs_type(),
17917         gtk_type_get_varargs_type(),
17918         gtk_type_check_object_cast(),
17919         gtk_type_check_class_cast(),
17920         gtk_type_describe_tree(),
17921         gtk_type_describe_heritage(),
17922         gtk_type_free(),
17923         gtk_type_children_types(),
17924         gtk_type_set_chunk_alloc(),
17925         gtk_type_register_enum(),
17926         gtk_type_register_flags(),
17927         gtk_type_parent_class().
17928         replacements, where available are described in ../docs/Changes-1.4.txt.
17929         implemented compatibility functions for the remaining API.
17930
17931         * configure.in: depend on glib 1.3.1, use gobject module.
17932
17933 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
17934
17935         * TODO.xml: Various updates to current status.
17936
17937 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
17938
17939         * gtk.m4: Print out version when test succeeds.
17940
17941 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
17942
17943         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
17944         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
17945         
17946         (Original triangle color selector from Simon Budig
17947         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
17948         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
17949         Santiago <mrcooger@cyberverse.com>)
17950
17951         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
17952         out into a separate widget.
17953
17954         * gtk/testgtk.c: Add some checkbuttons for toggling palette
17955         and opacity controls.
17956
17957 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
17958
17959         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
17960         snuck in prematurely.
17961
17962 2000-05-07  Tor Lillqvist  <tml@iki.fi>
17963
17964         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
17965         had deleted a ! operator by mistake, which caused
17966         GDK_SELECTION_CLEAR events never to be generated, which caused
17967         only the first copy to the clipboard from an gtkeditable to
17968         actually cause a copy to the Windows clipboard.
17969
17970 2000-05-06  Tor Lillqvist  <tml@iki.fi>
17971
17972         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
17973         compilation, too. Current mingw gcc distributions include the
17974         necessary headers. Also the necessary IIDs are now in mingw
17975         headers/libraries, and own definitions unnecessary.
17976
17977         More hacking on OLE2 DND, still doesn't work though, and thus
17978         ifdeffed out.
17979
17980         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
17981         here, too.
17982
17983 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
17984
17985         * gdk/nanox/*: nano-X port work in progress.
17986         * gdk/simple.c: simple test for Gdk.
17987         * README.nanox: notes about the port: read this first!
17988         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
17989         with nano-X.
17990
17991 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
17992
17993         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
17994         gdk_window_clear() into common code, implement in terms of
17995         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
17996         not redirected to the backing rectangle.
17997
17998 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
17999
18000         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
18001         EXTRA_DIST. It does not work well when the file that
18002         everything depends on is not in the tarball.
18003
18004 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
18005
18006         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
18007         with recursion where process_updates() is called from
18008         an expose handler. (GtkTextView is highly broken in
18009         doing this, but it should work, so it is a nice test
18010         case.)
18011
18012 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18013
18014         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
18015         handle the case where updates are queued during processing of
18016         updates.
18017
18018 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
18019
18020         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
18021         window is on gdk_display - use that instead of segfaulting.
18022
18023 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
18024
18025         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
18026         broken and require an empty arg, give it to them.
18027
18028 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
18029
18030         * gtk/gtklabel.h: indentation fixes.
18031
18032 2000-05-02  Tor Lillqvist  <tml@iki.fi>
18033
18034         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
18035         draw too narrow or too low arcs, they seem to fail, at least with
18036         some display drivers.
18037
18038         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
18039
18040         Large changes to the Win32 backend, partially made necessary by
18041         the changes to the backend-independent internal
18042         structures. Attempts to implement similar backing store stuff as
18043         on X11. The current (CVS) version of the Win32 backend is *not* as
18044         stable as it was before the no-flicker branch was merged. A
18045         zipfile with that version is available from
18046         http://www.gimp.org/win32/. That should be use by "production"
18047         code until this CVS version is usable. (But note, the Win32
18048         backend has never been claimed to be "production quality".)
18049
18050         * README.win32: Add the above comment about versions.
18051
18052         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
18053
18054         * gdk/gdk.def: Update.
18055
18056         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
18057         presumably be replaced by some more better mechanism as 1.4 gets
18058         closer to release shape.
18059
18060         * gdk/makefile.{cygwin,msc}: Update.
18061
18062         * gdk/win32/*.c: Correct inclusions of the backend-specific and
18063         internal headers. Change code according to changes in these. Use
18064         gdk_drawable_*, not gdk_window_* where necessary.
18065
18066         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
18067         our old DND.
18068
18069         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
18070         to interpret single characters as UTF-8. Thanks to Hans Breuer.
18071         Use correct function name in warning messages.
18072
18073         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
18074         GSourceFuncs gdk_event_prepare and gdk_event_check.
18075         (gdk_event_get_graphics_expose): Do implement, use
18076         PeekMessage. Thanks to Hans Breuer.
18077         (event_mask_string): Debugging function to print an GdkEventMask.
18078         (gdk_pointer_grab): Use it.
18079
18080         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
18081         (old) book I used claimed was Hangul actually is CJK Unified
18082         Ideographs Extension A. Also, Hangul Syllables were missing.
18083         Improve logging.
18084
18085         * gdk/win32/gdkgc-win32.c: Largish changes.
18086
18087         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
18088         g_win32_getlocale() from GLib, and not setlocale() to get current
18089         locale name.
18090
18091         * gdk/win32/gdkprivate-win32.h
18092         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
18093         gdkwin32.h, similarily as in the X11 backend.
18094
18095         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
18096         assignment was used instead of equals in if test. Thanks to Hans
18097         Breuer.
18098
18099         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
18100         the X11 version.
18101
18102         * gdk/win32/makefile.{cygwin,msc}
18103         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
18104         path to the Win32 headers that works also with the mingw compiler.
18105
18106         * gtk/gtkstyle.c: Include <string.h>.
18107
18108 2000-04-26  Havoc Pennington  <hp@redhat.com>
18109
18110         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
18111         replacing the broken gtk_label_get ()
18112
18113 2000-04-15  Havoc Pennington  <hp@pobox.com>
18114
18115         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
18116         this keeps scanner scripts from getting confused.
18117
18118         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
18119         data, rather than void
18120
18121 2000-04-15  Tor Lillqvist  <tml@iki.fi>
18122
18123         * gtk/gtkclist.c (gtk_clist_motion)
18124         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
18125         with is_hint FALSE, get x and y from the event. They used to be
18126         used uninitialised. The Win32 backend never sends motion events
18127         marked as hints. This for instance fixes the annoying file and
18128         font selector behaviour in the Win32 version.
18129
18130 2000-04-14  Tor Lillqvist  <tml@iki.fi>
18131
18132         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
18133         gtk_private_n_signals variables, they are used by some software,
18134         sigh.
18135
18136         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
18137         installation directory from the Registry, where the installer
18138         should have put it.
18139
18140 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
18141
18142         * gdk/x11/Makefile.am: Fix problem with installation directory for
18143         gdkx.h
18144
18145         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
18146         <mrcooger@cyberverse.com> so that when selecting menus with the
18147         mouse, the first item will not be selected, but when selecting
18148         with an accelerator, or navigating left-right on a menubar with
18149         the menus popped up, the first item will be selected.
18150
18151 2000-04-05  Dan Damian  <dand@dnttm.ro>
18152
18153         * configure.in: Added "ro" to ALL_LINGUAS.
18154
18155 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
18156
18157         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
18158         indentation.
18159
18160         * Makefile.am (EXTRA_DIST): Fix typo.
18161
18162         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
18163         to catch gdkconfig.h
18164
18165         * gtk/gtkitemfactory.c: Added FIXME.
18166
18167 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
18168
18169         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
18170         s/return_if_fail/return_val_if_fail/g and add a return value.
18171
18172 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
18173
18174         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
18175         merge slipup.
18176
18177         * gdk/gdkinput.h: Fix missing line from merge.
18178
18179 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
18180
18181         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
18182         instead of gdkprivate.h.
18183
18184 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
18185
18186         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
18187         parent class to correctly be GtkDialogClass.
18188
18189 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
18190
18191         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
18192         toplevel windows and their immediate children by their parents,
18193         since the size of toplevel windows is out of our immediate
18194         control and we don't get any real benefit from trying to track
18195         this size for clipping.
18196
18197         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
18198         for input_only windows.
18199
18200         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
18201         to fix some hacks and make sure that we don't try to set the
18202         background of input only windows.
18203
18204 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
18205
18206         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
18207         the _really_ internal stuff, and leave gdkprivate.h for the fake private
18208         stuff that we've traditionally exposed.
18209
18210         * gdk/**.c: Use gdkinternals.h where appropriate.
18211
18212         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
18213         not include gdkprivate-x11.h, move all stuff of conceivable public
18214         interest into gdkx.h; keep all really private stuff in
18215         uninstalled header gdkprivate-x11.h.
18216
18217         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
18218         image->image_put on windows through a new function _gdk_window_draw_image()
18219         to allow us to do backing store for images. (Sort of ugly)
18220
18221         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
18222         contexts locally so that we can offset them properly when drawing 
18223         onto backing pixmaps.
18224
18225         * gdk/gdkinput.h: Reindented
18226
18227         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
18228         pixmap or color for the window, so we can properly initialize
18229         our double-buffer pixmaps, and also so that we temporarily set
18230         a background of None while scrolling.
18231
18232         * gdk/gdkregion.h: Revise region boolean operators to have an
18233         interface that is actually convenient - switch from creating new
18234         regions on every op, to "methods" that modify existing regions
18235         (A = A OP B). 3 argument forms which allow dest == src, would also
18236         be possible, but the current interfaces seem to map nicely
18237         onto what needs to be done. (There is quite a lot of region
18238         code in GDK now.)
18239
18240         * gdk/gdkregion.h: Add constructor from rectangle and a copy
18241         operator.
18242
18243         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
18244         gdkpoly-generic.h: Copy region code from Xlib, switch it over
18245         to 32 bit coordinates, modify it to be mostly GTK+ style
18246         and to have interfaces that match gdkregion.h.
18247
18248         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
18249         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
18250         create a backing pixmap and redirect all drawing to
18251         that backing pixmap until a matching gdk_window_end_paint().
18252
18253         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
18254         Create a special drawable class for GtkWindow's that 
18255         redirects the drawing to the backing pixmap as necessary
18256         and then calls the real operations in _gdk_windowing_window_class.
18257
18258         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
18259         Store invalid region for each window. Generate expose events for invalid
18260         region in an idle. This replaces both the expose compression
18261         and the redrawing queuing in GTK+. It is both more efficient and
18262         simpler than either one individually and far more so then the
18263         combination.
18264
18265         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
18266         Emulate 32 bit coordinates for windows with 16 bit coordinates
18267         by offsetting drawing, guffaw scrolling techniques and
18268         mapping/unmapping child windows as necessary.
18269
18270         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
18271         where, when invalid regions are processed, the region is stored,
18272         and if expose events come in that are detectably duplicate
18273         the processed exposes (by comparison of event serial numbers),
18274         the stored region is subtracted out of those exposes.
18275
18276         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
18277         regions newly exposed when scrolling or resizing windows.
18278         This, combined with forcing processesing of queued invalidated
18279         regions, gives nice flicker-free scrolling.
18280
18281         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
18282         invalidated regions after every scroll.
18283
18284         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
18285         emulation in GDK. Its, for all practical purposes just a
18286         GtkViewport/GtkFixed hybrid now.
18287
18288         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
18289         (16-bit) structures as necessary instead of just casting.
18290
18291         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
18292         in terms of the structures from gdkregion-generic.c, using appropriate
18293         offsets from GDK to X11 coordinates. Cache clip mask and
18294         origin and ts origin locally and only flush to the server
18295         when drawing, to avoid constantly setting and resetting these
18296         values when offsetting GC's for scrolling and backing pixmaps.
18297
18298         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
18299
18300         * gtk/gtkcontainer.c: Call process_all_updates at end
18301         of resizing to reduce flicker. (Avoids having redraw
18302         lag arbitrarily behind resize under some circumstances)
18303
18304         * gtk/gtkentry.c: Remove old backing store code, and simply take
18305         advantage of the new backing store capabilities of GDK.
18306
18307         * gtk/gtkmain.c: Simple implementation of widget backing
18308         store - simply push a paint while handling each expose.
18309         (Should really be configurable widget for widget.)
18310         
18311         * gtk/gtkwidget.c: Remove all the old complicated redraw
18312         code, and simply invalidate the GDK windows from
18313         gdk_window_queue_clear(), etc. (Sigh, so much carefully
18314         debugged complexity ... gone to the winds.)
18315
18316         Remove all the code for suppressing expose events while
18317         resizes are pending; this isn't needed since the invalid
18318         areas won't be processed until after the resizes are
18319         processed, since they are in a lower priority idle.
18320
18321 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
18322
18323         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
18324         and height of dest rectangle for non-intersecting rectangles.
18325
18326 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
18327
18328         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
18329         for GdkRectangle.
18330
18331 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
18332
18333         * gdk/gdk{events,image,private,types,window}.h
18334          gdk/x11/gdkinputprivate.h: Change all coordinates
18335          from int16 to int. Also, Change width and height from
18336          unsigned to signed to avoid all the stupid C 
18337          signedness bugs.
18338
18339 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
18340
18341         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
18342         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
18343         Add some more detailed checking.
18344
18345         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
18346         New function to retrieve the depth of a drawable.
18347
18348         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
18349         field, reorder fields to save memory. 
18350
18351 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
18352
18353         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
18354         of the background image instead of scaling the background down to
18355         a line.
18356
18357         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
18358         which temporarily set slider to wrong size.
18359
18360         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
18361         queue_clear().
18362
18363 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
18364
18365 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
18366
18367         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
18368
18369 2000-03-17  Tor Lillqvist  <tml@iki.fi>
18370
18371         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
18372         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
18373
18374         * gdk/win32/gdkfont-win32.c
18375         * gdk/win32/gdkproperty-win32.c
18376         * gdk/win32/gdkselection-win32.c
18377         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
18378         now declared such.
18379
18380 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
18381
18382         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
18383
18384 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
18385
18386         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
18387         is called without trapping X errors.
18388
18389 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
18390
18391         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
18392         way into the fontset lists.
18393
18394 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
18395
18396         * gtk/gtkthemes.h: add extern "C" scope.
18397
18398 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
18399
18400         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
18401         to make appends to the list constant. (gtk-guy-990901-0.patch)
18402
18403 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
18404
18405         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
18406         for the typename hash table.
18407
18408 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
18409
18410         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
18411         to make sure we never divide by zero. 
18412         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
18413
18414 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
18415
18416         * gtk/gtkfontsel.c: Apply patch from
18417         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
18418         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
18419
18420         Also, some cleanups in atom handling.
18421
18422 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
18423
18424         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
18425         not GtkWidget.
18426
18427 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
18428
18429         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
18430         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
18431         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
18432         more guint wrap-around bugs before going to bed.
18433
18434 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
18435
18436         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
18437         guint wrap arounds in allocation.width.
18438
18439         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
18440         process untill we fit the allocation given.
18441
18442 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
18443
18444         * gtk/gtkwidget.c:
18445         (gtk_widget_unrealize): guard widget access with ref/unref
18446         around signal emission.
18447         (gtk_widget_hide): same here, but also check its destroyed
18448         state before queueing a resize.
18449
18450 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
18451
18452         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
18453         of gtk_default_insensitive_bg as insensitive base color.
18454
18455         * gtk/gtktext.c (gtk_text_style_set): set the background color according
18456         to the widget's state.
18457         (gtk_text_realize): same here.
18458         (gtk_text_state_changed): same here.
18459         (draw_bg_rect): compare background color against base[] from
18460         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
18461
18462 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
18463
18464         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
18465         grabs are active, unless a delete event is send to the toplevel
18466         of the currently grab holding widget.
18467
18468 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
18469
18470         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
18471         debugging g_print's.
18472
18473 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
18474
18475         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
18476         ever make the scrolled-window requisition ever depend on the 
18477         visibility state of the scrollbars for the AUTOMATIC policy. 
18478         This breaks the GTK+ requisition model, and causes loops.
18479
18480 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
18481
18482         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
18483         the default font to avoid problems with XFree86-4.0 where the
18484         default charset is iso10646-1, not iso8859-1.
18485
18486 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
18487
18488         * acinclude.m4
18489         * config.guess
18490         * config.sub
18491         * ltconfig
18492         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
18493
18494         * gtk/Makefile.am: minor cosmetic consistency tweak
18495
18496 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
18497
18498         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
18499         the activate_time to 0, so that we handle a quick
18500         press/release press/release properly and don't suppress
18501         the second release. (Red Hat bug #7545)
18502
18503 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
18504
18505         * gtk/gtkctree.c (row_delete):
18506         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
18507         bugs with destruction notifier, *always* update internal
18508         structures *before* calling user code.
18509
18510 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
18511
18512         A few more fixes for bug #5487, #2051, #2677.
18513         * gtk/gtkclist.c : 
18514         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
18515         not GDK_BUTTON_PRESS.
18516         (resync_selection): resync only if selection_mode is
18517         GTK_SELECTION_EXTENDED
18518         * gtk/gtkctree.c (resync_selection): same here
18519
18520 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
18521
18522         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
18523         gdk_drag_get_selection() and gtk_menu_detach().
18524
18525         [ From Jeroen Ruigrok/Asmodai ]
18526
18527 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
18528
18529         * gtk/gtknotebook.c (gtk_notebook_size_request): 
18530         page->tab_label can be NULL.
18531
18532 2000-01-25  Havoc Pennington  <hp@pobox.com>
18533         
18534         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
18535         arg is boolean
18536
18537         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
18538
18539         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
18540
18541         * gdk/gdkproperty.c (gdk_property_get): return boolean
18542
18543         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
18544
18545         * gdk/gdkim.c (gdk_im_ready): return boolean
18546
18547         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
18548
18549         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
18550         glib clash, should fix glib)
18551
18552         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
18553         (gdk_get_show_events): return gboolean, and canonicalize 
18554         to TRUE/FALSE
18555
18556         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
18557         colormap is private
18558         (gdk_colors_alloc): gboolean whether to be contiguous
18559         (gdk_color_equal): return gboolean since we are a predicate
18560         and not a qsort() (this looks semi-wrong due to glib breakage,
18561         IMO glib should be fixed)
18562         
18563         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
18564         (gdk_get_use_xshm): return gboolean
18565         (gdk_pointer_is_grabbed): return gboolean
18566
18567         * gdk/gdk.h: Change prototypes to match all the above changes,
18568         and re-run egtk-format-protos as required.
18569
18570 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
18571
18572         * gtk/gtkctree.c (resync_selection): 
18573         * gtk/gtkclist.c (resync_selection):
18574
18575         Return immediately if clist->drag_pos < 0. This is a workaround
18576         for the corrupt state that the clist gets into when a
18577         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
18578
18579         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
18580         
18581         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
18582         variable from recent commit.
18583
18584 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
18585
18586         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
18587
18588 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
18589
18590         * gtk/Makefile.am: prefix all autogenerated source that get build in
18591         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
18592         in builddir. since we subsequently cd into srcdir for autogeneration,
18593         the paths have to be stripped from the target file names, thusly we
18594         use $(@F) as target names now.
18595         put a comment about configure.in's --disable-rebuilds option,
18596         which can be used for non-writable source directories, for development
18597         setups though, srcdir has to be *writable*.
18598
18599 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
18600
18601         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
18602           Finish the job of allowing event to be NULL.
18603           (Fixes bug #4283, reported by Chris Blizzard)
18604
18605         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
18606           things so that the cursor appears on screen, properly
18607           take into account INNER_BORDER.
18608           (Fixes bug #4754, reported by Antonio Campos)
18609
18610 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
18611
18612         * gtk/gtknotebook.c (gtk_notebook_map): Don't
18613           show the tab_label unless it itself is visible.
18614
18615           gtk/gtknotebook.c (gtk_notebook_size_request):
18616           Do a better job of making sure that the visibility
18617           of the tab label corresponds to whether it should
18618           be mapped or not.
18619
18620 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
18621
18622         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
18623           Use the requisition, not the allocation, since the
18624           allocation has not necessarily been computed yet.
18625           (Pointed out by Eugene Osintsev)
18626
18627 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
18628
18629         * gtk/gtkstyle.c (gtk_style_new): Dont' set
18630           style/base[GTK_STATE_INSENSITIVE] both to
18631           gtk_default_insensitive_bg!
18632           (Bug #2187, reported by Jonathan Blandford)
18633
18634         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
18635           Add Alt_L, Alt_R to list of invalid accelerators.
18636           (Bug #3736, reported by Vlad Harchev)
18637
18638 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
18639
18640         * gtk/gtkfilesel.c (open_ref_dir): Fix several
18641         bugs which occured after an attempt to open 
18642         invalid home directory left cmpl_state->reference_dir == NULL.
18643
18644          - completion on files in home directory didn't work
18645          - completion on an empty string caused  segfault
18646
18647          (Bug #3678, reported by Steve Ratcliffe)
18648
18649         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
18650         cut and paste error that was causing scales to
18651         be incorrectly positioned.
18652         (Bug #2956,
18653          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
18654
18655 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
18656
18657         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
18658         when checking for dcgettext, if we've found we needed
18659         it for dgettext.
18660 +
18661 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
18662
18663         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
18664         queue_clear on NO_WINDOW widgets during a reparent,
18665         since at that point the window and widget heirarchies
18666         are out of sync. This stops crashing in some cases
18667         (the scrolled window reparent test, for instance), and
18668         _probably_ won't cause drawing errors.
18669
18670         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
18671         test do what it was supposed to do and be robust against
18672         window closings, etc. (Bug #2443)
18673
18674 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
18675
18676         * gtk/gtkentry.c: Fix return values on mouse events.
18677         (Bug #2686, Sky <seb_sky@yahoo.com>)
18678
18679         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
18680         (pointed out by George Lebl)
18681
18682         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
18683         (From Ettore Perazzoli  <ettore@helixcode.com>)
18684  
18685 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
18686
18687         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
18688         clicks between rows or outside calender area correctly.
18689         (Patch from Damon Chaplin)
18690
18691         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
18692         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
18693           Call destroy function when overwriting existing data. 
18694           (Pointed out by Damon Chaplin)
18695
18696 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
18697
18698         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
18699           which was causing problems on various systems with Xmu.
18700           This hasn't been needed for a very long time.
18701           (Fixes #1185 3167)
18702
18703 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
18704
18705         * gdk/gdki18n.h: Include <ctype.h> when defining
18706           gdk_isw* in terms of is* as a fallback.
18707           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
18708
18709 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
18710
18711         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
18712           realize the widget when it is size allocated!
18713           (old, old bug)
18714
18715         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
18716           Removed unused call to gdk_window_get_size() that
18717           showed up when the above was fixed.
18718
18719 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
18720
18721         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
18722           fix up widget->window when the widget is a
18723           NO_WINDOW container widget.
18724
18725 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
18726
18727         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
18728           to account for the fact that feof() does _not_ 
18729           return TRUE on errors, and thus avoid infinite loops
18730           when trying to use gdk_pixmap_create_from_xpm()
18731           on unreadable values.
18732
18733 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
18734
18735         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
18736
18737 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
18738
18739         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
18740           gdk_gc_set_dashes to take gint8 instead of gchar to
18741           make it clearer that it is _not_ a NULL terminated string.
18742
18743         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
18744           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
18745           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
18746           arguments.
18747
18748 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
18749
18750         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
18751         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
18752         background size relative to our allocation, guard against small
18753         allocations, we may have not yet been size allocated.
18754
18755 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
18756
18757         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
18758         not just version == 3. We implement all 3 + most of 4 - 
18759         (we don't support matching text/plain;charset=iso-8859-1
18760         to a dest that expects text/plain). We'll still advertise
18761         3 to be safe, but any client implementing version >= 3
18762         must interoperate with 3.
18763         
18764 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
18765
18766         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
18767         background and gc members, add a warning in gtk_tooltips_set_color()
18768         indicating that this function is deprecated.
18769
18770 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
18771
18772         * docs/gtkfaq.sgml: FAQ Update:
18773           - Minor cleanups (Emmanuel, me)
18774           - New questions:
18775                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
18776                 How can I retrieve the text from a GtkMenuItem? (timj)
18777                 How do I validate/limit/filter the input to a GtkEntry? (me)
18778                 Memory does not seem to be released when I free the list
18779                         nodes I've allocated (timj)
18780
18781 2000-03-07  Tor Lillqvist  <tml@iki.fi>
18782
18783         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
18784         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
18785         for which it is no use to call GetLastError onWin9x.
18786         (gdk_other_api_failed) New function, for general error
18787         reporting without calling GetLastError.
18788         (gdk_win32_api_failed) OTOH, this function always calls
18789         GetLastError. (gdk_win32_last_error_string) Remove this function,
18790         GLib has the equivalent now.
18791
18792         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
18793         call them with function name, file name and line number in the
18794         arguments.
18795
18796         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
18797         functions.
18798         
18799         * gtk/gtk.def: Add some missing entry points.
18800
18801         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
18802         gtk_paned_set_gutter_size, which don't exist any longer, as void.
18803         
18804         Fixes by Hans Breuer:
18805
18806         * gdk/makefile.msc: Update for debugging.
18807
18808         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
18809         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
18810         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
18811         in the dash_list.
18812
18813         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
18814         the x11 backend.
18815
18816         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
18817
18818         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
18819
18820 2000-03-04  Tor Lillqvist  <tml@iki.fi>
18821
18822         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
18823         just pixel value of background colour.
18824
18825         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
18826         containing code snippet previously duplicated in a couple of
18827         places.
18828         
18829         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
18830         gdk_colormap_color.
18831
18832         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
18833         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
18834         events for autorepeated Shift, Control and Alt keys. Use
18835         gdk_colormap_color.
18836
18837         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
18838         pointer is inside the window the cursor of which we are setting,
18839         call SetCursor immediately.
18840
18841         * gdk/win32/makefile.cygwin
18842         * gtk/makefile.cygwin: If we don't have the build number stamp
18843         file, use zero.
18844
18845         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
18846         gtk_paned_set_gutter_size as empty.
18847
18848         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
18849         
18850 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
18851
18852         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
18853           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
18854           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
18855           docs/gtk_tut.sgml docs/gtk.texi TODO:
18856
18857           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
18858
18859 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
18860
18861         * gtk/gtkcalendar.c: Implement num_marked_dates,
18862           and don't emit mutiple day_selected signals on
18863           month_prev.
18864
18865 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
18866
18867         * docs/make-todo (lineno): let title and logo be configurable so
18868         that GNOME can use this script too.
18869
18870         * TODO.xml: added logourl and a title
18871
18872 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
18873
18874         * TODO.xml: Added some UI items, and an explanatory
18875         comment at the top of the file.
18876
18877 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
18878
18879         * TODO.xml: some updates, added abunch of new entries.
18880         a note for those fiddeling with this file, when done
18881         with it, invoke:
18882         $ ./docs/make-todo TODO.xml >/dev/null
18883         and correct output errors before comitting changes.
18884
18885 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
18886
18887         * TODO.xml: Added XML-structured TODO file.
18888         * docs/make-todo: python script to turn TODO.xml into
18889           pretty XML output. 
18890
18891 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
18892
18893         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
18894         the function to let it draw the seven dots, instead of the old,
18895         much maligned, method.
18896         (draw_dot): New function to draw a dot.
18897
18898         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
18899         to draw the handle inside the border width as opposed to outside.
18900         Use paint function instead of gdk_draw_point.
18901
18902         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
18903         to draw the handle inside the border width as opposed to outside.
18904         Use paint function instead of gdk_draw_point.
18905
18906         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
18907         Change indenting to be more GTK like.
18908
18909 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
18910
18911         * docs/gtk_tut.sgml: New section on GtkCalendar
18912         * examples/calendar: Update example code
18913
18914 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
18915
18916         * docs/gtkfaq.sgml: FAQ Update
18917
18918 2000-02-19  Anders Carlsson  <andersca@gnu.org>
18919
18920         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
18921         to prevent the scroll event to be propagated upwards.
18922
18923 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
18924
18925         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
18926         OwnerGrabButtonMask from button entries for
18927         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
18928
18929         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
18930         to the event mask (which will result in button/press release
18931         being added to the event mask on Unix) so scrolling works
18932         for layouts in scroll windows.
18933
18934         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
18935
18936         Patch from Anders Carlsson  <andersca@gnu.org> to add
18937         a scroll event.
18938
18939         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
18940         scrolling to the "Test Scrolling" part of testgtk.
18941  
18942         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
18943  
18944         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
18945         it against GDK_SCROLL.
18946  
18947         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
18948         way of mouse wheel scrolling.
18949  
18950         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
18951  
18952         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
18953  
18954         * gtk/gtkmain.c: Removed previous mouse wheel hack.
18955  
18956         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
18957         gdk_event_mask_table.
18958  
18959         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
18960         GdkEventScroll handler.
18961  
18962         * gdk/gdkevents.h: Added GdkEventScroll structure.
18963  
18964 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
18965
18966         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
18967         and Anders Carlsson to change the Paned widgets so that they
18968         can be dragged from anywhere along the length. Also change
18969         the way that this is drawn to make this apparent.
18970
18971         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
18972         from George Lebl to check that option_menu->menu is present
18973         before getting history.
18974
18975 2000-02-14  Tor Lillqvist  <tml@iki.fi>
18976
18977         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
18978         before the assertion for non-NULL segment list.
18979
18980         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
18981         Seems that pattern brushes *must* be 8x8 pixels! At least on my
18982         machine, but it might be display driver dependent. Sigh, so make
18983         sure the stipple is that size. Does Windows suck or what?
18984
18985         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
18986         places.
18987
18988 2000-02-13  Havoc Pennington  <hp@pobox.com>
18989
18990         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
18991         refcount to 1
18992         (gdk_cursor_new): init refcount to 1
18993
18994         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
18995
18996 2000-02-13  Tor Lillqvist  <tml@iki.fi>
18997
18998         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
18999         so that we don't have to do unnecessary settings to the HDC.
19000
19001         * gdk/win32/gdkdrawable-win32.c
19002         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
19003         gdk_gc_predraw.
19004
19005         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
19006         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
19007         GDI paths, call WidenPath to get the outline of the stroken path,
19008         and then fill the outline (with the brush that was built from the
19009         stipple).
19010
19011         * gdk/win32/gdkgc-win32.c: Factor out common code from
19012         _gdk_win32_gc_new and gdk_win32_gc_set_values into
19013         gdk_win32_gc_values_to_win32values. Use correct colour for
19014         SetBkColor() (Until now the code actually used a random colour in
19015         the call to SetBkColor()... but that didn't show up as not many
19016         GDI APIs use the background colour. Pattern (opaque stippled)
19017         brushes do.)
19018
19019         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
19020         gdk_win32_api_failed): New functions for error logging.
19021
19022         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
19023         WIN32_API_FAILED to call them, passing function or file name and
19024         line number.
19025
19026         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
19027
19028         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
19029         GdkColor for foreground and background in GdkGCWin32Data.
19030
19031         * gdk/makefile.cygwin: Link in the resource object separately.
19032
19033         * gdk/win32/rc/gdk.rc
19034         * gtk/gtk.rc (New file)
19035         * gdk/win32/makefile.cygwin
19036         * gtk/makefile.cygwin: Update build number in DLLs automatically,
19037         as in GLib.
19038
19039 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
19040
19041         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
19042         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
19043         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
19044         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
19045         parameters given and cursor->ref_count. coding style fixups.
19046
19047         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
19048         not GtkWidget.
19049         
19050         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
19051         fix up widget macros and add _GET_CLASS() variant.
19052         
19053         * gtk/*.c: some GtkType fixups.
19054
19055 2000-02-09  Tor Lillqvist  <tml@iki.fi>
19056
19057         * gdk/win32/gdkproperty-win32.c
19058         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
19059         were reversed.
19060
19061 2000-02-04  Tor Lillqvist  <tml@iki.fi>
19062
19063         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
19064         g_filename_to_utf8 to convert the font names Windows gives us from
19065         whatever is the default codepage to UTF-8.
19066         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
19067         in the other direction.
19068
19069         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
19070         error in debugging output.
19071
19072 2000-02-02  Tor Lillqvist  <tml@iki.fi>
19073
19074         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
19075         and height parameters to gdk_window_clear_area(). Not minus one.
19076
19077 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
19078
19079         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
19080         checks if the widget passed to gtk_drag_get_data() was not the
19081         dest widget.
19082
19083 2000-02-01  Tor Lillqvist  <tml@iki.fi>
19084
19085         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
19086         g_filename_from_utf8 functions (which were added a moment ago to
19087         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
19088         size buffers.
19089
19090         gtk_file_selection_get_filename returns the filename in the C
19091         runtime encoding. It calls g_filename_from_utf8, but copies the
19092         returned string to a static buffer, which is returned. I think
19093         this is better than returning the result from g_filename_from_utf8
19094         directly, which would mean all apps that use it would have to free
19095         the return value. Or should this function care about this issue at
19096         all? Maybe a new function with clearly defined semantics.
19097
19098         * gtk/gtkfilesel.h: Add comment about
19099         gtk_file_selection_get_filename returning the filename in the C
19100         runtime's encoding.
19101
19102         * README.win32
19103         * gdk/gdk.def
19104         * gdk/makefile.{cygwin,msc}
19105         * gtk/gtk.def: Updates.
19106
19107         * gdk/gdkcursor-win32.c: Initialise refcount.
19108
19109 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
19110
19111         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
19112
19113 2000-01-30  Havoc Pennington  <hp@pobox.com>
19114
19115         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
19116         destroy
19117
19118         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
19119
19120         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
19121         implemented in platform-specific code
19122
19123         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
19124
19125         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
19126         underscore in front
19127
19128         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
19129         put an underscore in front
19130
19131         * gdk/gdkcursor.c: new file, implements
19132         gdk_cursor_ref/gdk_cursor_unref
19133
19134         * gdk/gdkcursor.h: Refcount GdkCursor
19135
19136         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
19137
19138 2000-01-29  Tor Lillqvist  <tml@iki.fi>
19139
19140         * gdk/gdkwindow.h
19141         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
19142
19143 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
19144
19145         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
19146         structures to properly inherit from GtkWidget not GtkBin.
19147
19148 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
19149
19150         * gtk+.spec.in: Added lib/gtk+/include/* to %files
19151         (bug #5178 - Peter Wainright)
19152         
19153         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
19154         so that it will be installed.
19155         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
19156
19157 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
19158
19159         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
19160         for the GtkStyleClass vtable const.
19161
19162         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
19163         take a const string argument like GtkTranslateFunc. This will
19164         require changes in use code.
19165
19166 2000-01-19  Tor Lillqvist  <tml@iki.fi>
19167
19168         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
19169         semantics (to mimic the X11 backend, which just calls XClearArea)
19170         is to check for zero width (and height), and in that case use the
19171         window's width minus x (height minus y). This fixes for instance
19172         some redraw problems with gtkclist, which were easily noticeable
19173         in the gtk file selection widget.
19174
19175         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
19176         windows.
19177
19178 2000-01-13  Tor Lillqvist  <tml@iki.fi>
19179
19180         * configure.in
19181         * gdk/Makefile.am
19182         * gdk/x11/Makefile.am
19183         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
19184         (bug #5177).
19185         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
19186         out later.
19187
19188 2000-01-09  Tor Lillqvist  <tml@iki.fi>
19189
19190         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
19191         WM_MOVE for iconified or invisible windows. This fixes various
19192         problems when minimising windows. Thanks to Bernd Herd.
19193
19194 2000-01-05  Tor Lillqvist  <tml@iki.fi>
19195
19196         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
19197         backend's draw_lines method, not draw_points.
19198
19199 2000-01-02  Tor Lillqvist  <tml@iki.fi>
19200
19201         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
19202         before Owen's reorganisation: Don't have queued_events and
19203         queued_tail statics in this file, but use gdk_queued_events and
19204         gdk_queued_tail. This makes exposure event compression work again.
19205
19206         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
19207         seem to be needed?
19208
19209 1999-12-30  Tor Lillqvist  <tml@iki.fi>
19210
19211         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
19212         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
19213         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
19214         doesn't do anything.
19215
19216         * gdk/gdk.def: Add gdk_xid_table_insert.
19217
19218         * gdk/win32/gdkprivate-win32.h
19219         * gdk/win32/gdkevents-win32.c
19220         * gdk/win32/gdkinput-win32.c
19221         
19222         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
19223         extension_events field in the GdkWindowWin32Data struct. Use only
19224         the extension_events field in GdkWindowPrivate. Previously one was
19225         set, and the other one tested, which broke tablet
19226         functionality. Thanks to Keishi Suenaga for pointing this out.
19227
19228 1999-12-18  Tor Lillqvist  <tml@iki.fi>
19229
19230         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
19231         When handling a single character (text length == 1), don't handle
19232         it as if it was UTF-8.
19233
19234 1999-12-11  Tor Lillqvist  <tml@iki.fi>
19235
19236         * Makefile.am: Distribute README.win32.
19237         
19238         * gdk/Makefile.am
19239         * gdk/win32/Makefile.am: Distribute Win32 files.
19240
19241         * gdk/makefile.msc: New file.
19242
19243         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
19244         after label).
19245
19246         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
19247         gdk_error_code as GDKVAR, as they are referred outside GDK.
19248
19249         * gdk/win32/makefile.msc: Update.
19250
19251         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
19252         tweaks. Check only if at least one of those Unicode subrange bits
19253         we care for is set. If no code page bits are set, guess (wildly)
19254         based on the charset.
19255
19256         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
19257
19258         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
19259         non-NULL.
19260
19261         * gtk/gtkdnd.c
19262         * gtk/gtklayout.c
19263         * gtk/gtkplug.c
19264         * gtk/gtkselection.c
19265         * gtk/gtksocket.c
19266         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
19267         appropriate. There must be a cleaner way to handle this?
19268
19269         * gtk/gtkrc.c: Must include windows.h on Win32.
19270
19271         * gtk/testgtk.c: No need to include gdkx.h.
19272
19273         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
19274
19275 1999-12-07  Tor Lillqvist  <tml@iki.fi>
19276
19277         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
19278         the rbearing is set to the same as the width, but this should be
19279         fixed.
19280
19281 1999-12-06  Tor Lillqvist  <tml@iki.fi>
19282
19283         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
19284         function. If Windows doesn't tell us what Unicode subranges a font
19285         covers, guesstimate based on the codepages it covers. This will
19286         hopefully help those Windows versions or fonts that don't give us
19287         any useful Unicode subrange information with GetTextCharsetInfo.
19288         Call this function in gdk_font_load_internal.
19289
19290         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
19291         minor changes.
19292
19293 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
19294
19295         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
19296         New function, long needed.
19297
19298 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
19299
19300         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
19301         only_if_exists argument of gdk_atom_intern to
19302         bool.
19303
19304 1999-11-25  Tor Lillqvist  <tml@iki.fi>
19305
19306         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
19307         Fix two copy&paste errors.
19308
19309         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
19310         win32 has changed.
19311
19312         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
19313         GdkWin32SingleFont struct.
19314
19315         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
19316         subranges of loaded fonts. Clear font signature first, in case
19317         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
19318         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
19319
19320         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
19321         Unoffset clip region.
19322
19323 1999-11-23  Tor Lillqvist  <tml@iki.fi>
19324
19325         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
19326         event->any.window before calling filter functions.
19327
19328 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
19329
19330         * gtk/gtkgamma.h: Adapt cast macros to standard.
19331
19332 [ Merges from 1.2 ]
19333
19334 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
19335
19336         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
19337         If translation does not include a '/', use entire
19338         translation instead of crashing.
19339
19340 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
19341
19342         * docs/gtk_tut.sgml:
19343         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
19344
19345 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
19346
19347         * gtk/gtkselection.c (gtk_target_list_remove): Use
19348         g_list_remove_link, not g_list_remove.
19349
19350         [ From Geert Bevin <gbevin@thunderstorms.org> ]
19351         
19352 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
19353
19354         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
19355         statement upon unselection (how the heck did that slip in?).
19356
19357 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
19358
19359         * gtk/gtktext.c (gtk_text_freeze): 
19360         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
19361         in frozen state (and aparently crashes). patch provided by Anders
19362         Melchiorsen <and@kampsax.dtu.dk>.
19363
19364 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
19365
19366         * fix insensitive default/focus widget activation,
19367         reported by Matt Goodall <mgg@isotek.co.uk>.
19368
19369         * gtk/gtkwindow.c (gtk_window_key_press_event): 
19370         (gtk_window_activate_default):
19371         (gtk_window_activate_focus):
19372         return handled=FALSE for actiavtion of insensitive default
19373         widgets. return handled=TRUE for activation of insensitive
19374         focus widgets. don't activate in either case.
19375
19376 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
19377
19378         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
19379         and $glib_cflags to match library order and in the
19380         theory that an old version of GLib is more likely to
19381         be in the include directory for X then vice-versa.
19382         (Bug #2776)
19383
19384 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
19385
19386         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
19387         to determine the locale for fontsets, not LC_MESSAGES;
19388         the user may want English messages with a handling
19389         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
19390         will still be broken) (Bug #2891)
19391
19392 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19393
19394         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
19395
19396 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
19397
19398         * gtk/gtkrc.ko: Changed the Korean default fontset.
19399
19400 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
19401
19402         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
19403         where when scrolling to the left or top double exposes
19404         were done, causing major slowdowns.
19405
19406 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
19407
19408         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
19409         names to lowercase and alphanumeric, before looking
19410         them up.
19411
19412         * gtk/Makefile.am: Install codeset variant gtkrc files
19413         with normalized names.
19414
19415 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
19416
19417         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
19418         popup menus when the menu is already visible, but its parent
19419         is still hidden, (happens after tornoff window got hidden).
19420
19421 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
19422
19423         * gtk/Makefile.am (install-data-local): Fix
19424         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
19425         deleted, causing error messages on install.
19426
19427 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
19428
19429         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
19430         the handle as well, since we now sometimes ignore
19431         exposes on the handle while resizing.
19432
19433 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
19434
19435         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
19436         extra g_free introduced in one of the last one or two 
19437         commits.
19438
19439 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
19440
19441         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
19442         consistent, put each style that a gtkrc.* file creates
19443         in a unique namespace, remove old files before installing.
19444
19445 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
19446
19447         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
19448         gtk_rc_init is called multiple times. (Yes, people who
19449         do that have bugs in their code.)
19450
19451 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
19452
19453         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
19454         Remove it since it's generated by the Makefile anyway
19455
19456 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
19457
19458         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
19459         device->info.axes for core pointer.
19460
19461 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
19462
19463         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
19464         idle_id, to deal with obsolete, broken C libraries.
19465
19466 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
19467
19468         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
19469         allocation->x/y twice!
19470
19471         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
19472         consistent with gtk_vscale_pos_trough().
19473
19474 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
19475
19476         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
19477         be queueing a resize on a toplevel container between
19478         the time we show it and when we map it. So, we need
19479         to test GTK_WIDGET_VISIBLE() for toplevels, and only
19480         use GTK_WIDGET_DRAWABLE() for child windows.
19481
19482 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
19483
19484         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
19485         (fixes bug #2144)
19486
19487 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
19488
19489         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
19490         container DRAWABLE (instead of VISIBLE), so we don't queue
19491         resizes on non-toplevel containers.
19492
19493 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
19494
19495         * gtk/gtkselection.[ch]: Make the data argument
19496         const guchar *.
19497
19498 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
19499
19500         * gtk/gtkwindow.c: Try to behave sensibly if 
19501         the focus widget is the window itself. (Should
19502         we allow this at all?)
19503
19504 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
19505
19506         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
19507         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
19508         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
19509         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
19510         in prototypes and implementations consistent (Tomas Ogren).
19511
19512         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
19513         before the widget is unparented (reported by damon).
19514
19515         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
19516         since we provide unsigned data anyways.
19517
19518 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
19519
19520         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
19521         the call to gtk_tooltips_layout_text() until later.
19522
19523         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
19524         Call gtk_widget_ensure_style() before using the style.
19525
19526 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
19527
19528         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
19529         for old widgets that don't propagate draws to all
19530         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
19531
19532 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
19533
19534         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
19535         for a redraw but just the widget that requested the resize.
19536
19537 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
19538
19539         * gtk/gtkcontainer.c: added new widget level method
19540         gtk_container_set_reallocate_redraws() and a GtkContainer flag
19541         reallocate_redraws : 1 to reflect the setting, exported this through
19542         the argument system as a boolean ::reallocate_redraws.
19543
19544         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
19545         on the widget because the allocation changes, do so as well for
19546         widget->parent if the parent has reallocate_redraws set to TRUE.
19547         with that containers requesting reallocation redraws get automatically
19548         redrawn if their children changed allocation (this unfortunately
19549         affects also other children that didn't change allocation, but we
19550         cannot work around that before 1.3).
19551
19552 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
19553
19554         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
19555         _and_ height are >0 (not _or_).
19556
19557         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
19558         instead of gtk_container_queue_resize(), which is a core gtk internal
19559         function (must have been on crack when i queued that).
19560
19561         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
19562         we can check more reliably if we want to discard expose events.
19563         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
19564         flag.
19565         
19566         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
19567         we simply trust these events. for deciding whether to discard exposes,
19568         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
19569         
19570 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
19571
19572         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19573         queues of areas that are completely off screen.
19574
19575         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
19576         logic for handleboxes.
19577
19578         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
19579         check on width/height.
19580
19581 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
19582
19583         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
19584         we are fine with using $@ the way we do (if we actually encounter
19585         brokeness with $@ in VPATH builds because of additional path prefixes,
19586         we need to use $(@F) actually).
19587
19588 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
19589
19590         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
19591         short lived bugs, that would allow language bindings to do surgeries
19592         to our guts.
19593
19594 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
19595
19596         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
19597         where comparison was being done against an uninitialized
19598         value causing intermittant results depending on
19599         compiler flags. Also make it clearer that we aren't
19600         ever initializing the child as 0x0 (though this will
19601         be caught in gtk_widget_size_allocate())
19602
19603 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
19604
19605         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
19606         gtk_window_unset_transient_for() call after we do checks
19607         involving the old transient parent.
19608         [ From Lance Capser <lmc@cyberhighway.net> ]
19609
19610 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
19611
19612         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
19613         an empty file.
19614
19615 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
19616
19617         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
19618         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
19619
19620 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
19621
19622         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
19623         `$@' is valid only in the build dir, not after we've done 
19624         `cd $srcdir'.  Also use `test -f' instead of less portable
19625         `test -e'.
19626
19627 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
19628
19629         * gtk/gtktext.c (correct_cache_insert): Rewrite
19630          for simplicity, and hopefully correctness.
19631          (Fixes bug #1322, which was a segfault when
19632           on some insertions with the properties around
19633           the insertion set up just wrong.)
19634
19635         * gtk/gtktext.c (gtk_text_adjustment): When we receive
19636          a "changed" signal, clamp the new value to the adjustment
19637          bounds to avoid segfaulting if someone tries to change
19638          the adjustment to a bogus value. (Bug #1795)
19639
19640 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
19641
19642         * gtk/gtkmain.c: Ignore unexpected destroy notifies
19643         for children, for toplevel windows handle them
19644         like delete_event.
19645
19646         * gtk/gtkplug.c: Add an unrealize handler so that
19647         we unref plug->socket_window when we are done
19648         with it.
19649
19650 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
19651
19652         * gtk/gtktext.c (clear_area): Fix stupid signedness
19653          problem that was causing background to sometimes
19654          be misaligned.
19655
19656 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
19657
19658         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
19659         
19660         * gtk/gtkmenu.c (gtk_menu_position): Make
19661          sure we never position menus with negative x, y,
19662          since gtk_widget_set_uposition() can't handle that.
19663
19664         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
19665          Modify the positioning code a bit so that we always
19666          put the top-left corner onscreen. (This is for
19667          UI reasons, gtk_menu_position() now takes care of
19668          gtk_widet_set_uposition() brokeness.)
19669
19670 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
19671
19672         * gtk/Makefile.am: fixed up things for -jx, x > 1.
19673
19674 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
19675
19676         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
19677           RC style that is passed in. The lack of the ref
19678           before was a bug. If people worked around this
19679           bug, this will introduce a slight memory leak
19680           in their code. The code should typically look like:
19681
19682             rc_style = gtk_rc_style_new ();
19683             [...]
19684             gtk_widget_modify_style (widget, rc_style);
19685             gtk_rc_style_unref (rc_style);
19686
19687         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
19688           the style if it was already set.
19689
19690         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
19691           style if it was set before.
19692
19693 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
19694
19695         * gtk/testgtk.c (main): Add a check to see if we
19696           are being run from the correct directory and
19697           to quit nicely if we are not.
19698
19699         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
19700           static.
19701
19702 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
19703
19704         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
19705
19706         * gtk/gtkwindow.c:
19707         queue resizes unconditionally (gtk_widget_queue_resize will figure
19708         what to do if the window is not realized).
19709         (gtk_window_move_resize): only recenter the window
19710         for GTK_WIN_POS_CENTER_ALWAYS.
19711         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
19712         the same way as GTK_WIN_POS_CENTER.
19713
19714 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
19715
19716         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
19717         with (!(info->last_flags & GDK_HINT_POS)) instead of
19718         (!info->last_flags & GDK_HINT_POS).
19719
19720         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
19721         new_height unconditionally, because we use these values even if
19722         !default_size_changed && !hints_changed.
19723         comented the (default_size_changed || hints_changed) case with
19724         respect to resize rejects from the window manager.
19725
19726         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
19727         in the zvt condition hack, since this includes the window hints, set
19728         the hints after the handling_resize case.
19729
19730         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
19731         window is initially shown with to the geometry.
19732
19733 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
19734
19735         * gtk/gtkwindow.c (gtk_window_move_resize):
19736         s/size_changed/default_size_changed/g so i know what's
19737         really going on (frying brain on smaller flame now).
19738
19739 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
19740
19741         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
19742         we have size_changed upon handling_resize. this is a gross
19743         workaround for the broken zvt widget and should be removed in
19744         1.3 again (search for FIXME).
19745         Owen provided an accurate comment for this:
19746
19747         /* We could be here for two reasons
19748          *  1) We coincidentally got a resize while handling
19749          *     another resize.
19750          *  2) Our computation of size_changed was completely
19751          *     screwed up, probably because one of our children
19752          *     is broken. It's probably a zvt widget.
19753          *
19754          * For 1), we could just go ahead and ask for the
19755          * new size right now, but doing that for 2)
19756          * might well be fighting the user (and can even
19757          * trigger a loop). Since we really don't want to
19758          * do that, we requeue a resize in hopes that
19759          * by the time it gets handled, the child has seen
19760          * the light and is willing to go along with the
19761          * new size. (this happens for the zvt widget, since
19762          * the size_allocate() above will have stored the
19763          * requisition corresponding to the new size in the
19764          * zvt widget)
19765          *
19766          * This doesn't buy us anything for 1), but it shouldn't
19767          * hurt us too badly, since it is what would have
19768          * happened if we had gotten the configure event before
19769          * the new size had been set.
19770          */
19771
19772 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
19773
19774         * gtk/gtkrc.c: deal properly with the fact that RC
19775           style lists may include rc styles more than once.
19776
19777         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
19778           unused static function.
19779
19780         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
19781           stack of directories of RC files currently being
19782           parsed and implicitely add them to pixmap path.
19783           
19784           This fixes a bug where the directory would get
19785           appended then overwritten by pixmap_path declarations.
19786
19787           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
19788
19789         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
19790           theme's exit function. (Patch from Peter Wainwright,
19791           bug #1454)
19792
19793         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
19794           Add a destroy() handler to take care of removing
19795           group for menu item. (Fixes bug #1197)
19796
19797         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
19798           in warning message.
19799
19800 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
19801
19802         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
19803         roundtrip to figure window's width and height, since we know that
19804         anyways from widget->allocation.
19805
19806 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
19807
19808         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
19809           the hints after we request the new size.
19810
19811 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
19812
19813         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
19814           GTK_WIDGET_REALIZED() assertion - we can compute the
19815           hints before we are realized.
19816
19817         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
19818           hint changing so that we have a value of hints_changed
19819           when we decide whether to constrain the window size.
19820
19821         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
19822
19823         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
19824         change back to G_MAXINT.
19825
19826 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
19827
19828         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
19829         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
19830         contain uncluttered values.
19831         (gtk_window_compute_hints): simply assert that window is realized
19832         and that geometry_info is valid, since we rely on this anyways.
19833         (gtk_window_constrain_size): major cleanups to the code.
19834         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
19835         for the base size, instead of the minimums. use 32767 as max width
19836         and height (like in gtkwindow.c) instead of G_MAXINT.
19837
19838 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
19839
19840         * cleaned up the GtkContainer.need_resize flag handling mess, we
19841         only need to force resize requests when we were prematurely
19842         realized, or our widget tree was modified when we were temporarily
19843         hidden. handling these cases directly upon showing the window (i.e.
19844         while the GdkWindow is still unmapped) avoids the need to wait for
19845         a configure event response and therefore makes the GUI more snappier
19846         and avoids blank windows during the roundtrip.
19847
19848         * gtk/gtkwidget.c:
19849         (gtk_widget_hide): 
19850         (gtk_widget_show): don't queue resizes on toplevels, they know how
19851         to deal with matters.
19852
19853         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
19854         flag directly for not visible resize containers and spare us unecessary
19855         signal emissions.
19856
19857         * gtk/gtkwindow.c:
19858         (gtk_window_realize): if we need to enforce premature size allocation,
19859         queue a container resize so we are correctly resized later on.
19860         (gtk_window_init):
19861         (gtk_window_size_request):
19862         don't freak around with the ->need_resize flag,
19863         gtk_container_queue_resize() will care about that.
19864         (gtk_window_show):
19865         handle initial resizing issues here, we can handle matters better in
19866         this place, especially since we know that our GdkWindow is still
19867         unmapped.
19868         (gtk_window_move_resize):
19869         don't care about ->need_resize at all.
19870         handle size changes properly that occoured while we waited for a
19871         configure event.
19872
19873 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
19874
19875         * gtk/gtkwidget.c (gtk_widget_set_uposition):
19876         * gtk/gtkwindow.[hc] (gtk_window_reposition):
19877         Move the hint setting code from gtk_widget_set_uposition
19878         to here; set the hints so that we respect any previously
19879         set geometry hints.
19880
19881         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
19882         change the window hints here or move the window here,
19883         let that happen in gtk_window_move_resize().
19884
19885 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
19886
19887         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
19888         to already queued resizes (and therefore redraws) on a widget, check
19889         its anchestry as well.
19890
19891         * gtk/gtkcontainer.c:
19892         (gtk_container_queue_resize): clear resize widgets for resize
19893         containers before aborting prematurely. this is especially important
19894         for toplevels which may need imemdiate processing or their resize
19895         handler to be queued.
19896         (gtk_container_dequeue_resize_handler): added new internal function for
19897         gtkwindow.c.
19898
19899         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
19900         configure event, take possible changes in window position into account
19901         as well.
19902         if we request a new window size, queue up a resize handler that will
19903         last until the configure event response arrives.
19904         combined the ->need_resize case (initial show) with the general size
19905         (hints) changed case and added even more comments.
19906         if !auto_shrink, only revert to the old allocation if the new size
19907         is smaller than the current allocation.
19908
19909 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
19910
19911         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
19912                            gtk_window_set_geometry_hints
19913                            gtk_window_set_default_size):
19914         When hints are set, queue a resize so that the hints will
19915         be eventually reset on the toplevel.
19916
19917         * gtk/gtkwindow.c (gtk_window_show): Use
19918         gtk_window_compute_default_size(). Clear the need_resize flag
19919         on the initail map so that we don't unnecessarily trigger the
19920         resize code.
19921
19922         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
19923         into separate functions. Compare the hints we are setting
19924         with what we set last time so that we can accurately
19925         tell when we need to reset the hints.
19926
19927         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
19928         function to figure out the size from requisition
19929         and default_size.
19930
19931         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
19932         from fvwm to constrain a size to the geometry hints.
19933
19934         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
19935         to compare two sets of geometry hints.
19936
19937         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
19938         from gtk_window_set_hints(), just compute the hints,
19939         don't set them.
19940
19941         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
19942         code from gtk_window_move_resize() to separate function,
19943         rationalize a bit.
19944
19945 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
19946
19947         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
19948         structure into a new private structure.
19949
19950         * gtkrc.c: Split GtkRcStyle into public/private.
19951         In the private part, add a list of pointers to the
19952         RcStyle lists this RcStyle participates in.
19953
19954         * gtkrc.c: When a RcStyle is free, remove all
19955         lists referencing it from the 
19956         realized_style_ht hash, and free those lists.
19957         
19958         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
19959         gtk_rc_init(), since that adds the default styles
19960         to the list of parsed RC files again.
19961
19962         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
19963         
19964 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
19965
19966         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
19967         checks that ensure that a widget's allocation is at least 1 in width
19968         and height. (GNOME note: this doesn't affect old panel code anymore,
19969         because GtkSocket will request width and height of at least 1 since
19970         Fri Jul 23).
19971
19972         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
19973         allocated yet (happens if the user realizes the window prematurely),
19974         size request and allocate it.
19975         (gtk_window_size_allocate): guard against guint underflows.
19976
19977 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
19978
19979         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
19980         in gtk_built_sources, so gtk.defs gets built prior to all other
19981         sources.
19982
19983 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
19984
19985         * gtk/Makefile.am:
19986         invoke indent on gtkmarshal.*. 
19987         rewrote source generation rules, use COPYING as oldest source tag for
19988         a piggyback rule to generate all sources from (don't touch it ;).
19989         major cleanups, strip spaces on build rules for GNU Make.
19990
19991         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
19992         source and target files from commandline arguments. don't invoke indent.
19993
19994 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
19995
19996         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
19997         notebook after switch to avoid drawing problems.
19998         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
19999         
20000         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20001         show them instead. 
20002         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20003
20004 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
20005
20006         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20007         notebook after switch to avoid drawing problems.
20008         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20009         
20010         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20011         show them instead. 
20012         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20013
20014 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
20015
20016         * gtk/gtkwindow.c:
20017         we use window->need_resize from configure_event now, to indicate that
20018         the gtkwindow should keep its allocation (e.g. because the user resized
20019         the window through window manager handles). resize_count is now reliably
20020         used to figure whether we got the allocation we requested from the
20021         window manager.
20022         configure events get queued as resizes now, the real stuff (size
20023         computation and allocation) now only goes on in gtk_window_move_resize().
20024         GtkWindow's requisition now contains its *real* requisition (like all
20025         other widgets), *not* taking usize into account.
20026         geometry_info->last_{width|height} is now updated from set_hints() only
20027         so it always contains the last hints we set for the window manager.
20028         made some event handlers return TRUE instead of FALSE.
20029         the overall code should be much more straight forward now, and the
20030         significant code portions are accompanied by comments now.
20031         (gtk_window_set_hints):
20032         removed requisition argument and made it
20033         fetch the requisition through gtk_widget_get_child_requisition.
20034         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
20035         does that now.
20036         (gtk_window_show):
20037         ensure that the widget is realized before calling 
20038         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
20039         ensure that we got properly size requested and allocated before
20040         realization.
20041         (gtk_window_configure_event):
20042         ignore plain window moves, or reallocate the widget tree through the
20043         resize queue otherwise.
20044         (gtk_window_move_resize):
20045         mostly rewrote this function to figure window manager hints more
20046         reliably, coalesce window moves and resizes to reduce configure events
20047         and do actuall size allocations.
20048
20049 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
20050
20051         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
20052         that have a resize pending, because a redraw is already queued for them.
20053
20054         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
20055         hack to clear resize_widgets.
20056
20057         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
20058         for resize containers prior to size allocation. (this is also a bit
20059         ugly, but avoids side effects for stopped emissions and is thus more
20060         reliable).
20061         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
20062
20063         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
20064         function from gtk_tooltips_expose, as we connect to ::expose_event
20065         *and* ::draw now.
20066
20067 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
20068
20069         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
20070         checks.
20071         (gtk_target_list_unref): Likewise.
20072
20073         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
20074
20075 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
20076
20077         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
20078         guard against division by zero. (Fixes bug #1339)
20079
20080 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
20081
20082         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
20083         Prevent the trivial leak of information of allowing
20084         word motion when the entry is not visible.
20085
20086 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
20087
20088         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
20089         modality to error dialog as well as confirmation dialogs.
20090         (Bug #1803, reported by Rosanna Wing Sze Yuen)
20091
20092 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
20093
20094         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
20095         tree->view_lines.
20096         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
20097
20098         * gtk/Makefile.am (install-data-local): Solaris apparently
20099         has various troubles with ln -f; use rm first instead.
20100         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
20101
20102 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
20103
20104         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
20105         use `cp' followed by `rm' (the `rm' was already there).
20106
20107 July 30, 1999 Elliot Lee <sopwith@redhat.com>
20108         
20109         * configure.in: Fix autoconf warnings about cross compilation by
20110         trying to provide sane defaults for AC_TRY_RUN.
20111         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
20112         put them into $(srcdir) when generated. Also add a dependency of
20113         gtksignal.h on gtkmarshal.h for -j builds. 
20114         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
20115
20116 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
20117
20118         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
20119         GDK_THREADS_{LEAVE,ENTER} pair.
20120         (From Paul Fisher <pnfisher@redhat.com>)
20121
20122 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
20123
20124         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
20125         width and height are always >0 (owen).
20126
20127 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
20128
20129         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
20130         change that assured that a widget's allocated with and height are
20131         always >1, since this breaks *buggy* panel code. unfortunately this
20132         back-breaks the gimp's color selector.
20133
20134         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
20135         allocation is always >0 in width and height, before sending the
20136         configure event; this is a *gross* hack to get the gimp back to work.
20137         
20138         * marked both cases with TODO-1.3
20139
20140 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
20141
20142         * gtk/gtktext.c: Don't display wrap indicators when
20143         text is not editable and word wrap is on.
20144
20145 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
20146
20147         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
20148         option menus here as they are not derived from menu shell, assure that
20149         the option menu has a menu we can add items to.
20150
20151 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
20152
20153         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
20154         width/height to (gint) before calculations and check against < 0 to
20155         avoid guint wraparounds.
20156
20157 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
20158
20159         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
20160         width and height is never zero. sanity check both dimensions against
20161         32767 and issue a warning if the allocation is greater than that.
20162
20163 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
20164
20165         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
20166         to g_main_pending() as well.
20167
20168 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
20169
20170         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
20171         call to g_main_iteration() - since that will regrab
20172         GTK+ lock to process events.
20173
20174 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
20175
20176         * gtk/gtkwindow.c
20177         - Regularize with the rest of GTK+ by making widget->requisition
20178           not reflect the set_usize()
20179         - Always recompute geometry hints, then check if they
20180           changed before sending them to the X server. The
20181           previous checks for changes would fail in a number
20182           of circumstances. 
20183
20184 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
20185
20186         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
20187
20188 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
20189
20190         * gtk/gtkdnd.c:
20191         - Code cleanups
20192         - Instantaneously update on modifier key presses
20193         - Allow cancellation of the drag with Escape.
20194
20195 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
20196
20197         * gtk/testgtk.c (create_handle_box): Set the policy
20198         to auto_shrink - otherwise the appearance is rather
20199         strange when flipping between horizontal and vertical.
20200
20201 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
20202
20203         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
20204         (gtk_window_set_default_size): don't change a value if it's < 0.
20205         queue a resize.
20206
20207 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
20208
20209         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
20210
20211 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
20212
20213         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
20214         add an extra "/" when concating "/" + filename.
20215         (From Matt Grossman <mattg@oz.net>)
20216
20217 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
20218
20219         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
20220         for fg_gc if we set it for drawing pixmap.
20221
20222 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
20223
20224         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
20225         
20226         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
20227         already set, call old engine's destroy function and
20228         unref the old engine.
20229
20230 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
20231
20232         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
20233
20234 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
20235
20236         * gtk/gtkaccelgroup.h: mark certain functions as internal.
20237
20238 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
20239
20240         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
20241         expand behaviour changed.
20242
20243         * gtk/gtklabel.c (gtk_label_set_pattern):
20244         (gtk_label_set_justify):
20245         (gtk_label_set_line_wrap):
20246         don't bother invoking queue_clear, the reallocation does
20247         that for us, always free_words so the upcoming resize will
20248         relayout the label's contents.
20249
20250 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
20251
20252         * applied argument implementation patches from Elena Devdariani
20253         <elena@cogent.ca>.
20254
20255         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
20256         ::space_style, ::relief
20257         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
20258         * gtk/gtkpreview.c: ::expand
20259         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
20260         * gtk/gtknotebook.c: ::homogeneous
20261         * gtk/gtklabel.c: ::wrap
20262         * gtk/gtklist.c: ::selection_mode
20263         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
20264         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
20265         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
20266         * gtk/gtkclist.c: ::sort_type
20267         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
20268         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
20269
20270 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
20271
20272         * gtk/gtkstyle.c: Removed ill-thought-out part of last
20273         comment.
20274
20275 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
20276
20277         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
20278         counting right when we have to attach a new style
20279         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
20280
20281         * gtk/gtkstyle.c: Documented the refcounting
20282         peculularities of gtk_style_attach.
20283
20284 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20285
20286         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
20287         window types.
20288
20289         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
20290         of GTK_TOPLEVEL for creating the window.
20291
20292 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
20293
20294         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
20295         the last argument (reported by Per Winkvist).
20296         
20297 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
20298
20299         Fixes for invisible XOR lines (Frank Loemker
20300         <floemker@TechFak.Uni-Bielefeld.DE>)
20301         
20302         * gtk/gtkclist.c (gtk_clist_realize): Always use
20303         a non-zero pixel for GDK_XOR.
20304
20305         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
20306         Use GDK_INVERT instead of GDK_XOR.
20307
20308 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
20309
20310         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
20311         signals if h/voffsets differ from adjustment values.
20312         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
20313
20314 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
20315
20316         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
20317         ::selection-done emissions up to the topmost menu shell.
20318
20319 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
20320
20321         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
20322         the user data on the window before destroying it.
20323
20324         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
20325         unrealize handler to take care of destroying 
20326         notebook->panel properly. 
20327         (Bug #1198 - Morten Welinder <terra@diku.dk>)
20328
20329         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
20330         of g_new and g_realloc to stop memory leak. (Actually,
20331         we could just use g_realloc(), but I'm not 100% sure
20332         that is portable).
20333         (Bug #1196 - Morten Welinder <terra@diku.dk>)
20334
20335 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
20336
20337         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
20338
20339         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
20340         for fontsets.
20341
20342         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
20343         with bin/button confusion.
20344
20345 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
20346
20347         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
20348         and show how preselection of radio items is done.
20349
20350 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
20351
20352         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
20353         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
20354         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
20355         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
20356         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
20357         * gtk/gtktable.c (gtk_table_attach): 
20358         * gtk/gtklist.c (gtk_list_insert_items): 
20359         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
20360         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
20361         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
20362         * gtk/gtkbin.c (gtk_bin_add): 
20363         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
20364         * gtk/gtkfixed.c (gtk_fixed_put): 
20365         * gtk/gtklayout.c (gtk_layout_put):
20366         general fixups to container_add logic. always realize child if
20367         child->parent is realized, only map the child and queue a resize
20368         if child and child->parent are both visible.
20369
20370 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
20371
20372         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
20373         instead of gtk_container_foreach to walk and unrealize children, so
20374         composite children get also unrealized.
20375         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
20376         (gtk_widget_map): assert that the widget is visible (basic constrain).
20377         (gtk_widget_real_map): assert that the widget is realized (basic
20378         constrain).
20379
20380 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
20381
20382         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
20383
20384 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
20385
20386         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
20387         file for iso-8859-2 locales.
20388
20389         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
20390
20391 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
20392
20393         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
20394          (Pointed out by andy@rz.uni-karlsruhe.de and others).
20395          Remove some suspicious and useless lines. 
20396
20397 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
20398
20399         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
20400         width,height = 0, 0 to mean - here to edge of window,
20401         instead of -1, -1, since the former is all we support.
20402
20403 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
20404
20405         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
20406         when removing from quit_functions list.
20407
20408 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
20409
20410         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
20411
20412 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
20413
20414         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
20415          When redrawing characters on non-visible entry, use appropriate
20416          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
20417
20418 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
20419
20420         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
20421         from drag coordinates.
20422         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
20423         use drag_dest_cell.
20424
20425         * gtk/gtktree (drag_dest_cell)
20426         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
20427         (Bug #1129)
20428
20429 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
20430
20431         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
20432         translate_* fields.
20433         (gtk_item_factory_finalize): invoke translate_notify independant from
20434         translate_data.
20435         (gtk_item_factory_set_translate_func): likewise.
20436         (gtk_item_factory_destroy): only remove ifactory pointer from those
20437         widgets that belong to us (stupid me).
20438
20439 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
20440
20441         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
20442         rc_style list when lookup succeeeds.
20443
20444 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
20445
20446         * gtk/gtkctree.c (resync_selection): 
20447         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
20448         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
20449         bug.
20450
20451 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
20452
20453         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
20454         Add some missing GDK_THREADS_ENTER()/LEAVE around
20455         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
20456
20457 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
20458
20459         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
20460         rather than emit_by_name.
20461
20462         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
20463         on the widget across multiple signal emissions.
20464         (gtk_editable_delete_text): same here.
20465         (gtk_editable_class_init): set widget_class->activate_signal after
20466         editable_signals[ACTIVATE] has been created.
20467
20468 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
20469
20470         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
20471         position here prematurely -- we might not have the
20472         right ->min_position and ->max_position yet.
20473
20474 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
20475
20476         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
20477         Add error traps so if the other end of the connection
20478         dies, we survive.
20479
20480         * gtk/gtkselection.c (gtk_selection_notify): Clean
20481         up properly when selection property retrieval fails.
20482         
20483         * gtk/gtkselection.c (gtk_selection_request): Correctly
20484         reject SelectionRequest notifies where the handler
20485         returns no data.
20486
20487 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
20488
20489         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
20490         when we've previously highlighted.
20491
20492         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
20493         emit two "drag_leave" signals for Motif drops.
20494
20495         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
20496         back the correct status messages when dropping from
20497         Motif onto a proxy window that is rejecting the
20498         drop.
20499
20500 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
20501
20502         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
20503         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
20504         to compare two argument values. added gtk_arg_to_valueloc() to set a
20505         variable from an arg through its location (pointer).
20506
20507         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
20508         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
20509         as gfloat*, uchars are collected as guchar*, ints are collected as
20510         gint*, etc...
20511
20512 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
20513
20514         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
20515         Include <string.h> instead of <strings.h>.
20516
20517         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
20518         (actually, a lot more duplicate includes occur if
20519          you trace through the sequence of #include's)
20520         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
20521         
20522 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
20523
20524         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
20525         gtk-a-higuti-990322-[0-3]
20526
20527         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
20528         that was causing -DX_LOCALE not to work.
20529
20530         * gtk/gtkrc.c (gtk_rc_init):
20531         X_LOCALE will never have LC_MESSAGES defined
20532
20533 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
20534
20535         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
20536         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
20537
20538         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
20539         left/right as well (gtk-michael-980726-0.patch.gz).
20540
20541         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
20542         for pointer values, use gchar instead of char. fixed uline allocation
20543         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
20544         chunks instead of G_ALLOC_ONLY.
20545         (gtk_label_size_request): always alter requisition as passed and leave
20546         widget->requisition alone.
20547         (gtk_label_set_text): allow NULL strings.
20548         (gtk_label_new): likewise.
20549
20550 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
20551
20552         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
20553
20554 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
20555
20556         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
20557         *and* mapped (i.e. drawable).
20558         (gtk_bin_expose): only send exposes to drawable children.
20559
20560         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
20561         (gtk_box_expose): only send exposes to drawable children.
20562
20563         * gtk/gtkhscale.c (gtk_hscale_draw): 
20564         * gtk/gtkvscale.c (gtk_vscale_draw):
20565         hm, this is an ugly one. we first compute the size of our trough area
20566         here (window relative) and then check intersection with the draw_area
20567         which is parent relative because we're a NO_WINDOW widget, so we need
20568         to offset the trough area by allocation.x and allocation.y before the
20569         check. (this must not be done for the background area though, since
20570         that's already computed parent relative).
20571
20572 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
20573
20574         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
20575         unrealize title buttons.
20576
20577 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
20578
20579         * gtk/gtkclist.c (gtk_clist_column_title_passive)
20580         (gtk_clist_column_title_active): 
20581         only connect/disconnect to GtkWidgetClass::event to block mouse events.
20582
20583         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
20584         zero initialize event, removed superfluous gdk_window_get_pointer call
20585
20586         * gtk/gtklist.c (gtk_list_vertical_timeout)
20587         (gtk_list_horizontal_timeout): removed superfluous
20588         gdk_window_get_pointer call
20589
20590 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
20591
20592         * plugging problems reported by "Bruce Mitchener, Jr."
20593         <bruce@puremagic.com> due to a purify session.
20594
20595         * gtk/gtkstyle.c:
20596         (gtk_style_ref): 
20597         (gtk_style_unref): assert ref_count to be > 0.
20598
20599         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
20600         the requisition.
20601         (gtk_clist_set_shift): likewise.
20602
20603         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
20604         adjustments.
20605
20606         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
20607         event before sending it and set send_event to TRUE (which needs to
20608         be done for *all* synthesized events).
20609         (gtk_list_vertical_timeout): likewise.
20610
20611         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
20612         leaks.
20613
20614         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
20615         to TRUE when synthesizing events.
20616
20617 [ *** end of merges from 1.2 *** ]      
20618         
20619 1999-11-21  Tor Lillqvist  <tml@iki.fi>
20620
20621         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
20622         (or copied from gdkconfig.h.win32 on Win32, sigh).
20623
20624         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
20625
20626         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
20627
20628         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
20629
20630         * gdk/gdkconfig.h.win32: New file.
20631
20632         * gdk/win32/makefile.cygwin: Build just a static archive here.
20633
20634         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
20635         for the DLL from the static archive built above.
20636
20637         * gdk/gdk.def: Moved here from the win32 subdirectory.
20638
20639         * gdk/win32/*: Adapt for the changed private struct organisation.
20640
20641         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
20642
20643 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
20644
20645         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
20646         for wheel mice (buttons 4 and 5).
20647
20648 1999-11-18  Tor Lillqvist  <tml@iki.fi>
20649
20650         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
20651         drawables use just the pixel field in the foreground and
20652         background GdkColor of the GdkGC.
20653
20654         gdk_gc_set_{fore,back}ground() are called in the GIMP with
20655         GdkColors containing uninitialized (red,green,blue) fields, and
20656         just the pixel field filled in, and furthermore in the
20657         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
20658         It thus turns out that we really don't need to have the full
20659         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
20660         it later to have just the pixel values.
20661
20662 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
20663
20664         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
20665
20666 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
20667
20668         * docs/gtkfaq.sgml: threads example from Erik Mouw.
20669         New question on GtkLabel background colors.
20670
20671         * docs/gtk_tut.sgml:
20672           - Correct the example code callback
20673             function definitions.
20674           - Update the gtkdial example code, from Frans van Schaik.
20675           - Update setselection.c to current API.
20676
20677         * examples/Makefile examples/*/*.c: Update to code
20678         listed in tutorial.
20679
20680 1999-11-10  Tor Lillqvist  <tml@iki.fi>
20681
20682         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
20683         subrange table (from the "Developing International Software for
20684         WIndows 95 and Windows NT" book) was missing the Hangul syllable
20685         block... Get the loaded font's charset correctly.
20686
20687         (Note that this, and the other *-win32.c files, still really are
20688         the old ones, the win32 subdirectory is not ready for compilation
20689         yet after the reorg.)
20690
20691 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
20692
20693         * gtk/gtkclist.c: Fix off-by-one bug in parameter
20694         check.
20695
20696 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
20697
20698         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
20699         on results of XQueryDeviceState().
20700
20701 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
20702
20703         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
20704         we need to accesss only ->children. We need an accessor
20705         for the children.
20706
20707         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
20708         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
20709         to get rid of gdkx.h include.
20710         
20711         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
20712         and random references to 'None'.
20713
20714         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
20715         Get rid of unused #include <gdk/gdkx.h>
20716
20717         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
20718         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
20719         gdkconfig.h.
20720
20721 1999-11-08  Tor Lillqvist  <tml@iki.fi>
20722
20723         * gdk/win32/gdkdraw.c
20724         * gdk/win32/gdkfont.c
20725         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
20726         following yesterday's changes. (Unrelated to Owen's reorg.)
20727
20728 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
20729
20730         * gdk/x11/gdkinput-gxi.c: Add missing include,
20731           fix GdkWindowPrivate => GdkDrawablePrivate.
20732
20733         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
20734
20735         * gdk/x11/Makefile.am (xinput_sources): Add missing
20736         backslash to fix building with --with-xinput=none
20737
20738 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
20739
20740         Move all X specific code into the x11/ directory.
20741         Aside from shuffling things around, did the following:
20742
20743        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
20744          gdk_arg_context_* - a simple argument parsing system
20745          in the style of popt.
20746
20747        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
20748          gdk/x11/gdkprivate-x11.h:
20749          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
20750          add ->klass and ->klass_data fields. The klass_data
20751          field points to an auxilliary structure that is
20752          windowing system dependent.
20753
20754        * gdk/gdkfont.c: Make most of the measurement functions
20755          simply wrappers around gdk_text_extents().
20756
20757        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
20758          _gdk_font_strlen() function that hides the weird
20759          behavior in gtk+-1.[02] where a string is interpreted
20760          differently for 8-bit and 16-bit fonts.
20761
20762        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
20763          to store common code for synthesizing double/triple
20764          press events.
20765         
20766        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
20767          Make all the function that modify an existing GC
20768          simply wrappers around gdk_gc_set_values().
20769          
20770        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
20771          for throwing out later.
20772
20773        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
20774          GdkImagePrivate and GdkColormapPrivate to have a
20775          windowing system dependent part (GdkFontPrivateX etc.)
20776          that "derives" from the system-independent part.
20777
20778        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
20779          Got rid of the included-source-files for XInput in
20780          favor of automake conditionals. (Which didn't exist
20781          when XInput support was originally added.)
20782
20783        * gdk/gdkrgb.c: Remove the visual id from the debugging
20784          statements since that is X11 specific; print out
20785          type/depth info instead.
20786          
20787
20788 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
20789
20790         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
20791         loading duplicates of hashed fonts.
20792
20793         * gdk/gdk.c (gdk_keysym_convert_case): rename
20794         gdk_XConvertCase to gdk_keysym_convert_case, allow
20795         results to be NULL in the GTK+ style.
20796
20797         * gdk/gdkcompat.h: Started compatibility header
20798         for renames.
20799
20800 1999-11-07  Tor Lillqvist  <tml@iki.fi>
20801
20802         * gdk/win32/gdkprivate.h: New font private structures, related to
20803         fontsets.
20804
20805         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
20806         gdk_font_list_free(). On X11, will just be wrappers to
20807         XListFonts() and XFreeFontNames(). On Win32, the code previously
20808         in gtkfontsel.c is now here.
20809
20810         New function gdk_font_xlfd_create(). On X11 will get the FONT
20811         property of the font (for GDK_FONT_FONTs), or call
20812         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
20813         builds a XLFD style name from the font information in the LOGFONT
20814         struct(s).
20815
20816         New function gdk_font_xlfd_free(), which correspondingly frees the
20817         string returned by gdk_font_xlfd_create().
20818
20819         Implement fontsets on Win32. Add a function that iterates over a
20820         wide char string and calls a callback function for each substring
20821         of wide chars from the same Unicode subrange (and thus probably
20822         available in the same real font).
20823
20824         Improve the XLFD emulation a bit.
20825
20826         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
20827
20828         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
20829         Beta3, WM_IME_CHAR messages don't seem to contain the composed
20830         multi-byte char as with the Active IMM on Win9x. Oh well, handle
20831         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
20832         ImmGetCompositionStringW() to get the composed Unicode chars.
20833
20834         * gdk/win32/gdkgc.c
20835         * gdk/win32/gdkdraw.c: Changes needed because of the font private
20836         struct changes.
20837
20838         * gdk/win32/gdk.def: Add the new functions.
20839
20840 1999-11-04  Tor Lillqvist  <tml@iki.fi>
20841
20842         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
20843         get the Platform SDK to get <dimm.h>.
20844
20845         * gdk/win32/gdkevents.c: More event handling fixes and
20846         simplification. Never generate motion events with is_hint true. We
20847         used to do that on bogus grounds earlier. Windows sends
20848         WM_MOUSEMOVE messages on button events even if the mouse hasn't
20849         moved, ignore these.
20850
20851         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
20852
20853         * gdk/win32/gdkglobals.c
20854         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
20855         the TrackMouseEvent function, and use it.
20856
20857         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
20858         char before calling WideCharToMultiByte in order to get a string
20859         for the window title.
20860
20861         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
20862
20863         * gdk/win32/gdk.def: Remove obsolete functions.
20864
20865         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
20866         /nodefaultlib and /defaultlib switches.
20867
20868         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
20869
20870 1999-10-31  Tor Lillqvist  <tml@iki.fi>
20871
20872         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
20873         EuroSign).
20874
20875         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
20876         same type as GdkWChar, especially on Win32.
20877
20878         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
20879
20880         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
20881         before passing to Windows GDI for drawing etc. Convert to the
20882         system default codepage before passing to Windows as window
20883         titles.
20884
20885         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
20886         support changing input locale on the fly.
20887
20888         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
20889         on-the-fly changes. Convert incoming characters from the current
20890         codepage to Unicode (and then to a UTF-8 multi-byte string) based
20891         on the current input language. Use keysym<->Unicode mapping tables
20892         and functions borrowed from xterm sources.
20893
20894         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
20895         editions of Win9x, use the ActiveX-based Active IMM (Input Method
20896         Manager) if available. IMEs and the Active IMM are available under
20897         the disguise of Chinese, Korean and Japanese support for IE and
20898         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
20899         support is present in all editions (as long as you install it).
20900
20901         Call DispatchMessage from gdk_events_queue() (and thus
20902         gdk_WindowProc()), instead of duplicating the code in
20903         gdk_WindowProc().
20904
20905         Reworked the grab handling and propagation code, factored out
20906         duplicated code snippets into separate functions. Other cleanups,
20907         too.
20908
20909         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
20910         the <dimm.h> header describing the Active IMM.
20911
20912         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
20913         just do the same as for "single" fonts.
20914
20915         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
20916         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
20917         the new keysyms from gdkkeysyms.h.
20918
20919         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
20920         fontset, so that gtkentry uses wide characters.
20921
20922         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
20923         GTk+'s system directory "gtk+", not "gtk".
20924
20925 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
20926
20927         * docs/gtkfaq.sgml: FAQ update
20928
20929 1999-10-21  Tor Lillqvist  <tml@iki.fi>
20930
20931         * gdk/win32/gdkprivate.h: Add more font private data.
20932
20933         * gdk/win32/gdkfont.c
20934         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
20935         fonts and strings. Now works much better. You still have to
20936         have a correct font selected, though. No fontset emulation yet.
20937
20938 1999-10-19  Tor Lillqvist  <tml@iki.fi>
20939
20940         * gtk/maketypes.awk: Use G_OS_WIN32.
20941
20942         * gtk/gtk.def: Add some missing entry points. Also some non-public
20943         ones, but PyGTK porter claims to need them.
20944
20945         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
20946         built-in type generation.
20947
20948 1999-10-14  Tor Lillqvist  <tml@iki.fi>
20949
20950         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
20951         GDK_FONT_FONT fonts (which is all we have for now, we don't
20952         emulate fontsets). The X11 version uses plain XDrawString in that
20953         case, too. The string passed to gdk_draw_text_wc seems to be in
20954         fact (at least, when used by gtkentry and gtktext) either in a
20955         single-byte charset, or a DBCS. Not Unicode.
20956
20957         This fixes the problem in gtkfontsel, where even if you had
20958         selected a font with a non-Latin1 charset (windows-greek, for
20959         instance), the preview still used Latin-1 glyphs.
20960
20961         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
20962         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
20963         (gdk_font_load): Recognize the demibold etc weights, even if we
20964         don't have the corresponding constants in the headers.
20965         (gdk_font_hash_insert): Use same hash mechanism as in the X11
20966         version. Should save font resources a bit, when we don't have
20967         multiple HFONTs for the same font.
20968
20969         * gdk/win32/gdkprivate.h: Add the names field as in the X11
20970         version.
20971
20972 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
20973
20974         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
20975         X values
20976
20977 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
20978
20979         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
20980         layout support (as mentioned on
20981         http://www.jcinteractive.com/gnome-ui/software/widgets/)
20982
20983 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
20984
20985         * gtk/fnmatch.c
20986         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
20987
20988 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
20989
20990         * configure.in (ALL_LINGUAS): Added Galician (gl)
20991
20992 1999-10-05  Tor Lillqvist  <tml@iki.fi>
20993
20994         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
20995
20996         * gdk/win32/gdkcompat.c: New file, actually provide an
20997         implementation for the deprecated functions. (Just temporarily.)
20998
20999         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
21000
21001         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
21002
21003         * gdk/win32/gdk.def gtk/gtk.def: Updates.
21004
21005 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
21006
21007         * configure.in: Added "uk" to ALL_LINGUAS.
21008         
21009 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
21010
21011         * configure.in: correct checking for BeOS check
21012
21013         * gdk/gdktypes.h
21014         * gtk/fnmatch.c
21015         * gtk/gtkfilesel.c
21016         * gtk/gtkitemfactory.c
21017         * gtk/gtkmain.[ch]
21018         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
21019
21020 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21021
21022         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
21023         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
21024         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
21025         by Bulgarian). 
21026
21027 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
21028
21029         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
21030         Fix a reference to window_private->destroyed.   
21031
21032         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
21033         (ugly) setting of an internal GdkWindow member to use
21034         a _slightly_ cleaner macro.
21035
21036         * gdk/gdkprivate.h: Split GdkWindowPrivate into
21037         GdkDrawablePrivate and GdkWindowPrivate.
21038         Add extra macros for accessing GDK_DRAWABLE_ components.
21039
21040         * *.[ch]: Massive adjustments for the above, use the
21041         new macros in a lot of places.
21042
21043 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
21044
21045         * gdk/gdktypes.h: Make GdkDrawable the base type,
21046         not GdkWindow.
21047
21048 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
21049
21050         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
21051
21052 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
21053
21054         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
21055
21056 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
21057
21058         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
21059         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
21060
21061         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
21062
21063         * docs/gtk-config.1: Now autogenerated.
21064         * docs/Changes-1.4.txt: started
21065         
21066 1999-10-03  Tor Lillqvist  <tml@iki.fi>
21067
21068         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
21069         to #ifdef also here.
21070
21071         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
21072         Owen did to the X11 backend.
21073
21074         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
21075         ScrollWindowEx when blitting inside a window, it can't be correct
21076         in the general case.
21077
21078         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
21079         WM_GETMINMAXINFO is easier.
21080
21081         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
21082         depth equal to the bitspixel value, not the visual's depth.
21083
21084         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
21085         to 24 even if the bitspixel value is 32.
21086
21087         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
21088         need to check for depth==32 when bpp==32, depth will always be 24.
21089
21090 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
21091
21092         * docs/Changes-1.4.txt: Started
21093         
21094         * gtk/Makefile.am (gdk_headers): Include all the new headers.
21095
21096         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
21097         
21098         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
21099         into C file.
21100         
21101         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
21102         header to gdkinputprivate.h.
21103
21104         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
21105         unused since before 1.2.
21106
21107 1999-09-30  Tor Lillqvist  <tml@iki.fi>
21108
21109         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
21110         expand possible hex escapes in the font family (put there by
21111         logfont_to_xlfd if the font name isn't a legal XLFD font family,
21112         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
21113         On Win32, add hex escapes here, too.
21114
21115 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
21116
21117         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
21118         to #ifdef GDK_WINDOWING_X11.
21119
21120 [ Merges from gtk-1-2 ]
21121
21122 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
21123
21124         * configure.in: fixed "GNU Make" check to pass with new make version
21125         3.77.95.
21126
21127 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
21128
21129         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
21130         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
21131         AM_PATH_GTK() macros don't get confused by the -pre1.
21132
21133 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21134
21135         * configure.in (REBUILD): Change check for perl5
21136           to check explicitely for v >= 5.002. (5.001
21137           does not work with our scripts.)
21138
21139 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
21140
21141         * configure.in: evaluate $PERL for the perl version check. added
21142         --disable-rebuilds to give the user an option to completely disable
21143         any source autogeneration rules.
21144
21145 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
21146
21147         * configure.in: evaluate $ac_make when checking for GNU Make.
21148
21149 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21150
21151         * docs/Makefile.am: added generation.txt.
21152
21153         * Makefile.am: require automake 1.4, build README from README.in and
21154         INSTALL from INSTALL.in in dist-hook.
21155         
21156         * README.in:
21157         * INSTALL.in: new files to autogenerate README and INSTALL from.
21158
21159         * configure.in: figure whether we have GNU Make
21160
21161         * docs/generation.txt: minor additions/corrections.
21162
21163 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
21164
21165         * docs/gtkfaq.sgml: FAQ Update
21166
21167 July 30, 1999 Elliot Lee <sopwith@redhat.com>
21168         
21169         * configure.in: Fix autoconf warnings about cross compilation by
21170         trying to provide sane defaults for AC_TRY_RUN.
21171
21172 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
21173
21174         * ltconfig
21175         * ltmain.sh: upgrade to libtool 1.3.3
21176
21177 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
21178
21179         * INSTALL: Indicate that the --with-glib= configure
21180         time flag is unsupported.
21181
21182 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
21183
21184         * docs/generation.txt: Added a file that gives
21185         documenation about the autogeneration process for
21186         various autogenerated files.
21187         
21188 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21189
21190         * configure.in (LIBS): Look for libgmodule in the
21191         right location.
21192
21193 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
21194
21195         * docs/gtk_tut.sgml: Removed references to
21196         code examples in my directory on gtk.org as
21197         they should all be in the tutorial now.
21198
21199         * docs/gtk_tut.sgml: Added sources for dial-test
21200         and scribble-xinput programs that were previously
21201         missing.
21202
21203 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
21204
21205         * TODO: Added entry about menu keyboard navigation, removed
21206         some finished items.
21207
21208 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
21209
21210         * acinclude.m4: Standardize on func_dgettext
21211         not func_gettext, so that the checks for dgettext
21212         actually are paid attention to.
21213
21214 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
21215
21216         * configure.in (LIBS): Add $INTLLIBS into $LIBS
21217         directly, rather than repeating the checks for
21218         gettext.
21219
21220         * INSTALL: Added information about gettext and
21221         NLS support.
21222
21223         * acinclude.m4 (LIBM): Check for dgettext, not
21224         just gettext. This should hopefully fix things wrt
21225         systems with old versions of GNU gettext installed.
21226
21227 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
21228
21229         * configure.in (LIBS): Look for libgmodule in the
21230         right location.
21231
21232 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21233
21234         * autogen.sh: add --enable-maintainer-mode
21235
21236         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
21237
21238 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
21239
21240         * docs/gtk-config.1.in:
21241           docs/Makefile.am:
21242           configure.in: gtk-config is now generated.
21243
21244         * docs/gtk-config.1: Removed, now generated.
21245
21246 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
21247
21248         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
21249         handle CreateNotify itself, still put out a debuging message for
21250         --gdk-debug=events. made the ReparentNotify debugging message more
21251         verbose.
21252         wrap xcoords translation for ConfigureEvents into an error trap,
21253         a destroy event may already be pending, and in that case, the
21254         actuall coordinate values are not at all critical.
21255
21256 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
21257
21258         * gdk/gdkcc.c: Stop leaking the color_hash all over
21259         the place. Simplify and improve the logic.
21260
21261 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
21262
21263         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
21264         for prototypes and function implementations consistent (reported
21265         by Tomas Ogren).
21266
21267 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
21268
21269         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
21270         send_event set in debugging output.
21271         (gdk_compress_exposures): default initialize the event so we don't
21272         operate on bogus values (namely send_event).
21273
21274 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
21275
21276         * gdk/gdkwindow.c: When we receive an unexpected
21277         destroy notify on one of our windows, don't just
21278         warn about it, also mark our windows as destroyed.
21279
21280 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
21281
21282         * gdk/gdkfont.c (gdk_font_hash_insert): Add
21283           name => font and name => fontset hashes. The 
21284           name => fontset hash is a _big_ win since we
21285           weren't previously caching fontsets at all and loading
21286           fontsets is expensive. The name => font hash
21287           is less of a win, but it does save us from doing
21288           repeated XQueryFont calls on the same font.
21289
21290         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
21291           list so we can remove font/fontset from hash.
21292
21293 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
21294
21295         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
21296           and slightly confusing test. [ XInternAtom (,,TRUE)
21297           will never return None ].
21298
21299 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
21300
21301         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
21302           gdk/gdkwindow.c (gdk_window_set_hints):
21303
21304         Don't omit setting the properties if flags == 0 -
21305         there may be an existing set of properties there
21306         already. (Very old bug. Would it be better to
21307         delete the property instead?)
21308
21309         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
21310           spelling error in comment.
21311
21312 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
21313
21314         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
21315           to avoid stomping over gdk_error_warnings.
21316
21317         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
21318           as (bits_per_pixel + 7) / 8. This gives the same
21319           result as before for multiples of 8, but actually
21320           a "reasonable" value for 1bit or 4bit displays.
21321
21322 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
21323
21324         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
21325         GNU Make.
21326
21327 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
21328
21329         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
21330         discarding configure events.
21331
21332 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
21333
21334         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
21335         refcount is greater than zero.
21336
21337         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
21338
21339         * gdk/gdkfont.c (gdk_font_unref): Likewise.
21340
21341         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
21342
21343         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
21344
21345 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
21346
21347         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
21348         that format 32 => sizeof(item) == 4. It really is
21349         sizeof(long).
21350
21351 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
21352
21353         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
21354         core dump at all on X IO errors, only core dump
21355         if --enable-debug for X errors.
21356
21357 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
21358
21359         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
21360         unknown window:" message. disabled ConfigureNotify discarding code,
21361         because it led to events being processed out of order.
21362
21363 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
21364
21365         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
21366
21367         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
21368         we export this function, supress error warnings and don't reset the
21369         error code in the first half of this function.
21370
21371         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
21372         code (instead of just -1) so gdk_error_trap_pop() reveals something
21373         actually informative about the error that happened.
21374
21375         * gdk/*.c:
21376         don't rely on gdk_error_code being -1 if an error occoured, but just
21377         gdk_error_code != 0.
21378
21379 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
21380
21381         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
21382         pointer *before* invoking the filter function, so we at least don't
21383         crash if a filter is removed that is currently executed. window filters
21384         *really* need to be made truely reentrant at some point.
21385
21386 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
21387
21388         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
21389         PropertyNotify debug messages.
21390
21391 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
21392         
21393         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
21394         
21395         * gdk/gdkim.c: Fix cut-and-paste errors for 
21396         x/y and PreeditAttributes/StatusAttributes.
21397
21398 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21399
21400         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
21401         G_MAXINT to 2^16 to alleviate overflow problems in
21402         various window managers.
21403
21404 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
21405
21406         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21407         for fontsets.
21408
21409 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
21410
21411         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
21412         Initialize size_hints.x and size_hints.y because kwm
21413         brokenly pays attention to them.
21414         (Bug #1181 -  Lars Heete <hel@admin.de>)
21415
21416 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
21417
21418         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
21419         return value of gdk_list_visuals(). 
21420         (Bug #1193 - Morten Welinder <terra@diku.dk>)
21421
21422 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
21423
21424         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
21425         XSetIMValues to (void *) when comparing to NULL, to workaround
21426         the problem of some compilers barfing since older X headers don't
21427         have the prototype for it.
21428
21429 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
21430
21431         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
21432         for pseudocolor where colormap->colors was double
21433         allocated.
21434
21435         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
21436         color value in the hash table with the pixel filled
21437         in so when we do later hash table lookups, the color
21438         value is correct.
21439         
21440 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
21441
21442         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
21443         making the call
21444
21445 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
21446
21447         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
21448         pointed out by Morten Welinder <terra@diku.dk>.
21449
21450 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21451
21452         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21453           default filter from the list
21454
21455 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21456
21457         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
21458           default filter from the list
21459
21460 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
21461
21462         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
21463
21464         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
21465         g_strdup_printf instead of calcing the length separately
21466
21467 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
21468
21469         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
21470         that we don't do in many other places. (Fixing duplicate 
21471         #include of config.h)
21472
21473         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
21474         Otherwise, #ifndef XINPUT_NONE check in the latter
21475         doesn't work. (Bug #546)
21476
21477 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
21478
21479         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
21480         "None" case insensitive.
21481
21482 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
21483
21484         * gdk/gdkselection.c: 
21485         Add error traps so if the other end of the connection
21486         dies, we survive.
21487
21488 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21489
21490         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
21491         dest_xid field into two fields - one for the window
21492         to send in messages, one to indicate the last looked
21493         up window for caching purposes. This is needed, so
21494         that Leave messages get the correct window.
21495
21496 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
21497
21498         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
21499         Fix warning created by people mucking around
21500         with the gsource API.
21501
21502         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
21503         Change mapping between GIOCondition and GdkInputCondition
21504         to match the way the Linux kernel does it. This should
21505         fix problems where closed pipes were no longer signalling
21506         GDK_INPUT_READ on systems with a native poll().
21507
21508 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
21509
21510         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
21511         explicitly for the string "None" - it is in the XPM
21512         spec and some servers treat unknown colors in odd ways
21513         (like asking the user!)
21514
21515 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
21516
21517         * gdk/gdkevents.c: made "->" into a "." of previous change so
21518         it compiles
21519
21520 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
21521
21522         * gdk/gdkevents.c (gdk_compress_exposures): Set the
21523         window field of the event structure before calling
21524         user filters.
21525
21526 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
21527
21528         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
21529         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
21530
21531 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
21532
21533         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
21534         intermediate text property - prevents major memory
21535         leak when gdk_use_mb.
21536         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
21537
21538 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
21539
21540         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
21541         gtk-a-higuti-990322-[0-3]
21542
21543         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
21544         sizeof(wchar_t) != sizeof (GdkWChar)
21545
21546         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
21547         that was causing -DX_LOCALE not to work.
21548
21549         * gtk/gtkrc.c (gtk_rc_init):
21550         X_LOCALE will never have LC_MESSAGES defined
21551
21552         * gdk/gdk.c (gdk_init_check):
21553         Remove --xim-preedit and --xim-status from argv properly.
21554
21555         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
21556         that the client window is present on the X server
21557         before we pass it to the input method.
21558
21559 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
21560
21561         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
21562         if --display is specified on the command line, than
21563         the drag window will not be created on that display.
21564         
21565 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
21566
21567         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
21568         lookups with only_if_exists == TRUE were inserting
21569         bogus values into the atom cache.
21570
21571 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
21572
21573         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
21574         then reset it to NULL.
21575
21576         * gdk/gdkcolor.c:
21577         (gdk_colors_free): 
21578         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
21579         key for g_hash_table_remove() in both functions, this prevents us
21580         from accessing possibly uninitialized portions of a GdkColor structure
21581         where we are only interested in its pixel value.
21582
21583 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
21584
21585         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
21586         font hash table, if we have a GdkFontPrivate entry for this font
21587         already, simply increment its reference count, provided by Olaf Dietsche
21588         <olaf.dietsche+list.gtk@netcologne.de>.
21589
21590 1999-09-21  Tor Lillqvist  <tml@iki.fi>
21591
21592         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
21593         just to be sure.
21594
21595         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
21596         unused variables, leftovers from the X11 version.
21597
21598         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
21599
21600         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
21601         downcase fields on X11.
21602
21603 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21604         
21605         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
21606         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
21607
21608 1999-09-17  Tor Lillqvist  <tml@iki.fi>
21609
21610         * gdk/win32/gdk.def: Add gdk_threads_mutex.
21611
21612         * gtk/makefile.msc: Correct path to libintl.
21613
21614         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
21615         use of gint vs. int, and gint vs. gboolean in headers and
21616         definitions. Use GtkType for the *_get_type functions. Note that
21617         these changes preserve binary compatibility.
21618
21619         * gdk/gdk.c
21620         * gdk/win32/gdk.c
21621         * gdk/gdk.h: Fix inconsistencies: gint vs int.
21622
21623         * gtk/gtkmain.c
21624         * gtk/gtkclist.c
21625         * gtk/gtkmenufactory.c
21626         * gtk/gtknotebook.c
21627         * gtk/gtkwidget.c: Fix inconsistencies, also gint
21628         vs. gboolean.
21629
21630         * gtk/gtkcolorsel.[ch]
21631         * gtk/gtkcombo.[ch]
21632         * gtk/gtkdrawingarea.[ch]
21633         * gtk/gtkgamma.[ch]
21634         * gtk/gtkhandlebox.[ch]
21635         * gtk/gtkhpaned.[ch]
21636         * gtk/gtkhruler.[ch]
21637         * gtk/gtkplug.[ch]
21638         * gtk/gtkpreview.[ch]
21639         * gtk/gtkruler.[ch]
21640         * gtk/gtksocket.[ch]
21641         * gtk/gtkstatusbar.[ch]
21642         * gtk/gtktoolbar.[ch]
21643         * gtk/gtkvbbox.[ch]
21644         * gtk/gtkvpaned.[ch]
21645         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
21646         functions.
21647
21648         * gtk/gtkgamma.h: Fix bug, missing () in call of
21649         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
21650
21651 1999-09-14  Tor Lillqvist  <tml@iki.fi>
21652
21653         * gdk/gdkcolor.c (gdk_colormap_new)
21654         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
21655         colormap->colors was allocated twice.
21656
21657         * gdk/win32/gdk.c: Remove some unused stuff.
21658
21659         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
21660         colormap.
21661
21662         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
21663         * gtk/gtklabel.h (gtk_label_get_type)
21664         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
21665         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
21666         in a couple of places, not guint.
21667
21668 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
21669
21670         * configure.in,po/et.po: added Estonian language file
21671
21672 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
21673
21674         * configure.in,po/da.po: added Danish file
21675
21676 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
21677
21678         * docs/gtkfaq.sgml: Minor FAQ Update
21679
21680 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
21681
21682         * docs/gtkfaq.sgml: FAQ update
21683
21684 1999-08-27  Tor Lillqvist  <tml@iki.fi>
21685
21686         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
21687         way to get window contents continually refreshed while resizing. I
21688         didn't like the effects myself, so it's not on by default.
21689
21690         * gdk/win32/gdkprivate.h: New flag variable
21691         gdk_event_func_from_window_proc, FALSE by default.
21692
21693         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
21694         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
21695         are passed --gdk-event-func-from-window-proc.
21696
21697         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
21698         and we have am event_func, call it instead of enqueing the event.
21699
21700 1999-08-23  Tor Lillqvist  <tml@iki.fi>
21701
21702         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
21703         Kelley: Set expose_count in GdkEventExposes correctly.
21704
21705         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
21706         MULTIPLE_WINDOW_CLASSES).
21707
21708         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
21709         for bug in NT, apparently NT *does* draw the end pixel, too, in
21710         LineTo with a one-pixel pen, so we don't have to do it ourselves.
21711
21712 1999-08-21  Tor Lillqvist  <tml@iki.fi>
21713
21714         Improvements by Hans Breuer: 
21715
21716         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
21717
21718         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
21719         CS_?REDRAW flags as they cause lots of (late) redraws when "show
21720         window contents while dragging" is turned on. Allocate at least
21721         one unique class for every GdkWindowType. If support for single
21722         window-specific icons is ever needed (eg. Dialog specific), every
21723         such window should get its own class.
21724
21725 1999-08-19  Tor Lillqvist  <tml@iki.fi>
21726
21727         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
21728         error that caused crashes.
21729
21730 1999-08-17  Tor Lillqvist  <tml@iki.fi>
21731
21732         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
21733         window, use ScrollWindowEx, and call UpdateWindow. This prevents
21734         bugs when for instance part of the window was outside the
21735         display. Thanks to Philippe Colantoni for finding and fixing this.
21736
21737 1999-08-16  Tor Lillqvist  <tml@iki.fi>
21738
21739         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
21740         endpoint calculations which were totally wrong. (A little RTFMing
21741         helps a lot ;-)
21742
21743         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
21744         from a separate directory, not from gettext, because of licensing
21745         issues (we want to use the LGPL version).
21746
21747         * README.win32: Mention the intl from glibc vs from gettext issue.
21748
21749 1999-08-13  Tor Lillqvist  <tml@iki.fi>
21750
21751         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
21752         in the key event handling: Now AltGr chars work again. Also,
21753         now Alt-digits are passed up as well as Control-digits.
21754         Pass keypad plus and minus as normal plus and minus.
21755
21756 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
21757
21758         * docs/gtkfaq.sgml: FAQ Update
21759
21760 1999-07-25  Tor Lillqvist  <tml@iki.fi>
21761
21762         * README.win32
21763         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
21764         the Wintab SDK.
21765
21766         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
21767         OK, but getting closer. Guard against bogus tilt data from Wacom
21768         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
21769         enable easier building without Wintab.
21770
21771         * gdk/win32/gdkinput.h
21772         * gdk/win32/gdkevents.c 
21773         * gdk/win32/gdkwindow.c: Minor changes related related to above.
21774         
21775         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
21776         code. As we have just one visual on Win32, no sense to have it in a
21777         table, and no need for the hash table.
21778
21779         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
21780         better on white background.
21781
21782 1999-07-21  Tor Lillqvist  <tml@iki.fi>
21783
21784         * README.win32: Update gcc build instructions. Mention gettext is
21785         GPL.
21786
21787         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
21788         supported cursor size with GetSystemMetrics.
21789
21790         * gdk/win32/gdkfont.c
21791         * gtk/gtkfontsel.c: Guard against some font weight and charset
21792         symbols being undefined (in mingw32 headers).
21793
21794         * gdk/win32/makefile.cygwin
21795         * gtk/makefile.cygwin
21796         * gtk/gtkthemes.c: No longer need to have differently named
21797         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
21798
21799 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
21800
21801         * docs/gtkfaq.sgml: Long awaited FAQ update.
21802
21803 1999-07-15  Tor Lillqvist  <tml@iki.fi>
21804
21805         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
21806         it. Obscure bit manipulation needed.
21807
21808         * gdk/win32/gdkevents.c: Logging.
21809         
21810         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
21811         style (file name include compiler name) for theme engines.
21812
21813 1999-07-13  Tor Lillqvist  <tml@iki.fi>
21814
21815         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
21816
21817         * gdk/win32/gdkevents.c: Fix long-standing bug in key
21818         events. The key.string wasn't zero-terminated, still we strdup'ed
21819         it in gdk_event_copy(). Synthesize crossing events for button
21820         events before possible propagation.
21821
21822         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
21823
21824         * gdk/win32/makefile.cygwin
21825         * gtk/makefile.cygwin: Use new DLL naming style for the
21826         GCC-compiled ones.
21827
21828         * gdk/win32/makefile.msc
21829         * gtk/makefile.msc: Cosmetics mostly.
21830
21831         * gtk/gtk.def: Add missing entry points.
21832
21833         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
21834
21835 1999-07-09  Tor Lillqvist  <tml@iki.fi>
21836
21837         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
21838         or height is zero. Don't print a warning if Pie or Arc fails, they
21839         always fail (?) for very narrow ellipses.
21840
21841         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
21842         the part or the destination window corresponding to source area
21843         outside of the source drawable's boundary.
21844
21845         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
21846         anything if less than two points.
21847
21848         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
21849         return NULL. Gtk cut-and-paste inside a single program works
21850         better this way. (It always gets the clipboard contents from
21851         Windows, not from its own copy, which is cleared anyway. I can't
21852         say I fully understand what happens... Emulating the X selection
21853         and property stuff is a bit of a mess.)
21854
21855         * gdk/win32/gdkevents.c
21856         * gdk/win32/gdkproperty.c: A bit more verbose logging.
21857
21858         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
21859         that never got deleted). Revamp gdk_region_shrink.
21860
21861         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
21862         after use.
21863
21864         * gtk/gtk.def: Add some missing entry points.
21865
21866         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
21867         component.
21868
21869 1999-07-04  Tor Lillqvist  <tml@iki.fi>
21870
21871         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
21872         Control-digits specially.
21873
21874 1999-07-03  Tor Lillqvist  <tml@iki.fi>
21875
21876         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
21877
21878 1999-06-28  Tor Lillqvist  <tml@iki.fi>
21879
21880         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
21881         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
21882         finding this.)
21883
21884 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
21885
21886         * gtk+.spec.in: Corrected some typos in files section.
21887         
21888 1999-06-15  Tor Lillqvist  <tml@iki.fi>
21889
21890         * README.win32: Mention using GNU gettext.
21891         * config.h.win32: Enable NLS stuff.
21892         * gtk/makefile.msc: Use GNU gettext.
21893         * gdk/win32/gdkdnd.c: Minor header reorg.
21894         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
21895         cosmetics.
21896         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
21897         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
21898
21899 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
21900
21901         * acinclude.m4
21902         * config.guess
21903         * config.status
21904         * ltconfig
21905         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
21906
21907 1999-05-30  Tor Lillqvist  <tml@iki.fi>
21908
21909         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
21910         SafeAdjustWindowRectEx. Don't override all calls to
21911         AdjustWindowRectEx by it, but use it only in two places: When
21912         creating a new top-level window and when moving a top-level
21913         window.
21914
21915         Use screen coordinate rectangle, not client rectangle, in
21916         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
21917         when we try to place a window so that the decoration (mainly,
21918         title bar) isn't visible.
21919
21920         These changes fix the bug that showed up for instance as the
21921         GIMP's saved top-level windows moving right and down (by an amount
21922         equal to the window decoration) for each session. This bug showed
21923         up also in testgtk's "Saved Position".
21924
21925         gdk_window_resize also redone a bit.
21926
21927 1999-05-25  Tor Lillqvist  <tml@iki.fi>
21928
21929         * gtk/testgtkrc: Add (commented out) Windows-style theme
21930         include line.
21931
21932         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
21933
21934 1999-05-18  Tor Lillqvist  <tml@iki.fi>
21935
21936         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
21937         gdkx.h to a gdk subdirectory, so that applications can include
21938         these with <gdk/*.h> without trouble.
21939
21940         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
21941         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
21942         have their bitmap destroyed.
21943
21944         * gdk/win32/gdk.def: Add gdk_root_parent.
21945
21946 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
21947
21948         * configure.in
21949           gtk-config.in
21950           ltconfig
21951           ltmain.sh     
21952           gtk/Makefile.am: changes to compile nicely (with xlib) 
21953           on BeOS
21954
21955 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
21956
21957         * acinclude.m4
21958         * config.guess
21959         * config.sub
21960         * ltconfig
21961         * ltmain.sh: upgrade to libtool 1.3
21962
21963 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
21964
21965         * gtk/gtkclist.c:
21966         * gtk/gtkctree.c: merges from gtk-1-2
21967
21968 1999-04-25  Tor Lillqvist  <tml@iki.fi>
21969
21970         Support added for building using a GNU toolchain on Win32,
21971         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
21972
21973         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
21974         * config.h.win32: Changes for gcc.
21975         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
21976         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
21977         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
21978         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
21979         Protect shl stuff unavaiilable with mingw32 headers.
21980         * gdk/win32/gdkevents.c: Fix typo.
21981         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
21982         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
21983         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
21984         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
21985         the mingw32 headers.
21986         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
21987         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
21988         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
21989         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
21990         Test for NATIVE_WIN32, not _MSC_VER.
21991         * gtk/gtkmain.c: No use warning about developer version on Win32,
21992         there aren't any non-developer versions anyhow.
21993         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
21994         * gtk/makefile.msc: Use pthread from another directory. Minor other
21995         changes. 
21996
21997 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
21998
21999         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22000           default filter from the list
22001
22002 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
22003
22004         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
22005          when gtk_widget_grab_default() is called for a widget that
22006          is not within a GtkWindow.
22007
22008 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
22009
22010         * docs/gtk_tut.sgml, examples/clist.c: use a
22011           scrolled window in the clist example. Minor
22012           tutorial fixes.
22013
22014 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
22015
22016         * docs/gtk_tut.sgml: Style check from David King
22017           <dking@youvegotmail.net>
22018
22019 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
22020
22021         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
22022         compile with unknown value of GDK_WINDOWING
22023
22024 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
22025
22026         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
22027         after the rule is fired.
22028         (install-exec-local): Install gdkconfig.h only if the contents are
22029         different from the currently installed gdkconfig.h.
22030
22031 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
22032
22033         * gdk/Makefile.am (configexecincludedir): Rename from 
22034         configincludedir so that gdkconfig.h will be installed 
22035         as part of `make install-exec'. 
22036
22037 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
22038
22039         * acinclude.m4
22040         * config.guess
22041         * config.sub
22042         * ltconfig
22043         * ltmain.sh: upgrade to libtool 1.2f
22044
22045         * autogen.sh: libtool is not required to autogen gtk+
22046
22047         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
22048         needed)
22049
22050 1999-03-18  Tor Lillqvist  <tml@iki.fi>
22051
22052         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
22053         declaring gdk variables exported/imported from the DLL. New image
22054         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
22055         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
22056         GDK_DRAG_PROTO_OLE2.
22057
22058         * gdk/gdk.h: Merge in Win32 version: Two new functions,
22059         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
22060         declared only for the Win32 version, but could be in the X11
22061         version as well. (Needed for a Xlib-less gdk_imlib.)
22062         gdk_color_hash should have only one parameter. Declare
22063         gdk_threads_mutex with GDKVAR.
22064         
22065         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
22066         just one parameter.
22067
22068         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
22069         per pixel, not bits.
22070
22071         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
22072         Fetch bpp (which means bits-per-pixel here) from another place on
22073         Win32. Accept also depth==32 (which we might get on Win32) with
22074         bpp==32.
22075
22076         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
22077         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
22078         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
22079         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
22080         in the backend-dependent directory, not in the common gdk
22081         directory.
22082
22083         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
22084         headers.
22085
22086 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
22087
22088         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
22089         want to use the Gtk+ devel version (which is true, and yes - even i am
22090         currently working with the 1.2.x branch). so everyone reading this, you
22091         probably want to issue
22092         cvs checkout -r glib-1-2 glib
22093         and
22094         cvs checkout -r gtk-1-2 gtk+
22095         as your next two comands.
22096
22097 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
22098
22099         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
22100         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
22101
22102         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
22103         file. strongly deprecated the GTK_HAVE_* macros, we provide
22104         GTK_CHECK_VERSION() for people that need to check for certain
22105         Gtk+ versions.
22106
22107         * gtk/gtkcompat.h: removed this from CVS.
22108         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
22109         idea right from the start, it just didn't seem like that back then.
22110
22111 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
22112
22113         * merges from gtk-1-2:
22114
22115 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
22116
22117         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
22118         item factory class has been created.
22119         (gtk_item_factory_parse_rc): likewise.
22120
22121         * gtk/gtkmenu.c:
22122         keep proper references for old_active_menu_item.
22123         (gtk_menu_reparent): unset the usize of the new parent,
22124         so the menu can sanely be size requested and we don't get nasty screen
22125         artefacts upon next reparentation.
22126         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
22127         enter notify. only synthesize enter notifies if the pointer really is
22128         inside the event window.
22129         (gtk_menu_popdown): use gtk_menu_shell_deselect().
22130         (gtk_menu_popup): move the background setting stuff into
22131         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
22132
22133         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
22134         gtk_menu_shell_select_item() to select the new item.
22135         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
22136         do the right thing for deselection as well.
22137
22138 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
22139
22140         * gtk/gtkwidget.[hc]:
22141         (gtk_widget_accelerators_locked): return whether a widget's accelerators
22142         are locked.
22143
22144         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
22145         existing accelerators if the widget's accelerators are locked.
22146
22147 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
22148
22149         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
22150
22151         * gtk/gtkmenu.c: truely forward key press and key release events to
22152         the menu widget from the toplevel or tearoff window. we can't simply
22153         connect to that, we need to stop further processing of the events as
22154         well.
22155
22156 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
22157
22158         * gtk/gtkmenu.c:
22159         (gtk_menu_key_press): pass event->keyval, event->state to
22160         gtk_accelerator_valid, instead of event->keyval twice.
22161         refuse to install single letter accelerators for menus that use
22162         single letter shortcuts.
22163
22164         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
22165         gtk_menu_ensure_uline_accel_group().
22166
22167         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
22168         which will always return an uline accel group, made
22169         gtk_menu_get_uline_accel_group() return NULL if the group isn't
22170         yet created.
22171
22172 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
22173
22174         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
22175
22176         * gtk/gtkclist.c (gtk_clist_column_title_passive):
22177         Leave button sensitive, trap  button_press, button_release,
22178         motion_notify, enter_notify and leave_notify events instead.
22179         (gtk_clist_column_title_active): disconnect event handler.
22180         (gtk_clist_drag_data_get): fixed memory leak. Reported by
22181         Guillaume Laurent <glaurent@worldnet.fr>
22182
22183 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
22184
22185         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
22186         width/height mixups.
22187
22188         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
22189         if needed.
22190
22191 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
22192
22193         * gtk/testgtk.c (create_item_factory): unref the item factory after
22194         window's destruction.
22195
22196         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
22197         count on the menu shell around the menu item's activation, since the
22198         signal emission may cause menu shell destruction.
22199
22200         * gtk/gtkitemfactory.c:
22201         the previous code leaked one accel group per menu. we use
22202         gtk_menu_get_uline_accel_group() now to fix that, and with that
22203         also create the underline accelerator group of the menus only if
22204         required (i.e. an underline accelerator has been specified).
22205         (gtk_item_factory_construct):
22206         (gtk_item_factory_create_item): removed code that would create an
22207         extra accel group for the menu (and leak references).
22208         (gtk_item_factory_create_item): adapted the underline accelerator
22209         installation code to properly feature gtk_menu_get_uline_accel_group().
22210
22211         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
22212         menu->accel_group, this may return NULL if the accelerator group
22213         hasn't been set yet.
22214         added gtk_menu_get_uline_accel_group() to retrive the underline
22215         accelerator group of the menu, this will be created on demand
22216         and proper care is taken about its reference count.
22217
22218         * gtk/gtkitemfactory.h:
22219         * gtk/gtkitemfactory.c:
22220         dumped the approach of keeping a widgets by action list on the
22221         factory since the factory<->widget destroy negotiation didn't work
22222         and would be hard to get going at all. instead we keep a list of
22223         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
22224         persistant throughout a program's life time).
22225         also, i removed the static const gchar *key_* variables, and made
22226         them inline strings (they weren't actually used anyways).
22227         (gtk_item_factory_add_item): update ifactory->items.
22228         (gtk_item_factory_destroy): destroy ifactory->items (and remove
22229         the item factory pointer from the remaining ifactory widgets).
22230         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
22231         list to find the widget.
22232         (gtk_item_factory_get_item): new function that works around
22233         gtk_item_factory_get_widget() limitations, this function will only
22234         return menu items, even for <Branch> entries.
22235
22236 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22237
22238         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22239         font hash table, if we have a GdkFontPrivate entry for this font
22240         already, simply increment its reference count, provided by Olaf Dietsche
22241         <olaf.dietsche+list.gtk@netcologne.de>.
22242
22243         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22244         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22245
22246 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
22247
22248         * gtk/gtkcontainer.c:
22249         (gtk_container_add_with_args):
22250         (gtk_container_addv):
22251         (gtk_container_add): before adding a child to a conatiner, make sure
22252         it is (default) constructed, this is neccessary because under certain
22253         circumstances the child will get relized and mapped immediatedly, in
22254         which case it has to be constructed already.
22255
22256 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
22257
22258         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
22259         values > 1 as TRUE also.
22260
22261 1999-03-16  Tor Lillqvist  <tml@iki.fi>
22262
22263         * README.win32: New file.
22264                 
22265         * configure.in: Check for lstat.
22266
22267         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
22268         completeness.
22269
22270         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
22271
22272         * gtk/gtk.def: Removed CRs.
22273
22274         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
22275         ..\gdk\win32).
22276
22277         * gdk/win32/makefile.msc: Correct upwards relative paths.
22278         
22279 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
22280
22281         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
22282           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
22283           it was connecting a void function to expose_event and the int
22284           returning function to the draw signal
22285
22286 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
22287
22288         * configure.in:
22289         Use correct path to libgmodule.la when ref'ing uninstalled copy
22290         of glib.  (Already in stable branch, Bug #417)
22291
22292 1999-03-15  Tor Lillqvist  <tml@iki.fi>
22293
22294         Win32 merge and general portability stuff:
22295                 
22296         * acconfig.h,configure.in: Check for <sys/time.h>.
22297
22298         * gdk/win32: New directory (actually, been there for a while).
22299         
22300         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
22301         NATIVE_WIN32, and use these. Always case fold on Win32. No
22302         backslashed escapes on native Win32.
22303
22304         * gtk/{gtk.def,makefile.msc}: New files.
22305
22306         * gtk/Makefile.am: Add above new files.
22307         
22308         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
22309         instead of <strings.h>.
22310
22311         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
22312         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
22313         <unistd.h> appropriately.
22314
22315         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
22316         Use ABS() (from <glib.h>) instead of abs().
22317         
22318         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
22319         of gtk (and thus glib) headers, so that WIN32 will be
22320         defined. With MS C, include <direct.h> for mkdir prototype.
22321
22322         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
22323         some casts, needed by MS C.
22324
22325         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
22326         implemented).
22327
22328         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
22329         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
22330         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
22331
22332         * gtk/gtkmain.h: Mark variables for export/import on Win32.
22333                 
22334         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
22335         the event is not a hint, or its window is not the slider. Needed
22336         on Win32, at least.
22337
22338         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
22339         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
22340         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
22341         a subdirectory of the Windows directory as gtk system
22342         configuration directory.
22343
22344         * gtk/gtkselection.c: No chunks on Win32.
22345
22346         * gtk/gtksocket.c: Not implemented on Win32.
22347
22348         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
22349
22350         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
22351
22352         * gtk/maketypes.awk: Declare variables with a macro that expands to
22353         necessary export/import magic in the case of Win32.
22354                 
22355         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
22356
22357 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
22358
22359         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
22360         since those were meant only for gdki18n.h.  
22361         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
22362         for widechar tests.
22363         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
22364
22365 1999-03-13  Tor Lillqvist  <tml@iki.fi>
22366
22367         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
22368         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
22369
22370         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
22371         installed) to CFLAGS.
22372
22373         * gdk/Makefile.am: Add rules for gdkconfig.h.
22374
22375         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
22376         APIs.
22377
22378         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
22379         gdkx.h anyway when compiling for X11.
22380         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
22381         general): Merge in Win32 version.
22382         
22383         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
22384         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
22385         expansion (if we don't have HAVE_PWD_H), allow for drive
22386         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
22387         included code from Craig Setera's port to Win32 (the one that uses
22388         X11, and the cygwin dll), even if it probably will be abandoned.
22389
22390         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
22391         the user entered one herself.  This way one can complete *.h and
22392         don't get matches on any .help files, for instance.
22393         
22394 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22395
22396         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22397         font hash table, if we have a GdkFontPrivate entry for this font
22398         already, simply increment its reference count, provided by Olaf Dietsche
22399         <olaf.dietsche+list.gtk@netcologne.de>.
22400
22401         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
22402         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
22403
22404 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
22405
22406         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
22407         the number of calls to gdk_draw_point() (and thus to X) by
22408         clipping the points by hand.
22409
22410         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
22411         the clip parameter.
22412         (gtk_handle_box_paint): Only paint the handle if the expose area
22413         intersects it.
22414
22415 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22416
22417         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
22418
22419 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
22420
22421         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
22422         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
22423
22424 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
22425
22426         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
22427          textmode (O_TEXT) for OS/2 version.
22428
22429 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
22430
22431         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
22432         GtkSpinButton, "input" and "output", to make the output more flexible.
22433         The user has to provide a mapping between adjustment->value and the
22434         output string (and vice versa, if the spin button is editable). 
22435         See testgtk for examples.
22436
22437 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
22438
22439         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
22440         new one.
22441         
22442         * configure.in: set gtk+ version to 1.3.0.