]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-4
457a2e3741ba5a0ced67fe13fc84388163bfc49f
[~andy/gtk] / ChangeLog.pre-2-4
1 Thu Nov 22 15:01:03 2001  Owen Taylor  <otaylor@redhat.com>
2
3         * Version 1.3.11
4
5         * configure.in (ATK_REQUIRED_VERSION): Require
6         GLib-1.3.11, Pango-0.22, ATK-0.7.
7
8         * tests/prop-editor.c (property_widget): Restore
9         to working as well as it did before.
10
11         * gtk/gtklistitem.h: Mark deprecated since it is
12         an integral part of GtkList.
13
14         * demos/gtk-demo/demo-common.h: New header file,
15         for a common functions not important to the meat
16         of the demos.
17         
18         * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
19         function to search for a file used by the demo.
20
21         * demos/*.c: Use demo_find_file.
22
23 2001-11-23  Matthias Clasen  <matthiasc@poet.de>
24
25         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
26         gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo 
27         fixes already mentioned in ChangeLog entry on 2001-11-14.
28
29         * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
30
31 2001-11-23  Hans Breuer  <hans@breuer.org>
32
33         * gdk/win32/gdkfont-win32.c (gdk_font_from_description) : 
34         reflect Pango API change
35
36         * gtk/gtk.def : updated externals
37
38         * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use 
39         g_return_val_if_fail() to avoid 'function must return a value'
40
41         * gtk/gtkrc.c : added spaces to fix small coding style issues
42         * gtk/gtkwidget.c : ... and linebreaks. Also a static for
43         'static correctness'
44
45         * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
46         because they only can be build on win32 after applying my patch
47
48 Wed Nov 21 22:55:37 2001  Tim Janik  <timj@gtk.org>
49
50         * gtk/gtkbutton.c (gtk_button_map): raise event window afte
51         children, in order for the input pnly window to stay *above*
52         children.
53
54 Wed Nov 21 22:44:27 2001  Tim Janik  <timj@gtk.org>
55
56         * tests/testtreeview.c: make hackery worse ;) by checking fundamental
57         type walks againts G_TYPE_FUNDAMENTAL_MAX.
58         
59         * tests/prop-editor.c: disable type hackery.
60
61 Wed Nov 21 17:41:39 2001  Owen Taylor  <otaylor@redhat.com>
62
63         * gdk/gdkimage.c (gdk_image_get): Fix problem with
64         lost parameter.
65
66 Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
67
68         * gtk/gtkcellrenderer.h gtk/gtktreemodel.h 
69         gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
70         trailing commas in enum declarations.
71
72 Wed Nov 21 15:21:26 2001  Owen Taylor  <otaylor@redhat.com>
73
74         * configure.in (GTK_MICRO_VERSION): Version 1.3.11, 
75         interface, binary age 0.
76
77         * NEWS: Updates
78
79         * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
80         fixes in docs.
81
82         * gtk/gtkmain.h: Remove unused and misnamespaced
83         get_gtk_win32_directory() prototype.
84
85         * gdk/gdkimage.c (gdk_image_get): Fix parameter names
86         to match header.
87
88         * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
89         gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
90         to match docs.
91
92         * gdk/gdkevents.c (gdk_event_get_coords)
93           gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
94           gtk/gtkdnd.c (gtk_drag_set_icon_stock):
95         Fix parameter names in docs.
96         
97         * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
98         (#64961, Akira Tagoh)
99
100 Wed Nov 21 11:41:29 2001  Owen Taylor  <otaylor@redhat.com>
101
102         * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
103
104         * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
105
106         * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
107
108         * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
109         back to gtk_accel_groups_from_object(), change @acceleratable
110         parameter to gtk_accel_groups_activate() accordingly.
111
112         * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
113         left-over comment about quark return.
114
115         * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
116
117         * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
118         (Patch from Matt Wilson)
119
120         * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
121         object is finalized.
122
123 Tue Nov 20 21:25:08 2001  Tim Janik  <timj@gtk.org>
124
125         * applied patch from owen to get rid of accel map notifiers.
126         changed things to fix reentrancy and API as discussed on gtk-devel.
127
128         * gtk/gtkaccelgroup.[hc]:
129         (gtk_accel_group_finalize): unregister this accel group from all
130         accel map paths.
131         (accel_closure_invalidate): handle invalidation of closures by
132         disconnecting their accelerators.
133         (quick_accel_add): move closure connection and changed notification
134         into this function to reduce code duplication. don't emit change
135         notification on closurers without accelerators.
136         (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
137         for a GtkAccelGroupEntry.
138         (gtk_accel_group_connect): get rid of the accel_path_quark argument.
139         (gtk_accel_group_connect_by_path): new function to add accelerators
140         with an accel path.
141         (gtk_accel_group_disconnect_closure): new function, disconnect a
142         closure from of an accel group.
143         (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
144         accel_mods pair and remove them.
145         (_gtk_accel_group_reconnect): new function that basically does
146         gtk_accel_group_disconnect_closure() and
147         gtk_accel_group_connect_by_path() once an accel path changed.
148         (gtk_accel_groups_disconnect_closure): remove this, there's
149         gtk_accel_group_disconnect_closure().
150         
151         * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
152         nuke notifiers.
153         (_gtk_accel_path_is_valid): make this non-static for
154         gtkwidget.c and gtkaccelgroup.c assertions.
155         (gtk_accel_map_add_notifer): removed this function.
156         (gtk_accel_map_remove_notifer): same.
157         (_gtk_accel_map_add_group):
158         (_gtk_accel_map_remove_group): (un-)register accel groups, with
159         accel paths for correct propagation.
160         (gtk_accel_map_add_entry): return void.
161         (gtk_accel_map_lookup): return gboolean instead of GQuark.
162         
163         * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
164         set accel_path on widgets.
165         
166         * gtk/gtkwidget.[hc]:
167         (accel_path_changed): got rid of this, changes are handled by
168         accel maps internally now.
169         (_gtk_widget_set_accel_path): get things to work without notifiers.
170         (gtk_widget_list_accel_closures): list accel closures of a widget.
171         
172         * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
173
174 2001-11-20  Matthias Clasen  <matthiasc@poet.de>
175
176         * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
177
178 Tue Nov 20 23:01:01 2001  Kristian Rietveld  <kristian@planet.nl>
179
180         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
181         replace gboolean free_last in the function parameters with
182         gint depth. Changes to reflect new situation.
183
184         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
185         replace gboolean free_last, with gint depth, add gint current_depth.
186         Changes to reflect new situation.
187
188         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
189         to reflect new situation
190
191         * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
192
193 Tue Nov 20 12:37:10 2001  Owen Taylor  <otaylor@redhat.com>
194
195         * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
196         where notebook gap was double shifted by allocation.x/y
197
198         * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
199         to unmap children.
200
201 Tue Nov 20 14:49:59 2001  Tim Janik  <timj@gtk.org>
202
203         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
204         allocation to be relative to paned->allocation, now
205         that this is a NO_WINDOW widget.
206         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
207
208         * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
209         needs to be a boxed property.
210
211 Mon Nov 19 17:34:40 2001  Owen Taylor  <otaylor@redhat.com>
212
213         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
214         Use the widget's state when drawing the indicator, as
215         in GtkCheckButton. This gives us color changes for
216         un-prelighted checkbuttons. (#63308, Matt Wilson)
217
218 Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>
219
220         (Fixes related to #64428, Michael Meeks)
221
222         * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
223         widget, so it gets mapped again properly when we
224         add to a parent.
225
226         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
227         plug->socket_window. 
228
229         * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
230         socket_window to NULL, not FALSE.
231
232         * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
233         socket->same_app to TRUE. (#64612)
234
235 Mon Nov 19 15:50:41 2001  Owen Taylor  <otaylor@redhat.com>
236
237         * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add 
238         gtk_fixed_set/get_has_window() to remove criticism
239         about GTK_WIDGET_SET_FLAGS() hacks.
240
241 2001-11-19  Michael Natterer  <mitch@gimp.org>
242
243         * gtk/gtknotebook.c: show notebook->event_window with
244         gdk_window_show_unraised(), so it doesn't catch the events which
245         should go to the tab widgets first.
246
247 Mon Nov 19 15:30:51 2001  Jonathan Blandford  <jrb@redhat.com>
248
249         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
250         "resizable" property, to get rid of the
251         GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
252         (gtk_tree_view_column_set_resizable): New function to set resizable.
253         (gtk_tree_view_column_set_resizable): getter.
254
255         * tests/testtreecolumns.c (add_clicked): modify for above change.
256
257         * Makefile.am (install-data-hook): remove old .pc files before
258         installing the new one.  We used to symlink this, and it will
259         break old installs.
260
261 2001-11-19  Havoc Pennington  <hp@pobox.com>
262
263         * tests/testtext.c (fill_example_buffer): put in a test for
264         negative indentation values
265
266 Mon Nov 19 14:08:18 2001  Owen Taylor  <otaylor@redhat.com>
267
268         * gtk/gtklabel.c (gtk_label_init): Change default for
269         justify to GTK_JUSTIFY_LEFT. Assuming that multiline
270         labels are most often wrapped labels, this gives better
271         compatibility with GTK+-1.2, where justification was
272         ignored for wrapped labesl and is a more sensible
273         default in any case. (#64489)
274
275         * gtk/gtklabel.c (gtk_label_class_init): Fix default
276         for wrap property to FALSE.
277
278 2001-11-19  jacob berkman  <jacob@ximian.com>
279
280         * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
281
282 Mon Nov 19 13:56:45 2001  Owen Taylor  <otaylor@redhat.com>
283
284         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use 
285         RevertToParent, not RevertToNone. (#64613, 
286         Matthias Clasen)
287
288 Mon Nov 19 12:28:02 2001  Owen Taylor  <otaylor@redhat.com>
289
290         * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
291         and label_yalign need to be float properties to
292         correspond to GTK+-1.2, to gtk_frame_set_label_align,
293         and to the types of the xalign and yalign properties of GtkMisc.
294         (#63484, Vitaly Tishkov)
295
296 Mon Nov 19 12:24:30 2001  Owen Taylor  <otaylor@redhat.com>
297
298         * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
299         of plug_added vfunc. (#64408, Jeff Franks)
300
301 Mon Nov 19 12:07:20 2001  Owen Taylor  <otaylor@redhat.com>
302
303         * configure.in (deps): Undef HAVE_STDLIB_H before
304         checking for jpeg, because jconfig.h has this
305         in it too (%#$@!). Fix from Matthias Clasen, #64500.
306
307 Mon Nov 19 11:30:03 2001  Owen Taylor  <otaylor@redhat.com>
308
309         * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a 
310         memory leak when retrieving atom names. (Michael Meeks,
311         #64508)
312
313 2001-11-18  Alex Larsson  <alexl@redhat.com>
314
315         * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
316         Update to new Pango API.
317         
318 Sun Nov 18 19:47:29 2001  Owen Taylor  <otaylor@redhat.com>
319
320         * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
321         GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
322         GTK_OBJECT_DESTROYED() check macro.
323
324         * gtk/gtkbindings.c (gtk_bindings_activate): Remove
325         instances of GTK_OBJECT_DESTROYED() that weren't
326         needed any more.
327
328         * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
329         for a connection to ::destroy.
330
331 Sun Nov 18 18:18:11 2001  Owen Taylor  <otaylor@redhat.com>
332
333         * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
334         have been since the beginning, but as special hack,
335         allow clearing the NO_WINDOW flag to get a window widget.
336
337 Sun Nov 18 22:01:36  Kristian Rietveld  <kristian@planet.nl>
338
339         * gtk/gtktreestore.c: return TRUE when value changed, so
340         row_changed is being emitted
341
342 2001-11-18  Hans Breuer  <hans@breuer.org>
343
344         * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
345         no label without op, even if it's a no-op.
346
347         * gtk/gtk.def :
348         * gtk/makefile.msc.in : reflect marshaler split, some clean-up  
349
350         * config.h.win32.in : remove definition of HAVE_DIRENT_H
351         * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
352         required anymore, replace it.
353         * gtk/queryimmodules.c : DIR -> GDir replacement, also
354         getcwd() -> g_get_current_dir()
355
356         * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
357         Even 'noisy laugh' scolling appears to work, though I still can't
358         claim to have fully understood what it is supposed to do ...
359
360 Sat Nov 17 21:07:46 2001  Owen Taylor  <otaylor@redhat.com>
361
362         * gtk/gtkenums.h: Include glib-object.h instead of
363         gobject/gsignal.h
364
365         * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
366           x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
367         argument to the window_at_pointer() field of
368         GdkPointerHooks. (Patch from Erwann Chenede)
369
370         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
371         to 6 pointers.
372
373 2001-11-17  Matt Wilson  <msw@redhat.com>
374
375         * gtk/gtkenums.h: must include glib-object.h only
376
377 Sat Nov 17 19:26:20 2001  Owen Taylor  <otaylor@redhat.com>
378
379         * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
380         key bindings in order of visibility - mnemonics, then 
381         accelerators, then send key to the focus widget, then
382         bindings on the GtkWindow.
383
384         * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c: 
385         Removed the xoffset, yoffset fields of GtkLayout which were
386         identically zero for compat with 1.2, but were no longer 
387         compatible with all uses of these fields in 1.2.
388
389         * gtk/gtkwindow.c (gtk_window_set_default): Remove 
390         unused variable.
391
392 Sat Nov 17 19:08:13 2001  Owen Taylor  <otaylor@redhat.com>
393
394         * tests/testtreeview.c (gtk_tree_model_types_get_type): 
395         We no longer need to create the signals here ... they
396         come from the interface.
397
398         * gtk/maketypes.awk: Use GType, not GtkType in output.
399
400         * gtk/gtktypeutils.h: Mark virtually all of this
401         file deprecated.
402
403         * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
404         the only use of this function is the GtkArg using
405         GtkCallbackMarshal, since destroy notification is
406         silly here.
407
408 Sat Nov 17 18:26:45 2001  Owen Taylor  <otaylor@redhat.com>
409
410         * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
411         gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
412         only for compatibility with GTK+-1.2; and deprecate it; 
413         put all marshalers we actually use into gtkmarshalers.list 
414         and use the _gtk_marshal_ prefix for these marshalers.
415
416 2001-11-17  Murray Cumming  <murrayc@usa.net>
417
418         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
419         The first parameters of the signals are now registered as
420         GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
421         
422 2001-11-17  Tor Lillqvist  <tml@iki.fi>
423
424         * gtk-zip.sh.in: Build separate runtime and developer
425         packages.
426
427         * gtk/gtk.def: Reflect recent accelerator-related changes.
428
429 Fri Nov 16 19:44:35 2001  Owen Taylor  <otaylor@redhat.com>
430
431         * gtk/gtkwindow.c (gtk_window_set_default): Move 
432         notification of "has_default" to here, so it
433         is safe to call gtk_window_set_default() instead
434         of gtk_widget_grab_default().
435
436         * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
437         gtk_widget_grab_focus(), which then calls 
438         _gtk_widget_internal_set_focus(). This makes 
439         gtk_window_set_focus() a safe way of both setting
440         and unsetting the focus widget.
441
442         * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
443         gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
444         to find the toplevel.
445
446         * gtk/gtkwindow.h: Move gtk_window_set_focus/default
447         from the "internal functions" section.
448
449 2001-11-16  jacob berkman  <jacob@ximian.com>
450
451         * tests/testgtk.c (create_radio_buttons): add some no-indicator
452         radio buttons
453
454         * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
455         initially active, also initially be depressed
456         (gtk_radio_button_clicked): also update our depressed state
457
458 Thu Nov 15 12:54:36 2001  Owen Taylor  <otaylor@redhat.com>
459
460         * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
461         key press events not just to focus/window but also to
462         intermediate widgets.
463
464         * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
465         to switch pages. (Needs some work on handling focus
466         when switching pages.)
467
468 Fri Nov 16 14:06:31 2001  Owen Taylor  <otaylor@redhat.com>
469
470         * gtk/gtknotebook.c: Fix child allocations to be relative to 
471         widget position and some drawing bugs.
472
473         * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
474         with reading uninitialized variable.
475
476 Fri Nov 16 00:16:40 2001  Owen Taylor  <otaylor@redhat.com>
477
478         * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
479         gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
480         NO_WINDOW widgets.
481
482         * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
483         cleanup.
484
485         * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
486         we are drawing in a window when drawing the paned handle.
487
488 2001-11-16  Sven Neumann  <sven@gimp.org>
489
490         * demos/gtk-demo/appwindow.c
491         * demos/gtk-demo/menus.c: reduce compiler warnings
492
493 Thu Nov 15 19:47:09 2001  Owen Taylor  <otaylor@redhat.com>
494
495         * demos/gtk-demo/main.c (button_press_event_cb): Remove 
496         unused callback to make things compile with 
497         gtk_tree_view_path_at_pos_change().
498
499 Thu Nov 15 18:44:33 2001  Jonathan Blandford  <jrb@redhat.com>
500
501         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
502
503 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
504
505         * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
506  
507 Thu Nov 15 16:24:55 2001  Jonathan Blandford  <jrb@redhat.com>
508
509         * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
510         to get a GdkWindow to compare event->window to.
511
512         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
513         the signal for lateral motion too, #64361
514
515         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
516         arg as it is useless, #64137
517
518 Thu Nov 15 16:07:42 2001  Owen Taylor  <otaylor@redhat.com>
519
520         * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
521
522 Thu Nov 15 14:19:34 2001  Owen Taylor  <otaylor@redhat.com>
523  
524         * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
525         gdk_window_invalidate_maybe_recurse() for recursion.
526         (Soeren Sandmann)
527
528         * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
529  
530         * gtk/gtkcontainer.c (gtk_container_expose): Call
531         gtk_container_forall() not _foreach() to propagate,
532         since we need to propagate exposes to internal children
533         as well.
534
535         * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events): 
536         Remove the restriction of only being able to call these
537         on window widgets, since we have lots of NO_WINDOW widgets
538         with windows now; for add events, recurse over the children
539         of widget->window to find one owned by the widget.
540
541         * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
542         window to catch events.
543
544         * gtk/gtktogglebutton.[ch]: Remove the code for switching
545         between NO_WINDOW and WINDOW widgets based on the mode.
546
547         * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
548         gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
549
550         * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
551
552         * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
553         change for range.
554
555         * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
556  
557         * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
558
559 Thu Nov 15 11:59:35 2001  Owen Taylor  <otaylor@redhat.com>
560
561         * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
562         "message_type" and "buttons" CONSTRUCT properties. (#64069)
563
564         * tests/testsocket.c: Expand tests to add a "local passive
565         child" (Test case for #64428)
566
567 2001-11-14  jacob berkman  <jacob@ximian.com>
568
569         * gtk/gtkgamma.c (button_clicked_callback): create the label with
570         a mnemonic
571
572 2001-11-15  Sven Neumann  <sven@gimp.org>
573
574         * tests/testgtk.c: make it compile without warnings.
575
576 2001-11-14  Alex Larsson  <alexl@redhat.com>
577
578         * gtk/gtklabel.c:
579         Don't recalculate the layout on each gkt_label_ensure_layout () for
580         wrapped labels.
581
582 Wed Nov 14 17:40:23 2001  Jonathan Blandford  <jrb@redhat.com>
583
584         * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
585         the currently selected column when we get the column, #64380
586
587         * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
588         to cancel CellRendererText editting, #63613
589
590         * gtk/gtkcellrenderertext.c: ditto
591
592         * gtk/gtkcellrenderertext.h: formatting changes
593
594 2001-11-14  Matthias Clasen  <matthiasc@poet.de>
595
596         * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
597
598         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
599
600         * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
601
602         * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
603
604         * gtk/gtklabel.c: Documentation fixes (#64452)
605
606 2001-11-14  Daniel Egger  <degger@fhm.edu>
607
608         * gdk-pixbuf/io-xpm.c: 
609         (xpm_skip_whitespaces): Remove unused static function.
610         (xpm_skip_string): Dito.        
611         (xpm_extract_color): Declare const variable const to avoid warnings. 
612
613         * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
614         
615         * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
616         
617         * gtk/gtksocket.c: Change type of mask to g_message to %ld for 
618         a long.
619
620 Wed Nov 14 15:14:48 2001  Owen Taylor  <otaylor@redhat.com>
621
622         * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
623         out accidental commit of debugging timing code.
624
625 2001-11-14  Havoc Pennington  <hp@redhat.com>
626
627         * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
628         it doesn't move to a new line each time you press it
629
630         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
631         return value, #62987
632
633 2001-11-14  Havoc Pennington  <hp@redhat.com>
634
635         * tests/testtextbuffer.c (main): bulk of the tests were commented
636         out, oops.
637
638         * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this 
639         function work, should resolve #63426
640         (gtk_text_iter_ends_line): return TRUE for the end iterator
641
642         * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
643         a couple things that might get cached in here.
644
645 Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
646
647         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
648         "model" construct property for language bindings.
649
650         * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
651         function to let you set the column types of a GtkTreeStore for
652         language bindings.
653
654         * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
655
656 2001-11-13  Havoc Pennington  <hp@redhat.com>
657
658         * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
659         including reference to bugzilla bug about how we should have 
660         a better way of positioning children
661
662         * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
663
664         * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
665         size to side rects if they don't exist, #63438
666
667 2001-11-13  Havoc Pennington  <hp@redhat.com>
668
669         * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
670         properly replace selection with Return or Tab
671
672         * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
673         that didn't locate the end of the line correctly, should fix #63800
674
675 2001-11-13  Havoc Pennington  <hp@redhat.com>
676
677         * gtk/gtktextview.c (gtk_text_view_size_request): add border width
678         to requisition, request non-anchored children
679         (gtk_text_view_size_allocate): handle border width, allocate
680         non-anchored children
681         (text_view_child_new_window): set the child as object data
682         (gtk_text_view_move_child): allow children at negative
683         coordinates, no reason why not
684         (gtk_text_view_forall): make it copy the list of children before
685         walking it, to avoid reentrancy issues  
686         (gtk_text_view_move_child): short-circuit if position is unchanged
687         (changed_handler): only queue_resize if requisition has changed
688         (gtk_text_view_init): don't redraw_on_allocate, since we can do 
689         a better job of invalidation ourselves
690
691         * tests/testtext.c: add tests for the fixed-position children
692
693 Tue Nov 13 19:51:43 2001  Tim Janik  <timj@gtk.org>
694
695         * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
696         with gdk threads macro.
697
698 Mon Nov 12 23:08:37 2001  Tim Janik  <timj@gtk.org>
699
700         * gtk/maketypes.awk: fix type utils generation on unix.
701
702         * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
703         registry.
704
705         * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
706         removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
707         gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
708         gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
709         gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
710         introduced ::accel_changed signal for change notification, and
711         gtk_accel_group_connect/disconnect to connect closures to accel groups.
712         made gtk_accel_group_attach/detach and gtk_accel_group_activate private
713         functions.
714         deprecated gtk_accel_group_ref/unref.
715
716         * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
717         to accel group changed notification and basically operate on closures.
718         removed gtk_accel_label_get_accel_object and
719         gtk_accel_label_set_accel_object.
720         introduced gtk_accel_label_set_accel_closure, and for convenience,
721         gtk_accel_label_set_accel_widget.
722
723         * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
724         which mostly moved into gtkaccelmap.[hc].
725         removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
726         and gtk_item_factory_print_func.
727
728         * gtk/gtkmain.c: call _gtk_accel_map_init().
729
730         * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
731         that associates an accelerator path with menu items, through which
732         persistent accelerator settings on menu items are enabled.
733
734         * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
735         paths of menu item can be default constructed to allow installation
736         of accelerators on menu items that don't come with an accelerator
737         binding by default.
738
739         * gtk/gtksettings.c: fix STRING type rc settings by special casing
740         them appropriately in the parser.
741
742         * gtk/gtksignal.[hc]: allow a class function offset of 0 for
743         gtk_signal_newv().
744
745         * gtk/gtkwidget.[hc]: accelerator API revamp.
746         removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
747         gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
748         gtk_widget_(un)lock_accelerators.
749         accelerators maintained through gtk_widget_add/remove_accelerator()
750         are not runtime changable now, the correct sequence to setup a
751         widget for runtime changable accelerators is now:
752           gtk_accel_map_add_entry(accel_path, key, mods);
753           _gtk_widget_set_accel_path(widget, accel_path, accel_group);
754
755         * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
756         group changes (as well as mnemonic changes) through the new signal
757         ::accels_changed.
758
759 Sat Nov 10 12:08:56 2001  Tim Janik  <timj@gtk.org>
760
761         * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
762         GString->string conversions.
763
764 Mon Nov 12 19:33:52 2001  Owen Taylor  <otaylor@redhat.com>
765
766         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
767         if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
768
769 2001-11-12  Matthias Clasen  <matthiasc@poet.de>
770
771         * gtk/gtktreeview.c: Documentation fixes. (#64377)
772         
773         * gtk/gtktreestore.c: Documentation fixes. (#64376)
774
775 2001-11-11  Matthias Clasen  <matthiasc@poet.de>
776
777         * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
778         gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c, 
779         gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.  
780         (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
781
782 2001-11-10  Hans Breuer  <hans@breuer.org>
783
784         * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure 
785         we know what we are talking about when asked for MINMAXINFO.
786         Also some cleaning for !HAVE_DIMM_H etc.
787
788 2001-11-10  Matthias Clasen  <matthiasc@poet.de>
789
790         * gtk/gtktreeviewcolumn.c: Fix docs for 
791         gtk_tree_view_column_set_sort_order. (#62647)
792         
793         * gtk/gtkcontainer.c: Fix docs for 
794         gtk_container_set_border_width. (#64139)
795
796         * gtk/gtkcolorsel.c: Documentation fixes.
797
798 2001-11-10  Hans Breuer  <hans@breuer.org>
799
800         * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
801         don't have strcasecmp()
802
803         * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need 
804         to remove the idle funcs in gtk_text_view_destroy (). To reduce 
805         code duplication wrap it in its own function and use it in 
806         gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
807
808         * gdk/win32/gdkdrawable-win32.c : implement the finalize
809         method like the X11 version does, allow to set_colormap NULL
810         * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
811         set_colormap, also some adaption to X11 version :
812         (gdk_window_hide) call _gdk_window_clear_update_area
813         (gdk_window_reparent) call _gdk_window_init_position
814
815         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : 
816         call gdk_window_resize() after all hints are set, because the
817         window resizing process (WM_GETMINMAXINFO) takes all of them into 
818         account
819
820         * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
821
822         * gdk/win32/gdkvisual-win32.c : register GdkVisual with 
823         sizeof (GdkVisualPrivate)
824
825         * gdk/gdk.def gtk/gtk.def : upated externals
826
827         * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
828           gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
829         from now on use make.msc from $(TOP)/glib/build/win32
830
831         * gtk/stock-icons/makefile.msc : add stock_missing_image
832
833 2001-11-08  Tor Lillqvist  <tml@iki.fi>
834
835         * README.win32: Add headers. Add section about ActiveIMM.
836
837         * configure.in: Add --with-ie55 flag to specify the location of
838         the "IE55 libs and headers" package downloadable from Microsoft,
839         which contains, among other things, the Active IMM header dimm.h
840         and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
841         Require GLib 1.3.10.
842         
843         * config.h.win32.in: New version, produced by merging two
844         configure-generated ones (for gcc and MSVC). Hopefully #defines
845         the same flags that the previous, hand-written one, did.
846
847         * gdk/Makefile.am
848         * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
849
850         * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
851         stuff. Remove unused GdkIOClosure.
852
853         * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
854         available).
855
856         * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
857         for uuid.lib. (Does it really have to be this hard to use an
858         existing library with libtool? Probably I am missing something.)
859
860 2001-11-08  Darin Adler  <darin@bentspoon.com>
861
862         * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
863         typo where it says LEFT instead of CENTER.
864
865 2001-11-07  Darin Adler  <darin@bentspoon.com>
866
867         * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
868         (gtk_dialog_set_default_response): Add g_return_if_fail.
869
870 Mon Nov  5 22:34:29 2001  Owen Taylor  <otaylor@redhat.com>
871
872         * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface): 
873         Add row_draggable() vfunc, and wrapper function.
874
875         * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
876         row_drop_possible take a GtkSelectionData, rather than
877         model/row pair.
878
879         * gtk/gtktreestore.c gtk/gtkliststore.c: Update for 
880         new DND interfaces.
881
882         * gtk/gtktreeview.[ch]: Remove the row_draggable_func
883         location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
884         and rename them to enable_model_drag_source/dest.
885
886         * gtk/treeviewcolumn.c: Add DND of columns between rows.
887         Still can't drop _to_ the left tree, but other places
888         work.
889
890         * gtk/gtktreeview.c (unset_reorderable): Unset the
891         reorderable property if unset/enable_model_drag_source/dest
892         are called manually.
893
894         * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible): 
895         Correct for change in depth count handling.
896
897         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
898         Pass in a expose area to gtk_tree_view_column_cell_render()
899
900 2001-11-06  Havoc Pennington  <hp@redhat.com>
901
902         * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
903
904 Tue Nov  6 10:13:16 2001  Owen Taylor  <otaylor@redhat.com>
905
906         * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
907
908 2001-11-05  Havoc Pennington  <hp@redhat.com>
909
910         * gtk/gtktextview.c (gtk_text_view_paint): expose the child
911         widgets in here
912         (gtk_text_view_realize): set parent window of child widgets
913         (gtk_text_view_size_request): use child req to decide whether
914         to invalidate layout, not widget->requisition
915
916         * gtk/gtktextdisplay.c (render_layout_line): set
917         shaped_width_pixels for NULL shape objects, so that we properly
918         draw the "missing pixbuf/widget" thing
919         (render_layout_line): don't draw the widget here
920         (gtk_text_layout_draw): pass out a list of widgets that need exposing
921
922         * demos/gtk-demo/textview.c (insert_text): add demo of child
923         widgets
924
925         * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
926
927         * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
928
929         * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
930         scroll offsets
931         (gtk_text_view_value_changed): poke new X and Y into child allocations
932
933 2001-11-06  Tor Lillqvist  <tml@iki.fi>
934
935         * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
936         -specific directory on Windows, too (#63759).
937
938 Mon Nov  5 12:46:44 2001  Owen Taylor  <otaylor@redhat.com>
939
940         * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
941         gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
942         gdk/x11/gdkwindow-x11.c: Redo Xft support to go
943         directly to Picture objects instead of using XftDraw.
944         This fixes the problem where we weren't able to 
945         properly destroy XftDraw objects before destroying
946         the accompanying windows, and probably improves
947         efficiency a bit too. (#50214)
948
949 Mon Nov  5 10:01:49 2001  Owen Taylor  <otaylor@redhat.com>
950
951         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): 
952         Clamp max window width/height to 32767, not 32768 since
953         we have to be able to deal with a dx/y of -32768 without
954         getting a width of 65536 when guffaw scrolling.
955
956         * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
957         for the guffaw scrolling case, fixing some problems with
958         copy-area case as well. Fix BadValue bug with moving windows
959         by large amounts.
960
961         * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
962         clip in window structue before calling gdk_window_invalidate_region
963         since that trims new invalidations to the window's visible
964         region.
965
966         * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities): 
967         Really set the static window gravity on the children, not
968         repeatedly on the window.
969
970         * gtk/testgtk.c: Add a torture test for big windows and 
971         gdk_window_scroll().
972
973 Sun Nov  4 17:36:08 2001  Manish Singh  <yosh@gimp.org>
974
975         * acconfig.h configure.in: sigsetjmp is macroized in some places,
976         so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
977
978 Sun Nov  4 19:16:23 2001  Owen Taylor  <otaylor@redhat.com>
979
980         * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
981         in terms of pango_color_parse().
982
983         * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
984         gdk_color_parse() implementations.
985
986 Sun Nov  4 18:39:43 2001  Owen Taylor  <otaylor@redhat.com>
987
988         * gtk/gtksizegroup.c (gtk_size_group_set_mode): 
989         queue_resize_on_group with both the old and new mode, not
990         just the new mode. (#60171, Nicolas Setton). Also, notify
991         the "mode" property.
992         
993 Sun Nov  4 16:02:08 2001  Owen Taylor  <otaylor@redhat.com>
994
995         * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() 
996         for use in "shallow invalidation" of a widget. (Windows belonging
997         to the widget, but not to the widget's children)
998
999         * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
1000         flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED.  These flags are set
1001         up on ancestors up to the resize container on queue_resize. Size
1002         requests only actually take place if GTK_REQUEST_NEEDED, size
1003         allocations only take place if GTK_ALLOC_NEEDED or the size
1004         changed.
1005
1006         * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
1007         container->resize_widgets and the RESIZE_NEEDED flag since the
1008         above flags are sufficient to figure out what needs to be
1009         resized/reallocated. Remove code manipulating
1010         container->resize_widget.
1011
1012         * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
1013         allows widgets to turn off being automatically invalidated is when
1014         they are resized.
1015
1016         * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
1017         a widget is resized or moved is "shallow" as described above -
1018         only the windows that need to be invalidated are invalidated.
1019
1020         * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: 
1021         Make these widget's init functions call 
1022         gtk_widget_set_redraw_on_allocate(widget,FALSE).
1023
1024         * gtk/gtkwindow.c (gtk_window_configure_event): Call 
1025         _gtk_container_queue_resize(), since we don't want
1026         redrawing. (Probably could be done for other 
1027         calls to gtk_widget_queue_resize() in gtkwindow.c,
1028         but this is the most important one.)
1029
1030         * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
1031         gtk_widget_queue_draw() - size_allocate() handles
1032         that as appropriate.
1033
1034         * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
1035         of queue_clear() to avoid invalidating children.
1036
1037 2001-11-04  jacob berkman  <jacob@ximian.com>
1038
1039         * gtk/gtkmain.c (find_module): don't free the module name until
1040         after we load the module
1041
1042 Sat Nov  3 13:57:21 2001  Owen Taylor  <otaylor@redhat.com>
1043  
1044         * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
1045         derivation instead of boxed derivation.
1046  
1047         * gtk/gtkmarshal.list: Remove some now unused marshallers.
1048  
1049 2001-11-04  Tor Lillqvist  <tml@iki.fi>
1050
1051         * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
1052         include yesterday, without really thinking), as that defeats the
1053         working of correct_libdir_prefix() (it becomes a no-op.). Add
1054         comment mentioning that. Thanks to Hans Breuer for noticing.
1055         
1056 2001-11-03  Daniel Elstner  <daniel.elstner@gmx.net>
1057
1058         * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
1059         signal argument (was GtkWidget*).
1060
1061         * gtk/gtkwindow.c (gtk_window_frame_event),
1062           gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
1063         Fixed argument types as above, removed GTK_WINDOW casts and
1064         added some GTK_WIDGET casts instead.
1065
1066 2001-11-03  Hans Breuer  <hans@breuer.org>
1067
1068         * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
1069         finalize to parent class to get removed from the toplevel_list.
1070         Should fix 'random' crashes of #63474.
1071
1072         * gtk/gtktreemodelsort.c : chain finalize() to parent class
1073
1074 2001-11-03  Tor Lillqvist  <tml@iki.fi>
1075
1076         * modules/input/Makefile.am: Use -no-undefined on Windows. Look
1077         for .dll or .so as appropriate as module suffix.
1078
1079         * gtk-zip.sh.in: Use correct import library names.
1080
1081         * gtk/gtk.def: Add a couple of missing entry points. (#63585)
1082
1083         * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
1084         Windows to turn build-time paths from a gtk.immodules distributed
1085         as part of a binary package into runtime ones in the
1086         end-user-chosen installation directory.
1087         (gtk_im_module_init): Use it for module path and domain
1088         directory.
1089
1090 2001-11-02  Tor Lillqvist  <tml@iki.fi>
1091
1092         * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
1093         comma.  Include gtkprivate.h for GTK_LIBDIR etc definitions on
1094         Windows.
1095
1096 2001-10-30  Tor Lillqvist  <tml@iki.fi>
1097
1098         * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
1099         files. Configure on Win32 (running on Cygwin) thinks symlinks
1100         exist, but pkg-config is not necesarily a Cygwin program, and
1101         doesn't understand them.
1102
1103 Fri Nov  2 16:45:17 2001  Jonathan Blandford  <jrb@redhat.com>
1104
1105         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
1106         a bit.  I don't think it's completely correct yet, but it's
1107         getting there.
1108
1109 Fri Nov  2 16:14:15 2001  Owen Taylor  <otaylor@redhat.com>
1110
1111         * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
1112         random + 5 for width and height. If people want padding,
1113         they should add padding. (Note the +5 isn't padding
1114         that will always appear - it just appears in the case
1115         where the widget is allocated it's requisition.)
1116         (#51018, Janet Davis)
1117
1118 Fri Nov  2 15:53:23 2001  Owen Taylor  <otaylor@redhat.com>
1119
1120         * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
1121         the structure for future expansion.
1122
1123 Fri Nov  2 15:30:34 2001  Owen Taylor  <otaylor@redhat.com>
1124
1125         Patch from HideToshi Tajima (#51922)
1126         
1127         * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
1128
1129         * gtk/modules/input/gtkimcontextxim.[ch]: Implement
1130         set_use_preedit().
1131         
1132         * gtk/modules/input/gtkimcontextxim.[ch]: If we have
1133         to destroy the input context because we change the
1134         client window or use_preedit, make sure we empty
1135         the preedit string.
1136
1137 Fri Nov  2 14:55:53 2001  Owen Taylor  <otaylor@redhat.com>
1138
1139         * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
1140         gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
1141         proposed ordering of buttons with [OK] in the lower
1142         right hand corner. Patch from Gregory Merchan,
1143         #56331.
1144
1145 Fri Nov  2 11:51:49 2001  Jonathan Blandford  <jrb@redhat.com>
1146
1147         * gtk/gtklabel.c (gtk_label_select_region_index): remove
1148         extraneous gtk_label_clear_layout (label)
1149
1150 2001-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1151
1152         * tests/makefile.msc, gtk/makefile.msc.in: Removed
1153         -DGTK_DISABLE_COMPAT_H.
1154
1155         * docs/Changes-2.0.txt:
1156         s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
1157
1158         * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
1159
1160 Fri Nov  2 10:21:03 2001  Owen Taylor  <otaylor@redhat.com>
1161
1162         * examples/**/Makefile.am: Convert to use pkg-config
1163         rather than gtk-config. (#53375, Skip Montanaro)
1164
1165 2001-11-02  Matt Wilson  <msw@redhat.com>
1166
1167         * gtk/gtkdialog.c (find_child_by_response_id): remove totally
1168         broken unused, non-compiling, static function.
1169
1170 Fri Nov  2 08:17:06 2001  Owen Taylor  <otaylor@redhat.com>
1171
1172         * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive): 
1173         Iterate through children of the action area, not of
1174         the vbox. (#58278, Sergey Kuzminov)
1175
1176 2001-11-01  Havoc Pennington  <hp@pobox.com>
1177
1178         * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
1179         order to remove a workaround in Nautilus that forced
1180         GTK_ENABLE_BROKEN
1181
1182         * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
1183
1184 Thu Nov  1 20:09:31 2001  Owen Taylor  <otaylor@redhat.com>
1185
1186         * gtk/gtkrange.c: Patch from George Lebl to 
1187         fix division by zero for full scroll bars. (#62114)
1188
1189 Thu Nov  1 19:56:40 2001  Owen Taylor  <otaylor@redhat.com>
1190
1191         * gtk/gtkmain.c (gtk_main_do_event): ref/unref
1192         around gtk_widget_event() if we are going to
1193         set a flag afterwards. (#63464)
1194
1195 Thu Nov  1 19:44:48 2001  Owen Taylor  <otaylor@redhat.com>
1196
1197         * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am: 
1198         Actually add the missing/broken image icon as the
1199         image for the "missing image" stock icon.
1200
1201 Thu Nov  1 19:18:34 2001  Owen Taylor  <otaylor@redhat.com>
1202
1203         * demos/gtk-demo/stock_browser.c (do_stock_browser): 
1204         Set a reasonable default height for the window.
1205
1206         * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
1207         bug where subsequent '-' weren't converted to '_'.
1208         (#59550, Matthias Clasen)
1209
1210         * demos/gtk-demo/appwindow.c (menu_items): Don't right 
1211         justify the Help menu - just include a comment on
1212         how to do it. (#63539,  Marius Andreiana)
1213
1214         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't 
1215         list GTK_ICON_SIZE_INVALID.
1216
1217         * demos/gtk-demo/stock_browser.c: Show the biggest available
1218         size, not a fixed size. (Often reported, including #63539, 
1219         Marius Andreiana)
1220
1221 Thu Nov  1 19:11:35 2001  Jonathan Blandford  <jrb@redhat.com>
1222
1223         * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
1224         #59583
1225
1226         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
1227         warning.
1228
1229 Thu Nov  1 16:54:00 2001  Owen Taylor  <otaylor@redhat.com>
1230
1231         * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
1232         (Daniel Elstner).
1233
1234 Thu Nov  1 16:20:56 2001  Owen Taylor  <otaylor@redhat.com>
1235
1236         * gtk/gtkimcontext.[ch]: Add:
1237           - A ::retrieve_surrounding signal that asks the widget for
1238             context around the insertion point.
1239           - A ::delete_surrounding signal that asks the widget to 
1240             delete context aroudn the insertion point.
1241           - gtk_im_context_set_context() for widgets to set context
1242             around the insertion point in response to ::retrieve_context.
1243           - gtk_im_context_get_context() for context to get context
1244             around the insertion point
1245
1246         * gtkmarshal.list: Add BOOL:INT,INT
1247
1248         * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
1249         set_surrounding() methods, and the ::retrieve_surrounding /
1250         ::delete_surrounding signals.
1251
1252         * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
1253         GtkIMContext::retrieve_surrounding / ::delete_surrounding
1254         signals.
1255
1256 Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
1257
1258         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
1259         it's amazing how well things work sometimes, even when they're
1260         completely wrong.
1261
1262         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
1263         where you could try to collapse a node w/o it having children.
1264
1265         (gtk_tree_view_class_init): remove Shift L<->R as they already
1266         existed for expand/collapse.
1267
1268 Thu Nov  1 12:21:31 2001  Jonathan Blandford  <jrb@redhat.com>
1269
1270         * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
1271         found by Matt Wilson.
1272
1273 Thu Nov  1 00:44:50 2001  Jonathan Blandford  <jrb@redhat.com>
1274
1275         * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
1276         Control, and Shift|Control L<->R, #63475
1277
1278 Wed Oct 31 18:53:51 2001  Jonathan Blandford  <jrb@redhat.com>
1279
1280         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
1281         infinite loop noticed by yosh.
1282
1283 2001-11-01  Michael Meeks  <michael@ximian.com>
1284
1285         * gtk/gtksocket.c (gtk_socket_unrealize): unset the
1286         GTK_REALIZED flag so we don't re-enter when we are
1287         destroyed from the plug side.
1288
1289 Wed Oct 31 18:23:47 2001  Owen Taylor  <otaylor@redhat.com>
1290
1291         * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): 
1292         Add a "menu" property and notify on it. (#62798,
1293         Padraig O'Briain)
1294
1295         * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
1296         gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: 
1297         Fix set_text to take a gchar, not a guchar, and to have 
1298         a len argument.
1299
1300 Wed Oct 31 15:31:13 2001  Manish Singh  <yosh@gimp.org>
1301
1302         * gtk/gtkstock.c: fix typo to make it compile
1303
1304 Wed Oct 31 17:27:20 2001  Jonathan Blandford  <jrb@redhat.com>
1305
1306         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
1307         the widget is insensitive, draw the text insensitively, #63306
1308
1309 2001-10-31  Matthias Clasen  <matthiasc@poet.de>
1310
1311         * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
1312
1313 Wed Oct 31 16:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
1314
1315         * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
1316         gtk_selection_data_set_tree_row, #60218
1317         (gtk_tree_get_row_drag_data): rename
1318         gtk_selection_data_get_tree_row, #60218
1319
1320         * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
1321         get this right, after the third try, #63122.
1322
1323 2001-10-31  jacob berkman  <jacob@ximian.com>
1324
1325         * gdk/gdkselection.h (GDK_TARGET_STRING): 
1326         (GDK_SELECTION_TYPE_STRING): these should be 31, not 3.  Hooray
1327         for Xatoms (and not using the XA_* macros)!
1328
1329 Wed Oct 31 15:38:14 2001  Owen Taylor  <otaylor@redhat.com>
1330
1331         * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
1332         gtk_window_get_focus() getter to determine the currently
1333         focused widget within the window. (#63145, request
1334         from Damian Ivereigh)
1335
1336 Wed Oct 31 14:45:08 2001  Jonathan Blandford  <jrb@redhat.com>
1337
1338         * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
1339
1340         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
1341         GTK_SELECTION_NONE enum.
1342         (_gtk_tree_selection_internal_select_node): ditto
1343
1344         * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
1345         constness.
1346
1347         * gtk/gtkcellrenderertoggle.c: more yummy constness.
1348
1349         * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
1350         if mode == GTK_SELECTION_NONE
1351
1352 Wed Oct 31 14:05:17 2001  Jonathan Blandford  <jrb@redhat.com>
1353
1354         * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
1355         "cursor_changed" signal, #62850.
1356
1357 2001-10-31  Matt Wilson  <msw@redhat.com>
1358
1359         * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
1360         allocating the treedatalist, zero it to make sure the values are
1361         cleared from any garbage that was in this chunk.
1362
1363 2001-10-31  Murray Cumming  <murrayc@usa.net>
1364
1365         * gtk/cellrenderertext.h: "edited" default signal handler
1366         gchar* args are now const.
1367         gtk/cellrenderertoggle.h: "toggled" default signal handler
1368         gchar* arg is now const.
1369         Also changed other signal handlers for "edited" and "toggled" to
1370         have the same signature.
1371
1372 Tue Oct 30 19:17:57 2001  Jonathan Blandford  <jrb@redhat.com>
1373
1374         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
1375         rewrite.  Static models now totally work.  I'm not 100% sure about
1376         row_inserted and row_changed, but I'll get those later.
1377
1378 2001-10-30  Sven Neumann  <sven@gimp.org>
1379
1380         * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
1381         output for configure --help.
1382
1383 2001-10-30  Havoc Pennington  <hp@pobox.com>
1384
1385         * gtk/gtktextview.c (changed_handler): Update the IM spot location
1386         here, if text was invalidated in the visible area, because the
1387         scroll offset doesn't normally change in that case, and the mark
1388         isn't set, just implicitly moved over as text is added/removed
1389         
1390 Mon Oct 29 19:18:35 2001  Jonathan Blandford  <jrb@redhat.com>
1391
1392         * gtk/gtkseparatormenuitem.c: Code cleanup.
1393         (gtk_separator_menu_item_class_init): Fix bugs in this code.
1394
1395 2001-10-29  jacob berkman  <jacob@ximian.com>
1396
1397         * gdk/Makefile.am (LDFLAGS): 
1398         * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
1399         LDFLAGS, so put win32 flags in here
1400
1401 Mon Oct 29 15:41:58 2001  Jonathan Blandford  <jrb@redhat.com>
1402
1403         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
1404         I can't believe this took this long to fix.
1405
1406 Mon Oct 29 13:54:49 2001  Jonathan Blandford  <jrb@redhat.com>
1407
1408         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
1409         reordered signal.
1410
1411 Mon Oct 29 12:27:51 2001  Owen Taylor  <otaylor@redhat.com>
1412
1413         * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
1414         the focus to the fileop entry for create dir / rename
1415         file. (#62838)
1416
1417 Mon Oct 29 12:21:49 2001  Owen Taylor  <otaylor@redhat.com>
1418
1419         * configure.in: Don't use AC_CHECK_FILE to check for a 
1420         file since it always spits warnings about cross compilation,
1421         use -f instead. It's not like we cross compile properly
1422         anyways.
1423
1424         * configure.in (gtktargetlib): Move call to AC_PROG_CC
1425         to suppress autoconf warning.
1426
1427         * acconfig.h: Add some missing #undefs from recent
1428         Win32 additions.
1429
1430 Mon Oct 29 11:31:40 2001  Owen Taylor  <otaylor@redhat.com>
1431
1432         * m4macros/gtk-2.0.m4: Don't try to use pkg-config
1433         when we didn't find it. (#62944, Eric Lemings)
1434
1435         * m4macros/gtk-2.0.m4: Fix problem with spaces around =
1436         sign in assignment. (#63209, Arkadiusz Miskiewicz)
1437
1438 2001-10-29  Anders Carlsson  <andersca@gnu.org>
1439
1440         * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
1441         the buttons size request before using it. Fixes #61696.
1442
1443 2001-10-29  Tor Lillqvist  <tml@iki.fi>
1444
1445         * README.win32: Updates.
1446
1447         * gtk-zip.sh.in: New file, used to build distribution package for
1448         Windows.
1449
1450         * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
1451         applicable with GDKVAR.
1452
1453         * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
1454         Wintab library.
1455
1456         * gdk/win32/gdkwin32.h
1457         * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
1458         X11 headers better, and to enable gdkwin32.h to be installed and
1459         included from applications, but not the *-win32.h headers.
1460
1461         * gdk/win32/*.c: Corresponding small changes, simplifications of
1462         #includes.
1463         
1464         * gdk/win32/gdkregion-win32.c: Remove.
1465
1466         * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
1467
1468         * gdk/win32/gdkfont-win32.c
1469         * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
1470
1471         * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
1472         GDK_NONE values into hash table.
1473
1474         * gtk/gtk.def: Update.
1475
1476         * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
1477         gethostname().
1478
1479         * gtk/gtkmain.c 
1480         * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
1481         entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
1482         GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
1483         g_win32_get_package_installation_subdirectory() with the actual
1484         DLL name saved above. Redefine above directory name macros to call
1485         these functions. Remove some ifdefs.
1486
1487         * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
1488         variable for export on Win32) also to the _vars file.
1489
1490         Changes for autoconfiscated build on Win32, and addition of Win32
1491         backend to the related files:
1492         
1493         * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
1494         when forming DLL name in some files. Set MS_LIB_AVAILABLE is
1495         lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
1496         PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
1497         win32 target, using pangowin32. Don't use the
1498         -export-symbols-regex option on Win32, we use .def files to list
1499         exported symbols. Check <winsock.h> (for gethostname() in
1500         gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
1501         prevent premature m4 expansion.
1502
1503         * acconfig.h: Add HAVE_WINTAB.
1504
1505         * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
1506         macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
1507         MS_LIB_AVAILABLE, build MS import library. Install the import
1508         libraries. If HAVE_WINTAB, link with the Wintab library.
1509
1510         * gdk/win32/Makefile.am: Actually enable building the win32
1511         objects here, not just list all files in EXTRA_DIST. Link in the
1512         compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
1513         copy the Wintab library into the .libs directory. 
1514
1515         * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
1516         name of the GDK DLL when fetching the icon. Use the HMODULE saved
1517         in gdk_dll_hinstance by DllMain.
1518
1519         * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
1520         build/win32/lt-compile-resource script.
1521
1522         * gdk/win32/rc/gdk.rc.in
1523         * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
1524
1525         * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
1526         macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
1527         file. Install import libraries.
1528
1529 2001-10-29  Anders Carlsson  <andersca@gnu.org>
1530
1531         * gtk/gtkiconfactory.c (get_default_icons): Fix build.
1532
1533 2001-10-28  Hans Breuer  <hans@breuer.org>
1534
1535         * gdk/gdk.c gdk/gdkevents.c
1536           gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
1537           gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
1538           gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
1539           gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
1540           gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
1541           gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
1542           gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
1543         static correct-ness, underscore prefixing of library internal 
1544         functions
1545         (applied the undisputed and the win32 part. Of the latter 
1546          I'm probably the one who will change it back again, if Owen
1547          decides that the Gdk*Impl types should not be private to Gdk)
1548
1549         * gdk/gdk.def : added the remaining exported functions
1550
1551 2001-10-28  Matthias Clasen  <matthiasc@poet.de>
1552
1553         * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
1554         gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
1555         gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
1556
1557 2001-10-28  jacob berkman  <jacob@ximian.com>
1558
1559         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
1560         gtk_settings_get_default() here as that requires an X connection
1561         (which breaks doc building with no X connection) and is not
1562         multihead safe
1563         (gtk_color_selection_init): delay palette loading until realize
1564         time
1565         (gtk_color_selection_realize): load the palette, and initialize
1566         the global palette if it hasn't been already
1567
1568         * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
1569         visual/cmap fields of klass->info since they are gone
1570         (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
1571         (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
1572         (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
1573
1574         * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
1575         cmap fields
1576         (gtk_preview_get_visual):
1577         (gtk_preview_get_cmap): mark as deprecated
1578
1579         * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
1580         changes
1581
1582 Sun Oct 28 09:15:39 2001  Owen Taylor  <otaylor@redhat.com>
1583
1584         * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
1585         structure to have GObject not GtkObject as
1586         parent_instance. (Jeff Franks.)
1587
1588 2001-10-27  Matthias Clasen  <matthiasc@poet.de>
1589
1590         * gdk/x11/gdkinput.c: Typo fix.
1591
1592 2001-10-26  Havoc Pennington  <hp@pobox.com>
1593
1594         * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
1595         update_im_spot_location here explicitly
1596         (gtk_text_view_reset_im_context): don't update the spot location
1597         here
1598
1599 2001-10-27  Anders Carlsson  <andersca@gnu.org>
1600
1601         * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
1602         This fixes #62942.
1603
1604         * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range): 
1605         Clarify that we're returning a spin button in the _new function.
1606         This fixes #54097.
1607         
1608 Fri Oct 26 20:55:57 2001  Owen Taylor  <otaylor@redhat.com>
1609
1610         * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST. 
1611         Unfortunately, people apparently erroneously connect
1612         to ::clicked for GtkToggleButton and expect
1613         they know what happened in the default signal handler
1614         instead of appropriately connecting to notification
1615         signal ::toggled. When the revolution comes, such
1616         people will be first against the wall.
1617
1618         We'll just have to go back to the old less-reliable
1619         set-it-back hacks for handling model-view check
1620         buttons and radio buttons. :-(. 
1621
1622 2001-10-27  Hans Breuer  <hans@breuer.org>
1623
1624         * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
1625           gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
1626           gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
1627           gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
1628           gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
1629           gtk/gtktreestore.c gtk/gtkvbbox.c : 
1630         to simplify parsing for exported functions:
1631         - made implementation signature static, when the local 
1632           prototype already was
1633         - put the functions return value on it's own line
1634         - added as space between the function name and the 
1635           opening bracket
1636
1637         * gtk/gtk.def : added the remaining exported functions
1638
1639 2001-10-27  Anders Carlsson  <andersca@gnu.org>
1640
1641         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
1642         Add note about width having to be greater than 0. This fixes
1643         #55574. 
1644
1645         * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start): 
1646         Fix docs to say previous instead of next.
1647         (gtk_text_iter_backward_word_start): Likewise.
1648         This fixes bug #62980.
1649
1650         * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
1651         that the valid width is in range 0-65535 pixels. Fixes bug 
1652         #56754.
1653
1654         * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
1655         a dot in the documentation. Fixes bug #62632.
1656
1657         * gdk/x11/gdkmain-x11.c: Replace int and guint with
1658         long and gulong in some places to make the code 64-bit
1659         clean.
1660         (_gdk_windowing_init_check): Replace gint with gulong.
1661         This patch was made by George Lebl and fixes bug #62113.
1662
1663         * tests/testgtk.c (create_range_controls): Don't set a 
1664         fixed height on the hscale widget. This fixes "bug" 
1665         #55840.
1666         (create_window_states): Set up destroy signals so that
1667         all windows will be destroyed when one is. This fixes 
1668         bug #58133.
1669
1670 2001-10-26  Anders Carlsson  <andersca@gnu.org>
1671
1672         * gtk/gtktreeview.c: 
1673         (gtk_tree_view_class_init): Create new "indent_expander"
1674         style property.
1675
1676         (gtk_tree_view_get_arrow_xrange): Add a tree argument
1677         to the function since the xrange can change depending
1678         on where in the tree we are. 
1679         
1680         (coords_are_over_arrow): Update function call to
1681         gtk_tree_view_get_arrow_xrange.
1682         (gtk_tree_view_draw_arrow): Likewise.
1683         
1684         (gtk_tree_view_real_expand_collapse_cursor_row):
1685         Call real_{expand|collapse}_row, so that we'll have an
1686         animation.
1687
1688 Fri Oct 26 20:13:36 2001  Kristian Rietveld  <kristian@planet.nl>
1689
1690         * tests/Makefile.am: fixed a small typo
1691
1692 Fri Oct 26 18:27:11 2001  Kristian Rietveld  <kristian@planet.nl>
1693
1694         * demos/gtk-demo/list_store.c (create_model): Anders
1695         Carlsson suggested to use G_N_ELEMENTS here
1696
1697 2001-10-26  Sven Neumann  <sven@gimp.org>
1698
1699         * gtk/gtkbutton.[ch]
1700         * gtk/gtkdnd.c: fixed inline comments
1701         
1702         * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
1703
1704 2001-10-26  Hans Breuer  <hans@breuer.org>
1705
1706         * gdk-pixbuf/gdk_pixbuf.def : 
1707         * gdk/gdk.def : 
1708         * gtk/gtk.def : updated externals
1709
1710         * gdk/win32/gdkpixmap-win32.c : removed duplicate of
1711         gdk_window_lookup implementation. It already was in
1712         gdk/win32/gdkwindow-win32.c
1713
1714         * gdk/win32/gdkproperty-win32.c : made it compile again
1715         after GdkAtom API change
1716
1717         * gtk/gtk/makefile.msc.in : updated
1718
1719 Wed Oct 24 11:36:33 2001  Owen Taylor  <otaylor@redhat.com>
1720
1721         * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
1722         require GLib 1.3.10.
1723
1724         * NEWS: updates.
1725
1726 Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
1727
1728         * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
1729         invalid nodes.
1730          (_gtk_rbnode_rotate_right): Ditto.
1731          (_gtk_rbtree_node_mark_invalid): New function.
1732          (_gtk_rbtree_node_mark_valid): New function.
1733
1734         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
1735         GObject, not a GtkObject.
1736         (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
1737         correct.
1738         (gtk_tree_model_sort_row_deleted): ditto.
1739         (gtk_tree_model_sort_{un,}ref_node): Fix.
1740
1741         * gtk/gtktreeview.c: Protean incremental reflow support (commented
1742         out)
1743
1744         * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
1745         to const char *key.
1746
1747         * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
1748         Important 1 line fix to fix a lot of refcounting woes.
1749
1750 2001-10-25  Matt Wilson  <msw@redhat.com>
1751
1752         * gtk/gtktextview.c (gtk_text_view_destroy): call
1753         gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
1754         now invalidates) so that we remove our idle functions.
1755         (gtk_text_view_destroy_layout): remove the first_validate_idle as
1756         well.
1757
1758         * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
1759         the 'indent' property is G_MININT to G_MAXINT.  Don't use
1760         -G_MAXINT for the minimum of the 'rise' property, use G_MININT
1761         instead.
1762
1763 2001-10-24  Anders Carlsson  <andersca@gnu.org>
1764
1765         * gtk/gtktreeview.c: 
1766         (gtk_tree_view_real_expand_row): add an animate argument
1767         (gtk_tree_view_real_collapse_row): likewise
1768         
1769         (gtk_tree_view_button_press), (gtk_tree_view_button_release), 
1770         (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
1771         (gtk_tree_view_collapse_row): update functions that call
1772         real_{expand|collapse}_row to set the animate argument 
1773         accordingly.
1774         
1775 2001-10-24  Alex Larsson  <alexl@redhat.com>
1776
1777         * gdk/linux-fb/gdkfont-fb.c:
1778         Update to new Pango APIs
1779
1780         * gdk/linux-fb/gdkproperty-fb.c:
1781         Update to new GdkAtom APIs
1782
1783         * gdk/linux-fb/gdkwindow-fb.c:
1784         Remove warnings
1785
1786 Mon Oct 22 20:07:21 2001  Jonathan Blandford  <jrb@redhat.com>
1787
1788         * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
1789
1790 Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
1791
1792         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
1793         s_path as a child path
1794
1795 Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
1796
1797         * gtk/gtktreemodelsort.c: more changes in an attempt to get
1798         it right. It's not yet ready for general consumption.
1799
1800         * tests/treestoretest.c: add a button and entry for the new
1801         iter_change function
1802         (iter_change): new function, to test
1803         the row_changed signal implementation of the GtkTreeModelSort
1804
1805         * tests/testtreesort.c: cleanups, changes to test more features
1806         of the GtkTreeModelSort at once
1807
1808 2001-10-24  Havoc Pennington  <hp@redhat.com>
1809
1810         * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
1811         remove hack to strip off the bogus newline, since we killed the
1812         bogus newline; fixes #61779
1813
1814 2001-10-24  Havoc Pennington  <hp@redhat.com>
1815
1816         * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
1817         create layout if we didn't have one
1818         (gtk_text_view_set_buffer): invalidate so we get the idle handlers
1819         as appropriate, avoids blanking the screen 
1820         (gtk_text_view_invalidate): new function to do invalidation,
1821         containing old guts of invalidated_handler
1822
1823 Wed Oct 24 10:29:47 2001  Owen Taylor  <otaylor@redhat.com>
1824
1825         * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
1826         dreadful tooltips.
1827
1828 Tue Oct 23 17:31:42 2001  Owen Taylor  <otaylor@redhat.com>
1829
1830         * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always 
1831         set window->parent (except or the root window itself); if 
1832         the window's parent is not a GdkWindow, or is a window of 
1833         type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
1834
1835         * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
1836         windows of type GDK_WINDOW_FOREIGN.
1837
1838 2001-10-24  Havoc Pennington  <hp@pobox.com>
1839
1840         * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
1841         the front of a segment, use the "slow" technique for moving
1842         backward, so we don't mess up the any_segment field in the iter. 
1843         Fixes #57707
1844
1845         * tests/testtextbuffer.c: add code to detect #57707, to avoid
1846         regression
1847
1848 2001-10-23  Havoc Pennington  <hp@redhat.com>
1849
1850         * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
1851         if selection contains some editable text, #60975
1852         (gtk_text_view_scroll_to_iter): remove warning about scrolling
1853         prior to map; it should actually be OK to do so in many cases, 
1854         it would be nice to warn about scrolling when many lines have
1855         height 0, but I don't know what to do about that. Perhaps 
1856         move part of flush_scroll into this function? comment added 
1857         to consider this.
1858
1859 2001-10-23  Havoc Pennington  <hp@redhat.com>
1860
1861         * gtk/gtktextview.c (changed_handler): Correctly keep the same
1862         text on the top of the screen, considering that the changed region
1863         may have overlapped the first paragraph. Should fix msw's "text
1864         widget scrolled to wrong place on map" bug, and probably some
1865         other scrolling cases as well.
1866         (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0, 
1867         instead of some random value
1868
1869         * gtk/gtktextview.c (gtk_text_view_class_init): actually override
1870         grab_focus, so #59708 is really fixed
1871
1872 2001-10-24  Anders Carlsson  <andersca@gnu.org>
1873
1874         * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
1875         (popup_targets_received): Call append_action_signal with stock items
1876         
1877         * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
1878         (gtk_label_do_popup): Call append_action_signal with stock items
1879         
1880         * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
1881         (popup_targets_received): Call append_action_signal with stock items
1882
1883 2001-10-23  Havoc Pennington  <hp@redhat.com>
1884
1885         * gtk/gtktextview.c (changed_handler): queue a resize here; will
1886         temporarily slow down the widget a lot, until we figure out how to
1887         optimize to avoid full redraw everytime we queue a resize.
1888
1889 2001-10-23  Havoc Pennington  <hp@redhat.com>
1890
1891         * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
1892         0 and char_len == 0, bug #61729
1893
1894 2001-10-23  Havoc Pennington  <hp@redhat.com>
1895
1896         * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
1897         return value, #61714 (Vitaly Tishkov)
1898         (gtk_text_iter_backward_sentence_starts): ditto
1899         (gtk_text_iter_backward_word_starts): ditto
1900         (gtk_text_iter_forward_word_ends): ditto
1901         (gtk_text_iter_forward_sentence_ends): ditto
1902         (gtk_text_iter_backward_cursor_positions): ditto
1903
1904 2001-10-23  Havoc Pennington  <hp@redhat.com>
1905
1906         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
1907         fix from Dov Grobgeld, #61858
1908
1909 2001-10-23  Havoc Pennington  <hp@redhat.com>
1910
1911         * gtk/gtktextview.c (gtk_text_view_update_im_spot_location): 
1912         Update IM spot location at appropriate times, #50626
1913         (Hidetoshi Tajima)
1914
1915 2001-10-23  Havoc Pennington  <hp@redhat.com>
1916
1917         * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
1918         on grab focus, unless it's caused by button click, #59708
1919
1920 Tue Oct 23 11:53:00 2001  Owen Taylor  <otaylor@redhat.com>
1921
1922         * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
1923
1924         * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
1925         G_CONST_RETURN. (Murray Cumming)        
1926
1927         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
1928         Make G_CONST_RETURN.
1929
1930         * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
1931         results of g_get_home_dir().
1932
1933         * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated 
1934         copy. Storing the return from gtk_entry_get_text() is evil.
1935
1936         * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c 
1937         gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c 
1938         gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
1939         gtk/gtksignal.c: Add const.
1940
1941         * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
1942
1943         * gtk/gtktreeview.c: Namespace object data keys to be safe, even 
1944         if we are setting them on private widgets.
1945
1946         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
1947         Duplicate entry->text before setting it as object data.
1948
1949 2001-10-22  Havoc Pennington  <hp@redhat.com>
1950
1951         * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
1952         up a char from the end iterator, fixes #61859 ("can't put cursor
1953         at the end of the buffer")
1954
1955         * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
1956         to work with delimiters other than newline.
1957
1958         * tests/testtextbuffer.c: add some tests for get_chars_in_line,
1959         get_bytes_in_line
1960
1961         * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
1962         last line, since the newline is no longer counted.
1963         (gtk_text_iter_get_bytes_in_line): ditto
1964
1965 2001-10-22  Havoc Pennington  <hp@redhat.com>
1966
1967         * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that 
1968         #58290 would trigger if it reappeared, I think
1969
1970 2001-10-22  Havoc Pennington  <hp@redhat.com>
1971
1972         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1973         add temporary code to dump btree contents on assertion failure
1974         described in #62656
1975         
1976         * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
1977         assertions that we're getting the right end iter segment
1978
1979         * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
1980         verify that we aren't on the end iterator after moving 
1981         forward one segment - fixes return value in an obscure case. 
1982         Also, some trivial code cleanup/rearranging.
1983         
1984 2001-10-22  Havoc Pennington  <hp@redhat.com>
1985
1986         * gtk/gtktextlayout.h: add a #error unless you define
1987         GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
1988
1989         * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
1990         
1991 2001-10-22  Havoc Pennington  <hp@redhat.com>
1992
1993         * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix 
1994         #62365
1995
1996 2001-10-22  Havoc Pennington  <hp@redhat.com>
1997
1998         * gtk/gtktextview.c (gtk_text_view_get_window_type): fix 
1999         #62436
2000
2001 2001-10-22  Havoc Pennington  <hp@redhat.com>
2002
2003         * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix 
2004         #62366
2005
2006 Mon Oct 22 11:47:47 2001  Owen Taylor  <otaylor@redhat.com>
2007
2008         * gtk/gtklabel.c: Add cursor-position, selection-bound 
2009         properties. (#62148, reported by Padraig O'Briain)
2010
2011         * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
2012         to cursor_position. (1.3.x addition, text_position is an awful
2013         name.) Make cursor_position read-only to avoid sticky questions
2014         of interaction with selection_bound. (#62636, reported by
2015         Padraig O'Briain)
2016
2017 Mon Oct 22 16:25:12 2001  Owen Taylor  <otaylor@redhat.com>
2018
2019         Fixing popup menus to have "Paste" sensitized correctly. Original
2020         patches from Damian Ivereigh, much mangled.
2021
2022         * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
2023         gtk_selection_data_targets_include_text(). (#60854)
2024
2025         * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
2026         the clipboard has text" function gtk_clipboard_wait_is_text_available.
2027         (#60854)
2028
2029         * gtk/gtkentry.c: Only enable the paste item if the clipboard
2030         contains text. (#60973)
2031
2032         * gtk/gtktextview.c: Only enable the paste item if the clipboard
2033         contains text. (#60975)
2034
2035 2001-10-22  Havoc Pennington  <hp@redhat.com>
2036
2037         * gtk/gtktextview.c (gtk_text_view_class_init): rip out
2038         "height_lines" and "width_columns" properties, it doesn't make
2039         sense to set the size request on a text view really. #62103
2040
2041 Mon Oct 22 15:17:05 2001  Jonathan Blandford  <jrb@redhat.com>
2042
2043         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
2044         g_node_depth is broken, and that it's not worth being consistent
2045         with it.
2046
2047 2001-10-22  Havoc Pennington  <hp@redhat.com>
2048
2049         * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
2050         docs, #61777
2051         (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
2052         change the two boolean args to a flags field, so we can extend 
2053         to add case insensitive, regexp searches later. #61852
2054
2055 Mon Oct 22 15:07:17 2001  Jonathan Blandford  <jrb@redhat.com>
2056
2057         * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
2058         reflect reality, #62810
2059
2060 Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
2061
2062         * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
2063
2064         * gtk/gtktreeview.c (size_allocate): Move to a different drawing
2065         system.  Instead of having a window the size of the tree, we have
2066         a window the size of widget->allocation, and simply draw with the
2067         offset.
2068         (coords_are_over_arrow): ditto.  Move to window coordinates.
2069         (do_prelight): ditto
2070         (do_unprelight): ditto
2071
2072         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
2073         Minor fix from Kristian Rietveld to fix unsorted case.
2074
2075 2001-10-22  jacob berkman  <jacob@ximian.com>
2076
2077         * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
2078         a PIXMAP cell (fixes crash when using PIXTEXT cells)
2079
2080 Sat Oct 20 18:58:25 2001  Owen Taylor  <otaylor@redhat.com>
2081
2082         * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
2083         (#58768, Vitaly Tishkov)
2084         
2085         * gtk/gtkobject.h: Deprecate with abandon. 
2086         (#61942, Vitaly Tishkov, Matthias Clasen)
2087
2088         * gtk/gtksignal.h: Deprecate everything.
2089
2090         * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
2091         all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
2092         (#61942, Matthias Clasen)
2093
2094         * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
2095         Havoc Pennington)
2096
2097         * gtk/gtkitemfactory.h: Deprecate compat functions
2098         for GtkMenuFactory code. (#62071)
2099
2100         * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
2101         gdk_draw_text,gdk_draw_text_wc. (#62071)
2102
2103 Mon Oct 22 10:12:08 2001  Owen Taylor  <otaylor@redhat.com>
2104
2105         * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
2106         g_thread_init(), we don't want to link to -lgthread if we don't
2107         have to.
2108
2109 Mon Oct 22 08:51:02 2001  Owen Taylor  <otaylor@redhat.com>
2110
2111         * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt: 
2112         Add a function, gdk_threads_init() that must be explicitely 
2113         called to enable the GDK thread mutex.
2114
2115 2001-10-22  Jakub Steiner <jimmac@ximian.com>
2116
2117         * gtk/stock-icons/stock_stop.png: no body parts
2118         
2119 Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
2120
2121         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
2122         problem with g_return_if_fail return value.
2123
2124         * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the 
2125         virtual atom code from the gdk-multihead branch, removing the per-display
2126         part. Virtualizing atoms needs to be done now to prevent compat
2127         breakage in direct Xlib accessing code in the future. (#62208)
2128  
2129         * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
2130         gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
2131  
2132         * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
2133         an opaque pointer type so the compiler catches attempts
2134         to mingle it with X atoms.
2135
2136         * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
2137           gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c, 
2138           gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
2139           gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
2140           tests/testdnd.c,tests/testselection.c: 
2141         Fix up for above atom changes.
2142
2143         * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
2144         now have the ability to add custom predefines.
2145
2146         * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
2147         Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
2148         to gtk_clipboard_get().
2149
2150         * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
2151         for GdkAtom => pointer change.
2152
2153         * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
2154         atoms, fix for GdkAtom => pointer change.
2155
2156 Mon Oct 22 00:26:46 2001  Kristian Rietveld  <kristian@planet.nl>
2157
2158         * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
2159         new function spin_button_get_arrow_size() instead.
2160
2161         * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
2162         arrow was hardcoded, it's now variable.
2163
2164         Fixes bug #50200
2165
2166 Sat Oct 20 18:16:04 2001  Manish Singh  <yosh@gimp.org>
2167
2168         * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
2169         PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
2170         for those
2171
2172 Sat Oct 20 19:38:16 2001  Owen Taylor  <otaylor@redhat.com>
2173
2174         * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
2175         in favor of g_signal_*, gtk_object_* in favor of 
2176         g_object_*.
2177
2178 Fri Oct 19 18:35:22 2001  Manish Singh  <yosh@gimp.org>
2179
2180         * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
2181         from GObject now, we have to use the g_object_* functions, not
2182         gtk_object_*.
2183
2184 Fri Oct 19 22:46:54 2001  Kristian Rietveld  <kristian@planet.nl>
2185
2186         * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
2187         nailed down now (this code is not yet ready for general consumption)
2188
2189 Fri Oct 19 13:44:51 2001  Manish Singh  <yosh@gimp.org>
2190
2191         * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
2192         for use_align
2193
2194 Fri Oct 19 15:34:06 2001  Owen Taylor  <otaylor@redhat.com>
2195
2196         * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
2197
2198 Fri Oct 19 15:08:30 2001  Owen Taylor  <otaylor@redhat.com>
2199
2200         * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
2201         modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
2202         imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
2203         GObject, not GtkObject. (#62621)
2204
2205 Fri Oct 19 12:49:12 2001  Owen Taylor  <otaylor@redhat.com>
2206
2207         * tests/testsocket.c: Remove now useless include of unistd.h,
2208         fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
2209         
2210 Fri Oct 19 12:24:32 2001  Owen Taylor  <otaylor@redhat.com>
2211
2212         * gdk/linux-fb/gdkfont-fb.c: Fix up for change to 
2213         Pango font API. #61933. (Untested, even for compilation.)
2214
2215 Fri Oct 19 11:24:58 2001  Owen Taylor  <otaylor@redhat.com>
2216
2217         * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
2218         export gtk_disable_setlocale(). (Caught by Sven Neumann)
2219
2220 2001-10-18  Havoc Pennington  <hp@redhat.com>
2221
2222         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
2223
2224 2001-10-18  Havoc Pennington  <hp@redhat.com>
2225
2226         * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
2227         to GTK_RUN_LAST, #50239
2228
2229 2001-10-18  HideToshi Tajima  <hidetoshi.tajima@sun.com>
2230
2231         * gtk/gtkimmodule.c (match_locale):
2232         Support "*" for all locales with least priority
2233         when to select default im module, #58201
2234
2235 2001-10-18  Matthias Clasen  <matthiasc@poet.de>
2236
2237         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): 
2238         Fix docs. (#61976)
2239  
2240         * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
2241
2242         * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
2243
2244         * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
2245         gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
2246         gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
2247         gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
2248         gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
2249         Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
2250         and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
2251
2252         * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
2253
2254         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): 
2255         Don't restrict the width of the spinbutton entry field 
2256         to 10 digits. (#58681)
2257
2258 Thu Oct 18 14:58:14 2001  Jonathan Blandford  <jrb@redhat.com>
2259
2260         * tests/testtreeflow.c: new test program for the tree.
2261
2262 Thu Oct 18 14:22:10 2001  Jonathan Blandford  <jrb@redhat.com>
2263
2264         * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
2265         reported by (Oleg Maiboroda), #62600
2266
2267 2001-10-18  Michael Meeks  <michael@ximian.com>
2268
2269         * gtk/gtkentry.c (gtk_entry_set_property),
2270         (gtk_entry_get_property): impl 'text'
2271         (gtk_entry_class_init): add the 'text' prop.
2272         (gtk_entry_insert_text): notify 'text' changed.
2273         (gtk_entry_delete_text): ditto.
2274
2275 2001-10-17  Matthias Clasen  <matthiasc@poet.de>
2276
2277         * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
2278         Documentation updates.
2279
2280 Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>
2281
2282         * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
2283         in truncating length of text to MAX_SIZE. (Found by 
2284         Padraig O'Briain, #62055)
2285
2286 Tue Oct 16 17:04:44 2001  Owen Taylor  <otaylor@redhat.com>
2287
2288         * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
2289         MNEMONIC_ACTIVATE; signal was changed a long time
2290         ago.
2291
2292         * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): 
2293         Fix wrong return statement. (Reported by HideToshi
2294         Tajima and others.)
2295
2296         * gtk/gtklabel.h (struct _GtkLabelClass): Remove
2297         left over select_all vfunc.
2298
2299 Tue Oct 16 15:50:03 2001  Owen Taylor  <otaylor@redhat.com>
2300
2301         * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
2302         a utility function to translate coordinates relative to
2303         one widget's allocation to coordinates relative to another
2304         widget's allocation.
2305
2306         * gtk/gtkradiobutton.c: Add a special ->focus() implementation
2307         that:
2308          - only accepts external focus if there is no active
2309            member of the group or the button is active.
2310          - makes arrow keys move the active button as well
2311            as the focus
2312          - make tab tab out directly.
2313         This makes a radio button group act as a single focus location.
2314         (#53577).
2315         
2316         * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
2317         it was only a small optimization that didn't matter and made
2318         things more complicated.
2319
2320         * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
2321         sorter for FOCUS_TAB as we did for the other focus directions,
2322         sort by center of widgets, not upper-left corner. (Shouldn't
2323         matter in general.)
2324
2325         * gtk/gtkcontainer.c: Restructure code to remove duplicate code
2326         from the different types of focusing: encapsulate sorting the
2327         widgets for the focus direction into one routine
2328         (gtk_container_focus_sort()) and then share the work of moving the
2329         focus between the different focus directions.
2330
2331         * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
2332         work correctly with focus chains containing non-immediate
2333         children. Sorting was being done using allocation coordinates for
2334         each widget in the focus chain, and if there were intermediate
2335         window-widgets, these allocations would not be in the same
2336         coordinate system.
2337
2338 Tue Oct 16 15:12:26 2001  Jonathan Blandford  <jrb@redhat.com>
2339
2340         * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
2341         mnemonic_activate function to option menu.
2342
2343 2001-10-15  Murray Cumming <murrayc@usa.net>
2344
2345         * gtk/gtkinputdialog.c, gtk/gtktoolbar.c,  gtk/gtkwidget.c:
2346           Corrected the type names used in some calls to g_signal_new().
2347         
2348 Sat Oct 13 07:09:30 2001  Tim Janik  <timj@gtk.org>
2349
2350         * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
2351         specs, use g_pattern_spec_equal() instead of direct field accesses.
2352         upon compressing two equal paths of the same type, the resulting
2353         priority has to be the maximum.
2354         * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
2355         GtkPathPriorityType enum and make it a macro.
2356
2357 2001-10-12  Matthias Clasen  <matthiasc@poet.de>
2358
2359         * gtk/gtkwidget.c: Fix some doc comments.
2360
2361 Fri Oct 12 11:39:20 2001  Joshua N Pritikin  <vishnu@pobox.com>
2362
2363         * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
2364         on empty models.
2365
2366 2001-10-11  Matthias Clasen  <matthiasc@poet.de>
2367
2368         * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
2369         Remove stale gdk backend includes.
2370  
2371 2001-10-10  Michael Meeks  <michael@ximian.com>
2372
2373         * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
2374         and value_in_list properties.
2375         (gtk_combo_set_value_in_list): notify change.
2376         (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
2377
2378 2001-10-11  James Henstridge  <james@daa.com.au>
2379
2380         * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
2381         that gtk+ can be built with automake 1.5 while not breaking
2382         things for automake 1.4.
2383
2384 Wed Oct 10 12:48:38 2001  Owen Taylor  <otaylor@redhat.com>
2385
2386         * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
2387         (#60606)
2388
2389         * gtk/gtkmain.c (gtk_disable_setlocale): Add function
2390         to disable calling setlocale (LC_ALL, "").
2391
2392         * gtk/gtkmain.c (gtk_set_locale): Indicate in the 
2393         docs that this function is not typically useful.
2394
2395         * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: 
2396         Automatically initialize GDK for the current locale
2397         on gdk_init(). Don't reset locale to C when
2398         XSupportsLocale() fails.
2399
2400         * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
2401         useless checks for UTF-8 locale breakage that mattered
2402         only for X.
2403
2404         * examples/calendar/calendar.c
2405         tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to 
2406         gtk_set_locale().
2407
2408         * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
2409         gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
2410
2411 Wed Oct 10 21:13:46 2001  Kristian Rietveld  <kristian@planet.nl>
2412
2413         * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
2414
2415         Fixes bug #61904
2416
2417 Wed Oct 10 01:19:04 2001  Jonathan Blandford  <jrb@redhat.com>
2418
2419         * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
2420         new function, #61923
2421         (gtk_tree_selection_path_is_selected): Ditto
2422
2423 Tue Oct  9 17:40:24 2001  Jonathan Blandford  <jrb@redhat.com>
2424
2425         * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
2426         not a GtkObject.  Thanks andersca.
2427
2428         * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
2429
2430 Tue Oct  9 14:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
2431
2432         * gtk/gtktreeviewcolumn.c
2433         (gtk_tree_view_model_sort_column_changed): fix broken code.
2434
2435 2001-10-08  Matthias Clasen  <matthiasc@poet.de>
2436
2437         * gtk/gtkselection.c: s/succesfully/successfully/g
2438
2439 2001-10-08  Havoc Pennington  <hp@pobox.com>
2440
2441         * demos/gtk-demo/stock_browser.c: remove unused enum
2442
2443         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2444         pass the current selection state of the node in to the user
2445         selection func
2446
2447 2001-10-06  Matthias Clasen  <matthiasc@poet.de>
2448
2449         * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to 
2450         non-existent function gdk_x11_cursor_get_xid 
2451         by gdk_x11_cursor_get_xcursor.
2452
2453 Fri Oct  5 20:50:00 2001  Jonathan Blandford  <jrb@redhat.com>
2454
2455         * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
2456         warning.
2457
2458         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
2459         unref nodes, #okay61676
2460
2461         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
2462         to the property; no need to clear the other columns.  Also, we go
2463         to 'unsorted' if the model supports it.
2464
2465 2001-10-05  Sven Neumann  <sven@gimp.org>
2466
2467         * demos/testpixbuf-save.c
2468         * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk 
2469         feature.
2470
2471 Fri Oct  5 19:06:07 2001  Kristian Rietveld  <kristian@planet.nl>
2472
2473         * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
2474         destroy the search dialog
2475
2476         * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
2477         added check to prevent creation of a search dialog if there's
2478         already one around
2479
2480         * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
2481         it instead of "search-dialog" (when getting/setting the search dialog
2482         widget).
2483
2484 2001-10-05  Jakub Steiner <jimmac@ximian.com>
2485
2486         * gtk/stock-icons/stock_broken_image.png: broken images icon
2487
2488 2001-10-04  Havoc Pennington  <hp@pobox.com>
2489
2490         Fix #56586
2491         
2492         * gtk/gtksettings.c (gtk_settings_class_init): move the F10
2493         accelerator setting here...
2494
2495         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
2496         because we try to use it when a menu bar hasn't necessarily been 
2497         initialized.
2498
2499 2001-10-03  Havoc Pennington  <hp@redhat.com>
2500
2501         * tests/testtextbuffer.c (logical_motion_tests): fix test case, 
2502         it previously verified incorrect behavior
2503
2504         Fixes for #61565
2505         
2506         * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
2507         off the end
2508         (_gtk_text_btree_get_iter_at_line_char): don't return lines off
2509         the end
2510         (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
2511         the end
2512         (gtk_text_iter_forward_lines): if on the last line, move to end of
2513         it
2514
2515         * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
2516         don't return a line off the end
2517
2518 Wed Oct  3 23:47:25  Kristian Rietveld  <kristian@planet.nl>
2519
2520         * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
2521         functions to do_insert_text and do_delete_text, add signals
2522         insert_text, delete_text and changed
2523
2524         * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
2525         and changed. Updates to match new situation.
2526
2527         * gtk/gtkspinbutton.c: updates to match new situation
2528
2529         * gtk/gtkoldeditable.h: remove signals changed, insert_text
2530         and delete_text
2531
2532         * gtk/gtkoldeditable.c: updates to match new situation
2533
2534         * gtk/gtktext.c: updates to match new situation
2535
2536         Fixes bug #59803
2537
2538 2001-10-03  Havoc Pennington  <hp@redhat.com>
2539
2540         * gtk/gtktextiter.c (test_log_attrs): allow testing the end 
2541         position
2542
2543         * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
2544         changes
2545
2546         * tests/testtextbuffer.c (logical_motion_tests): updates
2547
2548 2001-10-03  jacob berkman  <jacob@ximian.com>
2549
2550         * gtk/gtkwidget.c (gtk_widget_style_get_property): 
2551         * gtk/gtkstyle.c (_gtk_style_peek_property_value): 
2552         * gtk/gtksettings.c (apply_queued_setting): 
2553         * gtk/gtkmain.c (gtk_init_check): 
2554         * gtk/gtkcontainer.c (gtk_container_child_get_property):
2555         s/retrive/retrieve/
2556
2557 Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
2558
2559         * gtk/gtktreemodelsort.[ch]: preparation for surgery
2560         * tests/testtreesort.c: ditto
2561
2562 2001-10-02  Havoc Pennington  <hp@redhat.com>
2563
2564         Throughout: assorted docs
2565         
2566         * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
2567         gdk_window_set_geometry_hints() should be used instead.
2568
2569         * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
2570         document them
2571
2572         * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
2573         seem to exist in any .c files
2574
2575         * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs, 
2576         g_return_if_fail (pixel < colormap->size).
2577
2578 Wed Oct  3 10:42:54 2001  Owen Taylor  <otaylor@redhat.com>
2579
2580         * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
2581         NULL for @target_list to mean, use
2582         gtk_drag_dest_get_target_list (widget).
2583
2584         * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
2585         drop could hang when calling gtk_drag_finish with 
2586         success == FALSE and del == TRUE.
2587
2588         * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
2589         drops without a matching target found would propagate
2590         to the parent widget rather than being rejected.
2591
2592         * gtk/gtktextview.c (gtk_text_view_drag_data_received): 
2593         Use text_view->dnd_mark instead of mark name to be
2594         consistent with the rest of the code.
2595
2596         * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
2597         pendantically correct for a drop-only-in-some-places
2598         widget. (Check whether you can insert in drag_drop,
2599         not just in drag_motion ... matters in theory, and
2600         for Motif drag and drop in practice.)
2601
2602         * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from 
2603         Damian Ivereigh to not allow drops on non-editable
2604         entries. (#61124)
2605
2606         * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
2607         text to be moved from a non-editable entry.
2608         
2609 2001-10-03  James Henstridge  <james@daa.com.au>
2610
2611         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
2612         s/width/fixed_width/ in order to get things to compile.
2613
2614 Wed Oct  3 00:37:09 2001  Jonathan Blandford  <jrb@redhat.com>
2615
2616         * gtk/gtkcelleditable.c: docs
2617
2618         * gtk/gtktreemodel.h: more docs.
2619
2620 2001-10-02  Havoc Pennington  <hp@redhat.com>
2621
2622         * gdk/x11/gdkwindow-x11.c: docs
2623
2624         * tests/testtextbuffer.c (logical_motion_tests): add sentence
2625         boundary tests
2626
2627 Tue Oct  2 20:18:32 2001  Kristian Rietveld  <kristian@planet.nl>
2628
2629         * demos/gtk-demo/Makefile.am: add editable_cells.c,
2630         list_store.c and tree_store.c
2631
2632         * demos/gtk-demo/appwindow.c: remove tearoff item from
2633         File menu, put menubar and toolbar in handle boxes.
2634
2635         * demos/gtk-demo/genincude.pl: various changes to support trees
2636
2637         * demos/gtk-demo/main.c: various changes to support trees
2638
2639         * demos/gtk-demo/stock_browser.c: changed name of demo
2640         to Stock Item and Icon Browser, so geninclude.pl doesn't see
2641         it as child
2642
2643         * demos/gtk-demo/editable_cells.c: new file/demo
2644         * demos/gtk-demo/list_store.c: new file/demo
2645         * demos/gtk-demo/tree_store.c: new file/demo
2646
2647 Mon Oct  1 16:05:44 2001  Owen Taylor  <otaylor@redhat.com>
2648
2649         * gtk/gtkrc.c gtk/gtksettings.c: 
2650         g_string_printfa => g_string_append_printf.
2651
2652 Mon Oct  1 16:08:23 2001  Jonathan Blandford  <jrb@redhat.com>
2653
2654         * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
2655         and destroy handler.
2656
2657         * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
2658
2659         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
2660         'start_editing' flag to select_cursor_row.  Bug spotted by Manish
2661         Singh <yosh@gimp.org>.
2662
2663 2001-10-01  Matthias Clasen  <matthiasc@poet.de>
2664
2665         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
2666         g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
2667
2668         * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
2669
2670 Mon Oct  1 14:07:02 2001  Jonathan Blandford  <jrb@redhat.com>
2671
2672         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
2673         scroll_to_cell delayed code to happen in size_allocate.
2674
2675         * gtk/gtkstyle.c (gtk_default_draw_expander): change
2676         prelight/normal arrow drawing.
2677
2678         * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
2679
2680         * gtk/gtktreestore.c: refactor.
2681
2682 Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
2683
2684         * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
2685         patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
2686         centers the child in relation to the to indicator height.
2687
2688 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
2689
2690         * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
2691         correct
2692
2693 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
2694
2695         * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
2696         property code using g_param_spec_int and changed from
2697         g_value_get_enum to g_value_get_int instead. Probably a better way
2698         to fix the problem :-)
2699
2700 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
2701
2702     * gtk/gtkcellrenderertext.c changed "weight" property type from 
2703       g_param_spec_int to g_param_spec_enum.
2704
2705 Sat Sep 29 12:25:26 2001  Manish Singh  <yosh@gimp.org>
2706
2707         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
2708         fix: s/Wether/Whether/ in reorderable property description
2709
2710 Thu Sep 27 16:46:36 2001  Jonathan Blandford  <jrb@redhat.com>
2711
2712         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
2713         start editing when you select with a keyboard.
2714
2715         (gtk_tree_view_button_press_event): much more graceful now.
2716
2717         * gtk/gtkstyle.c: Draw togglebutton better.
2718
2719 2001-09-26  Havoc Pennington  <hp@redhat.com>
2720
2721         * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
2722         of passing non-stock label in to gtk_dialog_new_with_buttons
2723
2724         * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
2725         debugging updates
2726
2727         * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
2728         are private
2729
2730         * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
2731         exist, fall back to mnemonic label, not plain label, bug #61184
2732         
2733 Wed Sep 26 19:48:01 2001  Jonathan Blandford  <jrb@redhat.com>
2734
2735         * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
2736         stupid and emitting the signal every time.
2737
2738         * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
2739
2740 Wed Sep 26 16:35:59 2001  Owen Taylor  <otaylor@redhat.com>
2741
2742        Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
2743
2744        * contrib/gdk-pixbuf-xlib/Makefile.am: install
2745        gdk-pixbuf-xlib-2.0.pc.
2746
2747 Wed Sep 26 16:15:25 2001  Owen Taylor  <otaylor@redhat.com>
2748
2749         * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
2750         problem where menmonic wasn't removed properly when
2751         setting a label when there already is a label.
2752         Also, handle setting the tab label back to the same
2753         value. (#61160, #61161)
2754
2755         * gtk/gtkentry.c (paste_received): Patch from 
2756         Damian Ivereigh to replace selection if there is 
2757         one. (#61121)
2758
2759 2001-09-25  Darin Adler  <darin@bentspoon.com>
2760
2761         * tests/.cvsignore: Ignore new test program.
2762
2763 2001-09-25  Havoc Pennington  <hp@redhat.com>
2764
2765         * gtk/gtktextview.c: fix for #50317
2766         
2767 2001-09-25  Havoc Pennington  <hp@redhat.com>
2768
2769         * gtk/gtktextview.c (gtk_text_view_key_press_event): use 
2770         gtk_text_iter_can_insert
2771         
2772         * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
2773
2774         * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
2775          (gtk_text_iter_can_insert): new function to fix #60282, should
2776         also fix msw's "can paste into empty buffer" bug.
2777
2778         * gtk/gtktexttag.c (gtk_text_tag_event): change type check for 
2779         "event object,"  #59091
2780
2781         * gtk/gtktextbtree.c: indentation fixes
2782
2783         * gtk/gtktextiter.c (find_by_log_attrs): fixes
2784
2785 Tue Sep 25 12:41:17 2001  Owen Taylor  <otaylor@redhat.com>
2786
2787         * configure.in: Version 1.3.9, interface age 0, binary age 0.
2788
2789         * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
2790
2791         * NEWS: Updates.
2792
2793 Mon Sep 24 11:59:09 2001  Owen Taylor  <otaylor@redhat.com>
2794
2795         * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
2796         function for drawing cursors between gtkentry/gtklabel/gtktextview.
2797         Should this be public? It has a bit of an odd interface, but
2798         custom editing widgets probably should be using it.
2799         Function will draw with wider width for taller cursors, and
2800         draws a little indicator arrow to indicate directoin for split 
2801         cursors.
2802
2803         * gtk/gtktextview.c: Add a "cursor_color" property.
2804
2805         * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
2806         gtk_text_layout_draw().
2807
2808         * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
2809         _gtk_draw_insertion_cursor().
2810
2811 Tue Sep 25 11:22:23 2001  Owen Taylor  <otaylor@redhat.com>
2812
2813         * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
2814         the behavior where you could turn family_set (etc) back on
2815         and get back the values you had before.
2816
2817         * demos/gtk-demo/stock_browser.c (id_to_macro): Use
2818         g_string_ascii_up() rather than looping through the
2819         string ourself.
2820
2821 Tue Sep 25 15:32:44 2001  Jonathan Blandford  <jrb@redhat.com>
2822
2823         * gtk/gtktreeviewcolumn.c
2824         (gtk_tree_view_column_set_cell_renderer): Removed
2825         (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0);  Fixes 61012.
2826
2827         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
2828         Patch from Detlef Reichl
2829
2830 2001-09-25  Havoc Pennington  <hp@redhat.com>
2831
2832         * tests/testtextbuffer.c (line_separator_tests): Add tests for
2833         line separators, addresses bug #57428
2834
2835 Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
2836
2837         * gtk/gtkentry.c: Make a GtkCellEditable
2838         (get_widget_window_size): Change to let it honor size_allocate
2839         when a CellEditable.
2840
2841         * gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
2842         editable changes.
2843         (gtk_tree_view_set_cursor): Now you can set the cursor
2844         horizontally, as well as start editing.
2845
2846         * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
2847         code to look more like the other check buttons.
2848
2849         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
2850         Change the way we calculate cell size.
2851
2852         * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
2853
2854         * demos/gtk-demo/sizegroup.c: Add mnemonics.
2855
2856         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
2857         Fix logic.
2858
2859         * gtk/gtkcellrenderertext.c: Change to be editable.
2860
2861         * gtk/gtkcellrenderertoggle.c: Change to be activatable.
2862
2863         * test/testtreesort.c: Fix misspelling
2864
2865         * test/testreecolumns.c: Add mnemonics.
2866
2867         * test/testreeedit.c: New test program.
2868
2869 2001-09-25  Havoc Pennington  <hp@pobox.com>
2870
2871         * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
2872         etc. docs about how these are not going to do what you want for 
2873         the X/win32 ports. Futile attempt to avoid a FAQ...
2874
2875 2001-09-24  James Henstridge  <james@daa.com.au>
2876
2877         * gtk/gtkmarshal.list (VOID): add marshal function types.
2878
2879         * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
2880         GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
2881         GTK_TYPE_POINTER.
2882         (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
2883         with no-op copy/free functions.
2884
2885         * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
2886         GtkCTreeNode get_type function.
2887
2888 2001-09-24  Havoc Pennington  <hp@redhat.com>
2889
2890         * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
2891         gtktextlayout.c:
2892         Get rid of the newline-that-could-not-be-deleted; buffers may 
2893         now be zero-length. Much easier to fix than expected, once 
2894         I figured out the right way to do it. However, there are 
2895         various subtle bugs introduced by this that will have to get 
2896         sorted out. Please use bugzilla.
2897
2898 Mon Sep 24 15:09:08 2001  Owen Taylor  <otaylor@redhat.com>
2899
2900         * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
2901         response back from the window manager if our size hasn't changed 
2902         since we won't get a response back from the window manager;
2903         there was code in there to do this, but it was in the wrong
2904         place so if the hints change and the size didn't we'd expect
2905         a response.
2906
2907         Also, optimize the position-only-changed case by running
2908         the resize queue immediately, and clean up some comments
2909         for the changes.
2910
2911 Mon Sep 24 12:48:25 2001  Owen Taylor  <otaylor@redhat.com>
2912
2913         * gtk/gtknotebook.h: Add a compat macro that got lost.
2914
2915         * gtk/gtktreestore.c: Doc fixes.
2916
2917         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
2918         leak for windows that receive events after being destroyed.
2919         (#60863, Joshua N. Pritikin)
2920
2921         * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
2922         rather than gtk_container_queue_resize().
2923
2924         * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
2925         gtk_container_queue_resize, gtk_container_queue_resize_widgets,
2926         gtk_container_child_composite_name. (#60217.)
2927
2928 2001-09-22  Hans Breuer  <hans@breuer.org>
2929
2930         * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
2931
2932 Sat Sep 22 16:50:34 2001  Kristian Rietveld  <kristian@planet.nl>
2933
2934         * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
2935         weight value should be an int
2936
2937 Sat Sep 22 15:17:41 2001  Kristian Rietveld  <kristian@planet.nl>
2938
2939         * gtk/gtkmenu.c (gtk_menu_select_item): move most code
2940         to gtk_menu_scroll_item_visible(). Only call
2941         gtk_menu_scroll_item_visible() if the menu widget has been
2942         realized. Fixes bug #55310.
2943
2944 2001-09-21  Havoc Pennington  <hp@redhat.com>
2945
2946         * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
2947         key press to IM context if cursor isn't in an editable location;
2948         bug #58425, patch from Hidetoshi Tajima
2949
2950 2001-09-21  Havoc Pennington  <hp@redhat.com>
2951
2952         Bug #60862
2953         
2954         * gtk/gtktextbtree.c (gtk_text_btree_node_destroy): 
2955         (_gtk_text_btree_unref): fix up mark memory management
2956
2957         * gtk/gtktextmark.c (mark_segment_delete_func): ditto
2958
2959 2001-09-20  Havoc Pennington  <hp@redhat.com>
2960
2961         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
2962         try to handle alignment here, because it's done by PangoLayout
2963         after we set the layout width. Fix from Dov.
2964
2965 2001-09-21  Hans Breuer  <hans@breuer.org>
2966
2967         * gdk/gdk.def :
2968         * gtk/gtk.def : updated externals
2969
2970         * gtk/gtkmain.h : define get_gtk_win32_directoty () 
2971         * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
2972         Also handle that Win32 pathes cann't be hard-coded      
2973
2974         * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
2975         module, themes etc directory calculations
2976
2977         * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
2978         >16 bit right. The size limit within Win9x appears _not_ to be 32767
2979         but slightly smaller ...
2980
2981         * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid 
2982         >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
2983
2984         * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
2985
2986         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
2987         handling. I'm not sure if it is better now, but at least not worse
2988
2989         * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
2990
2991         * gdk/win32/gdkwin32.h : reflect recent API restrictions
2992
2993 2001-09-21  Matt Wilson  <msw@redhat.com>
2994
2995         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
2996         radio_menu_item->group to NULL after removing it from the list, as
2997         it is no longer in the group. (#60869)
2998
2999         * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
3000
3001 2001-09-20  Havoc Pennington  <hp@pobox.com>
3002
3003         * configure.in (PANGO_REQUIRED_VERSION)
3004         (ATK_REQUIRED_VERSION): add variables and checks for specific 
3005         versions of dependencies. Previously we didn't verify the 
3006         Pango or ATk versions.
3007
3008 2001-09-09  Havoc Pennington  <hp@pobox.com>
3009
3010         * gtk/gtktextiter.c: fool with indentation
3011         (gtk_text_iter_in_range): add g_return_if_fail
3012
3013 Thu Sep 20 17:45:54 2001  Joshua N Pritikin  <vishnu@pobox.com>
3014
3015         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
3016         ref count on new tag to be 1.  Update doc.  (#60836)
3017
3018 Thu Sep 20 16:20:47 2001  Owen Taylor  <otaylor@redhat.com>
3019
3020         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
3021         call to gdk_image_new_bitmap(). (#59094, reported by
3022         by Sven Neumann)
3023
3024 Thu Sep 20 15:31:35 2001  Owen Taylor  <otaylor@redhat.com>
3025
3026         * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
3027         day, as well as the current month and year.
3028         (#59047, reported by Vitaly Tishkov)
3029
3030 Thu Sep 20 15:10:30 2001  Owen Taylor  <otaylor@redhat.com>
3031
3032         * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
3033         set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
3034         
3035 Thu Sep 20 18:00:56 2001  Kristian Rietveld  <kristian@planet.nl>
3036
3037         * tests/testgtk.c (struct OptionMenuItem): get rid of it,
3038
3039         (build_option_menu): add func argument, connect ::changed
3040         signal to option menu instead of connecting the ::activate
3041         signal to the menu items,
3042
3043         (toplevel): get rid of RADIOMENUTOGGLED macro,
3044
3045         (list_toggle_sel_mode), (clist_toggle_sel_mode),
3046         (ctree_toggle_line_style), (ctree_toggle_expander_style),
3047         (ctree_toggle_justify), (ctree_toggle_sel_mode),
3048         (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
3049         use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
3050
3051         (notebook_type_changed): merged standard_notebook(),
3052         notabs_notebook(), scrollable_notebook() and borderless_notebook()
3053         into notebook_type_changed()
3054
3055         (create_list), (create_ctree), (create_notebook),
3056         (create_progress_bar): changed OptionMenuItem arrays into
3057         gchar * arrays. Removed "Extended" item where used.
3058
3059         Fixes bug #59885
3060
3061 2001-09-20  Sven Neumann  <sven@gimp.org>
3062
3063         * configure.in
3064         * gdk/Makefile.am
3065         * gtk/Makefile.am
3066         * gtk/gtkselection.c
3067         * gtk/gtktreeview.c
3068         * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
3069
3070 Thu Sep 20 11:19:42 2001  Owen Taylor  <otaylor@redhat.com>
3071
3072         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
3073         a missing pango_layout_iter_free ().
3074
3075 Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
3076
3077         * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
3078         gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
3079
3080         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
3081         the function definition so we don't accidentally rely on
3082         the compat #define from gtk_radio_menu_item_group.
3083         (#60782, Jeff Franks)
3084
3085 Thu Sep 20 16:51:02 2001  Kristian Rietveld  <kristian@planet.nl>
3086
3087         * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
3088         incorrect values for top, right and bottom due to cut-and-paste
3089         bug. Pointed out by Vitaly Tishkov, fixes bug #59008
3090
3091 Wed Sep 19 17:59:27 2001  Owen Taylor  <otaylor@redhat.com>
3092
3093         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
3094         _NET_WM_PID and WM_CLIENT_MACHINE properties on each
3095         window, not just on the client leader. (#58463)
3096
3097 Wed Sep 19 17:28:47 2001  Owen Taylor  <otaylor@redhat.com>
3098
3099         * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
3100
3101         * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
3102         non-public _gtk_menu_item_set_placement.
3103
3104         * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
3105
3106 Wed Sep 19 16:16:38 2001  Owen Taylor  <otaylor@redhat.com>
3107
3108         * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c 
3109           gdk/linux-fb/gdkcolor-fb.c:
3110         Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
3111         (#59723)
3112
3113 Wed Sep 19 16:12:16 2001  Owen Taylor  <otaylor@redhat.com>
3114
3115         * gdk/gdkpixbuf-render.c: Allow -1 for width/height
3116         to mean "width/height of pixbuf" (Patch from Matthias Clasen,
3117         #59723)
3118
3119 Wed Sep 19 16:01:27 2001  Owen Taylor  <otaylor@redhat.com>
3120
3121         Patch from Frank Belew #59037 for Solaris compilation.
3122
3123         * gtk/maketypes.awk: Change syntax slightly for a call
3124         to sub(), apparently making awk on Solaris happier.
3125
3126         * gtk/gtktreeview.c: Remove C++ comments.
3127
3128 Wed Sep 19 15:46:29 2001  Owen Taylor  <otaylor@redhat.com>
3129
3130         * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
3131         to handle '99% of the time. (#60473, reported by Christian Rose)
3132
3133         * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
3134         which no longer exists. (#60379, reported by Vitaly Tishkov)
3135
3136 Wed Sep 19 11:06:24 2001  Tim Janik  <timj@gtk.org>
3137
3138         * Released 1.3.8.
3139
3140         * gdk/Makefile.am: kill EXTRA_DIST clearing.
3141         
3142 Wed Sep 19 02:50:40 2001  Tim Janik  <timj@gtk.org>
3143
3144         * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
3145         as its broken in automake 1.4, add explicit object rule to
3146         generate this.
3147         
3148         * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
3149         get rid of uneccessary stamps, group stuff more logically, and build
3150         sources due to object rules. fix srcdir!=builddir.
3151
3152 Tue Sep 18 20:47:16 2001  Owen Taylor  <otaylor@redhat.com>
3153
3154         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix 
3155         incorrect parameter to compute_double_length
3156         (#58680, patch from Matthias Clasen)
3157
3158         Fixes for compilation with Forte cc. (#59734, Derek Rafter)
3159
3160         * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
3161
3162         * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
3163         for GDK_RELEASE_MASK to avoid warnings with Forte.
3164
3165         * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
3166         break; statements.
3167
3168 2001-09-18  Alex Larsson  <alexl@redhat.com>
3169
3170         * gtk/gtkcheckbutton.c:
3171         * gtk/gtkradiobutton.c:
3172         Don't draw with GTK_STATE_ACTIVE.
3173
3174         * gtk/gtkclist.c:
3175         * gtk/gtkctree.c:
3176         Draw lines between rows with base_gc[GTK_STATE_NORMAL].
3177
3178         * gtk/gtktextdisplay.c:
3179         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3180         unfocused with base_gc [GTK_STATE_ACTIVE].
3181         
3182         * gtk/gtkentry.c:
3183         Add select all menu-item.
3184         Default cursor color is red.
3185         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3186         unfocused with base_gc [GTK_STATE_ACTIVE].
3187
3188         * gtk/gtklabel.[ch]:
3189         Add keynav + menu to selectable lables.
3190         Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
3191         unfocused with base_gc [GTK_STATE_ACTIVE].
3192
3193         * gtk/gtkfilesel.c:
3194         Add drag and drop support.
3195
3196         * gtk/gtkstyle.c:
3197         (This was checked in earlier)
3198         New default values for text/base SELECTED and ACTIVE
3199         
3200 Tue Sep 18 23:51:49 2001  Tim Janik  <timj@gtk.org>
3201
3202         * configure.in: up version to 1.3.8, interface age 0,
3203         binary age 0, depend on glib 1.3.8.
3204
3205         * NEWS: 1.3.8 updates.
3206
3207 Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
3208
3209         * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
3210         the editing code
3211
3212         * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
3213         reason to call it beyond emiting the two signals.
3214
3215         * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
3216         to GtkEntry.
3217
3218 Wed Sep 12 11:21:14 2001  Owen Taylor  <otaylor@redhat.com>
3219
3220         * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
3221           gtk/gtktextview.c tests/testgtk.c: Fix up for changes to 
3222         PangoFontDescription.
3223
3224         * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
3225         gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
3226         structure.
3227   
3228         * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
3229
3230         * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
3231         direct access to style->font. Deprecate gtk_style_ref/unref.
3232   
3233         * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
3234         Remove gtk_style_ref/unref with g_object_ref/unref.
3235   
3236         * gtk/gtkcalendar.c: Remove leftover macros accessing
3237         style->font.
3238   
3239         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
3240         variable.
3241   
3242         * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of 
3243         style->font.
3244
3245 Tue Sep 18 13:51:35 2001  Jonathan Blandford  <jrb@redhat.com>
3246
3247         * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
3248         "can_activate" properties in favor of
3249         GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
3250         and GTK_CELL_RENDERER_MODE_EDITABLE
3251
3252 Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
3253
3254         * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
3255         editable widgets.  This function is private, and should only be
3256         used by GtkTreeView.
3257
3258 2001-09-18  Matt Wilson  <msw@redhat.com>
3259
3260         * docs/Makefile.am (EXTRA_DIST): don't use += before =
3261
3262         * docs/faq/Makefile.am (EXTRA_DIST): likewise
3263
3264         * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
3265         
3266         * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
3267         (EXTRA_HEADERS): likewise
3268
3269         * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
3270         (EXTRA_HEADERS): likewise
3271         (EXTRA_DIST): likewise
3272         (CLEANFILES): likewise
3273
3274         * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
3275
3276         * tests/Makefile.am (EXTRA_DIST): likewise
3277         
3278         * Makefile.am (install-data-local): changed to use
3279         install-data-hook, which runs after install-pkgconfigDATA, so that
3280         the pkgconfigdir will have been created and populated first.
3281
3282 Mon Sep 17 17:39:52 2001  Jonathan Blandford  <jrb@redhat.com>
3283
3284         * gtk/gtkcelleditable.[ch]: Add editable interface.  This should
3285         be the last big GtkTreeView API change.
3286
3287         * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
3288         replace with "activate" and "start_editing".  Also, added a
3289         "can_activate" and "can_edit" property.
3290
3291         * gtk/gtktreeviewcolumn.c: modify to use above.
3292
3293 2001-09-16  Alexander Larsson  <alla@lysator.liu.se>
3294
3295         * gtk/gtkoptionmenu.c:  Handle scroll wheel events.
3296
3297 Fri Sep 14 22:31:25 2001  Matthias Clasen  <matthiasc@poet.de>
3298
3299         * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
3300         icon instead of one with ugly white background.
3301
3302 Fri Sep 14 22:26:01 2001  Matthias Clasen  <matthiasc@poet.de>
3303
3304         * demos/gtk-demo/stock_browser.c (id_to_macro): make
3305         the uppercasing work. (#59550)
3306
3307 2001-09-14  Jakub Steiner <jimmac@ximian.com>
3308
3309         * gtk/stock-icons/dialog_error.png:
3310         * gtk/stock-icons/dialog_question.png: more road signs
3311
3312 2001-09-13  Jakub Steiner <jimmac@ximian.com>
3313
3314         * gtk/stock-icons/dialog_question.png:
3315         * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
3316           like a road sign.
3317
3318 Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
3319
3320         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
3321         signals to make them more clear.  Also, change ::range_changed to
3322         ::row_changed.
3323         * gtk/gtktreemodel.c: Adjust to interface change
3324         * gtk/gtktreemodel.h: ditto
3325         * gtk/gtktreemodelsort.c: ditto
3326         * gtk/gtktreestore.c: ditto
3327         * gtk/gtkliststore.c: ditto
3328         * gtk/gtktreeview.c: ditto
3329         * tests/testtreecolumns.c: ditto
3330         * gtk/gtkmarshal.list: Actually remove a marshaller!
3331
3332 2001-09-12  Padraig O'Briain <padraig.obriain@sun.com>
3333
3334         * gtk/gtktextview.c
3335         Add support for Ctrl+Up/Down arrow to move cursor to beginning
3336         of previous/next paragraph. If within a paragraph cursor moves to
3337         beginning of that paragraph.
3338
3339 2001-09-12  Jakub Steiner <jimmac@ximian.com>
3340
3341         * gtk/stock-icons/dialog_question.png: replacing the shaky
3342           question mark with a sans-serif one.
3343         * gtk/stock-icons/stock_top.png, stock_bottom.png,
3344      stock_first.png, stock_last.png: using the new style arrows
3345         * gtk/stock-icons/stock_font.png: simple one to replace the ugly
3346      colors.
3347         * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
3348      color.
3349         * gtk/stock-icons/stock_zoom*: anti-aliased
3350         * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
3351      '-' with a '_', removed the wrong files
3352
3353 Sat Sep  8 16:19:02 2001  Owen Taylor  <otaylor@redhat.com>
3354  
3355         * gtk/gtkmain.c: Implement a search path for GTK+ modules.
3356  
3357         * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
3358         in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
3359         than in gtk-2.0/major.minor.micro/<type>/. This
3360         works better for a search path for modules.
3361  
3362         * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
3363         gtk_binary_version variable holding major.minor.(micro-binary_age).
3364  
3365         * modules/input/Makefile.am (moduledir): Fix installation
3366         directory to match change in lookup location.
3367  
3368         * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll 
3369         suffixes. Needs to be handled in g_module_build_path().
3370
3371         * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
3372         appropriate.
3373  
3374 Tue Sep 11 13:59:12 2001  Owen Taylor  <otaylor@redhat.com>
3375
3376         * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
3377         causing RC properties not to work.
3378
3379 2001-09-11  Jakub Steiner <jimmac@ximian.com>
3380
3381         * gtk/stock-icons/dialog-error.png: less drastic
3382         * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
3383           "STOP" is international enough.
3384         * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
3385         * gtk/stock-icons/stock_menu_properties.png: 16x16 version
3386
3387 Mon Sep 10 21:26:24 2001  Joshua N Pritikin  <vishnu@pobox.com>
3388
3389         * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
3390         (add|remove)_selection_clipboard symmetric. (bug #59836)
3391
3392         * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree): 
3393         Avoid SEGV for empty tree. (bug #60243)
3394
3395 Mon Sep 10 20:47:22 2001  Tim Janik  <timj@gtk.org>
3396
3397         * tests/testgtk.c (create_idle_test): slight fix for
3398         g_object_set() not usable for nesting anymore.
3399
3400         * gtk/gtkhandlebox.c (gtk_handle_box_class_init): 
3401         * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
3402         properties, supply ::shadow_type properties instead as most
3403         other widgets do.
3404
3405 2001-09-10  Alex Larsson  <alexl@redhat.com>
3406
3407         * demos/gtk-demo/stock_browser.c:
3408         * gdk/gdkcolor.c:
3409         * gdk/gdkfont.c:
3410         * gdk/gdkcursor.c:
3411         * gdk/gdkevents.c:
3412         * gdk/gdkrectangle.c:
3413         * gtk/gtktypeutils.c:
3414         Update to use the new g_boxed_type_register_static API.
3415
3416 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
3417
3418         * gtk/gtktreestore.c:
3419         Fix looping in gtk_tree_store_init() waiting for zero random int.
3420
3421 Mon Sep 10 16:55:49 2001  Tim Janik  <timj@gtk.org>
3422
3423         * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
3424         behaviour which havoc broke. they have to default to 1.0 for
3425         expand behaviour.
3426
3427         * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
3428
3429 2001-09-10  Padraig O'Briain <padraig.obriain@sun.com>
3430
3431         * gtk/gtkstyle.c (_gtk_style_peek_property_value)
3432         Amend previous change to avoid runtime error in g_param_spec_ref()
3433
3434 Mon Sep 10 06:58:56 2001  Owen Taylor  <otaylor@redhat.com>
3435
3436         * gtk/gtkrc.c (insert_rc_property): Fix blank line
3437         in the wrong place.
3438
3439 Mon Sep 10 06:50:39 2001  Owen Taylor  <otaylor@redhat.com>
3440
3441         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
3442         do a lookup immediately after creating style->property_cache,
3443         since bsearch crashes on zero length for Solaris.
3444         (Found by Padraig O'Briain.)
3445
3446 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
3447
3448         * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
3449         Really return NULL if not set.
3450         (gtk_widget_init): Remove unused varaible.
3451         
3452 2001-09-09  Alexander Larsson  <alla@lysator.liu.se> 
3453
3454         * configure.in:
3455         Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
3456         in cvs.
3457
3458 2001-09-08  Havoc Pennington  <hp@pobox.com>
3459
3460         * gtk/gtkaccelgroup.c: add docs to functions that I can imagine 
3461         people might want to use
3462
3463 2001-09-08  Havoc Pennington  <hp@pobox.com>
3464
3465         * gtk/gtkalignment.c (gtk_alignment_class_init): default
3466         xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
3467
3468         * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
3469
3470         * gtk/gtktextiter.c: fix docs
3471         (gtk_text_iter_spew): get rid of this
3472
3473         * gtk/gtklayout.c: docs
3474
3475         * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
3476         to center image and label together, instead of having image on
3477         left and label centered, patch/suggestion from Jacob
3478
3479         * gtk/gtkdialog.c: docs
3480
3481 Sat Sep  8 14:19:49 2001  Jonathan Blandford  <jrb@redhat.com>
3482
3483         * gtk/gtkliststore.c: Write documentation
3484         * gtk/gtktreestore.c: Write documentation
3485
3486 Sat Sep  8 13:53:09 2001  Owen Taylor  <otaylor@redhat.com>
3487
3488         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
3489         with GArray and bsearch(), to remove dependency on a still
3490         evolving interface that we want to keep private to glib/gobject. 
3491
3492 2001-09-08  Havoc Pennington  <hp@pobox.com>
3493
3494         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
3495         docs fixes
3496
3497         * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
3498
3499         * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
3500
3501         * gtk/gtksocket.c (gtk_socket_steal): docs fixes
3502
3503         * gtk/gtkscrolledwindow.h: docs fixes
3504
3505         * gtk/gtkimage.c (gtk_image_new): docs fixes
3506
3507 Sat Sep  8 01:49:22 2001  Owen Taylor  <otaylor@redhat.com>
3508
3509         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a 
3510         false alarm  constness warning with a cast.
3511
3512         * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
3513         for the inside-gdk case.
3514
3515 Sat Sep  8 01:44:18 2001  Jonathan Blandford  <jrb@redhat.com>
3516
3517         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
3518         remove g_print.
3519
3520         * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
3521         change models, #59899
3522
3523 2001-09-07  Havoc Pennington  <hp@pobox.com>
3524
3525         * gtk/gtkmain.c: move some docs inline
3526
3527 2001-09-07  Havoc Pennington  <hp@pobox.com>
3528
3529         * gtk/gtk.h: tsk tsk, jrb broke the build
3530
3531 Fri Sep  7 20:45:29 2001  Jonathan Blandford  <jrb@redhat.com>
3532
3533         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
3534         Removed 'fill' attribute.  It was silly b/c that was a property of
3535         the cell renderer, anyway.
3536         (gtk_tree_view_column_render): Actually render the packed
3537         renderers.
3538         * doc/tree-column-sizing.txt: initial devel documentation.
3539         * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
3540         * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
3541
3542         * tests/testtreefocus.c: fix up to reflect above changes.
3543         * tests/testtreeview.c: ditto
3544         * demos/gtk-demo/stock_browser.c: ditto
3545
3546 2001-09-07  Alex Larsson  <alexl@redhat.com>
3547
3548         * gdk/linux-fb/gdkcolor-fb.c:
3549         Removed unused function.
3550         
3551         * gdk/linux-fb/gdkdrawable-fb2.c
3552         * gdk/linux-fb/gdkfont-fb.c:
3553         Use PangoLanguage functions.
3554
3555         * gdk/linux-fb/gdkinput.c:
3556         * gdk/linux-fb/gdkselection-fb.c:
3557         Fix const warnings.
3558         
3559         * gdk/linux-fb/gdkwindow-fb.c:
3560         Fix warning. Implement gdk_window_set_icon_list() and
3561         gdk_window_get_frame_extents(). (No icon support yet though.)
3562
3563         * gtk/gtkwindow.c (gtk_window_get_position):
3564         If window->frame is set get the extents of it instead.
3565         
3566 Fri Sep  7 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
3567
3568         * gtk/gtkwidget.c (gtk_widget_get_default_colormap): 
3569         Make the default default colormap the GdkRGB colormap,
3570         not the system colormap.
3571
3572         * gtk/gtkinvisible.c (gtk_invisible_init) 
3573           gtk/gtkwindow.c (gtk_window_init): Set the current
3574         colormap, as returned by _gtk_widget_peek_colormap()
3575         on the widget.
3576
3577         * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
3578         to GTK+. Make it return %NULL instead of the default
3579         colormap if no colormap has explicitely been pushed.
3580
3581         * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
3582         colormaps on ancestral widgets before defaulting the
3583         the system default colormap.
3584
3585         * docs/Changes-2.0.txt: explain colormap changes.
3586
3587 2001-09-07  Havoc Pennington  <hp@redhat.com>
3588
3589         * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes 
3590         #57424
3591
3592 Fri Sep  7 18:17:47 2001  Owen Taylor  <otaylor@redhat.com>
3593
3594         * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, 
3595         make gdk_set_use_xshm a noop. Remove --no-xshm command line
3596         option. If we aren't autodetecting properly, we need
3597         to fix the problem, or at least make it an environment
3598         variable setting, to avoid problems with propagating
3599         to embedded children, plugins, etc.
3600
3601         * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
3602
3603         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
3604         (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
3605         New function to render a pixmap and mask for a particular colormap.
3606
3607         * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
3608         gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
3609         of internal implementation of the same.
3610
3611 2001-09-07  Havoc Pennington  <hp@redhat.com>
3612
3613         * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
3614         debug code that seems to have caused a breakpoint in valid cases
3615         
3616         * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
3617         pointer on the first view when adding the second view, fixes
3618         crash when closing gtk-demo text test with active selection
3619
3620         * gtk/gtktextbuffer.c
3621         (gtk_text_buffer_remove_selection_clipboard): don't leave dead
3622         clipboards in the list of clipboards - probably fixes #59836
3623
3624 Fri Sep  7 11:51:44 2001  Owen Taylor  <otaylor@redhat.com>
3625
3626       Make gdkx.h the only installed header from gdk/x11.
3627       All structures in gdk/x11 are opaque.
3628
3629         * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
3630         Don't install gdk{drawable,pixmap,window}-x11.h.
3631
3632         * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: 
3633         Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, 
3634         GdkVisualClass into C files.
3635
3636         * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
3637
3638         * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
3639         gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
3640         Add public functions to replace previously exported direct
3641         structure access.
3642         gdk_x11_colormap_get_{xdisplay,xcolormap} 
3643         gdk_x11_cursor_get_{xdisplay,xcursor},
3644         gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, 
3645         gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
3646         gdk_x11_gc_get_{xdisplay,ximage}
3647         
3648         * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
3649         GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
3650
3651       Fix a number of variables and functions that were exported
3652       "accidentally" from GDK.
3653
3654         * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
3655         gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, 
3656         gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
3657         gdk_event_notify, gdk_queued_events, gdk_queued_tail,
3658         gdk_event_new, gdk_events_queue, gdk_events_unqueue,
3659         gdk_event_queue_find_first, gdk_event_queue_remove_link,
3660         gdk_event_queue_append, gdk_event_button_generate,
3661         gdk_debug_flags, gdk_default_filters, gdk_parent_root.
3662
3663         * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, 
3664            gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
3665         gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, 
3666         gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
3667         gdk_use_xshm, gdk_input_ignore_core.
3668
3669         * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
3670         #defines to namespace functions into the private _gdk_ 
3671         namespace.
3672
3673         * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
3674         to replace gdk_parent_root exported variable. Adjust and
3675         deprecate GDK_ROOT_PARENT().
3676
3677         * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
3678         GDK_ROOT_PARENT usage, remove includes of port-specific
3679         headers.
3680
3681         * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for 
3682         _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, 
3683         gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
3684
3685         * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
3686         docs/Changes-2.0.txt: Remove gdk_wm_protocols, 
3687         gdk_wm_delete_window functions, gdk_wm_take_focus, 
3688         use gdk_atom_intern() instead.
3689
3690         * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
3691           gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} 
3692           gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
3693           gtk/gtkselection.c 
3694         Unexport gdk_selection_property, just use 
3695         gdk_atom_intern ("GDK_SELECTION").
3696
3697         * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: 
3698         Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, 
3699         GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, 
3700         GdkVisualprivate, gdk_x11_gc_flush.
3701
3702       Make a number of public exports of variables into functions
3703       to increase encapsulation.
3704
3705         * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h 
3706         gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, 
3707         move to gdkinternals.h. Add gdk_device_get_core_pointer ().     
3708
3709         * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
3710         docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, 
3711         gdk_error_warnings.
3712
3713         * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
3714           docs/Changes-2.0.txt: 
3715         s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
3716         s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
3717         Add gdk_x11_get_default_xdisplay().
3718
3719         * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c 
3720         win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c 
3721         gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, 
3722         Don't export gdk_progclass, move --class command line
3723         option and handling to common portion of GDK.
3724
3725       Miscellaneous fixes:
3726
3727         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
3728         g_return_val_if_fail that should have been g_return_if_fail.
3729
3730         * gdk/gdkinternals.h gdk/gdkprivate.h: Move
3731         gdk_synthesize_window_state() to the semi-public gdkprivate.h.
3732
3733         * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
3734         X11 dependency.
3735
3736         * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: 
3737         Remove unused gdk_key_repeat_disable/restore.
3738
3739         * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c 
3740         x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
3741         Remove unused gdk_null_window_warnings variable.
3742
3743         * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
3744         it can be retrieved from the repository; it is too far
3745         from functional to be worth having people check out;
3746         it would be easier to start from scratch, I suspect.
3747
3748         * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
3749
3750         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
3751         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
3752         Fix some accidentally global variables and unused global variables.
3753
3754         * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c 
3755         gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: 
3756         Fix some accidentally global variables and unused global variables.
3757
3758       Add some space for future expansion to multihead.
3759
3760         * gdk/gdkdrawable.h: Add four reserved function pointers
3761         for future expansion of GdkDrawableClass.
3762
3763         * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
3764         where we can put a GdkScreen * later.
3765
3766 2001-09-07  Havoc Pennington  <hp@redhat.com>
3767
3768         * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
3769         adjustments after validating destination yrange; fixes #53918
3770         (This may cause other issues, but I hope it won't)
3771         
3772 2001-09-05  Havoc Pennington  <hp@redhat.com>
3773
3774         * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
3775         line into start line, update the character counts in parent nodes; 
3776         caused a bug when end and start line had different parent nodes.
3777
3778 2001-08-30  Havoc Pennington  <hp@redhat.com>
3779         
3780         * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
3781         assertion that tag is in a table
3782
3783 Fri Sep  7 12:48:56 2001  Matthias Clasen  <matthiasc@poet.de>
3784
3785         * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
3786         g_strcasecmp on NULL strings. (#59058)
3787
3788 2001-09-06  Alex Larsson  <alexl@redhat.com>
3789
3790         * gtk/gtkbin.c:
3791         * gtk/gtkfontsel.c:
3792         * gtk/gtkspinbutton.c:
3793         * gtk/gtktipsquery.c:
3794         Use GtkType/GType instead of uint.
3795
3796 Tue Sep  4 18:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
3797
3798         * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
3799         sort column.
3800
3801         * gtk/gtktreestore.c (gtk_list_store_init): ditto
3802
3803         * gtk/gtktreesortable.c: add docs.
3804
3805 Tue Sep  4 09:37:19 2001  Owen Taylor  <otaylor@redhat.com>
3806
3807         * Version 1.3.7
3808
3809         * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove 
3810         docs for gtk-config
3811
3812         * modules/input/Makefile.am (install-data-local): Don't
3813         run gtk-query-immodules if DESTDIR is set.
3814
3815         * NEWS: Various additions.
3816
3817 Tue Sep  4 03:12:25 2001  Tim Janik  <timj@gtk.org>
3818
3819         * NEWS: updates for 1.3.7 release.
3820
3821 Mon Sep  3 18:03:56 2001  Jonathan Blandford  <jrb@redhat.com>
3822
3823         * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
3824         handle default sort feature
3825
3826         * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
3827         new function to handle default sort.
3828         (gtk_tree_sortable_has_default_sort_func): check if default sort
3829         is set.
3830
3831         * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func): 
3832         handle default sort feature
3833
3834 Sun Sep  2 20:32:36 2001  Jonathan Blandford  <jrb@redhat.com>
3835
3836         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
3837         vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
3838         #59731
3839
3840 Sun Sep  2 17:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
3841
3842         * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
3843         vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
3844         time, #59727
3845
3846         * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
3847         correctly.
3848
3849 Sun Sep  2 21:41:21 2001  Owen Taylor  <otaylor@redhat.com>
3850
3851         * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
3852         so that we don't eternally update the keymap after we
3853         get a change notification.
3854
3855         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
3856         incorrect cast.
3857
3858 Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
3859
3860         * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
3861         it working. It mostly works now, although there're still a few issues
3862         to be worked out.
3863
3864         * tests/testtreesort.c (main): changes to have a better test
3865         application for the GtkTreeModelSort.
3866
3867 Sun Sep  2 23:19:07 2001  Kristian Rietveld  <kristian@planet.nl>
3868
3869         * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
3870         fix for bug #59222.
3871
3872         * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
3873         gpointer search_data argument to function definition and
3874         prototype, to match GtkTreeViewSearchEqualFunc typedef.
3875
3876 Sat Sep  1 21:57:27 2001  Kristian Rietveld  <kristian@planet.nl>
3877
3878         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
3879         per jrb's request.
3880
3881 Fri Aug 31 20:01:23 2001  Jonathan Blandford  <jrb@redhat.com>
3882
3883         * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
3884
3885         * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
3886
3887 Wed Aug 29 20:40:58 2001  Owen Taylor  <otaylor@redhat.com>
3888
3889         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard): 
3890         Instead of always mirroring the selection to a single PRIMARY
3891         selection, allow it to be mirrored to any number of clipboards.
3892
3893         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove, 
3894         just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
3895
3896         * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
3897         GtkClipboard argument, and for paste_clipboard, the
3898         @override_location argument from @paste_primary.
3899
3900         * gtk/gtktextview.c: Adapt to above change.
3901         
3902 2001-08-30  Havoc Pennington  <hp@redhat.com>
3903
3904         * gtk/gtktextview.c (invalidated_handler): put validate idle at
3905         resize - 2 just for flexibility
3906
3907 2001-08-30  Havoc Pennington  <hp@redhat.com>
3908
3909         * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
3910         object from the empty-child-anchor case by drawing a little box.
3911         
3912         * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
3913         if the child anchor has no anchored widgets - fixes #59328.
3914
3915         Also, remove bizarre deletion of preedit string that seems to have
3916         gotten in here somehow.
3917
3918 2001-08-30  Havoc Pennington  <hp@redhat.com>
3919
3920         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
3921         to #58420 from Hidetoshi Tajima and Matthias Clasen
3922
3923 Wed Aug 29 17:28:04 2001  Jonathan Blandford  <jrb@redhat.com>
3924
3925         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3926         change color when the GtkTreeView loses focus.
3927
3928         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
3929         ditto.
3930         
3931         * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
3932
3933 2001-08-28  Havoc Pennington  <hp@pobox.com>
3934
3935         * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
3936
3937 2001-08-28  Havoc Pennington  <hp@pobox.com>
3938
3939         * demos/gtk-demo/main.c (setup_default_icon): add default icon
3940
3941         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
3942         warning fix
3943         (gtk_radio_button_new_with_label): warning fix
3944
3945         * gtk/gtkdnd.c: used some random GtkImage private structs, 
3946         update to reflect GtkImage changes
3947
3948         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
3949         whether the hint is supported, just always set the icon. A task
3950         list might want to use it even if the WM doesn't, and the WM may
3951         change over time. Also, XDeleteProperty() if list == NULL.
3952
3953         * gtk/gtkwindow.c (gtk_window_set_icon_list)
3954         (gtk_window_get_icon_list)
3955         (gtk_window_set_icon)
3956         (gtk_window_get_icon)
3957         (gtk_window_set_default_icon_list)
3958         (gtk_window_get_default_icon_list):
3959         new functions
3960
3961         * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
3962
3963         * gtk/gtkimage.c: Implement property support, bug #59408
3964
3965         * gtk/gtkcontainer.c (gtk_container_add): make the warning message
3966         on reparent-without-removing-first a bit more helpful.
3967         Let's just destroy this FAQ.
3968
3969 Tue Aug 28 21:37:11 2001  Matthias Clasen  <matthiasc@poet.de>
3970
3971         * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
3972         instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
3973
3974 Tue Aug 28 21:00:44 2001  Matthias Clasen  <matthiasc@poet.de>
3975
3976         * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
3977         of use_text_format to the end of the function. (#56447)
3978
3979 Tue Aug 28 20:06:07 2001  Matthias Clasen  <matthiasc@poet.de>
3980
3981         * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
3982         only in response to an area_prepared signal.
3983
3984 2001-08-28  Alex Larsson  <alexl@redhat.com>
3985
3986         * gtk/gtkwidget.c (gtk_widget_class_init):
3987         Make unrealize GTK_RUN_LAST.
3988
3989 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
3990
3991         * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
3992         with_label and with_mnemonic should create radio buttons, not
3993         check buttons
3994
3995 Mon Aug 27 15:28:56 2001  Jonathan Blandford  <jrb@redhat.com>
3996
3997         * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
3998         * tests/treestoretest.c (make_window): ditto
3999         * demos/gtk-demo/main.c (create_tree): ditto
4000         * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
4001
4002 Mon Aug 27 15:18:14 2001  Jonathan Blandford  <jrb@redhat.com>
4003
4004         * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
4005         GTK selection types rather than GtkTreeSelectionMode.
4006
4007         * docs/Changes-2.0: Add comment about selection change.
4008
4009 Mon Aug 27 14:21:30 2001  Jonathan Blandford  <jrb@redhat.com>
4010
4011         * gtk/gtkenums.h (GtkSelectionMode): deprecate
4012         GTK_SELECTION_EXTENDED.
4013
4014         * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
4015         Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
4016
4017         * gtk/gtkctree.c: ditto
4018
4019         * gtk/gtklist.c: ditto
4020
4021         * gtk/gtktree.c: ditto
4022
4023 Mon Aug 27 14:18:12 2001  Owen Taylor  <otaylor@redhat.com>
4024
4025         * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
4026         of typos in compat macros. (#59624, Skip Montaro)
4027
4028 Sun Aug 26 20:00:00 2001  Owen Taylor  <otaylor@redhat.com>
4029
4030         * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
4031         macro.
4032
4033          (patch from ERDI Gergo  <cactus@cactus.rulez.org>, #58920)
4034  
4035         * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
4036         interface to be a standard setter from gtk_menu_item_right_justify.
4037         (gtk_menu_item_get_right_justified): a getter to go with the setter
4038
4039         * gtk/gtkmenuitem.h: Add a deprecated compat macro for
4040         gtk_menu_item_right_justify.
4041
4042         * demos/gtk-demo/menus.c tests/testgtk.c: Switch to 
4043         gtk_menu_item_set_right_justified.
4044  
4045 2001-08-27  Jens Finke <jens@gnome.org>
4046
4047         * gtk+.spec.in: Updated to match gpp requirements, reworked the
4048         files section to make it work with 1.3.x releases.
4049
4050 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
4051
4052         * gtk/gtkbutton.[ch]:
4053         Add properties for labels, mnemonics and stock items.
4054         Added C accessor functions for the properties.
4055         Removed deprecated button->child.
4056
4057         * gtk/gtkradiobutton.c:
4058         * gtk/gtktogglebutton.c:
4059         Update to use the functions in GtkButton.
4060
4061         * gtk/gtkcheckbutton.c:
4062         Update to use the functions in GtkButton.
4063         Changed size allocation of child. Now only gets as much
4064         space as it requests.
4065
4066         * gtk/gtkclist.c:
4067         Don't use GtkButton->child
4068
4069         * gtk/gtklabel.c:
4070         Fixed typo in docs
4071         
4072 2001-08-26  Alexander Larsson  <alla@lysator.liu.se>
4073
4074         * tests/testgtk.c:
4075         * tests/Makefile.am:
4076         Ressurect the properties test.
4077         I don't care if it is inferior, I just want to test my property code.
4078
4079 2001-08-25  Chema Celorio  <chema@celorio.com>
4080
4081         * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
4082         gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
4083         and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
4084
4085 2001-08-24  Havoc Pennington  <hp@pobox.com>
4086
4087         * gtk/gtkcompat.h: remove gtk_menu_* compat defines; 
4088         these are already in gtkmenu.h, and the copies
4089         here were broken.
4090
4091         Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
4092
4093         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
4094         special-case bitmaps to allow no colormap
4095         (bitmap1): implement no-colormap bitmap-getting
4096         (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
4097         alpha
4098         (rgb8): indentation
4099         (rgb1a, rgb1): change the way we read the data out of the image, 
4100         old way didn't seem to work quite right.
4101
4102         I'm pretty sure a lot of the rgbconvert code is still broken.
4103         
4104         * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
4105         above position constraint (I really intended to do this before,
4106         don't know what's up with that)
4107         (gtk_XParseGeometry): shut up gcc
4108
4109         * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
4110         and "0" should have been. remove the attempted 4-bytes-at-once
4111         optimization, it was totally broken.
4112
4113 Sat Aug 25 19:02:39 2001  Owen Taylor  <otaylor@redhat.com>
4114
4115         * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
4116         on push to buttons (based on patch from Soeren Sandmann, #54720)
4117
4118           - Add child_displacement_x/y style properties to control how far the
4119             child moves when the button is depressed.
4120
4121           - Add non-exported function _gtk_button_set_depressed to clean
4122             up the handling of the in/out shadow and separate it frmo
4123             widget->state.
4124
4125           - Lots of code cleanup and simplification of state handling
4126             for GtkButton/GtkToggleButton.
4127  
4128         * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
4129         of button movement. testgtk + testgtkrc == test ugly GTK+, as always.   
4130
4131 Fri Aug 24 23:09:05 2001  Owen Taylor  <otaylor@redhat.com>
4132
4133         * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility 
4134         and make gtk_image_new() take no arguments. The compiler will
4135         catch it, and it is vastly more useful than having
4136         gtk_image_new() be a deprecated alias for gtk_image_new_from_image().  
4137
4138         * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
4139         to add tearoff-title property (#51319, Lee Mallabone)
4140
4141 Fri Aug 24 22:12:32 2001  Owen Taylor  <otaylor@redhat.com>
4142
4143         * gtk/gtkmenuitem.[ch]: Remove unused and useless function
4144         gtk_menu_item_configure(). (#58925)
4145
4146 Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
4147
4148         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
4149         "use_align" to give people the option to just make a cell visible.
4150
4151         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
4152         we were scrolling past the end of the tree.
4153
4154         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
4155         rename gtk_tree_view_column_pack_start_cell_renderer to
4156         gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
4157
4158 Fri Aug 24 12:02:08 2001  Owen Taylor  <otaylor@redhat.com>
4159
4160         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
4161         a stray g_object_ref() left over from gtk_object_ref/sink.
4162         (Pointed out by Josh Pritikin.)
4163
4164 Thu Aug 23 19:33:54 2001  Owen Taylor  <otaylor@redhat.com>
4165
4166         * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
4167         to gtk_container_get_children. Added deprecated compatibility
4168         macro. (Suggested by Vitaly Tishkov, #59051)
4169
4170         * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
4171         calls.
4172
4173 Thu Aug 23 19:10:01 2001  Owen Taylor  <otaylor@redhat.com>
4174
4175         * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate 
4176         gtk_menu_bar_append/prepend/insert, forgot to do this
4177         when we deprecated gtk_menu_append/prepend/insert.
4178
4179         * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
4180         compat macros.
4181
4182         * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
4183         renamed by compat macro.
4184
4185         * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
4186         gtk_font_selection_dialog_get_font(). (Suggested by
4187         Vitaly Tishkov, #59383)
4188
4189 Thu Aug 23 18:23:31 2001  Owen Taylor  <otaylor@redhat.com>
4190
4191         * gtk/gtktexttag.c (gtk_text_tag_table_get_size): 
4192         Rename from gtk_text_tag_table_size(). (#59366)
4193
4194 Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
4195
4196         * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
4197         gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
4198         gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
4199         (#59173).
4200
4201 Thu Aug 23 16:26:47 2001  Tim Janik  <timj@gtk.org>
4202
4203         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): 
4204         * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
4205         handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
4206
4207 Wed Aug 22 19:15:39 2001  Owen Taylor  <otaylor@redhat.com>
4208
4209         [ Patch from Sebastian Wilhelmi, 52790 ]
4210
4211         * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
4212
4213         * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: 
4214         Move compatibility macros from g[dt]kcompat.h to within 
4215         #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
4216
4217         * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
4218
4219         * demos/Makefile.am demos/gtk-demo/Makefile.am 
4220           docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
4221           tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
4222
4223         * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
4224                  testpixbuf.c}: Fix usages of deprecated functions.
4225
4226 Wed Aug 22 19:03:27 2001  Jonathan Blandford  <jrb@redhat.com>
4227
4228         * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
4229         when changing models.
4230
4231 Wed Aug 22 18:25:46 2001  Jonathan Blandford  <jrb@redhat.com>
4232
4233         * gtk/gtktreeview.c: Fix selection.  I think it's all dandy now.
4234         We check the current event for modifiers rather than try to trap
4235         all presses.
4236
4237 2001-08-22  Anders Carlsson  <andersca@gnu.org>
4238
4239         * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
4240         It's LIST_STORE, not LISTSTORE.
4241
4242 Tue Aug 21 12:43:29 2001  Owen Taylor  <otaylor@redhat.com>
4243
4244         * gtk/gtk.h: Remove commented out gtkpacker reference.
4245
4246 2001-08-21  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4247
4248         * configure.in (all_loaders): Add tga loader, 
4249         patch by Nicola Girardi. (#56067)
4250
4251 Tue Aug 21 02:57:13 2001  Jonathan Blandford  <jrb@redhat.com>
4252
4253         * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
4254         a little.  More needs to be done tomorrow.
4255
4256 Tue Aug 21 00:45:55 2001  Jonathan Blandford  <jrb@redhat.com>
4257
4258         * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
4259
4260 Mon Aug 20 23:48:18 2001  Jonathan Blandford  <jrb@redhat.com>
4261
4262         * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
4263         reported by Kristian Rietveld <kristian@planet.nl> to handle row
4264         == NULL.
4265         (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
4266         <kristian@planet.nl> to change destroy order.
4267
4268 Mon Aug 20 11:39:44 2001  Jonathan Blandford  <jrb@redhat.com>
4269
4270         * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
4271         correct marshaller.
4272
4273 Sun Aug 19 03:22:59 2001  Jonathan Blandford  <jrb@redhat.com>
4274
4275         * gtk/gtkliststore.c: Fix up warnings, #58928.
4276
4277         * gtk/gtktreeselection.h: Change signal prototype, #58647
4278
4279         * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
4280         #59221.
4281
4282         * gtk/gtkstyle.c: Actually prelight arrow, #50981
4283         
4284 2001-08-18  Hans Breuer  <hans@breuer.org>
4285
4286         * gdk/gdk.def : updated externals
4287
4288         * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
4289         is required to get (at least) visible in entry fields. Some selections
4290         are really handled now - even on win32 - but copying via middle
4291         mouse button into a different app needs to wait ... 
4292
4293         * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
4294         mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
4295
4296         * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
4297         handling. I'm not sure if it is better now, but at least not worse
4298
4299         * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
4300         with SetWindowPos () which allows more fine-tuning backing-store wise
4301
4302         * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
4303         Also changed move/resize to be more like the X version.
4304
4305         * gtk/gtk.def : updated externals
4306
4307 2001-08-19  Sven Neumann  <sven@gimp.org>
4308
4309         * gtk/gtktooltips.c
4310         * tests/testtreesort.c
4311         * tests/treestoretest.c: inserted some casts to get rid of compiler
4312         warnings.
4313
4314 Sun Aug 19 01:44:44 2001  Jonathan Blandford  <jrb@redhat.com>
4315
4316         * gtk/gtktreeviewcolumn.c
4317         (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
4318
4319         * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
4320         (_gtk_tree_view_find_node): If *node is NULL,
4321         *tree should be NULL too.
4322
4323         * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
4324         column/renderers.
4325         * tests/testtreecolumns.c: ditto
4326         * tests/testtreefocus.c: ditto
4327         * tests/testtreesort.c: ditto
4328         * tests/testtreeview.c: ditto
4329         * tests/treestoretest.c: ditto
4330
4331 Sat Aug 18 04:34:31 2001  Jonathan Blandford  <jrb@redhat.com>
4332
4333         * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
4334         signals; is_expander/is_expanded.
4335
4336         * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
4337         pixbufs.
4338
4339         * gtk/gtktreeview.c: set above properties.
4340
4341 Sat Aug 18 23:01:33 2001  Owen Taylor  <otaylor@redhat.com>
4342
4343         * gtk/gtkwidget.h: Really remove set_default_style().
4344
4345         * docs/Changes-2.0.txt: added a note about
4346         gtk_widget_push/pop/set_default_style.
4347
4348 2001-08-18  Havoc Pennington  <hp@pobox.com>
4349
4350         * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
4351         hints_changed in addition to the other cases.
4352         (gtk_window_move_resize): include last position from configure
4353         notify in debug spew
4354
4355 2001-08-18  James Henstridge  <james@daa.com.au>
4356
4357         * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
4358         second argument to the weak ref notify, cleaning up some uglyness.
4359         (gtk_accel_group_attach): remove and add the weak notifier when
4360         changing the accel groups slist.
4361         (gtk_accel_group_detach): same here.
4362
4363 2001-08-17  Darin Adler  <darin@bentspoon.com>
4364
4365         * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
4366         missing parameters to utf8 functions to make it compile.
4367
4368 Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
4369
4370         * gtk/gtktreeprivate.h:
4371         * gtk/gtktreeview.c: (gtk_tree_view_class_init),
4372         (gtk_tree_view_init), (gtk_tree_view_set_property),
4373         (gtk_tree_view_get_property), (gtk_tree_view_destroy),
4374         (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
4375         (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
4376         (gtk_tree_view_set_destroy_count_func),
4377         (gtk_tree_view_set_enable_search),
4378         (gtk_tree_view_get_enable_search),
4379         (gtk_tree_view_get_search_column),
4380         (gtk_tree_view_set_search_column),
4381         (gtk_tree_view_get_search_equal_func),
4382         (gtk_tree_view_set_search_equal_func),
4383         (gtk_tree_view_search_dialog_destroy),
4384         (gtk_tree_view_search_position_func),
4385         (gtk_tree_view_interactive_search),
4386         (gtk_tree_view_search_delete_event),
4387         (gtk_tree_view_search_button_press_event),
4388         (gtk_tree_view_search_key_press_event),
4389         (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
4390         (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
4391         * gtk/gtktreeview.h:
4392         Add heavily modified patch from Kristian Rietveld to handle
4393         interactive searching.
4394
4395 Fri Aug 17 17:30:34 2001  Tim Janik  <timj@gtk.org>
4396
4397         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
4398         string parameter.
4399
4400         * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
4401         GtkMenuShell::selection_done, now that we have it, instead of 
4402         ::deactivate so we're not tearing the menu apart and notify
4403         the user prematurely.
4404
4405 Thu Aug 16 05:22:01 2001  Tim Janik  <timj@gtk.org>
4406
4407         * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
4408         window, clear window->need_default_position to avoid infinite loops.
4409         some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
4410
4411 Wed Aug 15 12:36:55 2001  Tim Janik  <timj@gtk.org>
4412
4413         * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
4414         code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
4415         (gtk_tree_view_set_property): don't cast possible NULL objects.
4416         (gtk_tree_view_destroy): reset the model to NULL.
4417
4418         * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
4419         parent_class handler.
4420
4421 2001-08-17  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4422
4423         * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
4424
4425 2001-08-17  Anders Carlsson  <andersca@gnu.org>
4426
4427         * gtk/gtkstyle.c (create_expander_affine): Divide with floating
4428         point numbers so that the result will be floating point.
4429
4430 2001-08-16  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4431
4432         * tests/testgtk.c (create_handle_box): 
4433         (create_toolbar): Replace gtk_window_set_policy calls by
4434         gtk_window_set_resizable.
4435
4436 2001-08-16  Jakub Steiner <jimmac@ximian.com>
4437
4438         * gtk/stock-icons/dialog_info.png: new style bulb
4439         * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
4440         * gtk/stock-icons/dialog_warning.png: need a hand?
4441         * gtk/stock-icons/stock_add.png, stock_remove.png: I hope 
4442           the aa border gets chopped off ok
4443         * gtk/stock-icons/stock_colorselector.png: using the new hand
4444         * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what 
4445           this one is for, but the old icon was butt ugly.
4446         * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
4447         * gtk/stock-icons/stock*_insert_object.png: "
4448         * gtk/stock-icons/stock_index.png: using new hand icon
4449         * gtk/stock-icons/stock*_new.png: the document template being used 
4450           elsewhere too
4451         * gtk/stock-icons/stock*_print*.png: new print and print preview 
4452           icons (panel/menu)  
4453         * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert 
4454           icons based on Tuomas' floppy image.
4455         * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
4456         * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
4457         * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
4458         * gtk/stock-icons/stock*_undelete.png: "
4459         * gtk/stock-icons/stock_preferences.png: I have a version with a 
4460           document base if the sliders are no good.
4461         * gtk/stock-icons/stock_properties.png: properties 
4462         
4463
4464         * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas' 
4465           (tigert@ximian.com) clipboard icons
4466         * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
4467         * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
4468         * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
4469           little bigger IMHO
4470
4471 2001-08-16  Sven Neumann  <sven@gimp.org>
4472
4473         * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
4474
4475 2001-08-15  Padraig O'Briain  <padraig.obriain@sun.com>
4476
4477         * gtk/gtkcellrenderertext.c:
4478         Avoid warning when specifying NULL for "attributes" property
4479
4480 2001-08-15  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4481
4482         * docs/debugging.txt: Add a warning about --enable-debug=no,
4483         some editorial changes.
4484
4485 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4486
4487         * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h, 
4488         gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update 
4489         debugging info, remove unused debug flags. (#58330)
4490
4491 Mon Aug 13 13:17:32 2001  Jonathan Blandford  <jrb@redhat.com>
4492
4493         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): 
4494         (gtk_tree_selection_select_all): Remove strict checking for rows.
4495
4496 2001-08-13  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4497         
4498         * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips): 
4499         Don't remove the tooltip window when the tip text changes. (#15891)
4500
4501 Sun Aug 12 12:02:09 2001  Owen Taylor  <otaylor@redhat.com>
4502
4503         * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
4504         $(srcdir).
4505
4506 Sun Aug 12 10:39:12 2001  Owen Taylor  <otaylor@redhat.com>
4507
4508         * Makefile.am (EXTRA_DIST): Fix problem with trying to
4509         dist files from intl/, which is no longer there.
4510
4511 2001-08-11  Hans Breuer  <hans@breuer.org>
4512
4513         * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
4514           gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, 
4515           gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, 
4516           gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, 
4517           gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
4518           gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
4519
4520         * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
4521           gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
4522         GDK_TYPE_EVENT signals
4523
4524         * gtk/gtkalignment.c : removed 'direct allocation bug',
4525         which Tim discovered while reading the patch
4526
4527 Sat Aug 11 14:32:14 2001  Owen Taylor  <otaylor@redhat.com>
4528
4529         * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
4530         compat macros for push/pop/set_visual that were supposed
4531         to be added a long time ago, but got dropped. 
4532
4533 Fri Aug 10 16:55:53 2001  Tim Janik  <timj@gtk.org>
4534
4535         * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
4536         property notifies.
4537
4538 2001-08-07  Havoc Pennington  <hp@pobox.com>
4539
4540         * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
4541
4542         * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
4543         some fixage is needed here, but nothing simple. Owen understands
4544         it. ;-)
4545
4546         * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
4547         sizing and positioning.  Also, fix bug in compute_geometry_hints
4548         (width/height confusion for setting min size). 
4549         (gtk_window_move): new function
4550         (gtk_window_resize): new function
4551         (gtk_window_get_size): new function
4552         (gtk_window_get_position): new function
4553         (gtk_window_parse_geometry): new function
4554         
4555         * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
4556         (gtk_widget_get_size_request): new function
4557         (gtk_widget_get_usize): delete, that was a short-lived function
4558         ;-)
4559         (gtk_widget_set_usize): deprecate
4560         (gtk_widget_set_uposition): deprecate, make it a trivial 
4561         gtk_window_move() wrapper
4562         (gtk_widget_class_init): remove x/y/width/height properties,
4563         add width_request height_request
4564         
4565         * demos/*: update to avoid deprecated functions
4566         
4567         * gtk/gtklayout.c: add x/y child properties
4568
4569         * gtk/gtkfixed.c: add x/y child properties, and get rid of 
4570         uses of "gint16"
4571
4572         * tests/testgtk.c (create_window_sizing): lots of tweaks to window
4573         sizing test
4574
4575         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
4576         configure events on toplevel windows are always in root window
4577         coordinates, following ICCCM spec that all synthetic events 
4578         are in root window coords already, while real events are 
4579         in parent window coords. Previously the code assumed that 
4580         coords of 0,0 were parent window coords, which was 
4581         really broken.
4582   
4583         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
4584         warning
4585  
4586         * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS 
4587         and GDK_HINT_USER_SIZE so we can set USSize and USPosition 
4588         hints in gtk_window_parse_geometry()
4589  
4590         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
4591         new USER_POS USER_SIZE hints    
4592
4593 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4594
4595         * tests/prop-editor.c (properties_from_type): Use 
4596         g_object_class_list_properties to get the param specs 
4597         for a given type. (#58609)
4598
4599 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4600
4601         * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
4602         free the text_aa parts. (#57549)
4603
4604 2001-08-09  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4605
4606         * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
4607         not the foreground color. (#57621)
4608
4609 2001-08-09  Alexander Larsson <alexl@redhat.com>
4610
4611         * gdk/win32/gdkfont-win32.c:
4612         Update to the new pango win32 api.
4613
4614 2001-08-08  HideToshi Tajima  <tajima@eng.sun.com>
4615
4616         * gtk/gtkclipboard.c (request_text_received_func): ask apps for
4617         COMPOUND_TEXT instead of TEXT
4618         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
4619         interpret the return value of g_string_to_compound_text()
4620         (#55152)
4621
4622 2001-08-08  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4623
4624         * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
4625         fail if iter is NULL. (#58347)
4626
4627 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4628
4629         * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
4630         some off-by-one issues, fixing selection of line-ends. (#50323)
4631
4632 2001-08-07  Matthias Clasen  <matthiasc@waldgeist.poet.de>
4633
4634         * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
4635         functions in order to make mouse operation work again in the
4636         color wheel. (#58604)
4637
4638 2001-08-07  James Henstridge  <james@daa.com.au>
4639
4640         * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
4641         the accelerator when the accel object is changed.  Fixes bug
4642         #58628.
4643
4644 2001-08-06  HideToshi Tajima  <tajima@eng.sun.com>
4645
4646         * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
4647         Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
4648         (gnome bugzilla #58202)
4649
4650 2001-08-06  Havoc Pennington  <hp@pobox.com>
4651  
4652         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole 
4653         GDK_IS_WINDOW() branch of this was a bit screwed up, because 
4654         it was expecting a GdkWindow, not a GdkWindowImplX11.
4655  
4656         Also, we were getting the window rect in screen coords 
4657         and the screen rect in window coords then intersecting 
4658         them; instead, get window rect in window coords.
4659  
4660         Finally, there were codepaths that resulted in a stuck server grab
4661         (when the window was fully onscreen, or on gdk_image_new()
4662         failure); make the server ungrab thing a bit more
4663         robust/consistent.
4664
4665 2001-08-06  Sven Neumann  <sven@gimp.org>
4666
4667         * gdk/gdkpango.c (gdk_pango_context_destroy): 
4668         check if info->colormap != NULL before unref'ing it. It might have
4669         been set to NULL using gdk_pango_context_set_colormap().
4670
4671 Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>
4672
4673         * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha): 
4674         Fix conversion from float to int so that we don't get
4675         skew in the int => float => int roundtrip. 
4676         (#58120, reported by Vitaly Tishkov). Also fix problem
4677         where if no alpha was set, the returned alpha
4678         from (say) set_current_alpha() was returned as 1, not 65535.
4679
4680 Sun Aug  5 09:48:08 2001  Owen Taylor  <otaylor@redhat.com>
4681
4682         * gtk/gtklist.c (gtk_list_clear_items): Fix
4683         problem with selecting a new focus child.
4684
4685         * gtk/gtklist.c (gtk_list_clear_items): Clear 
4686         list->undo/list_focus_child after unparenting
4687         child, since unparenting the child can result
4688         in list->last_focus_child being set. (#58024)
4689
4690         * Makefile.am (SUBDIRS): Add target specific pc
4691         files to DISTCLEANFILES.
4692
4693         * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
4694         (58327, Matthias Clasen)
4695
4696 Sat Aug  4 19:28:21 2001  Owen Taylor  <otaylor@redhat.com>
4697
4698         * tests/testgtk.c: Patch from Hans (with various modifications),
4699         to add the ability to use testgtk as a rough-and-ready
4700         benchmark. Try, 'testgtk --bench all:5' (if you want decent
4701         numbers, run without a window manager)
4702
4703 2001-08-04 Alexander Larsson <alexl@redhat.com>
4704
4705         * gdk/win32/gdkinput.c:
4706         Add #ifdef HAVE_WINTAB around wintab.h include.
4707
4708         * gtk/gtk.def:
4709         Removed marshals that have been moved to glib.
4710         Commented out plug and socket. They didn't compile for me 
4711         on win32.
4712
4713 2001-08-04  Hans Breuer  <hans@breuer.org>
4714
4715         * gtk/stocks-icons/makefile.msc : new file
4716         * gtk/makefile.msc.in : use it
4717
4718         * gtk/gtkstyle.c : not all platforms do provide M_PI and
4719         friends, but luckily there is G_PI
4720
4721         * gtk/gtk.def : updated
4722
4723         * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP 
4724         windows WS_POPUP, but only those without a parent. This fixes the 
4725         mis-alignment between the selectable (temp, input only) window and 
4726         the window text of GtkLabel.
4727
4728         (gdk_window_show) : respect private->state when actually showing
4729         the window.
4730
4731         (gdk_window_set_transient_for) : Implementation from Wolfgang 
4732         Sourdeau <wolfgang@contre.com> ported to 2.0 and added some 
4733         error handling. Should fix #50586.
4734
4735         * gdk/win32/gdkevents-win32.c : beautify log output
4736
4737 2001-08-04  Michael Natterer  <mitch@gimp.org>
4738
4739         * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
4740         Need to show the image after adding it to the GtkImageMenuItem.
4741         This used to work without in testgtk because of the
4742         gtk_widget_show_all() at the end of the function.
4743         (Closes #54978).
4744
4745 Tue Jul 31 22:59:33 2001  Tim Janik  <timj@gtk.org>
4746
4747         * gtk/gtknotebook.c (gtk_notebook_get_child_property): 
4748         (gtk_notebook_set_child_property): fix finding of child's page,
4749         since we have to validly deal with labels and menus here as well.
4750         (gtk_notebook_get_child_property): fix warning.
4751         (gtk_notebook_class_init): property tab_pack is of type
4752         GTK_TYPE_PACK_TYPE (enum) not boolean.
4753         (gtk_notebook_find_child): don't always warn, we might be looking
4754         for a label or menu child.
4755         (gtk_notebook_map): fix mapping of panel.
4756
4757         * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
4758         widget's mapped state, regardless of the value being set equals
4759         old settings, since things like REALIZED(parent) or MAPPED(parent)
4760         may have changed since the old value was set. make it an error to
4761         invoke this function on a toplevel widget.
4762
4763 2001-07-31  Darin Adler  <darin@bentspoon.com>
4764
4765         * gdk/gdkprivate.h:
4766         * gdk/x11/gdkx.h:
4767         Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
4768
4769         * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
4770         GTK_OBJECT.
4771
4772 Tue Jul 31 15:34:57 2001  Jonathan Blandford  <jrb@redhat.com>
4773
4774         * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops.  Stupid
4775         scoping error pointed out by matthiasc@poet.de.
4776
4777 2001-07-31  Sven Neumann  <sven@gimp.org>
4778
4779         * demos/gtk-demo/appwindow.c
4780         * demos/gtk-demo/item_factory.c
4781         * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
4782
4783 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
4784
4785         * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
4786         argument order for g_signal_has_handler_pending.
4787
4788 Sun Jul 29 17:14:01 2001  Tim Janik  <timj@gtk.org>
4789
4790         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
4791         instead of long deprecated g_scanner_stat_mode().
4792
4793 2001-07-29  Hans Breuer  <hans@breuer.org>
4794
4795         * gdk/makefile.msc : build in the backend dir after
4796         auto-generating files
4797
4798         * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
4799         with code from win32-production-branch.
4800
4801         *  gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
4802         before calling DestroyWindow, which indirectly calls 
4803         gdk_window_destroy_notify ()
4804
4805         (performance patch merged from win32-production-branch)
4806         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments): 
4807         Use PatBlt() instead of LineTo() when possible (solid single-pixel pen, 
4808         R2_COPYPEN rop). It is claimed to be much faster.
4809
4810 Fri Jul 27 11:31:15 2001  Jonathan Blandford  <jrb@redhat.com>
4811
4812         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
4813         add an "attributes" property to the text renderer for ATK.
4814
4815 2001-07-26  Alex Larsson  <alexl@redhat.com>
4816
4817         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
4818         Initialize image->bits_per_pixel from the drawable, not from
4819         the root window.
4820
4821         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
4822         Fix cast. argument is an IMPL already.
4823
4824 2001-07-15  James Henstridge  <james@daa.com.au>
4825
4826         * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
4827         (gtk_window_remove_accel_group): same here.
4828         (gtk_window_key_press_event): same here.
4829
4830         * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
4831         (gtk_widget_remove_accelerator): same here.
4832         (gtk_widget_remove_accelerators): same here.
4833
4834         * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
4835
4836         * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
4837         instead of GtkObject.
4838
4839         * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
4840         now takes GObjects.
4841
4842         * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
4843         pass a GObject to gtk_accel_group_entries_from_object.
4844         (gtk_item_factory_create_item): s/accel_widget/accel_object/
4845
4846         * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
4847
4848         * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
4849
4850         * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
4851         GObjects can have accelerators set now.  Add compatibility
4852         defines.
4853
4854         * gtk/gtkmarshal.list: add missing marshallers.
4855
4856         * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
4857         accelerators on plain GObjects.  gtk_accel_group_object_destroy
4858         has been converted into a weak reference, and
4859         gtk_accel_group_delete_entries is now a destroy notify for that
4860         piece of data.
4861
4862 2001-07-23  Ron Steinke  <rsteinke@w-link.net>
4863
4864         * gdk/gdkdraw.c: Added a check on the colormap depth to
4865         gdk_drawable_set_colormap()
4866         * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
4867         patch to fix colorsel and my patch to fix gdk_drawable_get_image()
4868         for pixmaps without visuals (more specifically, bitmaps)
4869         * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
4870         doesn't set a colormap with the wrong depth
4871
4872
4873 2001-07-22  Anders Carlsson  <andersca@gnome.org>
4874
4875         * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
4876         expander_height and expander_width properties with a single
4877         property, expander_size.
4878         (gtk_tree_view_init): Set the tab_offset to expander_size
4879         plus some padding.
4880         (gtk_tree_view_unrealize): Remove the expand/collapse
4881         timeout if it exists.
4882         (coords_are_over_arrow): Fix a small bug.
4883         (gtk_tree_view_motion_draw_column_motion_arrow): Use
4884         expander_size.
4885         (gtk_tree_view_draw_focus): Use "treeview" instead of
4886         "add-mode" as detail when drawing the focus.
4887         (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
4888         instead of "add-mode" as detail when drawing the focus.
4889         (gtk_tree_view_deleted): If we have a node currently being
4890         expanded or collapsed, remove the timeout and set the node 
4891         to NULL.
4892         (gtk_tree_view_queue_draw_arrow): New function that just
4893         redraws the arrow of a node.
4894         (gtk_tree_view_draw_arrow): Use expander_size instead of
4895         expander_width/expander_height, also pass a different
4896         expander_style to gtk_paint_expander depending on the 
4897         state of the node being drawn.
4898         (expand_collapse_timeout): New function for expanding 
4899         or collapsing a node depending on the previous state.
4900         (gtk_tree_view_real_expand_row): Add timeout and set 
4901         correct state for node being expanded.
4902         (gtk_tree_view_real_collapse_row): Add timeout and set
4903         correct state for node being collapsed.
4904
4905         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
4906         information about the node currently being expanded or
4907         collapsed, and also a timeout id.
4908
4909         * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
4910         with expander_style for draw_expander.
4911
4912         * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
4913         expander_style.
4914         (create_expander_affine): New function for creating an 
4915         expander affine.
4916         (apply_affine_on_point): New function for applying an 
4917         affine to a point.
4918         (gtk_default_draw_expander): Modified to take expander_style
4919         instead of is_open, and to draw the rectangle rotated differently
4920         depending on the expander style.
4921         (gtk_paint_expander): Replace is_open with expander_style.
4922
4923         * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
4924
4925         * gtk/gtkenums.h: Add expander style enum.
4926
4927 2001-07-21  Jonas Borgström  <jonas@codefactory.se>
4928
4929         * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
4930         value from gtk_tree_model_get_iter, the model might be empty.
4931
4932 2001-07-20  Hans Breuer  <hans@breuer.org>
4933
4934         * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
4935         gdk/gdkinput.c like the other backends
4936
4937         * gdk/win32/gdkinput-win32.h :
4938         * gdk/win32/gdkinput.c :
4939         * gdk/win32/gdkvisual-win32.c :
4940         * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
4941         GdkVisual GObjectification. UNTESTED for pen-devices because
4942         I simply have none.
4943
4944         * gdk/gdk.def :
4945         * gtk/gtk.def : updated externals
4946
4947         * gtk/gtkiconfactory.c :
4948         * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL) 
4949         before passing &error to functions to avoid strange crashes
4950         
4951         * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
4952
4953         * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
4954
4955         * gtk/makefile.msc.in : updated
4956
4957 Thu Jul 19 15:35:32 2001  Owen Taylor  <otaylor@redhat.com>
4958
4959         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
4960         Add property support. (#51858)
4961
4962 Thu Jul 19 14:56:33 2001  Owen Taylor  <otaylor@redhat.com>
4963
4964         * gtk/gtkaccellabel.c (gtk_accel_label_class_init) 
4965         * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
4966         Use Shift/Ctrl instead of Shft/Ctl. (#53807)
4967
4968 Thu Jul 19 11:41:00 2001  Owen Taylor  <otaylor@redhat.com>
4969
4970         * gtk/gtkcolorsel.c: Add propery support (roughly
4971         based on patch from Lee Mallabone, #51014)
4972
4973         * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
4974         deprecated, since we already g_warning() on it.
4975
4976 Thu Jul 19 14:24:34 2001  Owen Taylor  <otaylor@redhat.com>
4977
4978         * gtk/gtkentry.c (gtk_entry_set_positions): Fix
4979         typo that sometimes caused selection not to work properly.
4980
4981         * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
4982         entry when tabbing in. (#57743)
4983         
4984         * gtk/gtkentry.c (gtk_entry_motion_notify): If the
4985         user drags up above or down below the entry, move
4986         to the end or the beginning of the entry. (Suggestion
4987         from Jay Cox, #50940)
4988
4989         * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
4990         a current selection, then when moving by chars or
4991         words, move to the end of the selection rather than
4992         from entry->current_pos. (Suggestion from Jay Cox,
4993         #50942)
4994         
4995 Thu Jul 19 12:14:28 2001  Owen Taylor  <otaylor@redhat.com>
4996
4997         * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
4998         set window->decorated. (Patch from Hidetoshi Tajima,
4999         #55846)
5000
5001 Sat Jul  7 02:50:14 2001  Owen Taylor  <otaylor@redhat.com>
5002
5003         * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
5004         the widget/child realization/mapping invariants.
5005
5006         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions 
5007         gtk_widget_[get/set]_child_visible() to control
5008         whether visible children of a mapped window are
5009         mapped.
5010
5011         * docs/widget_system.txt: Updated for changes in
5012         container contract, and addition of GTK_CHILD_VISIBLE.
5013
5014         * gtk/gtkcontainer.c: Add generic map()/unmap()
5015         functions that work for almost all containers.
5016
5017         * gtk/gtknotebook.c gtk/gtkpacker.c: Use 
5018         gtk_widget_set_child_visible() where necessary.
5019
5020         * gtk/*.c: Remove excess map(), unmap(), and 
5021         realization/mapping invariant enforcing code
5022         from many containers.
5023
5024 Wed Jul 18 19:51:45 2001  Owen Taylor  <otaylor@redhat.com>
5025
5026         * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style): 
5027         Get the foreground color from 'text', nor 'fg'. (#57568)
5028
5029 Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
5030
5031         * gtk/*.c: Patch from Matthias Clasen to remove remove
5032         all instances of g_return_if_fail (foo != NULL); that are
5033         immediately before a g_return_if_fail (GTK_IS_FOO (foo));
5034         since the second check catches the NULL anyways.
5035
5036 Wed Jul 18 18:23:05 2001  Owen Taylor  <otaylor@redhat.com>
5037
5038         * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
5039         gtktreeview.c: Fix idles and timeouts to be properly surrounded by 
5040         GDK_THREADS_ENTER()/LEAVE() pairs.
5041
5042         * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
5043         to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
5044         pairs. (Problem found by M. Meeks)
5045
5046 2001-07-18  Darin Adler  <darin@bentspoon.com>
5047
5048         * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
5049         that we don't get a g_warning message every time we register a new
5050         icon size.
5051
5052         * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
5053         using pixel variable of the correct type.
5054         
5055 Fri Jul 13 15:33:32 2001  Owen Taylor  <otaylor@redhat.com>
5056
5057         * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
5058         so that using X functions on a GdkWindow is possible, if
5059         a little hairy.
5060
5061         * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
5062         and ts_origin of a GC, so that external parties can offset/restore
5063         a GC, when using gdk_window_get_internal_paint_info().
5064
5065 2001-07-17  Darin Adler  <darin@bentspoon.com>
5066
5067         * .cvsignore: Ignore the sgml directory made by gtkdoc.
5068         * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
5069         instead of the deprecated gtk_window_set_policy.
5070         * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
5071         * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
5072         function to get rid of warning and some code too.
5073         * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
5074         missing const.
5075         * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
5076         unused local.
5077         * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
5078         const.
5079         * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
5080         (gdk_utf8_to_compound_text): Add missing const.
5081         * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
5082         * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
5083         cast and get rid of an unnecessary one.
5084         * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
5085         * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
5086         local.
5087         * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
5088         Remove unused local.
5089         * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
5090         missing const.
5091         * tests/testsocket.c: (add_child): Add cast so the printf format
5092         doesn't make us implicitly depend on what integer type
5093         gtk_socket_get_id returns.
5094         * tests/testtextbuffer.c: Add missing const.
5095         * tests/testtreefocus.c: (main): Remove unused local.
5096         * tests/treestoretest.c: (iter_remove): Remove unused local.
5097         (uppercase_value): Remove unused function.
5098         (make_window): Add statement to quiet the compiler's uninitialized
5099         variable warning.
5100
5101 Sat Jul 14 12:47:35 2001  Tim Janik  <timj@gtk.org>
5102
5103         * gtk/gtkrange.c:
5104         (second_timeout): 
5105         (initial_timeout): 
5106         (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
5107         (gtk_range_calc_layout): compute the new layout based on an
5108         adjustment->value being passed in as argument.
5109         (gtk_range_button_press): for button2 slider warps, first recalc
5110         the layout, then adjust the value. also, use update_slider_position()
5111         for adjusting the value, so we keep pixel quantisation at which we
5112         usually operate (upon motion or button releases). the reason for this
5113         is that, we can't change the adjustment upon button2 presses to a non
5114         quantised value and upon button2 release re-quantise the value since
5115         that'd alter the value even if we didn't get any motion events (causing
5116         unexpected scroll area warps upon release and/or slider pixel-jitter).
5117         (gtk_range_motion_notify): update the slider position from queried
5118         coordinates, not event coordinates.
5119
5120 Fri Jul 13 09:47:52 2001  Tim Janik  <timj@gtk.org>
5121
5122         * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
5123         the default gc values are: width=0, CapBut, JoinMiter.
5124
5125 2001-07-13  Anders Carlsson  <andersca@codefactory.se>
5126
5127         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
5128         into account the xpad and ypad when calculating the width and the
5129         height of the pixbuf cel.
5130
5131 Thu Jul 12 18:29:40 2001  Owen Taylor  <otaylor@redhat.com>
5132
5133         * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group): 
5134         Rename to gtk_radio_menu_item_get_group(), add deprecated
5135         alias. (#57044)
5136
5137         * gtk/gtkfilesel.c: Indentation fix.
5138
5139 Thu Jul 12 17:33:00 2001  Owen Taylor  <otaylor@redhat.com>
5140
5141         * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias 
5142         Hasselmann to fix warnings in compat macros. 
5143         (#56773)
5144
5145         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix 
5146         stupid wrong cast added in last patch.
5147
5148 Thu Jul 12 16:51:34 2001  Owen Taylor  <otaylor@redhat.com>
5149
5150         * gtk/gtkwidget.c: Replace a couple of inappropriate calls to 
5151         GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
5152
5153 Thu Jul 12 14:06:19 2001  Owen Taylor  <otaylor@redhat.com>
5154
5155         * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
5156         missing cast.
5157
5158         * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
5159         NULL/FALSE return value confusion.
5160
5161         * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
5162         problem when scrollbar completely fills range. (Patch
5163         from  Matthias Clasen, #57047)
5164
5165 Thu Jul 12 13:53:28 2001  Owen Taylor  <otaylor@redhat.com>
5166
5167         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
5168         clean up when handling events for move-resize emulation.
5169         (Problem traced down by Matthias Clasen, #57271)
5170
5171 Thu Jul 12 13:43:27 2001  Owen Taylor  <otaylor@redhat.com>
5172
5173         * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
5174           gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
5175           gtk/gtkfontsel.c gtk/gtkhandlebox.c 
5176           gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
5177           gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
5178           gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
5179           gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
5180         Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
5181
5182 2001-07-09  Peter Williams  <peterw@ximian.com>
5183
5184         * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
5185         for when srcdir != builddir
5186
5187 Mon Jul  9 12:50:51 2001  Jonathan Blandford  <jrb@redhat.com>
5188
5189         * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
5190         gtk_tree_model_get_iter_root.
5191
5192         * gtk/gtkliststore.c: Add a bunch of g_return statements.
5193         (gtk_list_store_iter_n_children): Fix up.
5194
5195         * gtk/gtktreestore.c: Add a bunch of g_return statements.
5196
5197 Fri Jul  6 15:38:33 2001  Owen Taylor  <otaylor@redhat.com>
5198
5199         * gtk/gtkwidget.c (gtk_widget_class_init):
5200         G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
5201         restore some workingness.
5202
5203         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix 
5204         handle of window type for input-only windows.
5205
5206 Thu Jul  5 21:53:46 2001  Owen Taylor  <otaylor@redhat.com>
5207
5208         * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
5209         Patch from Gregory Merchan to add 
5210         gtk_button_box_set_secondary(), which separates
5211         the child into a separate group from the normal
5212         buttons. (#56331)
5213
5214         * gtk/gtkdialog.c: Make help buttons secondary by
5215         default.
5216
5217         * gtk/gtkbbox.c: Added a child property "secondary".
5218
5219         * gtk/testgtk.c: Turn on the help button for the 
5220         color selector to check that it properly appears
5221         as secondary.
5222
5223 Mon Jul  2 01:09:37 2001  Owen Taylor  <otaylor@redhat.com>
5224  
5225         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
5226         gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
5227         Add gdk_set_pointer_hooks() to allow pointer-querying to
5228         be hooked by an event record/playback system like GERD.
5229         (#56914)
5230         
5231 Thu Jul  5 08:57:07 2001  Owen Taylor  <otaylor@redhat.com>
5232
5233         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
5234         in the right value of initial_emission to
5235         gtk_widget_set_style_internal (#57091)
5236
5237 Wed Jul  4 23:17:04 2001  Owen Taylor  <otaylor@redhat.com>
5238
5239         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
5240         Make compile.
5241
5242         * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
5243         with calling gtk_widget_set_style_internal() with
5244         the old style, not the new style. (#56989)
5245
5246 Wed Jul  4 22:35:40 2001  Owen Taylor  <otaylor@redhat.com>
5247
5248         * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
5249           gtk/gtkwidget.c:
5250         Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
5251         not GTK_WIDGET_GET_ANCESTOR ... see 
5252         http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
5253         Indicate the best practice in the docs for gtk_widget_get_toplevel().
5254
5255         * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
5256         so GtkPlug can give the correct signals when transforming
5257         from a child to a toplevel.
5258         
5259         * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
5260         reparentation correctly.
5261
5262         * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
5263         Propagate the previous_toplevel argument down properly.
5264
5265         * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
5266         of wrong atr list.
5267
5268         * gtk/gtkplug.[ch]: Add an "embedded" signal.
5269
5270         * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
5271         signals.
5272
5273         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add 
5274         functions gtk_plug_get_id(), gtk_socket_get_id(),
5275         to avoid the user having to worry about realization,
5276         and gdkx.h.
5277
5278         * tests/testsocket.c: Extend to try out the new signals
5279         and gtk_plug/socket_get_id().
5280
5281         * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
5282         setting of underline attributes.
5283
5284         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
5285         DestroyNotify events from SubstructureNotifyMask
5286
5287         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
5288         Switch GDK_WINDOW_TYPE (window) as needed.
5289
5290         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
5291         allow creation of toplevel windows as children of
5292         foreign windows.
5293
5294         * gtk/gtkplug.c: Remove hacks involving changing private
5295         fields of GdkWindow.
5296
5297         * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make 
5298         exactly the same signals and notification
5299         be emitted for local embedding as for inter-process
5300         embedding.
5301
5302 2001-07-04  James Henstridge  <james@daa.com.au>
5303
5304         * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
5305
5306 Mon Jul  2 16:53:25 2001  Owen Taylor  <otaylor@redhat.com>
5307
5308         * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
5309         XEMBED embedding add a _XEMBED_INFO property to the
5310         client with version number and a "mapped" flags.
5311         Use the mapped flag instead of the racy MapRequestEvent
5312
5313         * gtk/gtksocket.c: Clean up the gtk_socket_steal()
5314         code to reliably set things (when the child is a passive
5315         embedder participating in the XEMBED protocol) intead
5316         of just being a hack for embedding non-participating
5317         programs. Fix various bugs and race conditions.
5318         
5319         * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
5320         work by simply making the GtkSocket the gtk parent
5321         of the GtkPlug. Set a flag in this case and make
5322         the GtkPlug work like a normal container by overriding
5323         methods such as check_resize and "chaining past" GtkWindow
5324         to GtkBin.
5325
5326         * gtk/gtkentry.c (gtk_entry_real_activate)
5327           gtk/gtkmain.c (gtk_propagate_event): 
5328         Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
5329         
5330         * gtk/gtkwidget.c (gtk_widget_get_toplevel,
5331         gtk_widget_get_ancestor):
5332         Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
5333         might not give the expected result and recommend
5334         an alternative.
5335
5336         * tests/testsocket.c tests/testsocket_child.c
5337         tests/testsocket_common.c tests/Makefile.am: Extended
5338         to test different type of adding plugs to sockets
5339         (local,active,passive), and to test mapping/unmapping
5340         the plug.
5341
5342         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
5343         mark the window as destroyed until after we
5344         called _gdk_windowing_window_destroy().
5345         (_gdk_windowing_window_destroy() may use GDK functions
5346         on the window.)
5347
5348         * gdk/x11/gdkinput.c: Remove the check for finalization - 
5349         devices can be finalized under some circumnstances.
5350  
5351         * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix 
5352         small problem with GDK_TYPE_DEVICE.
5353  
5354 2001-07-02  Havoc Pennington  <hp@pobox.com>
5355
5356         * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to 
5357         use constants not atoms.
5358
5359 2001-07-02  James Henstridge  <james@daa.com.au>
5360
5361         * gtk/gtktextview.c (gtk_text_view_class_init): same here for
5362         PANGO_TYPE_TAB_ARRAY.
5363
5364         * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
5365         for PANGO_TYPE_TAB_ARRAY.
5366
5367         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
5368         s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
5369
5370         * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
5371         the file.  Remove Pango types from defs -- they are now defined in
5372         libpango.
5373
5374 Mon Jul  2 06:35:10 2001  Tim Janik  <timj@gtk.org>
5375
5376         * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
5377
5378         * gtk/gtkobject.c (gtk_object_destroy): invoke
5379         g_object_run_dispose().
5380
5381         * gtk/gtkwindow.c: 
5382         * gtk/gtkwidget.c: 
5383         * gtk/gtkobject.c:
5384         * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
5385         method.
5386
5387 Sat Jun 30 20:44:48 2001  Owen Taylor  <otaylor@redhat.com>
5388
5389         * gtk/gtktypeutils.c (gtk_type_class): Remove
5390         change check for GTK_TYPE_OBJECT derivation to
5391         G_TYPE_OBJECTS - it's Tim-approved to use this 
5392         for arbitary objects.
5393
5394         * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
5395         prefix gtk_container_dequeue_resize_handler().
5396
5397         * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
5398         to the hierarachy_changed signal, since you otherwise
5399         have to always keep that around.
5400
5401         * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
5402         for extra argument to hierarchy_changed.
5403
5404 Tue Jun 26 19:39:03 2001  Owen Taylor  <otaylor@redhat.com>
5405
5406         * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
5407         for style to mean "revert to default style"
5408
5409         * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
5410           gtk_widget_restore_default_style): Make this functions
5411         deprecated aliases for gtk_widget_set_style (widget, NULL).
5412
5413         * gtk/gtkwidget.[ch]: Remove:
5414            gtk_widget_set_default_style ()
5415            gtk_widget_push_style ()
5416            gtk_widget_pop_style ()
5417         These functions interact are overriden by RC files, and
5418         thus virtually useless, and complicated.
5419
5420 Fri Jun 22 18:49:48 2001  Owen Taylor  <otaylor@redhat.com>
5421
5422         * gtk/gtkrc.c: Add a GtkRcContext structure to hold 
5423         most of the previous global variables in gtkrc.c. This is
5424         in preparation for multi-head, since each screen can
5425         have different GtkSettings and RC information.
5426
5427         * gtk/gtkrc.[ch]: 
5428
5429         * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
5430         GtkSettings parameter to GtkRcStyle::parse.
5431
5432         * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c: 
5433         Add two new settings gtk-theme-name, gtk-key-theme-name,
5434         for RC files that are loaded by name after reading
5435         the default RC files.
5436         
5437         * gtk/gtkrc.c: Allow priorities for styles, as wll as
5438         bindings.
5439
5440         * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
5441         and use it by default for RC files loaded via 
5442         gtk-theme-name, gtk-key-theme-name.
5443
5444         * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
5445         gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string) 
5446         tests/testgtkrc: Require pathnames to be absolute.
5447
5448         * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
5449         the source when parsing, since the operation of looking up a
5450         pixmap from an RC file depends on the parsing context.
5451
5452         * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
5453         reset RC styles on all widgets when files are reparsed.
5454
5455         * tests/testgtk.c (create_rc_file) 
5456           gtk/gtkwindow.c (gtk_window_read_rcfiles): 
5457         Simplify, now that gtk_rc_reparse_all() resets styles on
5458         all widgets itself.
5459
5460         * gtk/gtkmain.c (gtk_get_default_language): Fix broken
5461         return value.
5462
5463         * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
5464         GtkSettings argument.
5465
5466         * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
5467         gtk_settings_get_global().
5468
5469         * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
5470         to get the appropriate GtkSettings for a widget. (For now,
5471         just gets the default GtkSetttings.) 
5472
5473         * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
5474           gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
5475         changes.
5476
5477         * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
5478         getting a style for a path without actually having a widget.
5479         (Allows using a style for a subpart of a widget, for
5480         example.)
5481
5482         * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
5483         the RC files to be reloaded for just one GtkSettings
5484         (not sure how useful this really is.)
5485
5486         * gtk/gtkrc.h: Deprecate
5487         gtk_rc_add_widget_name/widget_class/class_style
5488
5489 2001-06-30  Alex Larsson  <alexl@redhat.com>
5490
5491         * gdk/linux-fb/gdkinput-none.c:
5492         * gdk/linux-fb/gdkinput.c:
5493         * gdk/linux-fb/gdkinputprivate.h:
5494         Convert GdkDevice to a GObject.
5495
5496         * linux-fb/gdkprivate-fb.h:
5497         * linux-fb/gdkvisual-fb.c:
5498         Convert GdkVisual to a GObject.
5499
5500 2001-06-29  Alex Larsson  <alexl@redhat.com>
5501
5502         * gdk/gdkvisual.h:
5503         * gdk/gdkcolor.c:
5504         * gdk/x11/gdkx.h:
5505         * gdk/x11/gdkvisual-x11.c:
5506         Convert GdkVisual to a GObject.
5507
5508         * gdk/gdkinput.h:
5509         * gdk/gdkevents.c:
5510         * gdk/x11/gdkinputprivate.h:
5511         * gdk/x11/gdkinput-gxi.c:
5512         * gdk/x11/gdkinput-none.c:
5513         * gdk/x11/gdkinput-x11.c:
5514         * gdk/x11/gdkinput-xfree.c:
5515         * gdk/x11/gdkinput.c:
5516         Convert GdkDevice to a GObject.
5517
5518 Fri Jun 29 22:13:28 2001  Jonathan Blandford  <jrb@redhat.com>
5519
5520         * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
5521         to just plain new, fixing the number of columns, and column types
5522         at creation time.
5523
5524         * gtk/gtkliststore.c (gtk_list_store_new): ditto.
5525
5526         * gtk/gtkcellrenderertext.c
5527         (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
5528         height to a specific font.
5529
5530         * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
5531
5532         * tests/*c: change to work with new store models.
5533
5534 2001-06-29  Havoc Pennington  <hp@redhat.com>
5535
5536        * Throughout: fixes to compile with G_DISABLE_COMPAT
5537         (s/g_signal_connectc/g_signal_connect/,
5538         s/g_signal_newc/g_signal_new/,
5539         s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
5540
5541 Fri Jun 29 03:14:16 2001  Jonathan Blandford  <jrb@webwynk.net>
5542
5543         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
5544         add path argument to selection callbacks.
5545
5546 Fri Jun 29 00:13:34 2001  Jonathan Blandford  <jrb@redhat.com>
5547
5548         * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
5549         walk through a model in a depth first manner, with the option to
5550         break out.
5551
5552 Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
5553
5554         * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
5555         <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
5556         column and follow it when draged, rather than a location in the
5557         view. "expander_column" property and drawing functions changed
5558         accordingly.  Fixes bug #55942.
5559
5560         (gtk_tree_view_{set,get}_expander_column): Now works with a
5561         GtkTreeViewColumn* instead of int.
5562
5563 Thu Jun 28 22:53:18 2001  Owen Taylor  <otaylor@redhat.com>
5564
5565         *  gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init(). 
5566
5567 2001-06-28  Havoc Pennington  <hp@pobox.com>
5568
5569         * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
5570         image data to the screen, using a server grab to avoid race
5571         conditions.
5572
5573         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove 
5574         check for NULL return from gtk_image_new_from_stock(), it never
5575         returns NULL.
5576         (gtk_item_factory_create_item): fix bug where we parsed the stock
5577         ID as an inline pixbuf
5578
5579         * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
5580
5581         * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
5582         support (should be using binding set here)
5583
5584         * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
5585         support (should be using binding set here)
5586
5587         * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad 
5588         support
5589
5590         * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
5591
5592         * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
5593
5594         * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
5595
5596         * gtk/gtkimcontextsimple.c
5597         (gtk_im_context_simple_filter_keypress): keypad
5598
5599         * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad 
5600
5601         * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
5602
5603         * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
5604
5605         * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
5606         should be binding-setted)
5607
5608         * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
5609
5610         * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
5611
5612         * gtk/gtkcalendar.c: numeric keypad fixes
5613
5614         * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
5615         support
5616
5617         * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
5618         screwup
5619
5620         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha): 
5621         clip the render area to the drawable's clip region in advance,
5622         so we don't get data from the server that we don't need.
5623
5624         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
5625         check return value of gdk_pixbuf_get_from_drawable(), fall back 
5626         to bilevel alpha if we can't get the pixbuf to composite against.
5627
5628         * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
5629
5630         * gdk/gdkimage.c (gdk_image_get_colormap): add
5631         gdk_image_set_colormap, gdk_image_get_colormap
5632
5633         * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
5634         take a region of the image, instead of converting the entire
5635         image.
5636
5637         * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
5638         keybinding signal. Add default bindings for it. Add default
5639         handler for show_help that shows the tooltip for the widget.
5640
5641         * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
5642         "close" keybinding signal, remove key press handler.
5643
5644         * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
5645         it's not our usual practice to leave a deprecated function around
5646         with a runtime warning, plus we don't want it to appear in docs,
5647         plus if we make them yellow no one will want to change them
5648         anyhow.
5649
5650 Thu Jun 28 23:53:31 2001  Tim Janik  <timj@gtk.org>
5651
5652         * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
5653         GTK_WIDGET_REALIZE() for resize queueing.
5654
5655         * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
5656         GTK_WIDGET_REALIZE() for post event delivery destruction upon
5657         GDK_DESTROY.
5658         
5659         * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
5660         sompensate for former (pre-2.0) connect_after() facility.
5661         (gtk_widget_send_expose): 
5662         (gtk_widget_event): assert the widget is realized, since event delivery
5663         to non-realized widgets is essentially a bug. event handlers should
5664         be able to unconditionally rely on widget->window (unless they
5665         emit events on their own which can trigger widget destruction).
5666         (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
5667         logic. event delivery happens as follows:
5668         a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
5669         b) if !was_handled in (a) and the widget is still realized, emit event-
5670            specific signal (RUN_LAST handler). returns was_handled.
5671         c) emission of GtkWidget::event-after for notification if the widget is
5672            still realized (regardless of was_handled from previous stages, no
5673            class handler). no return value.
5674         d) was_handled gets passed on to caller, to determine further
5675            propagation. if the widget got unrealized meanwhile, was_handled
5676            is returned as TRUE.
5677
5678         * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
5679         gdk_event_get_coords().
5680
5681 Thu Jun 28 17:18:41 2001  Tim Janik  <timj@gtk.org>
5682
5683         * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
5684         age 0, binary age 0. depend on glib 1.3.7.
5685
5686         * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
5687
5688         * gtk/gtkmenubar.c: same here.
5689         
5690         * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
5691
5692         * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
5693
5694         * gtk/gtkentry.c (gtk_entry_focus_in): same here.
5695         
5696         * gtk/gtkmenubar.c (add_to_window): likewise.
5697         
5698         * gtk/gtktextbtree.c: and here...
5699         
5700         * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
5701         
5702         * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
5703         
5704         * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
5705         
5706         * gtk/gtktreeviewcolumn.c:
5707         (_gtk_tree_view_column_set_tree_view): yet again.
5708
5709         * demos/gtk-demo/images.c (progressive_timeout): demonstrate
5710         signal connections without g_signal_connect_data().
5711         
5712         * demos/gtk-demo/stock_browser.c (do_stock_browser): second
5713         demo of the matter.
5714         
5715         * demos/testpixbuf.c (main): running out of equality phrases for the
5716         ChangeLog, but had to adapt connections here as well.
5717         
5718         * demos/testanimation.c (progressive_timeout): and for the fun of it,
5719         tackled this the same way.
5720         
5721         * tests/testtext.c (create_view): ok, it's becoming a pain at this
5722         point, but had enough enery for one more fix.
5723
5724         * tests/testtreecolumns.c (main): stand up man, do your work!
5725
5726         * tests/testtreeview.c (set_columns_type): ok, this is the last file i
5727         fix, either that's been all of it or CVS gtk is broken yet again.
5728         
5729 2001-06-29  James Henstridge  <james@daa.com.au>
5730
5731         The following changes correspond to bug #56812
5732
5733         * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
5734         code for GdkDevice.
5735
5736         * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
5737         GdkCursor.
5738
5739 2001-06-19  Havoc Pennington  <hp@pobox.com>
5740
5741         * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
5742         for mapping a window without fooling with stacking order, but
5743         updating the "withdrawn" flag
5744
5745         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
5746         filtering as soon as possible, moving move resize and wmspec_check
5747         handling after the event filter.  Make default filter apply to all
5748         events, not just those with no GdkWindow wrapped around the X
5749         window. Fix a FIXME about how the window could be a pixmap using 
5750         RTTI; this of course assumes GDK_IS_WINDOW() is optimized. 
5751
5752         Also, be robust against events not on a known GdkWindow.
5753
5754         * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
5755         gdk_x11_ungrab_server): export reference-counted server grabs, so
5756         other people can grab server over a GDK function that also does
5757         so.
5758
5759 Wed Jun 27 19:40:31 2001  Jonathan Blandford  <jrb@redhat.com>
5760
5761         * gtk/gtktreeviewcolumn.c
5762         (gtk_tree_view_column_pack_start_cell_renderer): New function to
5763         reflect that you can (hypothetically) pack cell renderers into a
5764         column.
5765         (gtk_tree_view_column_pack_end_cell_renderer): ditto.
5766         (gtk_tree_view_column_cell_is_visible): Move more functionality to
5767         the column.
5768         (gtk_tree_view_column_cell_can_focus): Move more functionality to
5769         the column.
5770
5771         * gtk/gtktreeview.c: Move to use new column-packing code.
5772         (gtk_tree_view_real_expand_row): remove totally braindead code.
5773         (gtk_tree_view_real_collapse_row): ditto.
5774
5775 2001-06-27  Kjartan Maraas  <kmaraas@gnome.org>
5776
5777         * gtk/gtktreeviewcolumn.c: Fix a typo.
5778         
5779 2001-06-26  Joel Becker  <jlbec@evilplan.org>
5780
5781         * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
5782           at the end of the file
5783
5784 2001-06-26  Havoc Pennington  <hp@redhat.com>
5785
5786         * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
5787
5788 2001-06-26  Havoc Pennington  <hp@redhat.com>
5789
5790         * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
5791         property
5792
5793 Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
5794
5795         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
5796         stupid missing statement
5797
5798         * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
5799         private function for ATK.  It notifies you of how many _visible_
5800         children are deleted when a node is deleted.  Should be used by
5801         atk only.
5802
5803 Tue Jun 26 11:06:34 2001  Owen Taylor  <otaylor@redhat.com>
5804
5805         * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
5806         Use new pango_context_get_metrics() to fix problems
5807         with font lists in descriptions. (#56184, reported by
5808         Jonas Borgström)
5809
5810 Tue Jun 26 10:04:30 2001  Tim Janik  <timj@gtk.org>
5811
5812         * gtk/gtkiconfactory.c:
5813         * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
5814         item factory so inlined pixbufs actually work.
5815
5816 2001-06-25  Havoc Pennington  <hp@redhat.com>
5817
5818         * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
5819         s/RESIZEABLE/RESIZABLE/
5820
5821         * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
5822
5823 2001-06-25  Alexander Larsson  <alexl@redhat.com>
5824
5825         * configure.in:
5826         Added --enable-fbmanager. This is some experimental code
5827         that lets several GtkFB apps coordinate their access to the
5828         framebuffer.
5829         
5830         * acconfig.h:
5831         Added ENABLE_FB_MANAGER.
5832
5833         * gdk/linux-fb/Makefile.am:
5834         Added gdkfbmanager and gdkfbswitch.
5835
5836         * gdk/linux-fb/gdkkeyboard-fb.c:
5837         * gdk/linux-fb/gdkmouse-fb.c:
5838         * gdk/linux-fb/gdkprivate-fb.h:
5839         Split device init and open so that
5840         they can be opened and closed while switched
5841         away.
5842
5843         * gdk/linux-fb/gdkmain-fb.c:
5844         Add the basic manager communication.
5845
5846         * gdk/linux-fb/gdkrender-fb.c:
5847         Don't update to the shadow fb if we're
5848         blocked by the fb manager.
5849
5850 Sun Jun 24 22:15:16 2001  Owen Taylor  <otaylor@redhat.com>
5851
5852         * docs/Changes-2.0.txt: Add note about child property
5853         changes.
5854
5855 Sun Jun 24 21:34:32 2001  Owen Taylor  <otaylor@redhat.com>
5856
5857         * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
5858         drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
5859
5860         * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
5861         with un'reffing wrong list reported by Jeff Franks.
5862
5863         * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
5864
5865         * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
5866         for the default icon. Remove inline XPM.
5867
5868         * gtk/gtkstock.h gtk/gtkiconfactory.c:
5869         Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
5870         is used for GTK_STOCK_DND, but it is a bit too small.)
5871
5872         * gtk/stock-icons/stock_dnd_multiple.png
5873         gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
5874
5875         * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
5876         TRUE when starting a drag. In other cases, we are
5877         just observing. (#52995)
5878
5879         * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add 
5880         function to set the icon for a drag from a GdkPixbuf
5881         or stock ID.
5882
5883         * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}): 
5884         Likewise, for drag sources.
5885
5886         * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
5887         (Now should be done using the stock system.)
5888
5889 Sun Jun 24 12:06:47 2001  Owen Taylor  <otaylor@redhat.com>
5890
5891         * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size): 
5892         Removed - didn't work and not particularly useful anyways
5893         if it did. 
5894
5895 Sun Jun 24 11:29:35 2001  Owen Taylor  <otaylor@redhat.com>
5896
5897         * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
5898         introduced last night that was making things decidedly not work.
5899
5900         * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
5901         so that we have getter/setter pairing everywhere it makes
5902         sense. (#55767)
5903
5904         * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
5905         Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
5906         deprecated compat macro. (#55516)
5907
5908         * gtk/gtklabel.[ch]: Add functions
5909         gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
5910         gtk_label_set_label(), which mirror the property API for GtkLabel.
5911         Make gtk_label_get_attributes() only reflect the attributes
5912         set by gtk_label_set_attributes.
5913
5914         * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
5915         from gtk_notebook_set_page().
5916
5917 Sat Jun 23 18:02:46 2001  Owen Taylor  <otaylor@redhat.com>
5918
5919         * configure.in: Fix tests for XShm.h.
5920
5921         * gdk/x11/gdkimage-x11.c: Cleanup error handling in
5922         gdk_image_new() by use of goto, properly use g_object_unref().
5923
5924 Sat Jun 23 22:03:20 2001  Tim Janik  <timj@gtk.org>
5925
5926         * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
5927         calls, as GdkImage is an object. these should be g_obejct_unref()
5928         instead but that won't work because of the g_error() statement
5929         in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
5930         to spot these places.
5931
5932 Sat Jun 23 10:27:53 2001  Owen Taylor  <otaylor@redhat.com>
5933
5934         * modules/input/gtkimcontextxim.c: Fixup some problems with 
5935         text length handling in error cases.
5936
5937         * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
5938         a bit to make test actually warn on attempt to allocation
5939         a negative size. (#56101, Matthias Clasen)
5940
5941 Fri Jun 22 14:06:08 2001  Jonathan Blandford  <jrb@redhat.com>
5942
5943         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
5944         noticed by Brian Cameron.
5945         (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
5946         Cameron.
5947
5948 2001-06-22  Hans Breuer  <hans@breuer.org>
5949
5950         * gdk/gdk.def : updated externals
5951
5952         * gdk/win32/gdkdrawable-win32.c : corrected some casts
5953         in GDK_NOTEs
5954
5955         * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
5956         to translate coordinates to the internal > 16 bit system
5957         Try to handle WM_WINDOWPOSCHANGED to get better performance for
5958         when moving/resizing
5959
5960         * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
5961         and gdk_keymap_get_direction (). The latter is untested for
5962         the RTL case
5963
5964         * gtk/gtk.def : updated externals
5965
5966         * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
5967         from pango_language_from_string (), not an already freed pointer
5968
5969         * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be 
5970         binary (-kb) to be useable on windoze
5971  
5972 2001-06-21  Alexander Larsson  <alexl@redhat.com>
5973
5974         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): 
5975         Update to new PangoLanguage changes.
5976         
5977         * gtk/gtkwindow-decorate.c:
5978         * gtk/gtkwindow.[ch]:
5979         Added setting argument to gtk_window_set_has_frame ()
5980         
5981 Thu Jun 21 13:42:01 2001  Owen Taylor  <otaylor@redhat.com>
5982
5983         * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
5984         the case without XKB properly.
5985
5986         * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
5987         unused gtk_rc_auto_parse variable.
5988
5989         * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
5990         Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
5991         longer needed with GdkPixbuf.
5992
5993         * gtk/gtkrc.c (_gtk_rc_init): Make private.
5994
5995 Fri Jun 15 16:26:12 2001  Owen Taylor  <otaylor@redhat.com>
5996
5997         * gtk/gtkentry.h: Mark deprecated functions with
5998         GTK_DISABLE_DEPRECATED.
5999
6000 Mon Jun 11 18:15:16 2001  Owen Taylor  <otaylor@redhat.com>
6001
6002         * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
6003
6004         * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
6005
6006         * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
6007           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
6008           gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
6009           gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
6010           to recent changes in Pango.
6011
6012         * tests/testgtk.c: Set language tags with gtk_label_set_markup()
6013           to test whether the basic engine honors them.
6014
6015 Thu Jun 21 02:13:40 2001  Tim Janik  <timj@gtk.org>
6016
6017         * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
6018         gtk_container_child_get_property().
6019
6020 Wed Jun 20 19:19:15 2001  Jonathan Blandford  <jrb@redhat.com>
6021
6022         * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
6023         (gtk_tree_view_move_cursor_page_up_down): implement.
6024
6025 Wed Jun 20 05:32:05 2001  Tim Janik  <timj@gtk.org>
6026
6027         * gtk/gtkspinbutton.c: make maximum digits compile time configurable
6028         via MAX_DIGITS and up to 20. 5 was just ridiculously small.
6029         don't use automatic fixed size buffer for printf-ing floats, doubles
6030         can expand to really _huge_ strings, use g_strdup_printf() instead.
6031
6032 Wed Jun 20 04:28:24 2001  Tim Janik  <timj@gtk.org>
6033
6034         * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
6035         construct property in 1.2 and still needs to be.
6036
6037         * gtk/gtkwidget.c: "composite_child" is not a settable property.
6038
6039 Tue Jun 19 19:13:19 2001  Jonathan Blandford  <jrb@redhat.com>
6040
6041         * gtk/gtkliststore.c (gtk_list_store_clear): 
6042         * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
6043         clear a model.
6044
6045 Mon Jun 18 02:00:49 2001  Tim Janik  <timj@gtk.org>
6046
6047         * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
6048
6049         * gtk/Makefile.am:
6050         * gtk/gtk.h: disabled GtkPacker compilation.
6051
6052         * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
6053
6054         * gtk/gtknotebook.c:
6055         * gtk/gtktable.c:
6056         * gtk/gtkbox.c: ported this over to child properties.
6057
6058         * gtk/gtksettings.c: fetch class properties via
6059         g_object_class_list_properties().
6060
6061         * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
6062         child arg interface. use gobjectnotifyqueue.c for child property
6063         notification.
6064
6065         * gtk/gtkwidget.[hc]: provide necessary means for container child
6066         properties, i.e. ::child_notify signal,
6067         gtk_widget_freeze_child_notify(),
6068         gtk_widget_child_notify(),
6069         gtk_widget_thaw_child_notify().
6070
6071         * tests/testgtk.c: removed inferior property handling code, for
6072         property editing, a generic module should be used, and GLE
6073         coincidentally fullfills that purpose.
6074
6075         * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
6076         needs to be adapted to g_object_class_list_properties() before this
6077         builds again.
6078
6079 Mon Jun 18 20:06:10 2001  Jonathan Blandford  <jrb@redhat.com>
6080
6081         * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
6082         test if a node is expanded.
6083
6084 Mon Jun 18 19:41:38 2001  Jonathan Blandford  <jrb@redhat.com>
6085
6086         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
6087         where collapsing a selected row would result in the cursor/anchor
6088         getting screwed up.
6089
6090 Fri Jun 15 18:53:48 2001  Jonathan Blandford  <jrb@redhat.com>
6091
6092         * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
6093         gtk_tree_sortable_sort_column_id_set_func.  It's much shorter now.
6094         * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
6095         Now I can really reorder/sort all Store widgets.  treesorttest
6096         seems to just work now.
6097         * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
6098         testtreesort worked through a big coincidence all this time.
6099         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
6100         code.
6101         * tests/testtreecolumns.c: Big 'ol warning at the top letting
6102         people know that this code should never ever ever be copied.
6103
6104 2001-06-15  Jonas Borgström  <jonas@codefactory.se>
6105
6106         * gtk/gtkwindow.h: Fixed a small typo, it should be
6107         GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
6108         on line 134.
6109
6110 2001-06-14  Havoc Pennington  <hp@redhat.com>
6111
6112         Docs fixups, and:
6113         
6114         * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
6115         GTK_DISABLE_DEPRECATED
6116
6117 Thu Jun 14 19:21:27 2001  Jonathan Blandford  <jrb@redhat.com>
6118
6119         * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops.  Forgot
6120         this a couple months ago.  Now GtkTreeStore sort of sorts.  I'll
6121         finish it off tonight, though it basically works now when it's a
6122         list.  Also, I have a sinking feeling neither GtkTreeStore or
6123         GtkListStore actually resort when adding a new item.  I'll look
6124         into it.
6125
6126 2001-06-14  Havoc Pennington  <hp@redhat.com>
6127
6128         * demos/gtk-demo/main.c (load_file): fix bug identified by
6129         warnings I just added to gtktextbuffer
6130
6131 2001-06-14  Havoc Pennington  <hp@redhat.com>
6132
6133         * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
6134
6135         * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
6136
6137         * gtk/gtktextbtree.c: don't leak node data all over the place.
6138
6139         * demos/gtk-demo/main.c (main): create fontify tags for the right
6140         buffer
6141
6142         * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
6143         to mention tags in the same table can't have the same name,
6144         suggested by Skip Montanaro
6145
6146 2001-06-11  Havoc Pennington  <hp@redhat.com>
6147
6148         * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning 
6149         for trying to add two tags with same name to the tag table
6150
6151         * demos/gtk-demo/main.c (main): fix colors ;-)
6152
6153 `Fri Jun  8 17:56:52 2001  Owen Taylor  <otaylor@redhat.com>
6154
6155         * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
6156         that allows grouping together multiple windows so that grabs
6157         within that set of windows only affect those windows.
6158
6159         * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
6160         signal for notification when a widget becomes shadowed
6161         by a grab or is no longer shadowed by a grab.
6162
6163         * gtk/gtkwidget.c (gtk_widget_propagate_state)
6164           gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
6165         insenstive widgets to maintain a grab.
6166
6167 2001-06-14  Alexander Larsson  <alexl@redhat.com>
6168
6169         * docs/README.linux-fb:
6170         Add some example config files that can be used with the URW fonts.
6171         
6172         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init): 
6173         Set up the color ramps for DirectColor mode.
6174
6175 2001-06-11  Havoc Pennington  <hp@redhat.com>
6176
6177         * Release 1.3.6
6178          
6179 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6180
6181         * gdk/linux-fb/gdkwindow-fb.c:
6182         Unify shaped window code and make it repaint the area that used
6183         to be part of the shape, but isn't anymore.
6184
6185 2001-06-11  Havoc Pennington  <hp@redhat.com>
6186
6187         * NEWS: Updates
6188
6189         * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
6190
6191         * gtk/Makefile.am: glib_genmarshal already contains top_builddir
6192         
6193 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6194
6195         * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
6196         Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
6197         passes zero instead, so do we.
6198         
6199 2001-06-13  Alexander Larsson  <alla@lysator.liu.se>
6200
6201         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
6202         Deep copy dash_list too.
6203         (_gdk_fb_gc_new): Set default cap_style before
6204         setting values.
6205
6206 2001-06-12  Alexander Larsson  <alla@lysator.liu.se>
6207
6208         * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
6209         gdk_keymap_get_direction): New functions.
6210
6211 Tue Jun 12 12:41:27 2001  Jonathan Blandford  <jrb@redhat.com>
6212
6213         * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
6214         gtk_tree_model_get_flags by adding a second flag for atk.
6215
6216         * gtk/gtktreemodel.c: make cursor behavior interact better with
6217         mouse presses.
6218
6219 Mon Jun 11 12:43:08 2001  Jonathan Blandford  <jrb@redhat.com>
6220
6221         * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
6222         expand_row/collapse_row to be 2 signals each -- test_expand_row
6223         and row_expanded as well as test_collapse_row and row_collapsed.
6224
6225 2001-06-10  Anders Carlsson  <andersca@codefactory.se>
6226
6227         * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
6228         signal name to be changed instead of selection_changed.
6229
6230 2001-06-08  Havoc Pennington  <hp@redhat.com>
6231
6232         * gtk/gtkentry.c (gtk_entry_class_init): add read-only
6233         "scroll_offset" property for notification when the layout offsets
6234         may have changed
6235         (gtk_entry_adjust_scroll): add notify for scroll_offset
6236         (gtk_entry_layout_index_to_text_index): function to compensate for
6237         preedit string when doing coordinate stuff on the entry's layout
6238         (gtk_entry_text_index_to_layout_index): inverse function
6239         (gtk_entry_get_layout_offsets): hook to get current position of
6240         the layout      
6241         (gtk_entry_get_layout): hook to get the layout itself.
6242
6243         * gtk/gtklabel.c (gtk_label_get_layout): new function
6244
6245 Fri Jun  8 19:49:29 2001  Jonathan Blandford  <jrb@redhat.com>
6246
6247         * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
6248         keybinding.
6249         (gtk_tree_view_focus): Fix merge conflict.
6250
6251 Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
6252
6253         * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
6254         clean up cursor handling.
6255
6256 2001-06-08  Havoc Pennington  <hp@redhat.com>
6257
6258         * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
6259         function
6260
6261         * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
6262         this function
6263
6264 2001-06-08  Alex Larsson  <alexl@redhat.com>
6265
6266         * gtk/gtkcompat.h.in:
6267         Added compat macros for all old GTK_TYPE_GDK_xxx types.
6268         Fixes bug #52892
6269
6270 2001-06-08  Havoc Pennington  <hp@redhat.com>
6271         
6272         * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
6273         parent still
6274
6275 2001-06-08  Havoc Pennington  <hp@redhat.com>
6276
6277         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
6278         don't call g_list funcs on GSList
6279
6280         * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
6281         gtk_container_focus(), since some widgets have focusable locations
6282         which are not other widgets. These widgets should not have to be 
6283         containers just to manage the focus. For example, GtkHSV is
6284         currently a container for no good reason. Also, this cleans
6285         up the "if (is_container && is_sensitive && is_drawable)
6286         container_focus ()" mess in widget implementations.
6287
6288         * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
6289         function, and have it just call gtk_widget_child_focus().
6290
6291         * gtk/gtkhsv.c: derive from widget not container
6292         
6293         Throughout: fix to reflect GtkContainer::focus change
6294         
6295 Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>
6296
6297         * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
6298         range.  Fix bug #55921
6299
6300         * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
6301         (#55920).
6302
6303 Fri Jun  8 12:03:07 2001  Owen Taylor  <otaylor@redhat.com>
6304
6305         * gdk/gdkkeys.[ch]: Add a direction-changed signal,
6306         and gdk_keymap_get_current_direction().
6307
6308         * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
6309           gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
6310         the current locked group, use it to set the keymap
6311         direction.
6312
6313         * gtk/gtksettings.c: Add a new gtk-split-cursor setting
6314         to determine whether we draw a split cursor or use
6315         a jumping cursor based on the current direction.
6316
6317         * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
6318         Obey the split cursor setting. 
6319
6320 Fri Jun  8 11:57:50 2001  Owen Taylor  <otaylor@redhat.com>
6321
6322         * gtk/gtkimmulticontext.c (activate_cb): Only activate
6323         when toggling on, not when toggling off... (#55906)
6324
6325 Wed Jun  6 10:37:07 2001  Owen Taylor  <otaylor@redhat.com>
6326
6327         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): 
6328         s/gdk_window_begin_paint/gdk_window_begin_paint_region/
6329         in docs. (#55812, Vitaly Tishkov)
6330
6331 2001-06-08  Anders Carlsson  <andersca@codefactory.se>
6332
6333         * demos/gtk-demo/main.c (create_tree): Changed signal name from
6334         selection_changed to changed in signal connection to GtkTreeSelection,
6335         also used g_signal_connectc since GtkTreeSelection is now a GObject.
6336
6337 Thu Jun  7 18:25:42 2001  Jonathan Blandford  <jrb@redhat.com>
6338
6339         * gtk/gtktreeselection.c: Now it's a GObject instead of a
6340         GtkObject.  The GtkTreeSelection::selection_changed signal is now
6341         the GtkTreeSelection::changed signal.
6342
6343         * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
6344         object.
6345
6346         * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
6347         object.
6348
6349 2001-06-07  Havoc Pennington  <hp@redhat.com>
6350
6351         * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
6352
6353 2001-06-07  Havoc Pennington  <hp@redhat.com>
6354         
6355         * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
6356         (not tested yet because with absolute path to srcdir I can't build
6357         atk, but it was broken anyway so this may help) 
6358
6359 2001-06-07  Havoc Pennington  <hp@redhat.com>
6360
6361         * configure.in: output m4macros/Makefile
6362         
6363 Wed Jun  6 21:59:16 2001  Jonathan Blandford  <jrb@redhat.com>
6364
6365         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
6366         buttons.  Fixes #55460 reported by matthiasc@poet.de.
6367
6368 Wed Jun  6 21:18:54 2001  Jonathan Blandford  <jrb@redhat.com>
6369
6370         * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
6371         expansion/collapsing so it only happens in one place.
6372         (gtk_tree_view_real_expand_row): ditto.
6373
6374 2001-06-07  Havoc Pennington  <hp@redhat.com>
6375
6376         * tests/Makefile.am: add missing -I flag
6377
6378         * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
6379
6380         * configure.in: use pkg-config to see if GModule is
6381         supported; fix to properly turn on included loaders 
6382         when GModule isn't supported; don't use AC_CHECK_LIB 
6383         when libs are not installed yet
6384
6385         * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
6386
6387         * Makefile.am (SUBDIRS): add m4macros subdir
6388
6389         * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
6390         dependencies also.
6391
6392 Wed Jun  6 19:31:11 2001  Jonathan Blandford  <jrb@redhat.com>
6393
6394         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
6395         reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
6396
6397 Wed Jun  6 20:01:38 2001  Jonathan Blandford  <jrb@redhat.com>
6398
6399         * gtk/gtktreeview.c
6400         (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
6401         bindings to expand and collapse rows.
6402         (gtk_tree_view_real_select_cursor_parent): New key binding.
6403         (gtk_tree_view_real_toggle_cursor_row): New key binding.
6404
6405         * gtk/gtkmarshal.list: new
6406         marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
6407
6408 2001-06-06  Havoc Pennington  <hp@redhat.com>
6409
6410         * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
6411
6412         * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
6413         Down to move visually rather than logically, since it confuses 
6414         people. Add -/+ and Ctrl--/+ bindings for logical movement.
6415
6416 2001-06-06  Alex Larsson  <alexl@redhat.com>
6417
6418         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
6419         Fix up error messages.
6420
6421 Wed Jun  6 10:34:42 2001  Owen Taylor  <otaylor@redhat.com>
6422
6423         * gtk/gtktooltips.h: Include gtkwidget.h 
6424         (#55798, Karl Nelson)
6425
6426         * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
6427         a valid latin-1 character. (Marc Lehmann, #35467)
6428
6429         * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment. 
6430         (Marc Lehmann, #35467)
6431         
6432 2001-06-05  Alex Larsson  <alexl@redhat.com>
6433
6434         * demos/gtk-demo/appwindow.c (do_appwindow):
6435         Don't swap the order of the args to gtk_widget_destroyed.
6436
6437         * tests/testgtk.c (destroy_properties):
6438         Don't crash when the properties window is destroyed.
6439
6440         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
6441         Use with_mnemonics to handle the case of stock items with
6442         underscores in them.
6443
6444 2001-06-05  Havoc Pennington  <hp@redhat.com>
6445
6446         * gtk/gtktextiter.c (gtk_text_iter_order): rename from 
6447         gtk_text_iter_reorder
6448
6449 2001-06-05  Havoc Pennington  <hp@redhat.com>
6450
6451         * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
6452
6453 2001-06-05  Havoc Pennington  <hp@redhat.com>
6454
6455         * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value 
6456         to the range that was set
6457
6458         * gtk/gtkrange.c: add value_changed signal, primarily 
6459         intended for use with GtkScale
6460         (gtk_range_set_increments): new function
6461         (gtk_range_set_range): new function with weird name
6462         (gtk_range_set_value): new function
6463         (gtk_range_get_value): new function
6464
6465         * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename 
6466         from gtk_spin_button_get_value_as_float(). Compat #define
6467         added for get_value_as_float.
6468
6469         * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
6470
6471         * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
6472
6473 Tue Jun  5 14:57:18 2001  Jonathan Blandford  <jrb@redhat.com>
6474
6475         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
6476
6477 Mon Jun  4 12:41:25 2001  Owen Taylor  <otaylor@redhat.com>
6478
6479         * gtk/gtkwidget.h: Deprecate gtk_widget_set().
6480
6481         * tests/testgtk.c (create_tooltips): Remove usage of
6482         gtk_widget_set().
6483
6484 2001-06-05  Havoc Pennington  <hp@redhat.com>
6485
6486         * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
6487
6488         Applying patch from Jeff Franks, with function docs added.
6489         
6490         * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
6491         remove call to set_mnemonic_widget, change docs a bit.  
6492
6493         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
6494         new function
6495
6496         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
6497         new function
6498
6499         * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
6500
6501         * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
6502         function
6503         (gtk_radio_button_new_with_mnemonic_from_widget): new function
6504
6505         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
6506         new function
6507
6508         * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
6509         function        
6510
6511         * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on 
6512         auto-selection of mnemonic widget.
6513
6514 Mon Jun  4 15:05:24 2001  Jonathan Blandford  <jrb@redhat.com>
6515
6516         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
6517         Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
6518         (gtk_tree_view_column_set_min_width): ditto.
6519
6520 Tue Jun  5 11:04:06 2001  Owen Taylor  <otaylor@redhat.com>
6521
6522         * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS): 
6523         s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
6524
6525 Mon Jun  4 12:50:11 2001  Owen Taylor  <otaylor@redhat.com>
6526
6527         * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
6528         gtk_clist_thaw().
6529
6530 2001-06-04  Havoc Pennington  <hp@pobox.com>
6531
6532         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore 
6533 r       eleases for buttons 6, 7
6534
6535 2001-06-04  Havoc Pennington  <hp@redhat.com>
6536
6537         * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
6538         (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
6539         #55562
6540
6541 2001-06-04  Havoc Pennington  <hp@redhat.com>
6542
6543         * gtk/gtktextview.c (gtk_text_view_size_request): handle case
6544         where text_view->layout == NULL by assuming its size is 0, 
6545         i.e. same as if we haven't done any reflow. Reported by 
6546         Hidetoshi Tajima #55448 
6547
6548 2001-06-04  Havoc Pennington  <hp@redhat.com>
6549
6550         * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
6551         and 7 for scroll left/right, from Thomas Broyer
6552
6553 2001-05-10  Havoc Pennington  <hp@redhat.com>
6554
6555         * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
6556         we need to parse the xsetting as if it were an RC file string.
6557
6558         * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
6559         value of palette from settings, not from static variable
6560
6561         * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
6562         xsettings translation table
6563
6564         * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because 
6565         hardcoding the toolbar style conflicts with new customizable 
6566         toolbar style philosophy
6567         (gtk_toolbar_class_init): add settings for default toolbar style;
6568         these are used unless the app specifically forces a toolbar style
6569
6570         * gtk/gtksettings.c (settings_install_property_parser): only
6571         return at the start if we warn and parser == NULL
6572
6573         * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
6574         palette changed handler so we don't notify dead color selections
6575
6576         * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
6577         xthickness/ythickness of 0 or 1 properly 
6578         (gtk_default_draw_resize_grip): clear the background behind the
6579         resize grips, and align to bottom right if we square the 
6580         area to be drawn.
6581
6582         * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on 
6583         statusbar label to 1, so it doesn't make toplevels resize oddly
6584         (gtk_statusbar_size_request): add grip size to request
6585         (gtk_statusbar_size_allocate): hack so the hbox still works with 
6586         the grip size in the request
6587
6588         * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix 
6589         bug where showing all on a toplevel makes the toolbar 
6590         button text appear despite the toolbar mode
6591
6592         * gtk/gtkmenubar.c: add internal padding style property
6593
6594         * gtk/gtktoolbar.c: Add internal padding style property; add
6595         shadow type style property
6596
6597         * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
6598         state; and put Container::border_width outside the frame
6599
6600         * gtk/gtktextview.c: don't draw focus rectangle if we're in
6601         interior focus mode, we just use blinking cursor
6602
6603 2001-06-04  Havoc Pennington  <hp@redhat.com>
6604
6605         * configure.in: Make gdk-pixbuf have same version number as GTK
6606
6607 2001-06-04  Havoc Pennington  <hp@redhat.com>
6608
6609         * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on 
6610         digits greater than 6. If there actually are limits (which there
6611         likely aren't), should clamp to them not warn.
6612         (gtk_spin_button_new_with_range): don't take log of 0
6613         (gtk_spin_button_size_request): use digits to compute size
6614         request, rather than step increment.
6615
6616         * tests/testgtk.c (create_spins): test larger values of digits
6617         
6618         * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
6619         font on map not expose, so we don't get weirdness during scrolling
6620
6621 2001-06-04  Havoc Pennington  <hp@redhat.com>
6622
6623         * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
6624         Sam Solon, bug #54577, update value even if not drawable.
6625
6626 2001-06-04  Havoc Pennington  <hp@redhat.com>
6627
6628         * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
6629         SCROLL_LEFT, reported by Thomas Broyer.
6630
6631 2001-06-04  Havoc Pennington  <hp@redhat.com>
6632
6633         * gtk/gtkrange.c (gtk_range_adjustment_value_changed): 
6634         Process updates immediately, to prevent funny lag effect
6635         when scrolling, at some mild potential efficiency cost.
6636
6637 2001-06-04  Havoc Pennington  <hp@redhat.com>
6638
6639         * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
6640         slider on the click.
6641
6642 2001-06-03  Havoc Pennington  <hp@pobox.com>
6643
6644         * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
6645         hscale/vscale details, so we can use it for scrollbar as well.
6646
6647         * tests/testgtk.c (reformat_value): honor digits from GtkScale
6648
6649         * gtk/gtkenums.h (GtkTroughType): Remove this enum
6650         (GtkScrollType): add START and END from GtkTroughType
6651
6652         * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
6653         its x/y arguments
6654
6655         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
6656         gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
6657         gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
6658         gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
6659         gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
6660
6661         Notable changes in the process:
6662          
6663         - stepper_size style property is the height for vertical 
6664           ranges, width for horizontal; the other dimension matches
6665           the trough size
6666         - add ability to do NeXT-style steppers (and several other styles
6667           that don't make any sense)
6668         - added min_slider_length, fixed_slider_length properties to
6669           GtkScrollbar
6670         - cleaned some private (or at least useless) functions out of
6671           gtkscale.h    
6672         - moved bindings to GtkScale from subclasses, even arrow keys,
6673           since blind users don't know scale orientation.
6674         - change move_slider action signal to use new GtkScrollType,
6675           remove GtkTroughType argument
6676         - digits rounds the values a range will input to the given 
6677           number of decimals, but will not try to force adjustment 
6678           values set by other controllers. That is, we no longer
6679           modify adjustment->value inside a value_changed handler.
6680         - added getters for GtkScale setters
6681         - middle-click begins a slider drag
6682         
6683 Fri Jun  1 18:54:47 2001  Jonathan Blandford  <jrb@redhat.com>
6684
6685         * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
6686         getting the focus code to work.
6687         (gtk_tree_view_class_init): Add a bunch of keybindings.
6688
6689         * gtk/gtktreeviewcolumn.c
6690         (gtk_tree_view_column_set_cell_data_func):
6691         s/GtkCellDataFunc/GtkTreeCellDataFunc.
6692         (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
6693         of "properties_changed" to help justify the death of the latter
6694         signal. (-:
6695
6696         * tests/testtreefocus.c (main): Let some columns be focussable to
6697         test focus better.
6698
6699 2001-06-01  Havoc Pennington  <hp@redhat.com>
6700
6701         * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
6702         
6703         * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
6704         overwrite in overwrite mode if we already deleted the selection
6705         and replaced it with new text.  
6706
6707         * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
6708         selection to an empty range, clear the clipboard if we owned it.
6709         (gtk_label_set_selectable): give up selection if we become
6710         unselectable.
6711         (gtk_label_state_changed): override state changed to unselect text
6712         when insensitive
6713         (get_text_callback): add paranoia check that indexes aren't
6714         outside of label->text
6715         (gtk_label_select_region): make -1 for start_offset mean "end of
6716         label," for consistency with GtkEditable
6717
6718         * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
6719         GTK_DIALOG_NO_SEPARATOR flag
6720
6721 Fri Jun  1 11:47:11 2001  Owen Taylor  <otaylor@redhat.com>
6722
6723         * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix 
6724         notifications on non-existant "enable_arrow_keys".
6725         (#53753, Skip Montanaro)
6726
6727 Fri Jun  1 11:31:55 2001  Owen Taylor  <otaylor@redhat.com>
6728
6729         * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add 
6730         GDK_TYPE_RECTANGLE.
6731
6732         * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
6733         of allocation argument be GDK_TYPE_RECTANGLE.
6734
6735 Thu May 31 12:43:57 2001  Owen Taylor  <otaylor@redhat.com>
6736
6737         * gtk/gtkoptionmenu.c: Account for the fact that the border
6738         width is _outside_ the window. (Fixes #54585, bug found
6739         by Bastien Nocera.)
6740
6741 Wed May 30 15:56:30 2001  Owen Taylor  <otaylor@redhat.com>
6742
6743         * gtk/gtksettings.c (gtk_settings_get_property): Validate
6744         value from GDK settings against parameter spec.
6745
6746         * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
6747         to temporary values and use g_value_transform(), since
6748         thinking that GValue was going to be easy or efficient
6749         to use was, of course, a mistake.
6750
6751         * gtk/gtksettings.c: Add cursor blink setting.
6752         
6753         * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
6754
6755         * gtk/gtkentry.c: Add cursor blinking.
6756
6757         * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
6758         cursor blink global settings.
6759
6760         * gtk/gtkentry.c (gtk_entry_button_press): Add notification
6761         for :text_position in places where it is missing.
6762
6763 Tue May 29 18:17:11 2001  Owen Taylor  <otaylor@redhat.com>
6764
6765         * autogen.sh (have_libtool): Fix GNU sedism (#55430)
6766
6767 Tue May 29 17:40:29 2001  Owen Taylor  <otaylor@redhat.com>
6768
6769         * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
6770         not pkg-config. (#51032)
6771
6772         * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
6773         (fixes #51952, James Henstridge)
6774         
6775 2001-05-27  Alexander Larsson  <alla@lysator.liu.se>
6776
6777         * gtk/gtkstock.h (GTK_STOCK_GO_UP):
6778         Rename to the more correct gtk-go-up.
6779
6780         * gtk/stock-icons/stock_menu_sort_ascending.png:
6781         Added new file.
6782         
6783         * gtk/stock-icons/stock_menu_sort_descending.png:
6784         Changed to show descending instead of ascending.
6785
6786         * gtk/gtkiconfactory.c:
6787         Added menu size icon to sort ascending.
6788
6789         * gtk/stock-icons/Makefile.am:
6790         Added stock_menu_sort_ascending.png.
6791         
6792         * gtk/gtkseparatormenuitem.c:
6793         Use correct typenames.
6794
6795 Sun May 20 20:07:35 2001  Tim Janik  <timj@gtk.org>
6796
6797         * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
6798         gulong as in GSignal.
6799
6800 Fri May 25 19:04:17 2001  Jonathan Blandford  <jrb@redhat.com>
6801
6802         * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
6803         instances of GtkCellRenderer in code (all but dnd icon code).
6804         Virtualized in GtkTreeViewColumn.  Now I need to move focus in
6805         there, and I can do multiple Cells per column.
6806
6807         * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
6808
6809         * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
6810         when model was unreffed prior to removing the row reference.
6811
6812 2001-05-25  Havoc Pennington  <hp@redhat.com>
6813
6814         * gtk/gtkiconfactory.c: fix so that default icons are created if 
6815         you call gtk_stock_list_ids()
6816
6817         * demos/gtk-demo/stock_browser.c (create_model): sort stock items
6818         in list
6819
6820 2001-05-25  Havoc Pennington  <hp@redhat.com>
6821
6822         * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
6823         set can render without falling back to missing image icon
6824
6825         * gtk/gtktextview.c (gtk_text_view_size_request): request full
6826         size of text, instead of random values
6827
6828         * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
6829         size of tree view, instead of random values
6830
6831         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
6832         image in an appropriate size
6833
6834         * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
6835         etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
6836
6837         Throughout: fix GTK_STOCK_BUTTON_ instances
6838         
6839         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
6840         gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
6841         Add a bunch of new stock items/icons
6842
6843         * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
6844         new function, convenience for inserting columns with a data func
6845
6846         * gtk/gtkiconfactory.c: keep a list of all existing icon factories
6847         (_gtk_icon_factory_list_ids): use list of all factories to
6848         generate a list of all known IDs
6849
6850         * gtk/gtkstock.c (gtk_stock_list_ids): replace
6851         gtk_stock_list_items() with a function that returns all IDs known
6852         including those for GtkIconFactory.
6853
6854 2001-05-25  Hans Breuer  <hans@breuer.org>
6855
6856         * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
6857         work -> check boxes and radio buttons are drawn now, even on win9x.
6858         Improved line settings a bit, still no clue how to get really dotted
6859         lines on win9x, on NT it's PS_ALTERNATE.
6860
6861         * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for 
6862         GDK_HINT_MIN_SIZE as well
6863
6864         * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
6865
6866         * gtk/gtk.def : updated
6867
6868         * gtk/gtktreeprivate.h : change column_drop_func to be a function
6869         pointer not a function pointer pointer
6870
6871         * tests/testdnd.c : include <stdlib.h> for putenv prototype
6872
6873         * tests/testsocket.c : made it compile on win32 again
6874
6875         * tests/makefile.msc : one more test-app uses prop-editor.obj
6876
6877 2001-05-22  Havoc Pennington  <hp@pobox.com>
6878
6879         * gtk/gtkbin.c (gtk_bin_get_child): New function
6880
6881 Wed May 23 20:07:53 2001  Owen Taylor  <otaylor@redhat.com>
6882
6883         * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
6884         to ignore when doing compose processing.
6885
6886 2001-05-22  Joe Shaw  <joe@ximian.com>
6887
6888         * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle): 
6889         Simplify as suggested by Havoc. Just get the last iter and work
6890         backward to the tag instead of getting a line and working back from
6891         there. Fixes passing in an invalid offset to
6892         iter_init_from_byte_offset().
6893
6894 Tue May 22 16:25:27 2001  Jonathan Blandford  <jrb@redhat.com>
6895
6896         * gtk/gtktreeview*.h: 
6897         * gtk/gtkcell*.h:
6898         * gtk/gtk*store.h:
6899         Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
6900         macros to all objects.
6901
6902 Tue May 22 15:13:52 2001  Jonathan Blandford  <jrb@redhat.com>
6903
6904         * gtk/gtkcellrenderertext.c
6905         (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
6906         with very large (TM) amounts of text.  May be moved to
6907         GtkCellRenderer in the future, though I'm not sure it wants to be
6908         this accessible.
6909
6910         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
6911         More sanity brought to this class.  I like it.
6912
6913         * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
6914         case.  Kids, don't try this at home.
6915
6916         * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
6917         convenience function.
6918
6919         * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
6920
6921 2001-05-21  Alexander Larsson  <alexl@redhat.com>
6922
6923         * gtk/gtkfontsel.c:
6924         Added properties. Based on patch by Lee Mallabone.
6925
6926         * gtk/gtkruler.c:
6927         * gtk/gtkhruler.c:
6928         * gtk/gtkvruler.c:
6929         * gtk/gtktext.c:
6930         * gtk/gtktextview.c:
6931         Converted GtkArg to GParam. Based on patches by John Margaglione.
6932
6933         * tests/Makefile.am:
6934         * tests/testtext.c:
6935         Add a property editor to testtext.
6936         
6937 Mon May 21 11:29:21 2001  Owen Taylor  <otaylor@redhat.com>
6938
6939         * gtk/gtk{h,v,}paned.c: Only show the separator if 
6940
6941         * configure.in: Fixed reversed conditional causing all image
6942         libraries to be linked in.
6943
6944 2001-05-21  Joe Shaw  <joe@ximian.com>
6945
6946         * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
6947         that top_y needs to be >= 0.
6948
6949 2001-05-11  Havoc Pennington  <hp@pobox.com>
6950         
6951         * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
6952         losing connection to the X server.
6953
6954 Sun May 20 13:59:20 2001  Owen Taylor  <otaylor@redhat.com>
6955
6956         * configure.in: Start checks for X from pangox/pangoxft
6957         CFLAGS to avoid duplicate libraries.
6958
6959         * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
6960
6961         * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
6962         to include gobject.
6963         
6964 2001-05-18  Alexander Larsson  <alexl@redhat.com>
6965
6966         * gtk/gtkspinbutton.c:
6967         Convert GtkArgs to GParams. Based on patch by John Margaglione.
6968         Also do size request reasonable for MAXDOUBLE. Previously it printed
6969         the limits to a buffer and overran it. Instead do it using log10() and
6970         limit the width to 10 digits.
6971         
6972         * gtk/gtkwidget.c (gtk_widget_get_property):
6973         Correctly handle setting the parent property to NULL.
6974
6975 Fri May 18 15:26:26 2001  Owen Taylor  <otaylor@redhat.com>
6976
6977         * gtk/gtktextview.c (gtk_text_view_style_set): Reset 
6978         style attributes even if the widget isn't realized.
6979
6980         * demos/gtk-demo/main.c: Use a slightly smaller font.
6981
6982 Fri May 18 14:25:20 2001  Owen Taylor  <otaylor@redhat.com>
6983
6984         * gtk/gtkcontainer.c: Remove reallocate-redraws property.
6985         This is something that only a widget writer would ever want
6986         to change.
6987
6988         * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
6989         gtk_signal_emit_by_name().
6990
6991         * gtk/gtkviewport.c: Fix some warnings.
6992
6993         * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
6994         allowing the requisitions of multiple widgets to be grouped
6995         together.
6996
6997         * tests/testgtk.c: Add GtkSizeGroup test
6998
6999         * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
7000
7001         * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
7002         warnings.
7003
7004         * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
7005
7006 2001-04-28  Martin Baulig  <baulig@suse.de>
7007
7008         * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
7009         to gtk_image_menu_item_set_icon() and made it work if there's already
7010         an image.
7011         (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
7012         (gtk_image_menu_item_new_with_label): New function.
7013
7014 Thu May 17 16:20:04 2001  Jonathan Blandford  <jrb@redhat.com>
7015
7016         * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
7017         highlighting code!!!!  The result is okay so long as you don't try
7018         to stress it.  It also highlights a bug in the TextView so it's in
7019         an unproportional font right now until it's fixed.
7020
7021         *demos/gtk-demo/*.c: Clean up code a bit to make it
7022         ugly-parser(TM) friendly. (-:
7023
7024 2001-05-17  Joe Shaw  <joe@ximian.com>
7025
7026         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
7027         that x_offset and y_offset must be >= 0. Clip the cursor being drawn
7028         if it is only partially onscreen.
7029
7030 Thu May 17 17:10:13 2001  Owen Taylor  <otaylor@redhat.com>
7031
7032         * gtk/gtkentry.c: Make logical motion and deletion by graphemes, 
7033         not by characters.
7034
7035         * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
7036         are not zero or one; that is, when graphemes of multiple characters
7037         are involved.
7038
7039         * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
7040         FIXME.
7041
7042 2001-05-17  Alexander Larsson  <alla@lysator.liu.se>
7043         
7044         * gtk/gtkbbox.c:
7045         Add properties, based on patch by Lee Mallabone.
7046
7047         * gtk/gtknotebook.c:
7048         * gtk/gtktoolbar.c:
7049         Convert from GtkArg to GParam, based on patch by John Margaglione.
7050         
7051         * gtk/gtkhscale.c:
7052         * gtk/gtkvscale.c:
7053         * gtk/gtkhscrollbar.c:
7054         * gtk/gtkvscrollbar.c:
7055         * gtk/gtkrange.c:
7056         Move adjustment property to GtkRange.
7057
7058         * gtk/gtklabel.c:
7059         Setup mnemonics on property changes
7060
7061         * gtk/gtkwidget.c (gtk_widget_get_property):
7062         GdkExtensionMode is an enum, not a flag. Set it with
7063         g_value_set_enum ().
7064
7065         * tests/prop-editor.c:
7066         Better propery editor.
7067
7068         * tests/testgtk.c:
7069         Add new property test. Pass zero to the property editor to
7070         get properties from all derived types.
7071         
7072 Sun May 13 12:01:12 2001  Owen Taylor  <otaylor@redhat.com>
7073
7074         * autogen.sh (have_automake): Require libtool-1.4,
7075         automake-1.4p1.
7076
7077         * acinclude.m4: Remove libtool macros.
7078
7079         * gdk-pixbuf/Makefile.am: Add dependencies to loade
7080         modules.
7081
7082         * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
7083         for libgdk.
7084
7085         * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
7086         libgdk.la for libgtk.
7087
7088         * modules/input/Makefile.am: Make modules have full
7089         dependencies.
7090
7091 Wed May 16 14:06:01 2001  Jonathan Blandford  <jrb@redhat.com>
7092
7093         * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
7094         #54699 where paths weren't being checked for correctness.
7095
7096 Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
7097
7098         * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
7099         in any order you wan, whether or not the column is added to the
7100         tree, or the tree is realized.  Yay!
7101
7102         * gtk/gtktreeviewcolumn.c
7103         (gtk_tree_view_column_setup_sort_column_id_callback): handle
7104         sorting columns a lot saner
7105
7106         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
7107         new function to actually set wether or not a column is
7108         reorderable.
7109
7110         * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
7111         if we have 'em.
7112
7113         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
7114         Fix nasty bug where we were showing the button just before
7115         realizing it.  As a result, the parent window was
7116         tree_view->window instead of tree_view->priv->header_window.
7117
7118         * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
7119         to let you easily reorder a list or tree.
7120
7121 2001-05-15  Alexander Larsson  <alla@lysator.liu.se>
7122
7123         * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
7124         from args to properties.
7125
7126 Tue May 15 10:11:59 2001  Owen Taylor  <otaylor@redhat.com>
7127
7128         * gtk/gtkpreview.c: Apply patch from John Margaglione converting
7129         from args to properties. (#51957)
7130
7131         * gtk/gtkscale.c (gtk_scale_class_init): Move install property
7132         calls to after ->set_property call.
7133
7134 Mon May 14 14:56:21 2001  Owen Taylor  <otaylor@redhat.com>
7135
7136         * tests/prop-editor.c: Block against redundant changes.
7137
7138         * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
7139         properties.
7140
7141 Sun May 13 18:40:04 2001  Owen Taylor  <otaylor@redhat.com>
7142
7143         * gdk/gdkpixmap.h: Remove creative formatting.
7144
7145 Thu May 10 19:22:28 2001  Owen Taylor  <otaylor@redhat.com>
7146
7147         * gtk/gtktogglebutton.c:  Patch from John Margaglione converting to
7148         property API. (#51669)
7149
7150         * gtk/gtkscale.c: Patch from John Margaglione converting to
7151         property API. (#51891)
7152
7153         * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
7154         to property API. (#50985)
7155
7156 Fri May 11 20:13:44 2001  Tim Janik  <timj@gtk.org>
7157
7158         * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
7159         buffering state across expose event, so we still call end_paint().
7160
7161 2001-05-11  Alexander Larsson  <alexl@redhat.com>
7162
7163         * gtk/gtkhsv.c (paint_triangle):
7164         Expose the ring in the triangle at the correct place when
7165         exposing just a part of the triangle.
7166
7167         * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
7168         Return FALSE, or window focusing will not work.
7169
7170 2001-05-11  Havoc Pennington  <hp@pobox.com>
7171
7172         * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
7173         #54144
7174
7175         * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
7176         bug #54330
7177
7178 Fri May 11 02:53:57 2001  Tim Janik  <timj@gtk.org>
7179
7180         * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
7181         propagate exposes to NULL child.
7182
7183         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
7184         against not having one of the scrollbars.
7185
7186         * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
7187         we don't keep a mnemonic window if we have no mnemonic installed.
7188
7189 Fri May 11 01:05:00 2001  Tim Janik  <timj@gtk.org>
7190
7191         * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
7192         it has the _important_ side effect of initializing a class.
7193
7194 2001-05-10  Alexander Larsson  <alexl@redhat.com>
7195
7196         * gdk/linux-fb/gdkprivate-fb.h:
7197         Make sure you can compile out the implementation/wrapper assert
7198         macros.
7199
7200         * gdk/linux-fb/gdkdrawable-fb2.c:
7201         Check implementation/wrappers, initialize type for pixmap dummys.
7202
7203         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
7204         Hide the cursor if reading from the screen.
7205
7206         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
7207         Fix sign bug in tiling code.
7208
7209         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
7210         Handle background pixmaps.
7211
7212 Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
7213
7214         * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
7215         function to let user control where columns are dragged.
7216
7217         * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
7218         Escape is pressed.
7219
7220 Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@redhat.com>
7221
7222         * gtk/gtktreeview.c (gtk_tree_view_class_init): New
7223         "columns_changed" signal.
7224         (gtk_tree_view_motion_draw_column_motion_arrow): Change column
7225         motion code to draw arrows to the side if indicator is outside the
7226         widget.
7227         (gtk_tree_view_map_expanded_rows): Implement.
7228
7229 2001-05-07  Alexander Larsson  <alexl@redhat.com>
7230
7231         * demos/testpixbuf-save.c: 
7232         * demos/testpixbuf-drawable.c:
7233         Include gdkfb.h on linux-fb.
7234
7235 2001-05-07  Alexander Larsson  <alexl@redhat.com>
7236
7237         * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
7238         New function for getting toplevel window at position.
7239         (gdk_drag_find_window): Use get_toplevel_window () instead
7240         of gdk_window_get_pointer(). (gdk_drag_status): Use
7241         correct context for getting window.
7242
7243         * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
7244         g_strdup the atom name.
7245
7246         * gdk/linux-fb/gdkwindow-fb.c:
7247         Costmetic fix.
7248
7249         * gtk/gtkdnd.c (gtk_drag_source_handle_event):
7250         Add code for changing cursor on linux-fb backend (same as
7251         win32).
7252
7253 2001-05-07  Federico Mena Quintero  <federico@ximian.com>
7254
7255         * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
7256         present before doing anything with it.  Patch from HÃ¥vard KvÃ¥len
7257         <havardk@netcom.no>.  Fixes Ximian bugzilla #2492 (OK, the bug
7258         report was not for the development branch of GTK+, but it applies
7259         anyways).
7260
7261 2001-05-04  Havoc Pennington  <hp@redhat.com>
7262
7263         * configure.in: fix some shell typos
7264
7265         * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
7266
7267         * gtk/gtkimage.c: handle animations
7268
7269         * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
7270         border_width * 2, not just border_width
7271
7272         * gtk/gtkscale.c: add "format_value" signal to allow people
7273         to override the way values are drawn.
7274         (gtk_scale_get_value_size): fix width/height mistake,
7275         and compute size from actual displayed text, not 
7276         from made-up text.
7277
7278         * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in 
7279         signal registration
7280
7281         * tests/testtext.c: Add "Remove all tags" menu item for testing
7282
7283         * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
7284
7285         * demos/gtk-demo/main.c (main): add hack so we can find modules
7286         without installing gtk
7287
7288         * demos/gtk-demo/textview.c (insert_text): demo font scaling
7289
7290         * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
7291         factor)
7292         (gtk_cell_renderer_text_set_property): remove some bogus
7293         g_object_notify
7294
7295         * gtk/gtktexttag.c: add "scale" property which is a font scaling
7296         factor
7297
7298         * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute 
7299         to layout
7300
7301         * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
7302         gtk_text_iter_is_first
7303
7304 2001-01-06  Hans Breuer  <hans@breuer.org>
7305
7306         * gdk/gdk.def : updated exports
7307
7308         * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
7309         gdk won't compile anymore
7310  
7311         * gdk/win32/gdkevents-win32.c : initialize ret_val when
7312         processing GDK_FILTER functions, initialize event.key->hardware_keycode.
7313         Improved gdk_flush () to not only do pending drawing operations
7314         but also process all currently pending events. This should make
7315         the behaviour more similar to the X11 version.  
7316
7317         * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
7318         option needs to be set even if there is no GDK_GC_BACKGROUND.
7319         (gdk_win32_hdc_get) : use predraw_set_background () independent
7320         of value_mask. This allows to draw dashed lines leaving the original
7321         background intact.
7322
7323         * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
7324         after processing, because we can't reuse it as the X11 version does.
7325
7326         * gtk/gtk.def : updated exports
7327
7328         * gtk/makefile.msc.in : added ATK, removed all test apps. (I
7329         would like to get rid of this file again, and use straight
7330         makefile.msc again, as the other Gtk+ subdirs do)
7331
7332         * test/makefile.msc (new file) : build the test apps here
7333
7334 2001-05-05  ERDI Gergo  <cactus@cactus.rulez.org>
7335
7336         * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
7337         strike-through setting
7338         (gdk_draw_layout_line_with_colors): Render strike-through
7339
7340 Sat May  5 10:06:24 2001  Owen Taylor  <otaylor@redhat.com>
7341
7342         * Release 1.3.5
7343
7344         * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
7345
7346         * NEWS: Updated
7347
7348         * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
7349         Makefile breakage.
7350
7351 Sat May  5 09:18:30 2001  Owen Taylor  <otaylor@redhat.com>
7352
7353         * demos/gtk-demo/images.c (progressive_timeout): Fix
7354         typo in filename.
7355
7356         * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
7357         out FIXME warning; just too annoying.
7358
7359 2001-05-04  Alex Larsson  <alla@lysator.liu.se>
7360
7361         * gdk/linux-fb/gdkcolor-fb.c:
7362         Better error messages.
7363
7364         * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
7365         Initialize abs_x and abs_y.
7366         
7367         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
7368         Correct handling of stipple offset.
7369
7370         * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
7371         Treat directcolor framebuffers as truecolor.
7372         
7373 Thu May  3 14:13:49 2001  Owen Taylor  <otaylor@redhat.com>
7374
7375         * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
7376         dependency on Atk for accessibility support.
7377
7378         * configure.in **/Makefile.am: Major reworking of substituted
7379         variables for CFLAGS/LIBS to make a lot more sane and 
7380         keep the the compile/link lines a bit shorter.
7381
7382         * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
7383
7384 Thu May  3 08:10:54 2001  Owen Taylor  <otaylor@redhat.com>
7385
7386         * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
7387         value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
7388         use _gtk_boolean_handled_accumulator.
7389
7390 Thu May  3 07:00:09 2001  Owen Taylor  <otaylor@redhat.com>
7391
7392         * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
7393         to fix things so clicking inside selection leaves cursor
7394         at point where clicked. (#50324)
7395
7396         * gtk/gtksettings.c (gtk_settings_class_init): Restore
7397         sane value for default double click time.
7398
7399         * tests/testtext.c (test_init): Really path to input modules.
7400
7401 2001-05-03  Sven Neumann  <sven@convergence.de>
7402
7403         * demos/testpixbuf-save.c: include target-specific headers as
7404         done in testpixbuf-drawable.c
7405
7406 Wed May  2 20:36:38 2001  Owen Taylor  <otaylor@redhat.com>
7407
7408         * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
7409         new_text_length appropriately when we run into the 
7410         size limit for the entry. (#53445, reported by Jeff Franks)
7411
7412         * tests/testgtk.c (create_entry): Remove most of the
7413         property toggle buttons. Replace with a "Props" button
7414         that brings up a property editor.
7415
7416         * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
7417         Split the property editor code out for reuse, improve.
7418
7419 Wed May  2 17:26:22 2001  Owen Taylor  <otaylor@redhat.com>
7420
7421         * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
7422         trap errors around calls to XSetInputFocus since we have
7423         no way of knowing reliably whether we are viewable or
7424         not. (#53947)
7425
7426 Tue May  1 09:21:23 2001  Jonathan Blandford  <jrb@redhat.com>
7427
7428         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
7429         fix bug in dropping columns.  Moving columns now basically works
7430         modula some fine tuning.
7431
7432 Tue May  1 19:09:21 2001  Jonathan Blandford  <jrb@redhat.com>
7433
7434         * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
7435         autoscroll support.  It mostly works, but could use some fine
7436         tuning.
7437         * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
7438         Actually move the column.
7439
7440 Mon Apr 30 20:29:27 2001  Owen Taylor  <otaylor@redhat.com>
7441
7442         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c 
7443           gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
7444           New default theme! A slighly improved version of the 2.0 Raleigh
7445           theme, with Windows-esque focus/drawing default. 
7446           (GtkWidget::interior_focus defaults to TRUE.)
7447
7448         * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
7449
7450 2001-04-30  Havoc Pennington  <hp@pobox.com>
7451
7452         * tests/testtext.c (line_numbers_expose): fix to work with
7453         gtk_paint_layout change
7454
7455 Mon Apr 30 19:18:07 2001  Owen Taylor  <otaylor@redhat.com>
7456
7457         * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
7458           gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
7459           gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
7460           use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
7461
7462         * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
7463           with GtkWidget::interior_focus = TRUE better.
7464
7465         * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
7466         ::default_outside_border for more flexibility.
7467
7468         * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove 
7469         G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
7470         change that had to be made with g_object_get.
7471
7472 Sun Apr 29 20:13:40 2001  Jonathan Blandford  <jrb@redhat.com>
7473
7474         * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
7475         (gtk_tree_view_move_column_after): Clean up interface. 
7476
7477 Sun Apr 29 03:02:02 2001  Tim Janik  <timj@gtk.org>
7478
7479         * gtk/gtkpacker.h:
7480         * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
7481          to gtkenum.h.
7482
7483         * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
7484         handled in switch).
7485
7486         * gtk/Makefile.am:
7487         (gtk.defs): generate enum portions with  glib-mkenums.
7488         (gtktypebuiltins_evals.c): generate this with glib-mkenums.
7489         got rid of makeenums.pl and makeenums.awk in distributed tarballs.
7490         
7491         * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
7492         addition.
7493
7494         * docs/Changes-2.0.txt: keep a note on signal handlers now
7495         not getting emitted during the emission they were connected within.
7496
7497 2001-04-28  Havoc Pennington  <hp@pobox.com>
7498
7499         * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
7500
7501 2001-04-24  Havoc Pennington  <hp@redhat.com>
7502
7503         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line): 
7504         (gtk_text_layout_move_iter_to_next_line): fix these two for
7505         invisible text, lots of other stuff still hosed.
7506
7507         * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
7508         new function, replaces the get/set palette stuff. This function 
7509         is intended for use by libgnomeui which should set the hook to a
7510         thing which sets the palette in GConf, and we need the
7511         GConf-to-xsettings proxy which will result in the change being
7512         propagated back to the GTK app.
7513
7514         * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning 
7515         about unusable signals that it may be because the signal has 
7516         parameters.
7517
7518         * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
7519         style, otherwise gtkrc.c won't know to create a new GtkStyle for
7520         it.
7521         (gtk_widget_modify_color_component): call
7522         gtk_widget_modify_style() so the rc style will get copied.
7523         (gtk_widget_modify_font): ditto
7524
7525         * gtk/gtkrc.c: make a couple variables static
7526
7527         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
7528         help button by default, since it does nothing
7529
7530         * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
7531         around with UI
7532
7533         * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
7534         so we can have tooltips
7535
7536         * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
7537         can have tooltips
7538
7539         * gdk/gdkimage.h: mark gdk_image_new_bitmap with
7540         GDK_ENABLE_BROKEN, because its memory behavior is completely
7541         hosed.
7542
7543         * gtk/gtknotebook.c: remove key press handler, replace with
7544         binding set, add numeric keypad support
7545
7546         * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
7547
7548         * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
7549
7550         * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
7551         addition to plain Delete
7552
7553         * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
7554         GDK_KP_Enter in addition to GDK_Return
7555
7556         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
7557         activate on entry instead of key press
7558         (gtk_font_selection_on_clist_key_press): get
7559         rid of this signal handler, not needed with new font sel.
7560
7561         * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
7562         no-longer-needed emit_stop_by_name(), just return TRUE
7563
7564         * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
7565         cruft, this widget is no longer focusable.
7566
7567         * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
7568         gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
7569         move_slider action signal, add binding set for vscale/hscale, in
7570         the process support numeric keypad
7571
7572         * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings; 
7573         make GDK_Return and GDK_KP_Enter activate the entry via 
7574         binding set, instead of hardcoded.
7575
7576 Fri Apr 27 20:27:21 2001  Jonathan Blandford  <jrb@redhat.com>
7577
7578         * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
7579         code.  Some documentation added.
7580
7581 2001-04-27  Havoc Pennington  <hp@redhat.com>
7582
7583         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
7584
7585         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
7586
7587         * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
7588         line/para separators
7589         (gtk_entry_create_layout): set single paragraph mode on the layout
7590
7591         * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
7592         spacing between the image and label; instead, inside a button box 
7593         the button will get extra space that will go there, but if people 
7594         configure button box for 0 chubbiness, then there's no spacing.
7595
7596         * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
7597         and min/max size style properties, so people can tune their
7598         chubbiness.
7599
7600         * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
7601         functions
7602
7603         * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
7604         space_style, and button_relief into style properties, remove
7605         functions for setting them
7606         
7607         * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop 
7608         it back down
7609
7610         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
7611         types from gtk_widget_style_get
7612
7613         * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
7614         with a style property.
7615
7616         * gdk/x11/gdkevents-x11.c: namespace the settings
7617
7618         * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
7619
7620         * gtk/gtksettings.c (gtk_settings_class_init): remove code with
7621         side effects from inside g_assert(), so that G_DISABLE_ASSERT can
7622         be used. Also, translate doc strings for settings. Also, namespace
7623         the double-click-time property. Also, remove bell properties crap.
7624
7625 2001-04-27  Sven Neumann  <sven@gimp.org>
7626
7627         * Makefile.am: before creating links, check if pkg-config files
7628         exist for the default target. Otherwise link to the pkg-config files
7629         that got installed with this build.
7630
7631 Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
7632
7633         * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
7634         dragging code.  Revealed some (potential) GdkWindow bugs.
7635
7636         * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
7637         _gdk_window_init_position to the end of reparent to fix the case
7638         of reparenting when new_x != old_x and new_y != old_y.
7639
7640 Thu Apr 26 10:54:50 2001  Owen Taylor  <otaylor@redhat.com>
7641
7642         * gtk/gtkentry.c (strstr_len): Fix optimization that
7643         was correct for the use here, but completely incorrect
7644         in general.
7645
7646 Thu Apr 26 10:40:41 2001  Owen Taylor  <otaylor@redhat.com>
7647
7648         * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
7649         until patch adding gtk_window_set_size() is recommitted. 
7650
7651         * **Makefile.am configure.in gdk/x11/gdkim-11.c
7652           gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
7653           gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
7654           (#10784)
7655
7656 Wed Apr 25 12:16:36 2001  Owen Taylor  <otaylor@redhat.com>
7657
7658         * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for 
7659         window == NULL in a number of cases.
7660
7661         * tests/testdnd.c: Set module path for gdk-pixbuf.
7662
7663 Thu Apr 19 16:11:07 2001  Owen Taylor  <otaylor@redhat.com>
7664
7665         * gtk/Makefile.am xembed.h: File containing #defines
7666         for XEMBED protocol.
7667
7668         * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: 
7669
7670         - Change protocol from old plug/socket specific protocol
7671           to XEMBED draft
7672         - Various fixes to work with GTK+-2.0
7673
7674         Still quite a bit of work to do here to handle initiation
7675         from the socket side (as specified by XEMBED), to handle
7676         the more advanced features of XEMBED, and to figure out
7677         a good way to handle same-app embedding with less overhead
7678         than using full XEMBED.
7679
7680 Wed Apr 18 16:04:28 2001  Owen Taylor  <otaylor@redhat.com>
7681
7682         * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
7683         track of whether the toplevel has the focus; only send
7684         focus-in events to the focus widget when the window
7685         actually has the focus.
7686
7687 2001-04-25  Havoc Pennington  <hp@pobox.com>
7688
7689         * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
7690         were still in the header
7691
7692 2001-04-24  Alexander Larsson  <alexl@redhat.com>
7693
7694         * gtk/gtkclist.[ch]:
7695         * gtk/gtkctree.c:
7696         When there is a row highlighted for D'n'D it must alse
7697         be painted hightlighted on exposes. Otherwise exposes from
7698         the icon being dragged will mess up the hightlight.
7699
7700         * gtk/gtkfontsel.c:
7701         Don't recenter selected font when exposing the font family
7702         clist. This means you can now actually scroll the font family
7703         list.
7704
7705         * gtk/gtknotebook.c:
7706         Fix focus movement on scrolling tabs that are placed on the left
7707         and right.
7708
7709 2001-04-21  Havoc Pennington  <hp@pobox.com>
7710
7711         * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
7712         empty/invisible lines.
7713
7714         * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
7715         (gtk_text_iter_set_visible_line_index): new functions to set
7716         indexes excluding invisible text
7717
7718         * gtk/gtktextlayout.c (line_display_iter_to_index): get visible 
7719         index
7720
7721         * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
7722         (gtk_text_iter_get_visible_line_offset): new functions to 
7723         get indexes excluding invisible text
7724
7725         * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
7726         bunch of extra padding that served no purpose
7727
7728         * gtk/gtkdialog.c: Make all the spacings configurable via style
7729         properties, for chubbiness configuration in themes
7730
7731         * tests/testtext.c: fix path to the immodules.
7732         
7733 Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
7734
7735         * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
7736         got munched by #endif.
7737
7738         * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
7739
7740         * gtk/gtktreeview.c: Refactored code to clean up a number of
7741         events.
7742
7743         * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
7744         values to make consistent with other functions.  Spotted by Jeff
7745         Franks <jcf@tpg.com.au>.
7746
7747         * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
7748         declaration spotted by Jeff Franks <jcf@tpg.com.au>.
7749
7750 2001-04-23  Sven Neumann  <sven@gimp.org>
7751
7752         * gtk/Makefile.am
7753         * gtk/gtkplug.c
7754         * gtk/gtksocket.c: on request of Owen, reverted my last change 
7755         and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
7756
7757 2001-04-23  Sven Neumann  <sven@gimp.org>
7758
7759         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
7760         compile for non-X11 targets again
7761
7762 2001-04-20  Alexander Larsson  <alexl@redhat.com>
7763
7764         * gtk/gtkcolorsel.[ch]:
7765         API Change. Take GdkColor arguments instead of gdouble *.
7766         Leave the old gtk_color_selection_set_color for compatibility,
7767         but marked deprecated.
7768         Do correct rounding when converting RGB <-> HSV.
7769         
7770         * gtk/gtkcolorseldialog.c:
7771         * tests/testgtk.c:
7772         Use new GtkColorSelection API.
7773
7774         * gtk/gtkhsv.c:
7775         Fix problem selecting colors in triangle when Hue is 330.
7776         Fix some black dots around the HSB triangle.
7777         
7778         * gtk/gtkfilesel.c:
7779         return FALSE from the focus_in_event handler to fix focus problems.
7780
7781 2001-04-18  Havoc Pennington  <hp@redhat.com>
7782
7783         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
7784         set, so keybindings are configurable    
7785         (gtk_window_activate_default): Change to activate the focus widget
7786         instead if there's a focus widget, to be consistent with the
7787         behavior that previously existed in key_press_event
7788
7789 2001-04-18  Havoc Pennington  <hp@redhat.com>
7790
7791         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
7792
7793 2001-04-18  Havoc Pennington  <hp@redhat.com>
7794
7795         Close bug #50615:
7796         
7797         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
7798         the layout
7799
7800         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
7801
7802         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
7803
7804         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
7805         
7806         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
7807         to blue for base, in addition to bg
7808         
7809 2001-04-18  Havoc Pennington  <hp@redhat.com>
7810
7811         * tests/testgtk.c (create_image): allow shrinking the image window
7812         to test that we clip to allocation.
7813
7814         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
7815         #9845
7816
7817         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
7818
7819 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
7820
7821         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
7822         mode on shm segments to 0600. We'll see who complains.
7823
7824         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
7825         _gdk_windowing_window_destroy() AFTER recursing through
7826         children.
7827
7828         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
7829         testsocket_child on X.
7830
7831         * tests/testsocket[_child].c: Fix uses of
7832         gtk_window_get_default_accel_group().
7833
7834         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
7835
7836         * gdk/gdkimage.c: (gdk_image_get):
7837         Deal with the possibility that XGetImage() might return NULL.
7838         Allocate the GdkImagePrivate structure only after XGetImage()
7839         succeeds in order not to dereference a NULL ximage pointer.  This
7840         prevents a core dump when XGetImage() fails - which is unlikely,
7841         but can happen due to race conditions accessing the geometries of
7842         drawables.  An x error will still be triggered, but the gdk image
7843         wrapper at least wont seg fault.
7844         
7845 2001-04-18  Havoc Pennington  <hp@redhat.com>
7846
7847         * gtk/gtkimage.c: fix to properly queue resizes when the image is
7848         set
7849
7850         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
7851         if the insertion point isn't editable
7852
7853         * demos/gtk-demo/images.c: Added a GtkImage demo
7854
7855         * demos/gtk-demo/drawingarea.c: drawing area demo
7856         
7857         * demos/gtk-demo/menus.c (create_menu): cleanups
7858
7859 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
7860
7861         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
7862           gdk/x11/gdkevents-x11.c: Introduce an extra child
7863         of toplevel windows that serves to hold the focus to
7864         avoid events being delivered to embedded windows.
7865
7866         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
7867         some extra variables to clean up code and reduce the
7868         number of casts.
7869
7870         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
7871         guint for 1 bit bit fields, not gboolean.
7872
7873 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
7874
7875         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
7876         not TRUE. (Fixes #52925)
7877
7878 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
7879
7880         * Released 1.3.4
7881
7882         * NEWS: Updated
7883
7884         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
7885         use GTK_TYPE_ENUM.
7886
7887 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
7888
7889         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7890
7891         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
7892         names to compatibility #defines so docs work.
7893
7894         * gtk/gtkenums.h: Remove GtkMenuFactoryType
7895
7896         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
7897
7898         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
7899
7900         * tests/testgtkrc: No magenta cursors, please.
7901
7902         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
7903
7904         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
7905         
7906 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
7907
7908         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
7909         grabs, since they are no longer necessary.
7910
7911         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
7912         by signal_connect() and call gtk_button_pressed() rather
7913         than signal_connect_after().
7914
7915         * tests/testgtk.c: Restore radio menu items to combos 
7916         since they'll look OK with Raleigh, and it is easier
7917         than finishing the process of removing them that was
7918         started earlier.
7919
7920 2001-04-16  Hans Breuer  <hans@breuer.org>
7921
7922         * gdk/gdk.def :
7923         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
7924
7925         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
7926         we are interested in the functions return value not the function address
7927         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
7928
7929         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
7930
7931 2001-04-14  Hans Breuer  <hans@breuer.org>
7932
7933         * gdk/gdk.def :
7934         * gdk/makefile.msc : updated
7935
7936         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
7937         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
7938         (the testgtk::text backgound pixmap is drawn again)
7939         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
7940         Win32 Pango change
7941         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
7942
7943         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
7944         Not sure if the returned settings have the right unit, because I couldn't
7945         find any docs for the X version ...
7946
7947         * gtk/gtk.def :
7948         * gtk/makefile.msc.in : updated
7949
7950 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
7951
7952         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
7953         wording problems. (Compared to version from Johannes Stezenbach to
7954         check correctness.)
7955
7956 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
7957
7958         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
7959         this to compile.
7960
7961 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
7962
7963         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
7964         not pixbufpos.
7965
7966         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
7967
7968         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
7969         are unsigned insts, therefore use g_value_set_uint.
7970         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
7971
7972 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@redhat.com>
7973
7974         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
7975
7976         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
7977         GTK_TYPE_STRING.
7978
7979         * gtk/gtktreeview.c: New functions to allow initial column
7980         dragging work.
7981
7982         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
7983
7984         * tests/testtreefocus.c: give dave some love.
7985
7986         * tests/testtreesort.c: Modify test to check really long samples.
7987
7988 2001-04-11  Alexander Larsson  <alexl@redhat.com>
7989
7990         * gtk-2.0.m4: Pass pkg-config options
7991         before the other args so it works even if
7992         POSIXLY_CORRECT is set.
7993
7994 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
7995
7996         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
7997         0, interface 0).
7998
7999 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
8000
8001         * gtk/gtkcalendar.c (gtk_calendar_button_press):
8002         check for action_func != NULL
8003
8004 2001-04-04  Sven Neumann  <sven@gimp.org>
8005
8006         * tests/testgtk.c (test_init): corrected path to gtk.immodules
8007
8008 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
8009
8010         * Released Gtk+-1.3.3.
8011
8012 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
8013
8014         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
8015
8016 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
8017
8018         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
8019         files to/from source dir. (if we don't stay in builddir, we
8020         can't reach make-inline-pixbuf.
8021
8022         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
8023         deps.
8024
8025         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
8026         ages 0).
8027
8028 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
8029
8030         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
8031         moved to the GtkTreeSortable interface.
8032
8033         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
8034         Make more efficient (fixes #50262).
8035
8036 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
8037
8038         * NEWS: Updated.
8039
8040         * configure.in: Remove support for uninstalled glib.
8041
8042         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
8043         so as not to stop emission.
8044
8045         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
8046         is no longer supported.
8047
8048         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
8049         into tests, change build order to build modules before
8050         gtk/.
8051
8052         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
8053         to here.
8054
8055 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
8056
8057         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
8058         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
8059         GPatternSpec. this is actually unlikely to cause breakage in
8060         third-party apps since except for gle, pretty much ever caller
8061         passes NULL here.
8062
8063         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
8064
8065         * *.c: use g_pattern_*() API.
8066
8067         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
8068
8069         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
8070         directions aren't passed in.
8071
8072         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
8073         functionality to be usable from gtkstyle.c as well, give precedence
8074         for conversion to user-supplied parsers.
8075         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
8076
8077         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
8078         _gtk_settings_parse_convert() for rcporperty value conversion.
8079
8080 2001-04-03  Alexander Larsson  <alexl@redhat.com>
8081
8082         * gdk/linux-fb/gdkevents-fb.c:
8083         Add empty gdk_setting_get().
8084
8085 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
8086
8087         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
8088         variable names.
8089         
8090         * gtk/makeenums.pl: touch this so enum files get remade.
8091
8092 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
8093
8094         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
8095         work again when not sorted.
8096
8097         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
8098         and "expand_row" signal, closing bug 52578.
8099
8100         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
8101         support.
8102
8103         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
8104         support.
8105
8106 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
8107
8108         * gdk/gdkevents.h: Add GdkEventSetting event for notification
8109         of changes to system settings, gdk_setting_get() to retrieve
8110         a single system setting.
8111
8112         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
8113         to the draft XSETTINGS mechanism.
8114
8115         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
8116         XSETTINGS.
8117
8118         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
8119         of GDK settings changes to the GtkSettings object.
8120
8121         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
8122         double-click-timeout property to GDK.
8123
8124         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
8125         Define GDK boxed types here.
8126
8127         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
8128         gdk/gdkenumtypes.[ch] for enum definitions.
8129
8130         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
8131         * gtk/gtk-boxed.defs: Comment out GDK types
8132         * gtk/gtktypeutils.h: Remove GDK types
8133         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
8134
8135 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
8136
8137         * Applied patch from Ron Steinke to add signal accumulators
8138         so that signals with the convention 'TRUE return means
8139         handled' stop emission on a TRUE return.
8140
8141         * gtk/gtkmain.[ch]: Add private accumulator 
8142         _gtk_boolean_handled_accumulator, used throughout GTK+.
8143         
8144         * gtk/gtkspinbutton.c: Add accumulator for ::output.
8145
8146         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
8147         
8148         * gtk/gtkwidget.c: Add accumulators for event signals,
8149         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
8150         for ::mnemonic-activate.
8151
8152         * gtk/gtkwindow.c: Add accumulator for ::frame_event
8153
8154 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
8155
8156         * gtk/gtkwidget.c: Add missing include.
8157
8158 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
8159
8160         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
8161         marshaller.
8162
8163         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
8164         "changed" signal to "range_changed".
8165
8166         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
8167         removing a tree from one model would remove all trees from that
8168         model.
8169         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
8170         changed signal instead.
8171
8172 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
8173
8174         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
8175         chaining up to parent impl, since we have a INPUT_ONLY
8176         window.
8177
8178         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
8179         foreground color for the cursor.
8180
8181 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
8182
8183         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
8184         param spec when caching property values, since we unref it
8185         later when we free the style.
8186
8187         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
8188         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
8189
8190 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
8191
8192         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
8193         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
8194         stupidity.
8195
8196 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
8197
8198         [ First pass at adding style properties. Still needs some definite
8199         fine-tuning. ]
8200
8201         * gtk/gtkbutton.c: Add ::default_spacing style property.
8202          
8203         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
8204         ::indicator_spacing style properties.
8205
8206         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
8207         style properties.
8208
8209         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
8210         rather than a normal property.
8211
8212         * gtk/gtkwidget.c: Add an ::interior_focus style property to
8213         draw focus inside buttons, in the Windows/Java Metal/etc. style.
8214
8215         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
8216         Honor ::interior_focus.
8217         
8218         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
8219         TRUE.
8220
8221         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
8222         Add ::slider_width, ::trough_border, ::stepper_size,
8223         ::stepper_spacing style properties.
8224
8225         * gtk/gtkscale.[ch] Add ::slider-length style property.
8226
8227 2001-04-02 Alexander Larsson   <alexl@redhat.com>
8228
8229         * gdk/linux-fb/gdkwindow-fb.c:
8230         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
8231         warnings that were spewed on startup.
8232
8233         * gtk/gtkwindow-decorate.c:
8234         gtk_window_reposition -> _gtk_window_reposition
8235
8236 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
8237
8238         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
8239         Add boxed type for GtkRequistion. Use it for ::size-request.
8240
8241         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
8242         Add a new GtkBorder structure useful for geometry properties
8243         for widgets. Add corresponding GTK_TYPE_BORDER.
8244         
8245         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
8246         Support automatic parser selection like
8247         gtk_settings_install_property_parser().
8248
8249         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
8250         functionality for use by gtk_widget_class_install_style_property.
8251         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
8252
8253 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
8254
8255         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
8256         g_param_spec_unichar(). 
8257
8258 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
8259
8260         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
8261         _NET window managers.
8262
8263         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
8264
8265 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
8266
8267         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
8268         bad needs to be nuked, not just deprecated.
8269
8270         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
8271         gtk_widget_popup().
8272
8273         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
8274         
8275         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
8276         widget.
8277         
8278         * docs/Changes-2.0.txt: updates.
8279         
8280 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
8281
8282         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
8283         for (i = 0; i < 100; i ++)
8284           g_print ("I will confirm it compile before committing\n");
8285
8286 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
8287
8288         * gtk/gtktreestore.c: Initial work on implementing the
8289         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
8290
8291 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
8292
8293         * gtk/gtkwidget.c: fixed a bunch of notifications, added
8294         reference counts around emissions where the widget is used afterwards.
8295         added freeze/thaws around multiple properties being notified.
8296         (_gtk_widget_get_aux_info): cleanups.
8297         
8298         * gtk/gtksettings.c (gtk_settings_install_property): provide
8299         default parsing functions for gdkcolor, enums and flags.
8300
8301         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
8302         applied by owen.
8303         backed out gtk_window_get_location(), gtk_window_set_location(),
8304         gtk_window_get_size() and gtk_window_set_size(), these
8305         have to be sorted out wrg x/y/width/height/default_with/default_height
8306         properties.
8307         kept a flag in GtkWindowGeometryInfo to handle user
8308         resetting default sizes.
8309         cleaned up ZVT comments.
8310         bunch of assorted bug fixes, notification fixes.
8311         (_gtk_window_reposition): make this a really internal function.
8312         
8313         * gtk/testgtk.c: fixups.
8314         
8315 2001-03-31  Hans Breuer  <hans@breuer.org>
8316
8317         * config.h.win32.in : disable USE_MMX for msvc build cause
8318         the assembler doesn't fit and is out of my scope. Disable
8319         USE_GMODULE for msvc build as wel. The right way to share
8320         binaries on win32 would be to use libtiff.dll etc. To reduce
8321         installation hassles IMO it's better to include all fileformats
8322         builtin to gdk-pixbuf
8323
8324         * gdk-pixbuf/makefile.msc : new file
8325
8326         * gdk/gdk.def : updated
8327
8328         * gdk/win32/gdkevents-win32.c : don't erase the background if
8329         .no_bg is set. It improves the scrolling (e.g. of testgtk main
8330         buttons
8331         * gdk/win32/gdkgeometry-win32.c : added comment about the above
8332
8333         * gdk/win32/gdkwindow-win32.c : added three new functions like
8334         the X version. Only one is implemented, because the other two
8335         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
8336         be default behaviour on win32 anyway ...
8337
8338         * gtk/gtk.def : updated
8339
8340         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
8341         from where it was built and add an additional rule to automagically
8342         build gtkmarshal.[hc]
8343
8344         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
8345         before array access for the current entry isn't finished
8346
8347         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
8348         use g_return_val_if_fail
8349
8350         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
8351         for the static array, but let the compiler calculate it. It
8352         makes me wonder if gcc isn't capable to catch bugs like this ...
8353
8354 2001-03-31  James Henstridge  <james@daa.com.au>
8355
8356         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
8357         constant "-1" in the aux info structure.
8358
8359 2001-03-30  Alexander Larsson  <alexl@redhat.com>
8360
8361         * gtk/gtkbutton.c (gtk_button_get_property):
8362         * gtk/gtklabel.c:
8363         Remove leaks.
8364         
8365         * gtk/gtkcontainer.c:
8366         * gtk/gtkhscale.c:
8367         * gtk/gtkhscrollbar.c:
8368         * gtk/gtklayout.c:
8369         * gtk/gtkmisc.c:
8370         * gtk/gtkprogress.c:
8371         * gtk/gtkprogressbar.c:
8372         * gtk/gtkrange.c:
8373         * gtk/gtktable.c:
8374         * gtk/gtkviewport.c:
8375         * gtk/gtkvscale.c:
8376         * gtk/gtkvscrollbar.c:
8377         * gtk/gtkwidget.c:
8378         Property patches, based on patches from John Margaglione and Lee Mallabone.
8379
8380 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
8381
8382         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
8383         adjustment. Cleaned redundant preconditions (spin != NULL). Added
8384         inline API function docs.
8385         (gtk_spin_button_new_with_range): New convenience constructor.
8386         (gtk_spin_button_set_increments): New adjustment helper.
8387         (gtk_spin_button_set_range): New adjustment helper.
8388
8389         * gtk/testgtk.c : added test of the new convenince constructor and
8390         value_changed signals.
8391
8392 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
8393
8394         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
8395         listen to the reorder signal.
8396
8397 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
8398
8399         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
8400         to get the aux info structure fo the widget.
8401
8402         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
8403         above function.
8404
8405         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
8406
8407         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
8408         to get the size of the window manager frame, basically the same
8409         code that gdk_window_get_root_origin() had
8410         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
8411
8412         * gtk/gtkwindow.c (gtk_window_set_default_size): use
8413         gdk_window_resize() if the window is realized and resizeable
8414
8415         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
8416         typo so that setting gravity works
8417
8418         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
8419         allocation if auto_shrink is on, even if the default size
8420         has not changed.
8421
8422         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
8423         g_return_if_fail
8424
8425 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
8426
8427         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
8428         reordering/sorting work.  Now pretty much works.
8429
8430         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
8431         reorder mostly work.  Still need to get the parity correct.
8432
8433         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
8434         signal, so I can listen for the sort_column_changed signal so I
8435         can change my "sort_indicator" property.  Cool.
8436
8437 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
8438
8439         [ Patch from Havoc Pennington, hp@redhat.com ]
8440
8441         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
8442         Add functions gdk_window_begin_resize_drag/begin_move_drag
8443         to start resizing or moving a toplevel window. This
8444         is done either using the _NET_WM_MOVERESIZE protocol,
8445         or, if that isn't present, by emulation.
8446
8447         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
8448         to export the above to GTK+-land.
8449
8450         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
8451         
8452         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
8453         Move this function into gdkwindow, since we need it
8454         when implementing fallback resizing.
8455
8456         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
8457         Fix typo when setting gravity.
8458
8459         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
8460         Add an optional (but on by default) resize grip for resizing 
8461         the parent window.
8462
8463 01-03-29  Alexander Larsson  <alexl@redhat.com>
8464
8465         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
8466         Don't return TRUE from the event handler, that blocks all
8467         event signals on the tooltip widget. Now you can press buttons
8468         in toolbars again.
8469
8470 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
8471
8472         * gtk/testtext.c (create_buffer): Add missing NULL on
8473         valist.
8474
8475         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
8476         c-n-p problem with INCONSISTENT property.
8477
8478         [ Patch from Havoc Pennington  <hp@redhat.com> ]
8479
8480         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
8481         hook.
8482
8483         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
8484         signal as a hook for extending the default popup menu
8485
8486         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
8487         use radio menu items for the input method menuitems
8488
8489         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
8490         inserted unicode from Ctrl-Shift-hex input method
8491
8492         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
8493         validatation here, already done at GtkTextBuffer level.
8494
8495         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
8496         popup_menu run action signal and Shift+F10 and Menu keybindings.
8497
8498         * gtk/gtkentry.c: implement a default handler for popup_menu
8499
8500         * gtk/gtktextview.c: implement a default handler for popup_menu
8501
8502         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
8503         from a key event
8504         
8505         * gtk/gtklabel.c: remove "trailer" cruft
8506
8507 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
8508
8509         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
8510         handle reordering of trees.  Seems to mostly work w/ the exception
8511         of the parity flag.
8512
8513         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
8514         signal.
8515
8516 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
8517
8518         * gtk/gtkwidget.h: c++ fixes.
8519
8520 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
8521
8522         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
8523         memory.
8524
8525 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
8526
8527         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
8528         Nils Barth fixing event return values. (#51041)
8529
8530         * gtk/gtkwidget.c: Fix some return values for default
8531         functions.
8532
8533         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
8534         return values for trough_keys functions.
8535
8536         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
8537         value for add_accelerator (shoudl have been a void
8538         return.)
8539
8540         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
8541         Fix return type of EVENT.
8542
8543         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
8544         signal return a boolean.
8545
8546 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
8547
8548         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
8549         reordered signal.
8550
8551         * tests/testtreesort.c (main): fix spelling.
8552
8553 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
8554
8555         * gtk/gtkliststore.c: More work on implementing sortable
8556         interface.
8557
8558 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
8559
8560         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
8561         reference the widgets in the resulting list. (#11821)
8562         This makes this consistent with gtk_container_children.
8563
8564         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
8565         uses of gtk_window_list_toplevels.
8566
8567 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
8568
8569         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
8570         a virtual function to set whether the IM context should use 
8571         the preedit string. (#51922)
8572         
8573 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
8574
8575         * gdk/gdkpango.h: Remove stale FIXME comment.
8576
8577 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
8578
8579         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
8580         Fixed bug that returned NULL if a filename was selected.
8581
8582 2001-03-24  Havoc Pennington  <hp@pobox.com>
8583
8584         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
8585         to contain the word "theme"
8586
8587 2001-03-24  Havoc Pennington  <hp@pobox.com>
8588
8589         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
8590         slower but finer-grained
8591         (gtk_hsv_focus): get initial focus on the ring or triangle 
8592         according to tab direction
8593
8594         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
8595
8596 2001-03-23  Havoc Pennington  <hp@pobox.com>
8597
8598         * gtk/gtkhsv.c: make this somewhat key-navigable
8599
8600         * gtk/gtkfontsel.c: mnemonics
8601
8602         * gtk/gtkgamma.c: mnemonics
8603
8604         * gtk/gtkcolorsel.c: add mnemonics to labels
8605
8606 2001-03-22  Havoc Pennington  <hp@pobox.com>
8607
8608         Applied big patch from Seth Lytle to fix event handler return
8609         values, slightly modified.
8610
8611         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
8612         handled.
8613         (gtk_calendar_key_press): return TRUE for GDK_space triggers
8614         select_day
8615
8616         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
8617         (gtk_clist_button_release): return TRUE if handled
8618
8619         * gtk/gtkcolorsel.c (mouse_release):
8620         (palette_activate): 
8621         (palette_press): 
8622         (palette_new): 
8623         (mouse_press): 
8624         (get_screen_color): 
8625         fixed return type (void to gboolean), return TRUE,
8626         added GTK_SIGNAL_FUNC cast
8627
8628         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
8629         (void to gboolean), and return TRUE
8630         (gtk_combo_button_release): changed return value to TRUE after
8631         gtk_grab_add on combo->popwin
8632
8633         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
8634         collapse or expand
8635
8636         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
8637         button/motion
8638
8639         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
8640         press/release and motion that trigger act
8641
8642         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
8643
8644         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
8645         for GDK_Return
8646         
8647         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
8648         (gtk_list_button_release): return TRUE if selection
8649
8650         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
8651         press
8652
8653         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
8654         (gtk_menu_shell_button_release): chain parent_menu_shell retval
8655
8656         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
8657         nothing triggered
8658         (gtk_notebook_button_release): return TRUE if we do anything
8659
8660         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
8661         (gtk_spin_button_button_release): return TRUE or chained retval
8662
8663         * gtk/gtktext.c (gtk_text_button_press): 
8664         (gtk_text_button_release): return TRUE
8665         (gtk_text_key_press): remove redundant retval code
8666         
8667         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
8668         and sensitive
8669         (gtk_tree_item_subtree_button_click): changed type to gint, and return
8670         TRUE if sensitive
8671
8672         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
8673         return TRUE
8674
8675 2001-03-23  Havoc Pennington  <hp@redhat.com>
8676
8677         * gtk/testgtk.c: fix warnings
8678
8679         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
8680
8681         * gtk/gtktextview.c: fix warnings
8682
8683         * gtk/gtktext.c (find_cursor_at_line): fix warning
8684
8685         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
8686
8687         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
8688         of this function
8689
8690         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
8691         fix warning
8692
8693         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
8694
8695         * gtk/gtkfontsel.c: fix warning
8696
8697         * gtk/gtkcolorsel.c: fix warnings
8698
8699 2001-03-23  Havoc Pennington  <hp@redhat.com>
8700
8701         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
8702
8703         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
8704
8705         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
8706         and deprecated gtk_check_menu_item_set_show_toggle().
8707         
8708         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
8709
8710         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
8711
8712         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
8713
8714 2001-03-23  Havoc Pennington  <hp@redhat.com>
8715
8716         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
8717         some docs
8718
8719 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
8720
8721         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
8722         this.
8723
8724         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
8725         set_cell to set_value
8726
8727         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
8728         set_cell to set_value
8729
8730 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
8731
8732         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8733         fix braino.
8734         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
8735         support.
8736
8737         * gtk/gtktreeview.c: Addition of initial sortable support.
8738
8739         * gtk/gtktreestore.c: Addition of initial sortable support.
8740
8741         * gtk/gtkliststore.c: Addition of initial sortable support.
8742
8743         * gtk/gtkmarshal.list: yet another marshaller.
8744
8745         * gtk/gtktreedatallist.[ch]: shared code between the store models
8746         for handling sorting headers.
8747
8748 2001-03-22  Havoc Pennington  <hp@redhat.com>
8749
8750         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
8751         (gtk_container_unset_focus_chain): Add ability to override the 
8752         focus chain for a container explicitly
8753
8754 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
8755
8756         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
8757         added PROP_MNEMONIC_WIDGET.
8758
8759         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
8760         (gtk_window_remove_mnemonic): 
8761         (gtk_window_add_mnemonic): fixed assertions.
8762         (gtk_window_activate_mnemonic): constrain modifier checks to those
8763         permitted by gtk_accelerator_get_default_mod_mask().
8764         got rid of gtk_window_get_default_accel_group().
8765
8766         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
8767         activatable widgets either by focussing or a warning.
8768         added a signal accumulator to ::activate_mnemonic which stops the
8769         emission once a handler returned TRUE.
8770
8771 2001-03-22  Havoc Pennington  <hp@pobox.com>
8772
8773         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
8774         the stock item label
8775
8776         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
8777
8778         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
8779
8780         * demos/gtk-demo/*.c: Add mnemonics all over the place
8781
8782         * gtk/gtklabel.h: mark parse_uline deprecated
8783
8784 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8785
8786         * gtk/gtkitemfactory.[ch]:
8787         Add support for stock and normal imagemenuitems.
8788         
8789         * gtk/testgtk.c:
8790         Add some tests for mnemonics, stock toolbars, stock
8791         and image menuitems in itemfactory and gdk_window_scroll.
8792
8793 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8794
8795         * gtk/gtkbutton.[ch]:
8796         * gtk/gtkdialog.c:
8797         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
8798         removed accel_group argument. Renamed gtk_button_new_accel() to
8799         gtk_button_new_with_mnemonic() and removed accel_group argument.
8800
8801         * gtk/gtkcheckbutton.[ch]:
8802         New function gtk_check_button_new_with_mnemonic().
8803
8804         * gtk/gtkentry.c:
8805         Override activate_mnemonic and just grab focus.
8806
8807         * gtk/gtkitemfactory.c:
8808         Don't add menu uline accel group, instead use mnemonics support.
8809
8810         * gtk/gtklabel.[ch]:
8811         New support for mnemonics.
8812
8813         * gtk/gtkmarshal.list:
8814         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
8815
8816         * gtk/gtkmenu.[c]:
8817         * gtkmenushell.c:
8818         Use mnemonics instead of accel groups for uline
8819         support in menu items.
8820         Removed gtk_menu_get_uline_accel_group() and
8821         gtk_menu_ensure_uline_accel_group().
8822
8823         * gtk/gtkmenuitem.c:
8824         Override activate_mnemonic to handle switching between
8825         menu items if there are collisions.
8826         
8827         * gtk/gtknotebook.c:
8828         Connect to activate_mnemonic on the tab_label, so that
8829         activating it switches to that notebook page.
8830
8831         * gtk/gtkwidget.[ch]:
8832         Add activate_mnemonic signal. New function
8833         gtk_widget_activate_mnemonic() to emit it.
8834         Default implementation does activate/grab_focus.
8835
8836         * gtk/gtkwindow.[ch]:
8837         Add support for mnemonics in windows.
8838         New functions:
8839         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
8840         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
8841
8842         * gtk/testgtk.c:
8843         Update to function name changes.
8844         
8845 2001-03-21  Alexander Larsson  <alexl@redhat.com>
8846
8847         * gtk/gtkimagemenuitem.[c]:
8848         Add gtk_image_menu_item_new_from_stock()
8849
8850 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
8851
8852         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
8853         Fix buglet in meeting.
8854
8855 2001-03-19  Havoc Pennington  <hp@redhat.com>
8856
8857         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
8858         add a bunch of accessor functions. This is because we have
8859         reasonable expectations of extending what fields it contains in
8860         the future.
8861
8862         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
8863         changes
8864
8865         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
8866         GtkIconSource   
8867
8868 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
8869
8870         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
8871         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
8872
8873         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
8874           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
8875           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
8876           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
8877         Change float to double everywhere with the exception of 0<->1.0 alignment
8878         and GtkCurve.
8879
8880 2001-03-19  Tor Lillqvist  <tml@iki.fi>
8881
8882         * gdk/win32/gdkdrawable-win32.c
8883         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
8884         output.
8885
8886         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
8887         gdkwin32.h.
8888
8889 2001-03-18  Tor Lillqvist  <tml@iki.fi>
8890
8891         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
8892         print_event_state, print_event): Use preprocessor macro to make
8893         code more compact. Print also GDK_WINDOW_STATE events.
8894         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
8895         
8896         * gtk/gtk.def
8897         * gtk/makefile.mingw.in: Update.
8898
8899         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
8900         to catch also Cygwin.
8901
8902 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
8903
8904         * gtk/gtkspinbutton.[hc]: added rc-style argument
8905         GtkSpinButton::shadow_type.
8906         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
8907         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
8908         rc-style settings.
8909
8910         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
8911
8912         * gtk/gtkwidget.c: quark cleanups.
8913
8914         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
8915         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
8916         to create_rc_style() (we don't do cloning in standard OO sense).
8917         added per rc style properties.
8918         
8919         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
8920         property values and for caching those. some cleanups.
8921         
8922         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
8923         
8924         * gtk/gtksettings.[hc]: new file for global rc-file properties
8925         (at least currently, should get extended to support X properties
8926         and other communication mechanisms).
8927         
8928         * gtk/gtkwidget.[hc]: added style property support:
8929         (gtk_widget_class_install_style_property_parser): install style
8930         property pspec with parser function for rc-file values other
8931         than LONG, DOUBLE or STRING.
8932         (gtk_widget_class_install_style_property): same as above without
8933         parser (parsers are going to be needed quite infrequently).
8934         (gtk_widget_style_get_property): retrive style property value.
8935         (gtk_widget_style_get_valist): same as above with varargs support,
8936         has NOCOPY semantics.
8937         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
8938
8939 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
8940
8941         * demos/gtk-demo/main.c (row_activated_cb): modified to use
8942         "row_activated" signal.
8943
8944         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
8945         stupidity.  Lets actually pass in the row with this signal...
8946
8947 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
8948
8949         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
8950
8951         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
8952
8953         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
8954         everything into the ::destroy function, and freed a lot more.
8955
8956 2001-03-16  Havoc Pennington  <hp@redhat.com>
8957
8958         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
8959         instead of gint16, to avoid overflow issues, since sizes > 16-bit
8960         are now allowed.
8961
8962 2001-03-16  Havoc Pennington  <hp@redhat.com>
8963
8964         * Applied patch from Nils Barth (bug # 51041) to 
8965         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
8966         in various places.
8967
8968 2001-03-15  Havoc Pennington  <hp@redhat.com>
8969         
8970         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
8971         for properties to set on the tag.
8972
8973         * gtk/testtext.c: fixups to reflect create_tag change
8974         
8975         * gtk/gtktexttag.c (gtk_text_tag_set_property):
8976         background/foreground stipple are objects, not boxed.
8977
8978         * demos/gtk-demo/textview.c: intellihancing
8979
8980 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
8981
8982         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
8983         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
8984
8985 2001-03-16  Alexander Larsson  <alexl@redhat.com>
8986
8987         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
8988         Fix sign error with queued region translations.
8989
8990 2001-03-15  HideToshi Tajima  <tajima@happy>
8991
8992         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
8993         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
8994         * gtk/gtkentry.c (update_im_cursor_location): 
8995         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
8996         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
8997         set_cursor_pos to set_cursor_location in GtkInputContext class
8998
8999 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
9000
9001         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
9002         the location of the cell relative to its area.
9003         * gtk/gtkcell*: modified for above change
9004         * gtk/gtktreeview.c: modified for above change.
9005
9006 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
9007
9008         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
9009          (gtk_tree_view_finalize): actually unref the model.  Thanks to
9010         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
9011
9012 2001-03-14  Havoc Pennington  <hp@redhat.com>
9013
9014         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
9015         
9016         * gtk/gtk.h: remove gtkdata.h
9017
9018         * gtk/Makefile.am: remove gtkdata
9019         
9020         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
9021         not "disconnect" on the adjustments.
9022         
9023         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
9024         GtkData
9025
9026         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
9027         not GtkData
9028
9029         * configure.in: handle case where X render exists, but Pango lacks
9030         Xft support.
9031
9032 2001-03-15 Alexander Larsson  <alexl@redhat.com>
9033
9034         * gtk/gtktoolbar.[ch]:
9035         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
9036         to add stock items to toolbars.
9037
9038         * gtk/Makefile.am:
9039         Remove ../gdk/gdkim.h from gdk_headers.
9040
9041 2001-03-15  Sven Neumann  <sven@gimp.org>
9042
9043         * gdk/gdkim.h: removed
9044         
9045         * gdk/gdkprivate.h
9046         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
9047
9048 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
9049
9050         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
9051         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
9052         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
9053         set_cursor_pos() virtual method
9054
9055         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
9056         (gtk_im_context_xim_set_cursor_pos): add implementation for
9057         set_cursor_pos() method
9058
9059         * gtk/gtkentry.c (recompute_idle_func): set current cursor
9060         position to input methods
9061
9062 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
9063
9064         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
9065         code a lot.
9066
9067         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
9068         g_mem_chunk.
9069         (_gtk_tree_data_list_alloc): use g_mem_chunk.
9070         (_gtk_tree_data_list_node_to_value): Fix to switch on
9071         G_TYPE_FUNDAMENTAL.
9072         (_gtk_tree_data_list_value_to_node): Fix to switch on
9073         G_TYPE_FUNDAMENTAL.
9074         (_gtk_tree_data_list_node_copy): Fix to switch on
9075         G_TYPE_FUNDAMENTAL.
9076
9077 2001-03-12  Havoc Pennington  <hp@redhat.com>
9078
9079         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
9080         to convert to new property API. Also, change default_width and
9081         default_height get_property to return 0 as the flag value for
9082         "unset"; -1 is not a valid value for these fields.
9083
9084 2001-03-12  Havoc Pennington  <hp@redhat.com>
9085
9086         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
9087         enum with registration for icon sizes, instead of strings.
9088
9089         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
9090         gtkwidget.c: Fix to reflect GtkIconSize
9091         
9092 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9093
9094         Make GtkFB compile and link.
9095         
9096         * gdk/linux-fb/gdkdrawable-fb2.c:
9097         window->mapped to GDK_WINDOW_IS_MAPPED(). 
9098         
9099         * gdk/linux-fb/gdkwindow-fb.c:
9100         window->mapped to GDK_WINDOW_IS_MAPPED(). 
9101         Added gdk_window_shape_combine_region.
9102         Added assorted placeholders for unimplemented new GdkWindow API calls.
9103
9104 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9105
9106         * gtk/gtkfilesel.c:
9107         Add more test when converting filenames from/to utf-8.
9108         Don't allow entering text in the filename entry which isn't allowed in
9109         a filename. Just beep instead.
9110
9111 2001-03-12  Alexander Larsson  <alexl@redhat.com>
9112
9113         * gtk/gtkclist.c:
9114         Scroll using gdk_window_scroll(). Don't wait for exposes.
9115         Move the column headers in an order that makes them flash less.
9116
9117 2001-03-10  Hans Breuer  <hans@breuer.org>
9118
9119         * gdk/gdk.def : updated
9120
9121         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
9122         to offseting the clip_mask at the right place
9123
9124         * gdk/win32/gdkwindow-win32.c : don't create background brushes
9125         for all the gdkClasses, especially not for the input_only case.
9126         Otherwise flickering wont be avoidable, because we don't get
9127         WM_ERASEBKGND message for these windows.
9128
9129         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
9130         and fixed massive redraw problems apparently triggered by Alexanders 
9131         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
9132         but it seems to work quite well :-)
9133
9134         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
9135         prototype
9136
9137 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
9138
9139         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
9140         (gtk_list_store_set_cell): Fix a stupid typo.
9141
9142 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
9143
9144         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
9145         select_all not work if you're in SINGLE mode (it doesn't make that
9146         much sense, anyway.)
9147
9148         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
9149         handle types more sanely.
9150         (_gtk_tree_data_list_value_to_node): handle types more sanely.
9151         (_gtk_tree_data_list_node_copy): handle types more sanely.
9152
9153         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
9154         GValue better. Converts the type as well.
9155
9156         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
9157         GValue better. Converts the type as well.
9158
9159 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
9160
9161         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
9162         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
9163         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
9164         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
9165
9166         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
9167         gdk_im/gdk_ic.
9168
9169 2001-03-09  Hans Breuer  <hans@breuer.org>
9170
9171         * gdk/gdk.def : updated
9172
9173         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
9174         for their palette
9175
9176         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
9177         removing
9178
9179         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
9180         removing and implemented Havoc's GdkWindow state functions; 
9181         stick/unstick only as no-op, cause I don't know how to emulate 
9182         on win32 ...
9183
9184         * gtk/gtk.def : updated
9185
9186         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
9187
9188         * gtk/gtktypeutils.c : #include <string.h>
9189
9190         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
9191
9192 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
9193
9194         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
9195         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
9196         not a boxed.
9197
9198 2001-03-09  Alexander Larsson  <alexl@redhat.com>
9199
9200         * docs/Changes-2.0.txt:
9201         Document expose event->region change and that gtk_widget_event
9202         doesn't allow passing expose events.
9203
9204         * gdk/gdkevents.h:
9205         Add region to expose event.
9206         
9207         * gdk/gdkevents.c:
9208         Handle event->region in gdk_event_copy() and gdk_event_free().
9209
9210         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
9211         Generate expose_event->region when creating expose events.
9212
9213         * gdk/x11/gdkevents-x11.c:
9214         Generate expose events with regions when translating X events.
9215
9216         * gtk/gtkcontainer.[ch]:
9217         Default expose handler that propagates expose events to NO_WINDOW
9218         children. New function gtk_container_propagate_expose()
9219
9220         * gtk/gtkwidget.[ch]:
9221         Moved gtk_widget_event implementation to gtk_widget_event_internal.
9222         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
9223         expose events. New function gtk_widget_send_expose() to send expose
9224         events. New function gtk_widget_region_intersect() to calculate
9225         window/region intersections.
9226         
9227         * gtk/gtkmain.c (gtk_main_do_event):
9228         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
9229         Use gtk_widget_send_expose() to send expose events.
9230         
9231         * gtk/gtkbin.c:
9232         * gtk/gtkbox.c:
9233         * gtk/gtkfixed.c:
9234         * gtk/gtkimagemenuitem.c:
9235         * gtk/gtklist.c:
9236         * gtk/gtkpacker.c:
9237         * gtk/gtktable.c:
9238         * gtk/gtktree.c:
9239         Remove expose handler, using the default container implementation
9240         instead.
9241         
9242         * gtk/gtkbutton.c:
9243         * gtk/gtkcheckbutton.c:
9244         * gtk/gtkeventbox.c:
9245         * gtk/gtkfixed.c:
9246         * gtk/gtkhandlebox.c:
9247         * gtk/gtklayout.c:
9248         * gtk/gtklistitem.c:
9249         * gtk/gtkmenu.c:
9250         * gtk/gtkmenubar.c:
9251         * gtk/gtkmenuitem.c:
9252         * gtk/gtknotebook.c:
9253         * gtk/gtkoptionmenu.c:
9254         * gtk/gtkpaned.c:
9255         * gtk/gtkscrolledwindow.c:
9256         * gtk/gtktogglebutton.c:
9257         * gtk/gtktoolbar.c:
9258         * gtk/gtktreeitem.c:
9259         * gtk/gtkviewport.c:
9260         Chain expose handler to parent class handler. Use
9261         gtk_container_propagate_expose() to propagate exposes.
9262
9263         * gtk/gtkclist.c (check_exposures):
9264         * gtk/gtktext.c (process_exposes):
9265         Use gtk_widget_send_expose instead of gtk_widget_event.
9266
9267 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
9268
9269         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
9270
9271 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
9272
9273         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
9274         unref the nodes.   Fixes bug #50058.
9275
9276         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
9277         "::ref_iter" to "::ref_node".
9278         (gtk_tree_model_unref_node): change "::unref_iter" to
9279         "::unref_node". Fixes bug #50064.
9280
9281 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
9282
9283         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
9284         support for invisible cells.
9285          (gtk_tree_view_bin_expose): ditto
9286
9287 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
9288
9289         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
9290         on gobjects.
9291
9292         * tests/testtreefocus.c (main): New test file.
9293
9294         * tests/testtreeview.c: update to latest glib changes.
9295
9296         * tests/testtreecolumns.c: update to latest glib changes.
9297
9298 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
9299
9300         * gtk/testgtk.c: re-enabled event watcher emission hooks.
9301
9302 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
9303
9304         * *.c: added accumulator data argument to g_signal_newc()
9305         functions.
9306
9307         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
9308         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
9309         * gtk/treestoretest.c (make_window):
9310         s/g_signal_connect/g_signal_connectc/.
9311
9312         * gtk/gtktextbuffer.c: completed signal arg fixups,
9313         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
9314
9315 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
9316
9317         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
9318         G_CONST_RETURN.
9319
9320         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
9321         ::hierarchy-changed signal when a widget changes
9322         from anchored to unanchored or vice versa.
9323         (anchored means 
9324          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
9325         Use a private flag to keep track of this efficiently.
9326
9327 2001-03-07  Havoc Pennington  <hp@redhat.com>
9328
9329         * gtk/testgtk.c (create_spins): uglify so that size request gets
9330         tested.
9331
9332         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
9333         request on values for upper/lower, completes #6152
9334
9335 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
9336
9337         * Makefile.am: Remove gtk-config-2.0 again.
9338         (Grrrr, pkg-config. And stops make loops.)
9339
9340 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
9341
9342         * gtk/gtksignal.[hc]: removed old emission hook API.
9343         
9344         * docs/Changes-2.0.txt: fixed sections.
9345         
9346         * gtk/gtktextbuffer.c: signal arg fixups.
9347
9348 2001-03-07  Havoc Pennington  <hp@redhat.com>
9349
9350         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
9351
9352         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
9353         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
9354         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
9355         validation and the redraw which is higher priority than the
9356         validation.
9357
9358 2001-03-07  Havoc Pennington  <hp@redhat.com>
9359
9360         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
9361         (gtk_entry_set_property): remove trailer
9362
9363         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
9364         (gtk_entry_get_width_chars): new functions, to set size request to 
9365         a given number of characters
9366
9367         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
9368
9369         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
9370         (gtk_dialog_get_has_separator): new function
9371         (run_delete_handler): fix to not emit "response" signal
9372         because we already did in the delete event handler installed
9373         at dialog creation time.
9374         
9375         * gtk/gtkdialog.h: add a has_separator property,
9376         add GTK_DIALOG_NO_SEPARATOR flag
9377
9378 2001-03-07  Havoc Pennington  <hp@redhat.com>
9379
9380         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
9381         off decorations for a window.
9382
9383         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
9384         changes
9385
9386         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
9387         to get location of PangoLayout inside the label, closes #51198
9388
9389         * gtk/testgtk.c (create_bbox): fix up button box usage
9390
9391         * gtk/testcalendar.c (create_calendar): fix up button box usage
9392
9393         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
9394
9395         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
9396
9397         * gtk/gtkhbbox.h: deprecations
9398
9399         * gtk/gtkvbbox.h: deprecations
9400
9401         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
9402         emulate deprecated gtk_button_box_get_spacing
9403
9404         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
9405         the "set global default" functions
9406         (struct _GtkButtonBox): remove "spacing" field, use the one from 
9407         GtkBox base class
9408
9409         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
9410
9411         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
9412         render the icon, return the missing image icon.
9413
9414         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
9415         image icon if the load fails.   
9416
9417         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
9418         when no image is found; should be the Netscape "missing image"
9419         icon eventually but for now is a random image
9420
9421         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
9422         role for the session manager
9423
9424         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
9425
9426         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
9427         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
9428
9429         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
9430
9431 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
9432
9433         * gtk/*.c: marshaller fixes.
9434         
9435         * gtk/gtkmarshal.list: extreme cleanup.
9436
9437         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
9438         param spec for now.
9439
9440         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
9441         where appliable.
9442
9443         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
9444         special cased autogenerated boxed types from gtktypebuiltins_ids.c
9445         which are not reference counted:
9446         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
9447         PangoFontDescription, GtkTreeIter and GtkTreePath.
9448
9449 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
9450
9451         * gtk/gtktreeselection.h: 
9452         * gtk/gtktreemodel.c:
9453         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
9454         file should be included directly, and gobject/gmarshal.h
9455         as well as gtk/gtkmarshal.h even can't be included directly.
9456
9457         * Makefile.am: grr, install gtk-config-2.0.
9458
9459         * gtk/testgtk.c:
9460         * gtk/simple.c:
9461         * gtk/gtkmenu.c:
9462         * gtk/gtkitemfactory.c: use g_object_connect() instead of
9463         passing "*signal*::*" args to gtk_widget_set().
9464         
9465         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
9466         
9467         * gtk/*.c: removed trailer arg from property setters and getters.
9468         macro fixups.
9469
9470 2001-03-07  Alexander Larsson  <alexl@redhat.com>
9471
9472         * gtk/gtklabel.c (set_markup): Removed warning
9473
9474 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
9475
9476         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
9477         field to allow you to hide cell renderers.
9478
9479         * gtk/gtkcellrenderer.c: Add support for invisible cells.
9480
9481         * gtk/gtktreeview.c: Add support for invisible cells.
9482
9483 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
9484
9485         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
9486         Add "clicked" signal back to columns.
9487
9488         * ChangeLog: remove conflict markers.
9489
9490 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
9491
9492         * gtk/gtkbutton.c: Add animation of activation by, on 
9493         activate, pressing the button, and adding a timeout that 
9494         releases the button after 250ms or on key release and
9495         emits ::clicked. (#51501)
9496
9497         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
9498         action area, we connect to ::clicked instead of ::activate
9499         so the dialog stays up through the animation.
9500
9501 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
9502
9503         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
9504         check the ignore_enter flag for the menu shell that
9505         the item is actually a child of, not for attached
9506         submenus. (#51536)
9507
9508 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
9509
9510         * gtk/gtkmain.c (gtk_propagate_event): Only do special
9511         special key-press grab handling for widgets within
9512         GtkWindows. Otherwise, fall through to normal case.
9513
9514         This prevents key events being sent twice to GtkInvisible
9515         widgets, which can cause all sorts of mischief.
9516
9517 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
9518
9519         * gtk/gtkmain.c (gtk_propagate_event): When a grab
9520         widget is in effect, give the grab widget a first
9521         crack at KEY_PRESS/RELEASE events. (#424)
9522
9523 2001-03-06  James Henstridge  <james@daa.com.au>
9524
9525         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
9526         offset for the window_state_event to point at window_state_event
9527         rather than no_expose_event.
9528
9529 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
9530
9531         * gtk/gtkimmodule.h: fix busted /* comment */
9532
9533 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
9534
9535         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
9536         object properties.
9537
9538 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
9539
9540         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
9541         add object properties.
9542
9543         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
9544         to add object properties.
9545
9546         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
9547         object properties.
9548
9549         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
9550         add object properties.
9551
9552         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
9553         object properties.
9554
9555 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
9556
9557         * gtk/gtktreemodel.c: renamed "child_toggled" to
9558         "has_child_toggled".
9559
9560         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
9561         handle new signal name.
9562
9563         * gtk/gtktreestore.c: Updated to handle new signal name.
9564         * gtk/gtklisttore.c: Updated to handle new signal name.
9565         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
9566
9567 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9568
9569         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
9570         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
9571
9572 2001-03-05  Michael Natterer  <mitch@gimp.org>
9573
9574         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
9575         pixbuf-engine coincidentially also failed to make one of it's
9576         parent_class pointers static, causing overwriting of GtkLabel's
9577         parent_class pointer in pixbuf_style_class_init().
9578         (Will commit the fix to the pixbuf-engine too).
9579
9580 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9581
9582         * gdk/gdkwindow.h:
9583         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
9584         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
9585         gdk_window_set_icon_list for net wmspec functionality.
9586
9587         * gdk/x11/gdkwindow-x11.c:
9588         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
9589         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
9590         gdk_window_set_icon_list.
9591         Added gdk_wmspec_change_state helper function and used it in the code.
9592         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
9593
9594         * gtk/gtkdialog.c (gtk_dialog_init):
9595         Set GDK_WINDOW_TYPE_HINT_DIALOG.
9596
9597         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
9598         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
9599
9600         * gtk/gtkwindow.c:
9601         new function gtk_window_set_type_hint.
9602         On realize, set type hint and modal hint.
9603
9604         * gtk/gtkwindow.h:
9605         Added type_hint field and gtk_window_set_type_hint.
9606
9607 2001-03-05  Alexander Larsson  <alexl@redhat.com>
9608
9609         * gtk/gtklabel.[ch]:
9610         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
9611         New function gtk_label_get_accel_keyval () to get the underline accelerator
9612         of the label. Setting the label pattern overrides other attributes.
9613
9614 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
9615
9616         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
9617         Added missing initializers to gtk_rc_style_init().
9618
9619 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
9620
9621         * gtk/gtktextview.c: fixed bug #51097 about setting 
9622         gtk_text_view_set_border_window_size() if the widget is 
9623         already realized.
9624
9625 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
9626
9627         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
9628
9629         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
9630         comment. Won't do to have duplicated doc comments between
9631         the platform subdirs.
9632
9633 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
9634
9635         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
9636           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
9637
9638         Detectable auto-repeat - make a repeating key generate
9639         press/press/press/release instead of press/release pairs.
9640
9641         If we have Xkb and XkbSetDectableAutoRepeat supports
9642         that, we do it that way. Otherwise, when we get
9643         a release event, we check ahead with XPending to see
9644         if the next key is a KeyPress with the same keycode
9645         and timestamp. (Not 100% reliable, but pretty close.)
9646           
9647 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
9648         
9649         * gtk/gtkmain.c (gtk_propagate_event): Only do special
9650         special key-press grab handling for widgets within
9651         GtkWindows. Otherwise, fall through to normal case.
9652  
9653         This prevents key events being sent twice to GtkInvisible
9654         widgets, which can cause all sorts of mischief.
9655  
9656 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
9657  
9658         * gtk/gtkmain.c (gtk_propagate_event): When a grab
9659         widget is in effect, give the grab widget a first
9660         crack at KEY_PRESS/RELEASE events. (#424)
9661  
9662 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
9663
9664         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
9665         to extend the selection. (Roughly based on patch
9666         from Jay Cox, #50939)
9667
9668         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
9669         to properly handle previous GDK_BUTTON_PRESS. 
9670         (Patch from Jay Cox, #50938)
9671
9672         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
9673         '\0' back along with the deleted text. (#51148)
9674
9675 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
9676
9677         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
9678         the group when extracting it from the X keyboard event.
9679
9680         * modules/input/Makefile.am modules/input/imipa.c: 
9681         Simple module for entering IPA. (Do we need a 
9682         gtk-stupid-input-tricks CVS module?)
9683
9684 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
9685
9686         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
9687         const.
9688
9689         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
9690
9691         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
9692         is no focus widget for the dialog currently, grab the focus as well
9693         as the default.
9694
9695         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
9696         the action area's children to iterate through, not the
9697         dialog's children.
9698
9699 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
9700
9701         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
9702         Add plug-socket tests. (Won't work worth a darn until I commit
9703         the rest of the plug-socket changes, but no reason these
9704         can't go into CVS now.)
9705
9706 2001-03-02  Havoc Pennington  <hp@redhat.com>
9707
9708         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
9709         _gdk_region_get_xrectangles()
9710
9711         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
9712
9713         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
9714
9715         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
9716         function, contributed by Ron Steinke    
9717
9718         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
9719         gdk_net_wm_supports
9720
9721         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
9722         New function, contributed by Ron Steinke
9723
9724         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
9725         used to line up the text in the entry when using the entry for
9726         editable sheet cell hacks
9727
9728         * gtk/testgtk.c (create_entry): test the activate_default setting
9729         on GtkEntry
9730
9731         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
9732         cause the entry to activate the default button for a dialog when 
9733         activated
9734         (gtk_entry_get_activates_default): new function
9735
9736 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
9737
9738         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
9739         Hwang to move call to sync_selection() up a few lines
9740         to before the row list is modified, to fix crash when
9741         removing rows in the undo_selection list.
9742
9743         (Test case provided by Daniel Elstner:
9744
9745         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
9746
9747 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
9748
9749         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
9750         of tree->root_tree in parent_set rather than _map(), 
9751         fixing #50892 in a bit better manner.
9752
9753 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
9754
9755         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
9756
9757 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
9758
9759         * gtk/gtkstyle.c : Remove duplicate fwd decl for
9760         gtk_default_draw_shadow.
9761
9762 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
9763
9764         * gdk/gdkimage.c (gdk_image_new): Remove excess 
9765         warning, make warnings more verbose, treat a error
9766         in shmat as permanent, and don't try again.
9767         (#51163, Ed Randall.)
9768
9769 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
9770
9771         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
9772         delay for the first click before starting to scroll.
9773         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
9774
9775         * gtk/gtktext.c: GtkText should have I-beam cursor. 
9776         (based on gtk-enf-990513-1.patch, Eric Fisher.)
9777
9778 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
9779
9780         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
9781         cleanup to remove some references to unused
9782         ->xoffset, ->yoffset.
9783
9784 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
9785
9786         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
9787         mask. (#51039, fix from Martin Maierhofer)
9788
9789 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
9790
9791         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
9792         for unshifted + and shifted = for non-us keyboards.
9793         Make <Control>+ and <Control>- work as well as 
9794         <Control>KP_Plus, <Control>KP_Minus for recursive
9795         open/close.  (#2682, René Seindal)
9796
9797 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
9798
9799         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
9800         the active menu item before deactivating the menu,
9801         so gtk_menu_popdown doesn't change the history. (#50964)
9802         
9803 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
9804
9805         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
9806         draw lines with text_gc rather than black_gc.
9807         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
9808
9809 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
9810
9811         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
9812         Move handling of buttons fully in gtktreeviewcolumn.  This code is
9813         less interrelated then it was, but it still requires the
9814         GtkTreeView to map it.
9815
9816         * test/testtreecolumn.c: Now I can add a column to one view,
9817         remove it, add it to the another view, remove it, then re-add it
9818         to the first.  Nifty.
9819
9820 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
9821
9822         * docs/tutorial/gtk-tut.sgml: Minor corrections
9823
9824 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
9825
9826         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
9827         GtkRowReference.
9828
9829 2001-02-28  Havoc Pennington  <hp@redhat.com>
9830
9831         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
9832         draw_default
9833         (gtk_widget_draw_focus): remove this function; we could instead
9834         make it just gtk_widget_draw(), but in most cases I think the
9835         result would be broken user code, so think it's better to have
9836         that code not compile and get fixed
9837         (gtk_widget_draw_default): ditto
9838
9839         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
9840         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
9841         
9842         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
9843         widgets lose/get the default, instead of calling draw_default
9844         
9845         * docs/Changes-2.0.txt: note about all this
9846
9847         Then fixed every widget in GTK, I won't list all the filenames.
9848
9849 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
9850
9851         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
9852         _gtk_tree_row_reference_deleted.
9853         (inserted_callback): Proxy out to
9854         _gtk_tree_row_reference_inserted.
9855         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
9856         get around signal emission ordering problem.
9857
9858         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
9859         fix to work with SINGLE 
9860         (_gtk_tree_selection_internal_select_node): Major sanitization on
9861         selections.  SINGLE now seems to work.
9862
9863         * tests/Makefile.am: add testtreecolumn.c:
9864
9865         * tests/testtreecolumn.c: New test.  Mostly points out selection
9866         bugs currently, but will test columns later.
9867
9868         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
9869         selection bug.  I hate touching this code -- it's scary.
9870
9871 2001-02-26  Havoc Pennington  <hp@redhat.com>
9872
9873         * gtk/testgtk.c: test the window state stuff
9874
9875         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
9876         window come to the user's attention as if it were just created
9877         (gtk_window_iconify): new function
9878         (gtk_window_deiconify): new function
9879         (gtk_window_stick): new function
9880         (gtk_window_unstick): new function
9881         (gtk_window_maximize): new function
9882         (gtk_window_unmaximize): new function
9883
9884         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
9885
9886         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
9887
9888         * gdk/x11/gdkevents-x11.c: create window state events when
9889         appropriate
9890         (gdk_wmspec_supported): new function
9891
9892         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
9893         iconification before showing the window
9894         (gdk_window_deiconify): new function
9895         (gdk_window_stick): new function
9896         (gdk_window_unstick): new function
9897         (gdk_window_maximize): new function
9898         (gdk_window_unmaximize): new function
9899
9900         * gdk/gdkwindow.c: store the window state in the window; 
9901         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
9902         window->mapped.
9903         (gdk_window_get_state): return the current window state
9904
9905         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
9906         (gdk_event_get_state): handle GDK_WINDOW_STATE
9907         (gdk_synthesize_window_state): function to create the window state
9908         events
9909
9910         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
9911         event, for changes to "window state" such as maximized, sticky, 
9912         etc.
9913         
9914         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
9915         focuses a window
9916
9917         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
9918         finds out if we support a given WM spec hint
9919
9920 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
9921
9922         * docs/faq/gtk-faq.sgml: New question re memory leaks.
9923
9924 2001-02-25  Hans Breuer  <hans@breuer.org>
9925
9926         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
9927         cause we want to loose those prototypes only in the latter case
9928
9929         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
9930         GdkPixmapImplWin32 because it itsn't derived from it. Use the
9931         impl member variable instead
9932
9933         * gtk/gtk.def : updated
9934
9935         * gtk/gtklist.c : 
9936         * gtk/gtkmenus.c : include <string.h> for memset ()
9937
9938         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
9939         for everthing built here, but for gtk-x.x.dll only. This solves
9940         problem of indifferent gtk type definitions
9941
9942 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
9943
9944         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
9945
9946 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
9947
9948         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
9949         column that is exposed.
9950
9951         (_gtk_tree_view_update_size): Changed name from set_size, and
9952         changed function to do more work, and not force people calling it
9953         to figure out the size.  Simplifies a lot of code elsewhere.
9954
9955 2001-02-23  Alexander Larsson  <alexl@redhat.com>
9956
9957         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
9958         return solid masks for xpms that have no transparent color.
9959         This makes the ..._create_from_xpm... API backwards
9960         compatible.
9961
9962 2001-02-23  Tor Lillqvist  <tml@iki.fi>
9963
9964         * README.win32: Update. Mention the gtk-1-3-win32-production
9965         branch.
9966
9967         * gdk/win32/bdfcursor.c: New file. A program that generates
9968         xcursors.h. Thanks to Stefan Ondrejicka.
9969
9970         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
9971         compact format.
9972
9973         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
9974
9975         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
9976         function, uses xcursors.h.
9977         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
9978         cursor from inline data instead of using LoadCursor() to generate
9979         it from a resource.
9980
9981         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
9982         event, must check the Windows message for mouse button state, as
9983         the GDK event state might not have been built if it is
9984         undelivered. Remove one goto.
9985
9986         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
9987         SetCursor() if the current cursor as returned by GetCursor() is
9988         the window's previous cursor. The ChildWindowFromPoint() test
9989         apparently didn't work correctly.
9990
9991         * gdk/win32/rc/*.cur: Remove.
9992
9993         * gdk/win32/rc/gdk.rc.in: Remove cursors.
9994
9995         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
9996
9997         * gtk/makefile.{mingw,msc}.in: Updates.
9998
9999 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
10000
10001         * gtk/gtktreemodel.h: add functions for signal emission.
10002
10003         * gtk/gtktreestore.c: move to use above functions instead of
10004         g_signal_emit.
10005
10006         * gtk/gtkliststore.c: ditto
10007
10008 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
10009
10010         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
10011         GObject instead of GtkObject.
10012
10013         * gtk/gtkliststore.c: ditto.
10014
10015         * gtk/gtktreemodelsort.c: ditto.
10016
10017         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
10018         GtkTreeModelIface, instead of in each model.
10019
10020 2001-02-21  Havoc Pennington  <hp@redhat.com>
10021
10022         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
10023         unbreak this function
10024
10025         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
10026         properties
10027
10028         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
10029         properties
10030
10031         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
10032         properties
10033
10034         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
10035         mean unset the max length
10036
10037 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
10038
10039         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
10040         Changed name to be set_cell_data_func to make it clear what
10041         the functino does.  Close bug #51069.
10042
10043 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
10044
10045         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
10046         have memory actually freed.  Keeps box running longer.
10047
10048 2001-02-21  Alexander Larsson  <alexl@redhat.com>
10049         
10050         * gtk/gtkseparatormenuitem.[ch]:
10051         Added new menu separator item. The drawing and size handling
10052         is still done in GtkMenuItem, but the API is a bit more sane.
10053         
10054         * gtk/Makefile.am:
10055         Add gtkseparatormenuitem.[ch].
10056
10057         * gtk/gtk.h:
10058         Add gtkseparatormenuitem.h.
10059         
10060         * gtk/gtkentry.c:
10061         * gtk/gtkmenufactory.c:
10062         * gtk/gtktextview.c:
10063         Use the new API for menu separators.
10064         
10065         * demos/gtk-demo/menus.c (create_menu):
10066         Add some GtkSeparatorMenuItem demo code.
10067
10068 2001-02-20  Havoc Pennington  <hp@redhat.com>
10069
10070         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
10071         Lee Mallabone
10072
10073         * gtk/gtkarrow.c: Convert to new property API, patch from 
10074         Lee Mallabone
10075
10076 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
10077
10078         * tests/testtreeview.c (toggled_callback): fix to reflect change
10079         in GtkTreeModelStore.
10080
10081 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
10082
10083         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
10084         function to create an icon set from a pixbuf.
10085
10086 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10087
10088         * gtk/gtkcellrenderertext.[ch]:
10089         Add a "markup" property.
10090
10091         * gtk/treestoretest.c:
10092         Use the markup property, remove some leftover stuff from
10093         GtkTreeModelMapping.
10094
10095 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10096
10097         * gtk/gtklabel.c (gtk_label_set_selectable):
10098         Queue a redraw if the selectable setting was changed.
10099
10100 2001-02-20  Alexander Larsson  <alexl@redhat.com>
10101
10102         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
10103         Actually copy the whole gc, not just the public parts.
10104         
10105         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
10106         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
10107         labels.
10108
10109 2001-02-19  Havoc Pennington  <hp@pobox.com>
10110
10111         * gdk/gdkwindow.c: docs
10112
10113         * gdk/gdkrgb.c: docs
10114
10115         * gdk/gdkregion-generic.c: docs
10116
10117         * gdk/gdkgc.c (gdk_gc_set_values): docs
10118
10119         * gdk/gdkdraw.c: docs
10120
10121         * gdk/gdkdrawable.h: deprecate drawable get/set data
10122
10123 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
10124
10125         * demos/gtk-demo/dialog.c: Add simple new demo.
10126
10127 2001-02-19  Havoc Pennington  <hp@redhat.com>
10128
10129         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
10130         insert_child_anchor signal, bug #50245
10131
10132         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
10133         from create_child_anchor, so the anchor is passed in
10134
10135         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
10136         (_gtk_widget_segment_new): have the child anchor object passed in, 
10137         instead of creating it.
10138
10139         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
10140         to gtk_text_buffer_get_modified
10141
10142 2001-02-19  Havoc Pennington  <hp@redhat.com>
10143
10144         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
10145         changed GLib without fixing GTK
10146
10147         * gtk/gtkrange.h: Rename all the stupid implementation detail 
10148         functions to have an underscore in front. Most of them should 
10149         probably just go away, but for starters don't export them.
10150         Bug #50482
10151
10152 2001-02-19  Havoc Pennington  <hp@redhat.com>
10153
10154         * gdk/gdkcolor.h: test was backward, so deprecated functions were
10155         excluded by default
10156
10157         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
10158         clean up the old code a bit
10159
10160         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
10161         inconsistent state
10162
10163         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
10164         draw inconsistent state
10165
10166         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
10167         (create_menu): add inconsistent test
10168
10169         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
10170         new function
10171         (gtk_check_menu_item_get_inconsistent): new function
10172         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
10173         state (using etched in for now)
10174
10175         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
10176         draw inconsistent state
10177
10178         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
10179         function, used when the user has selected a range of stuff in
10180         different states
10181         (gtk_toggle_button_get_inconsistent): accessor for that
10182         (gtk_toggle_button_paint): draw inconsistent state (etched in?
10183         don't know what else to do)
10184
10185 2001-02-19  Hans Breuer <hans@breuer.org>
10186
10187         * gtk/gtk.def : updated exported symbols
10188
10189         * gtk/makefile.msc.in : updated
10190
10191         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
10192         a colormap, when invoked from testgtk::entry. I'm not sure where
10193         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
10194         avoids immediate crashing ...
10195
10196         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
10197         any objections ?
10198
10199         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
10200         0 parameter. At least msvc doesn't like macros with var args. 
10201         I simply removed the extra 0, was it a feature or a typo ?
10202
10203         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
10204         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
10205         because the value assignment to the internal struct wasn't working.
10206         I'm not absolutely sure. The problem could have been resolved by
10207         changing the "func" declartion in the struct, but was the pointer
10208         to the function pointer intended ?
10209
10210         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
10211
10212         * gdk/gdk.def : updated exported symbols
10213
10214         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
10215         only use SetDIBitsToDevice if there is a palette at the drawable
10216         and the image is GDK_VISUAL_PSEUDO_COLOR
10217
10218         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
10219
10220         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
10221
10222         * gdk/*/makefile.msc : updated
10223
10224 2001-02-19  Havoc Pennington  <hp@redhat.com>
10225
10226         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
10227         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
10228
10229         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
10230         (gdk_key_repeat_restore): nuke
10231
10232         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
10233         (gdk_init_check): no atexit func
10234
10235         * gdk/gdkrgb.h: mark some stuff deprecated
10236
10237         * gdk/gdkcolor.h: mark some stuff deprecated
10238         
10239         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
10240
10241         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
10242
10243 2001-02-16  Havoc Pennington  <hp@redhat.com>
10244
10245         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
10246         scroll steps.
10247
10248         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
10249         steps, and add Ctrl-arrow shortcuts for paging visually as with
10250         HScale, since Page Up and Page Down move logically.
10251
10252         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
10253         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
10254         
10255         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
10256         steps
10257         (gtk_range_scroll): handle the visual steps
10258
10259         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
10260         scroll steps
10261
10262         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
10263         steps, not the logical ones.
10264
10265         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
10266         (scroll_vertical): handle up/down steps
10267
10268 2001-02-19 Alexander Larsson  <alexl@redhat.com>
10269
10270         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
10271         Copy data and free data with free().
10272
10273         * gdk-pixbuf/gdk-pixbuf.c:
10274         * gdk-pixbuf/io-jpeg.c:
10275         * gdk-pixbuf/io-png.c:
10276         Use g_try_malloc/g_free instead malloc/free.
10277         
10278         * gdk-pixbuf/test-gdk-pixbuf.c:
10279         Must... initialize... gobject...
10280         
10281         * gdk-pixbuf/pixops/timescale.c:
10282         * gtk/gtkcalendar.c:
10283         Use g_malloc instead of malloc.
10284         
10285 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
10286
10287         * gtk/testgtkrc:
10288         Comment out property assignments, these don't work yet.
10289
10290 2001-02-17  Havoc Pennington  <hp@pobox.com>
10291
10292         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
10293         bit.
10294
10295 2001-02-17  Havoc Pennington  <hp@pobox.com>
10296
10297         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
10298         shadowed variables that had broken size request in some cases,
10299         leading to bogus tooltips (#50996)
10300
10301 2001-02-06  Jon K Hellan  <hellan@acm.org>
10302
10303         Implement fast browsing of tooltips, bug #50619
10304         
10305         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
10306         and last_popdown
10307         
10308         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
10309         use_sticky_delay and last_popdown.
10310         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
10311         time of popdown.
10312         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
10313         is NULL.
10314         (gtk_tooltips_recently_shown): New static function.  Return true
10315         if < sticky_delay has elapsed since last popdown.
10316         (gtk_tooltips_event_handler): Display window after sticky_delay
10317         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
10318         since last popdown.
10319         
10320 2001-02-17  Havoc Pennington  <hp@pobox.com>
10321
10322         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
10323         instead of (). #6394
10324
10325         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
10326         G_CONST_RETURN, make it return by reference, #50473
10327         
10328 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
10329
10330         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
10331         generated ENTER_NOTIFY event with 0, otherwise not explicitely
10332         setup fields contain garbage (e.g. subwindow, breaking
10333         gdk_drawable_ref() upon event copy).
10334         (gtk_menu_stop_navigating_submenu_cb): same here.
10335
10336         * gtk/gtklist.c (gtk_list_vertical_timeout): 
10337         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
10338         * gtk/gtkclist.c (vertical_timeout): 
10339         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
10340         default-zero-intialization for unions to memset(,0,), as unions are
10341         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
10342         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
10343
10344         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
10345         g_closure_sink() warning.
10346
10347         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
10348         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
10349         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
10350         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
10351         
10352 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
10353
10354         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
10355         gtk_*_store_get, and moved to GtkTreeModel.
10356
10357         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
10358
10359         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
10360
10361         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
10362
10363         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
10364         set the func.
10365
10366         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
10367         freeze/thaw notify between setting all the properties for a cell.
10368
10369         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
10370
10371 2001-02-15  Havoc Pennington  <hp@redhat.com>
10372
10373         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
10374         the X coordinates so they're with respect to the line, rather than 
10375         with respect to the layout.
10376
10377         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
10378         Mallabone
10379
10380         * gtk/testgtk.c (create_range_controls): add vscale tests, 
10381         and inverted test
10382
10383         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
10384         #50806
10385
10386         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
10387
10388         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
10389         gtk_text_iter_is_end
10390
10391         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
10392         rename gtk_text_buffer_get_end_iter
10393
10394         * gtk/testgtk.c (create_labels): Add test for selectable
10395
10396         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
10397         the selection stuff. This code is kind of broken since it doesn't 
10398         use the theme engine.
10399
10400         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
10401         fix infinite loop and y offset problem
10402         (gdk_draw_layout_line_with_colors): fix foreground color handling
10403
10404         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
10405         that makes the label selectable.
10406         
10407         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
10408         layout when the style is set, since fonts etc. could have changed.      
10409
10410 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
10411
10412         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
10413
10414         * gtk/gtktreemodelsimple.[ch]: removed.
10415
10416 2001-02-16  Alexander Larsson  <alexl@redhat.com>
10417
10418         * gtk/gtktreemodelmapping.[ch]:
10419         New files. Implement GtkTreeModelMapping.
10420         
10421         * gtk/Makefile.am:
10422         Add gtktreemodelmapping.[ch].
10423         
10424         * gtk/gtk.h:
10425         Add gtktreemodelmapping.h
10426
10427         * gtk/treestoretest.c:
10428         Test the GtkTreeModelMapping
10429
10430 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
10431
10432         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
10433         have a demo, we might as well pass in real values.  Thanks to
10434         clahey for pointing this out.
10435
10436 2001-02-14  Havoc Pennington  <hp@pobox.com>
10437
10438         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
10439         "static" to a private function
10440         (gtk_image_menu_item_class_init): remove destroy handler,
10441         add "image" object property
10442
10443 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
10444
10445         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
10446         Add a shortcut if the window and the current clip_region doesn't
10447         overlap. This is needed when there are a lot of windows in a
10448         window. The layout test in testgtk is a good test.
10449
10450         * gdk/linux-fb/gdkwindow-fb.c:
10451         Whitespace fix.
10452
10453 2001-02-13  Sven Neumann  <sven@convergence.de>
10454
10455         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
10456
10457 2001-02-13  Alexander Larsson  <alexl@redhat.com>
10458
10459         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
10460         Don't reference last_cursor if it is null. Fixes crash when rotating
10461         the screen before having moved the mouse.
10462
10463         * gdk/linux-fb/gdkcc-fb.c: Zapp!
10464
10465         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
10466
10467         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
10468         when using 90 or 270 degrees rotation.
10469
10470 2001-02-12  Havoc Pennington  <hp@pobox.com>
10471
10472         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
10473         it always set the foreground, even if we were only using
10474         a stipple.
10475         (gdk_draw_layout_line_with_colors): new function, allow
10476         override colors
10477         (gdk_draw_layout_with_colors): new function, allow override
10478         colors
10479         (gdk_pango_layout_line_get_clip_region): function to get the clip
10480         region for a logical text range
10481         (gdk_pango_layout_get_clip_region): get the clip region for a
10482         logical text range
10483
10484         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
10485         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
10486         the right number of arguments.
10487
10488         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
10489         enhance the function to check that node data corresponds to a 
10490         view still belonging to the tree.
10491
10492         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
10493         GtkTreePath
10494         (gtk_tree_view_inserted): ditto
10495         (gtk_tree_view_child_toggled): ditto
10496
10497         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
10498         simplify this code.
10499
10500         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
10501         a PangoAttrList
10502
10503         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
10504
10505         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
10506
10507         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
10508         size in the size request 
10509         (gtk_menu_bar_size_allocate): consider toggle size here
10510
10511         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
10512         that displays a widget in the toggle slot
10513
10514         * gtk/testgtk.c: test GtkImageMenuItem
10515
10516         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
10517         
10518         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
10519         request and allocation
10520
10521         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
10522
10523         * gtk/gtkcheckmenuitem.c
10524         (gtk_check_menu_item_toggle_size_request): ditto
10525         
10526 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
10527
10528         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
10529         reference.
10530
10531         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
10532         and refuse to initialize GTK+ if they fail.
10533
10534 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
10535
10536         * configure.in: Add check for gtk-doc version.
10537
10538 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
10539
10540         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
10541         where the xpad/ypad was only being used on one side!
10542
10543 2001-02-11  Tor Lillqvist  <tml@iki.fi>
10544
10545         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
10546         function, copied from X11 version.
10547
10548         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
10549         DestroyCursor failures. The reason for the problem (despite the
10550         inconsistent messages from GetLastError()) was that
10551         DestroyCursor() cannot be called while a cursor is set in a
10552         window. Set the new cursor first and then destroy the old one.
10553         Thanks to jpe@archaeopteryx.com.
10554
10555         * gdk/win32/gdkcc-win32.c: Remove.
10556
10557         * gdk/win32/Makefile.am: Remove from here, too.
10558         
10559         * gdk/gdk.def
10560         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
10561
10562         * gtk/gtk.def
10563         * gtk/makefile.mingw.in: Updates.
10564
10565 2001-02-08  Havoc Pennington  <hp@redhat.com>
10566
10567         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
10568         add a widget to a bin that already has a child.
10569
10570         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
10571
10572         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
10573         
10574         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
10575
10576         * gdk/gdk.h: remove gdkcc.h
10577
10578         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
10579
10580         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
10581         GdkPixbuf, since the previous implementation was GdkColorContext
10582         dependent.
10583
10584         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
10585         
10586 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
10587
10588         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
10589         a sane value!
10590
10591 2001-02-08  Havoc Pennington  <hp@redhat.com>
10592
10593         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
10594         lighten them.
10595
10596 2001-02-08  Havoc Pennington  <hp@redhat.com>
10597
10598         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
10599         validation idle
10600
10601         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
10602         cell renderer
10603
10604         * demos/pixbuf-demo.c (timeout): remove deprecated
10605         gtk_widget_draw
10606
10607         * demos/testpixbuf-save.c (main): remove deprecated
10608         gtk_drawing_area_size
10609
10610         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
10611         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
10612         at the start of the allocation.
10613         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
10614         unsetup or NULL model.
10615
10616         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
10617         even/odd/sorted cells in the tree view.
10618
10619         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
10620         bugfixes
10621
10622         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
10623         backgrounds with draw_flat_box using different detail for even/odd
10624         rows.
10625
10626         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
10627         row, so we can draw the alternating colors thing
10628
10629         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
10630         property from a synonym property, notify for the synonym.
10631         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
10632         (gtk_text_tag_get_property): Always return the font, even if
10633         all its fields aren't set
10634
10635         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
10636         store the attr list; it leaves us with no way to change attributes
10637         in _render according to the render flags, and no way to implement
10638         get_property. Instead store all the specific text attributes. 
10639         Separate whether an attribute is enabled from its value. Sync all
10640         properties with GtkTextTag, make them all consistent, etc.
10641
10642         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
10643         renderers can highlight the sort row/column     
10644
10645         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
10646         accessor functions to get values; this has the side effect of
10647         showing up which accessor functions were missing. Added those.
10648
10649         * gtk/gtktreeviewcolumn.h: Replace set_justification with
10650         set_alignment, to be consistent with GtkLabel, GtkMisc
10651
10652         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
10653         arrow.
10654
10655         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
10656
10657         * gtk/gtktreesortable.h: updates in here
10658
10659 2001-02-07  Sven Neumann  <sven@convergence.de>
10660
10661         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
10662         pango dimensions after painting the background. We used to draw
10663         gigantic flat boxes here.
10664
10665 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
10666
10667         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
10668         error introduced with earlier commit) (pointed out by
10669         Ollie Lho)
10670
10671 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
10672
10673         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
10674         which are no longer necessary.
10675
10676 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
10677
10678         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
10679
10680 2001-02-04  Tor Lillqvist  <tml@iki.fi>
10681
10682         * gdk/gdk.def
10683         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
10684         Provide dummy implementations.
10685
10686 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
10687
10688         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
10689
10690         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
10691         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
10692         deprecated this function.
10693
10694         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
10695         argument.
10696
10697 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
10698
10699         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
10700
10701 2001-02-03  Havoc Pennington  <hp@pobox.com>
10702
10703         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
10704         Mikael Hermansson with patch from Mikael (if there was a toggle
10705         start one after the first character in the range, this function
10706         was broken). Bug #50380
10707
10708 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
10709
10710         * configure.in: Remove confusing comment about X11.
10711
10712 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
10713
10714         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
10715         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
10716         
10717 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
10718
10719         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
10720         it breaks things on BSD. If you want to compile GTK+ with
10721         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
10722         when configuring, since GTK+ simply can't be "pure ANSI" 
10723         in the header files it uses. (#8170, Greg Hudson)
10724
10725 2001-02-02  Havoc Pennington  <hp@redhat.com>
10726
10727         * gtk/gtkwindow.c: docs
10728
10729         * gtk/gtkwidget.c: docs
10730         (gtk_widget_set_colormap): add a reference to the colormap
10731         (gtk_widget_get_default_colormap): add a reference to the colormap
10732
10733         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
10734
10735         * gtk/gtktextiter.c: docs
10736
10737         * gtk/gtkmain.c (gtk_propagate_event): docs
10738
10739         * gtk/gtkpaned.c (gtk_paned_get_position): docs
10740         (gtk_paned_set_position): docs
10741
10742         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
10743         sort interface, no implementation yet.
10744
10745         * demos/testpixbuf.c (new_testrgb_window): replace
10746         gtk_drawing_area_size() with gtk_widget_set_usize()
10747
10748         * demos/testpixbuf-drawable.c (main): ditto
10749         
10750         * gtk/testgtk.c: remove use of GtkStatusbarMsg
10751
10752         * gtk/gtktextbuffer.c: docs
10753
10754         * gtk/gtkstock.c: docs
10755
10756         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
10757
10758         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
10759
10760         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
10761         
10762         * gtk/gtkimage.c: add some docs in here
10763         (gtk_image_size_request): change name of
10764         gtk_widget_render_stock_icon
10765         (gtk_image_get_icon_set): don't dup returned string
10766         (gtk_image_get_icon_set): don't dup returned string
10767
10768         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
10769         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
10770         and gtkiconfactory.h functions
10771
10772         * gtk/gtkiconfactory.c: add some docs in here
10773
10774         * gtk/gtkmain.c (gtk_get_default_language): document
10775         (gtk_get_current_event): document
10776         (gtk_get_current_event_state): document
10777         (gtk_get_event_widget): document
10778
10779         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
10780
10781         * gtk/gtkcontainer.c: Add some documentation
10782         (gtk_container_add): give a more explanatory warning on adding an
10783         already-parented widget, this is kind of a FAQ and also a common
10784         typo that's easier to debug with a nice warning 
10785
10786         * gtk/gtkcellrenderertoggle.c
10787         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
10788         adding this, it's useless
10789         (gtk_cell_renderer_toggle_set_active): remove
10790         (gtk_cell_renderer_toggle_get_radio): add
10791
10792         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
10793         the NULL cell renderer, that doesn't make any sense to me. 
10794
10795         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
10796         demo code should never use deprecated features.
10797
10798         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
10799         code should never use deprecated features.
10800
10801         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
10802         gtk_widget_queue_clear_area deprecated
10803
10804         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
10805         deprecated
10806
10807         * gtk/gtklabel.h: mark gtk_label_get() deprecated
10808
10809         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
10810         a GdkImage deprecated, replaced by new consistently-named
10811         functions       
10812
10813         * gtk/gtkmain.h: Mark gtk_exit() deprecated
10814
10815         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
10816
10817         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
10818         deprecated
10819
10820         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
10821         so it won't appear in docs and confuse people.
10822
10823         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
10824
10825         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
10826         macros deprecated. (can't mark the type itself deprecated, since
10827         GtkProgressBar is not deprecated and we need the type decl to use
10828         GtkProgressBar)
10829
10830         * gtk/gtkpixmap.h: Mark deprecated
10831
10832         * gtk/gtkoldeditable.h: Mark deprecated
10833
10834         * gtk/gtklist.h: Mark deprecated
10835
10836         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
10837         for anything anymore.
10838
10839         * gtk/gtkctree.h: Mark deprecated
10840
10841         * gtk/gtkclist.h: Mark deprecated
10842
10843         * gtk/gtkpreview.h: Mark deprecated
10844
10845         * gtk/gtkpacker.h: Mark deprecated
10846
10847         * gtk/gtktipsquery.h: Mark deprecated
10848
10849         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
10850
10851         * gtk/gtkvruler.h: Add comment that it will move out of GTK
10852
10853         * gtk/gtkhruler.h: Add comment that it will move out of GTK
10854
10855         * gtk/gtkruler.h: Add comment that it will move out of GTK
10856
10857         * gtk/gtkgamma.h: Add comment that it will move out of GTK
10858
10859         * gtk/gtkcurve.h: Add comment that it will move out of GTK
10860
10861 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
10862
10863         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
10864         gdk_colormap_sync private since it was never exported
10865         in a header file.
10866
10867         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
10868         colormap->colors[] for StaticGray, StaticColor colormaps.
10869
10870         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
10871         was being used as if it was image->bits_per_pixel.
10872
10873         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
10874         for the image in the GdkImage structure since it isn't
10875         reconstructable, and we need it to handle packed types
10876
10877         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
10878         the assumption that on Win32 image->bits_per_pixel == image->depth,
10879         always.
10880
10881         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
10882
10883         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
10884         warning message if no converter can be found. 
10885
10886 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
10887
10888         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
10889         chars to isupper() / tolower(). (#567)
10890
10891         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
10892         to clear up 64-bit warnings. (#567)
10893
10894 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
10895
10896         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
10897         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
10898
10899         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
10900         since some people set $(libdir) separately. (#1290, David Kaelbling)
10901
10902 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
10903
10904         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
10905         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
10906         MAXPATHLEN, but the code here depends on a fixed value.)
10907         (#4524)
10908
10909 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
10910
10911         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
10912         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
10913
10914 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
10915
10916         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
10917         viewable there is no way that moving the node will cause the 
10918         focus row to become not viewable, so omit check on the visibility
10919         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
10920
10921 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
10922
10923         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
10924         selection before inserting new text.
10925
10926 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
10927
10928         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
10929         Make the sensitivity of the reparented child track that of
10930         the original parent menu item. (#34218, David Hodson)
10931
10932         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
10933         the case where the current item is destroyed properly.
10934
10935         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
10936         some edge cases with child-less menuitems.
10937         
10938 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
10939
10940         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
10941         key pop down window. (#12074, Jon K Hellan)
10942
10943 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
10944
10945         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
10946         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
10947         The solution here isn't perfect - you get an extraneous
10948         emission of "toggle", which could conceivably confuse an app,
10949         but better than the current situation. LXR search seems to
10950         indicate that no apps in GNOME CVS connect to "toggle".
10951
10952 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
10953
10954         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
10955         gtk_public_h_sources to directly here to avoid warning when
10956         building srcdir != builddir. (#9656)
10957
10958 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
10959
10960         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
10961         handlers in gtkrange.c return the proper values (TRUE == handled)
10962         (#10316).
10963
10964         This is just the tip of the iceberg, but gtkrange.c is the
10965         most common place where the propagation is problematical,
10966         and also a place where it is almost certainly safe to change
10967         this in the stable branch.
10968
10969         (You don't want right click popups on a range control or anything...)
10970
10971 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
10972
10973         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
10974         area on focus out, even if a background pixmap isn't set.
10975         (#13941)
10976         
10977 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
10978
10979         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
10980         to deal with setting the shape properly when scrolling arrows are
10981         turned on, but not visible because there is sufficient space.
10982         (#13432)
10983
10984 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
10985
10986         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
10987         items with submenus, destroy the item along with the submenu.
10988         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
10989         properly.
10990
10991         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
10992         later.
10993
10994 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
10995
10996         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
10997         the focus widget sometimes wasn't drawn with the default if there
10998         was no default widget.
10999
11000         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
11001         unreference pixmaps. 
11002
11003         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
11004         for some extra safety.
11005
11006 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
11007
11008         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
11009         the text of a cell to the old pointer value better, by
11010         copying the new text before freeing the old text. Some code
11011         cleanup. (#8079, Karl Nelson)
11012
11013 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
11014
11015         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
11016         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
11017
11018 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
11019
11020         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
11021         item from a menu, check to see if it matches 
11022         menu->old_active_menu_item, and if so, unref and clear
11023         old_active_menu_item (Patch from Pavel Cisler)
11024
11025         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
11026         menu_shell->active_menu_item, if it is the child being
11027         removed. (Patch based on that of Gene Ragan, #50337)
11028
11029 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
11030
11031         * gdk/linux-fb/gdkselection-fb.c: 
11032         * gdk/linux-fb/gdkcolor-fb.c: 
11033         * gdk/linux-fb/gdkdrawable-fb2.c: 
11034         * gdk/linux-fb/gdkfont-fb.c: 
11035         * gdk/linux-fb/gdkim-fb.c: 
11036         * gdk/linux-fb/gdkinput.c: 
11037         * gdk/linux-fb/gdkkeyboard-fb.c: 
11038         * gdk/linux-fb/gdkmain-fb.c: 
11039         * gdk/linux-fb/gdkrender-fb.c: 
11040         A bunch of whitespace cleanup.
11041         
11042 2001-01-30  Havoc Pennington  <hp@pobox.com>
11043
11044         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
11045         #ifdef GTK_ENABLE_BROKEN.
11046
11047         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
11048         GTK_ENABLE_BROKEN just before including the broken headers.
11049         
11050         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
11051         deprecated types registered.
11052
11053         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
11054         we have to test the broken stuff.
11055
11056         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
11057         
11058 2001-01-30  Havoc Pennington  <hp@redhat.com>
11059
11060         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
11061         here where prev pointer was set to the wrong thing
11062
11063         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
11064         (gtk_tree_path_is_descendant): new function
11065
11066         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
11067         cached length
11068         (gtk_list_store_get_iter): don't modify iter if we can't get the
11069         path.
11070
11071         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
11072         
11073         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
11074         GtkTreeDragDest
11075
11076         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
11077         was causing segfault
11078
11079         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
11080         pointer to NULL
11081
11082         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
11083
11084         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
11085         on returning FALSE
11086         (gtk_list_store_iter_children): ditto
11087         (gtk_list_store_iter_nth_child): ditto
11088         (gtk_list_store_iter_nth_child): ditto
11089         (gtk_list_store_iter_parent): ditto
11090
11091         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
11092         on iter->user_data != NULL instead of silently accepting it.
11093         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
11094         we are returning TRUE.
11095         (gtk_tree_store_iter_children): ditto
11096         (gtk_tree_store_iter_nth_child): ditto
11097         (gtk_tree_store_iter_parent): ditto
11098         (gtk_tree_store_insert): remove handling of parent->user_data ==
11099         NULL, replace with parent == NULL       
11100
11101         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
11102         and a comment explaining things
11103
11104         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
11105         interface support to GtkTreeStore.
11106
11107         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
11108         FALSE if no prev, fix
11109
11110         * gtk/gtktreeview.c (set_source_row): use a row reference
11111         (set_dest_row): use a row reference
11112
11113 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
11114
11115         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
11116         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
11117         (gtk_tree_selection_select_iter): The same as above.
11118
11119 2001-01-26  Havoc Pennington  <hp@redhat.com>
11120
11121         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
11122         which holds a handle to a specific row (particular set of values
11123         in the model, i.e. pointer-identity row).
11124
11125         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
11126         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
11127         Still need to use it for the src/dest row saved on the drag context.
11128
11129 2001-01-26  Havoc Pennington  <hp@redhat.com>
11130
11131         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
11132
11133         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
11134         not offset by TREE_VIEW_HEADER_HEIGHT
11135         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
11136         TREE_VIEW_HEADER_HEIGHT
11137
11138         * configure.in (included_loaders): for me, --with-included-loaders
11139         generates the error "the specified loader yes does not exist",
11140         i.e. the arg defaults to "yes", so change test for value ""
11141         to test for value "yes", and include all loaders in that case.
11142
11143         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
11144
11145         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
11146         handle TREE_VIEW_VERTICAL_SEPARATOR
11147         (gtk_tree_view_bin_expose): fix to consider the row offset as
11148         pointing halfway into vertical separator.       
11149         (gtk_tree_view_draw_node_focus_rect): ditto
11150
11151         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
11152         --gtk-debug=updates, which causes gdk_window_set_debug_updates
11153         (TRUE) to be called.
11154
11155         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
11156         debug mode where the invalid region is colored in on invalidate,
11157         so you can see the flicker and know whether your redraw code is 
11158         doing a good job.
11159
11160         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
11161         tree window coordinates (clip rect is in tree window coords)
11162
11163         * gtk/Makefile.am: add gtktreednd.[hc]
11164
11165         * gtk/gtkliststore.c: implement gtktreednd interfaces.
11166
11167         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
11168         drag-and-drop data operations on a model (so we can set up tree
11169         drag-and-drop automatically)
11170
11171         * gtk/testgtk.c: Add a window to change sensitivity in the
11172         GtkLabel test; add a way to change the entry frame in GtkEntry
11173         test
11174
11175         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
11176         (gtk_entry_get_has_frame): new functions to remove the frame
11177         around an entry
11178         (gtk_entry_size_request): shrink requisition if no frame
11179         (gtk_entry_draw_focus): don't draw frame if no frame
11180
11181         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
11182         checks inside a cell renderer
11183         (gtk_default_draw_option): ditto for options
11184
11185         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
11186         children from the alignment, not the button
11187         (gtk_tree_view_column_init): ref/sink the column, to emulate
11188         GObject refcounting.
11189
11190         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
11191         
11192         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11193         Use theme functions to draw the toggles 
11194
11195         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
11196
11197         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
11198         GdkPangoAttrEmbossed to use in rendering insensitive text
11199
11200         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
11201
11202         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
11203         using new GDK features
11204         
11205 2001-01-24  Alexander Larsson  <alexl@redhat.com>
11206
11207         * gtk/gtkimage.c:
11208         Splitted gtk_image_clear into gtk_image_clear() and
11209         gtk_image_reset(). Call gtk_image_clear() in ::destroy
11210         to avoid leaks.
11211
11212         * gtk/gtklabel.c (set_markup):
11213         Don't leak text.
11214
11215         * gtk/gtktextlayout.c:
11216         Always free display->shaped_objects.
11217
11218         * gtk/testgtk.c (create_clist):
11219         Don't leak custom style.
11220
11221 2001-01-23  Alexander Larsson  <alexl@redhat.com>
11222
11223         * gtk/gtkcolorsel.c (grab_color_at_mouse):
11224         Don't leak image. Simplify using gdk_colormap_query_color().
11225         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
11226
11227         * linux-fb/gdkcolor-fb.c:
11228         Implemented gdk_colormap_query_color.
11229
11230 2001-01-23  Alexander Larsson  <alexl@redhat.com>
11231
11232         * linux-fb/gdkcursor-fb.c:
11233         Don't leak built-in cursors.
11234
11235         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
11236         Don't leak tmp_points.
11237
11238         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
11239         Don't modify desc. Don't leak font if the PangoFont
11240         isn't found.
11241         
11242         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
11243         Free dash_list.
11244
11245         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
11246         Don't leak string.
11247         
11248 2001-01-20  Havoc Pennington  <hp@pobox.com>
11249
11250         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
11251         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
11252         me, matches Pango
11253
11254 2001-01-22  Havoc Pennington  <hp@redhat.com>
11255
11256         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
11257
11258         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
11259
11260         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
11261         Remove, move back to gdk-pixbuf
11262
11263         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
11264         to all the word functions
11265
11266         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
11267         before doing anything on NULL layout or if we don't have the focus
11268
11269         * gtk/testtext.c (fill_example_buffer): "justification"
11270
11271         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
11272         to be called "justification" not "justify"
11273
11274         * demos/gtk-demo/textview.c (create_tags): "justification"
11275         
11276         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
11277
11278 2001-01-22  Alexander Larsson  <alexl@redhat.com>
11279
11280         * gdk/gdkwindow.c (gdk_window_invalidate_region):
11281         Don't leak visible_region. Use visible_region instead of region.
11282         
11283         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
11284         Don't do extra gdk_drawable_ref(). This is not X.
11285         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
11286         gdk_fb_focused_window is ref:ed.
11287         (gdk_fb_window_send_crossing_events): Watch out for destroyed
11288         windows.
11289
11290 2001-01-22  Alexander Larsson  <alexl@redhat.com>
11291
11292         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
11293         Don't leak the PangoFontDescriptor.
11294
11295 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
11296
11297         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
11298         when not realized.
11299         (gtk_tree_view_scroll_to_cell): Make work when not realized.
11300         (gtk_tree_view_realize): add scroll_to support
11301         (gtk_tree_view_finalize): add a finalize method.  Populate.
11302         (gtk_tree_view_insert_column): ref and sink the column.
11303         (gtk_tree_view_append_column): ref and sink the column.
11304         (gtk_tree_view_queue_draw_node): New function to handle redrawing
11305         individual nodes.  Should make the code much more efficient, if
11306         actually used.
11307
11308 2001-01-19  Havoc Pennington  <hp@redhat.com>
11309
11310         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
11311         byte_offset variable was being used to mean both "offset into
11312         layout" and "offset into buffer line" which was no longer true
11313         with addition of preedit string; fix
11314
11315 2001-01-19  Havoc Pennington  <hp@redhat.com>
11316
11317         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
11318
11319         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
11320         function
11321
11322         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
11323         implement
11324
11325         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
11326         scroll_to_cell, matches TextView scroll functions better
11327         (gtk_tree_view_tree_to_widget_coords): new function
11328         (gtk_tree_view_widget_to_tree_coords): new function
11329         (gtk_tree_view_get_visible_rect): new function
11330         (gtk_tree_view_get_path_at_pos): accept negative coordinates
11331         (gtk_tree_view_draw_node_focus_rect): new function moved from
11332         draw_focus, also, use width of bin_window as width of the focus
11333         rect
11334         (gtk_tree_view_expand_row): fix bug where it didn't recognize
11335         already-expanded rows
11336         (gtk_tree_view_get_cell_rect): new function
11337         (gtk_tree_view_get_path_at_pos): return the click position
11338         relative to the passed-in cell
11339         (gtk_tree_view_set_expander_column): new function
11340
11341         * configure.in: remove gtk-config-2.0 chmod
11342
11343         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
11344         and properly handle drags with targets we don't understand
11345         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
11346         scrolling anyway
11347         (gtk_text_view_drag_drop): stop scrolling here though, and set the
11348         mark invisible
11349
11350         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
11351         function
11352         (gtk_drag_dest_get_target_list): new function
11353         (gtk_drag_dest_set_target_list): new function
11354         
11355         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
11356
11357         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
11358         related to drag-and-drop
11359
11360 2001-01-19  Alexander Larsson  <alexl@redhat.com>
11361
11362         * gdk/linux-fb/gdkprivate-fb.h:
11363         Define EMULATE_GDKFONT.
11364         Add extra pango_font stuff to GfkFontPrivate.
11365         
11366         * gdk/linux-fb/gdkdrawable-fb2.c:
11367         * gdk/linux-fb/gdkfont-fb.c:
11368         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
11369         emulation using PangoFont.
11370
11371 2001-01-17  Havoc Pennington  <hp@pobox.com>
11372
11373         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
11374         all the non-deprecated set_foo functions. Added missing object
11375         properties, and added g_object_notify() to setters. 
11376         Wrote docs.
11377         
11378 2001-01-18  Tor Lillqvist  <tml@iki.fi>
11379
11380         * gtk/gtkmain.c
11381         * gtk/gtkrc.c: (Win32) Use the new
11382         g_win32_get_package_installation_(sub)directory() functions.
11383
11384         * config.h.win32.in: New file.
11385         
11386         * config.h.win32: Removed.
11387
11388         * configure.in: Output config.h.win32.
11389
11390         * Makefile.am: Add it to EXTRA_DIST.
11391
11392         * gtk/gtk.def: Update.
11393
11394 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
11395
11396         * gtk/gtklabel.c (gtk_label_size_request): Set the
11397         attributes onto the PangoLayout even if they are newly
11398         created from label->pattern.
11399
11400 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
11401
11402         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
11403
11404         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
11405         structures in functions. Fixes bug where gtk_dataset_*
11406         was accidentally still being used in one place, causing
11407         every dest side event to be treated independently.
11408
11409         * gtk/gtkdnd.c: Remove last vestages of handling
11410         ::draw (fixes warning)
11411         
11412         * gtk/gtkentry.[ch]: Add drag and drop support.
11413
11414         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
11415         new function gtk_check_drag_threshhold() for checking
11416         to check if (dx,dy) has exceeded the threshhold for starting
11417         a drag and use it everywhere.
11418
11419 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
11420
11421         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
11422         add -I{includedir}/gtk-2.0.
11423
11424         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
11425         gdk/gdk-pixbuf.h: Doc fixups.
11426         
11427         * gtk/gtkobject.h: Remove trailing , from enum
11428
11429 2001-01-17 Alexander Larsson <alexl@redhat.com> 
11430
11431         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
11432         Doh! Mixed up x and y.
11433
11434         * gdk/linux-fb/gdkglobals-fb.c:
11435         Removed gdk_fb_pointer_grab_window_events,
11436         added _gdk_fb_pointer_grab_owner_events and
11437         _gdk_fb_keyboard_grab_owner_events.
11438
11439         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
11440         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
11441         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
11442         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
11443         Send crossing events after ungrab finished.
11444         (gdk_keyboard_grab): Set ..._owner_events
11445         (type_masks): Move out of function.
11446         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
11447         gdk_fb_keyboard_event_window): New functions, return the
11448         window an event should be targeted at. Handles grabs and
11449         event propagation. Can return NULL.
11450         (gdk_event_make): Remove event_mask checking. Now always
11451         returns an event.
11452                 
11453         * gdk/linux-fb/gdkkeyboard-fb.c:
11454         * gdk/linux-fb/gdkproperty-fb.c:
11455         * gdk/linux-fb/gdkselection-fb.c:
11456         Use new event_window/gdk_event_make() behaviour.
11457         
11458         * gdk/linux-fb/gdkmouse-fb.c:
11459         Use new event_window/gdk_event_make() behaviour.
11460         Only send motion events if in the same window.
11461         If grabbed, use cursor from window if sibling of grabbed
11462         window, and cursor from grabbed window otherwise.
11463
11464         * gdk/linux-fb/gdkprivate-fb.h:
11465         Update gdk_fb_window_send_crossing_events, gdk_event_make
11466         and grab varaible declarations. Add gdk_fb_*_event_window().
11467
11468         * gdk/linux-fb/gdkwindow-fb.c:
11469         Use new event_window/gdk_event_make() behaviour.
11470         Keep correct track of focus window.
11471         (gdk_window_set_events): Set all specific button motion masks
11472         if GDK_BUTTON_MOTION_MASK set.
11473
11474         * gtk/gtkdnd.c (gtk_drag_update):
11475         Free info->last_event if gdk_drag_motion returned FALSE.
11476
11477 2001-01-16  Tor Lillqvist  <tml@iki.fi>
11478
11479         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
11480         Eliminate redraws when input-only windows are shown or
11481         hidden. Thanks to jpe@archaeopteryx.com.
11482
11483 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
11484
11485         * docs/faq/gtk-faq.sgml: FAQ update:
11486           - Update to bugzilla
11487           - Add GTK+ and security/SUID/SGID
11488           - Add DnD question
11489
11490 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
11491
11492         * gdk/linux-fb/gdkdnd-fb.c:
11493         Some cleanups.
11494         
11495 2001-01-15  Havoc Pennington  <hp@pobox.com>
11496
11497         * tests/testtreeview.c: add test stuff for CellRendererToggle
11498
11499         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
11500         accessor
11501
11502         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
11503         only toggle on button press (would do release like GtkButton, but
11504         we'd need implicit grab code for treeview cells)
11505
11506 2001-01-16  Tor Lillqvist  <tml@iki.fi>
11507
11508         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
11509
11510         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
11511         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
11512
11513         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
11514         to g_{locale,filename}_{to,from}_utf8 to match current API.
11515
11516         * gtk/makefile.msc.in (gtk_OBJECTS)
11517         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
11518
11519         * gtk/gtk.def: Update.
11520
11521 2001-01-15  Tor Lillqvist  <tml@iki.fi>
11522
11523         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
11524         implementaion that more closely mimics the events that an X server
11525         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
11526         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
11527         with nested preview widgets, for instance, more responsive when
11528         you move the mouse quickly into them.
11529         (find_window_for_pointer_event): Make it actually compile.
11530         (gdk_event_translate): Set send_event to the value of
11531         InSendMessage (). This doesn't really mean the same as X11's
11532         send_event flag, but is close enough, says jpe@archaeopteryx.com
11533
11534 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11535
11536         * gdk/linux-fb/gdkdnd-fb.c:
11537         Implemented drag and drop.
11538         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
11539         when it tries to free and then copy the same event (info->last_event).
11540         I am not sure about why this happens, but will continue looking.
11541
11542 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11543
11544         * gdk/linux-fb/gdkwindow-fb.c:
11545         Use gdk_window_invalidate_rect instead of
11546         gdk_window_invalidate_rect_clear to minimise flashing.
11547         When hiding windows you need to clear the root window though.
11548
11549 2001-01-15  Alexander Larsson  <alexl@redhat.com>
11550
11551         * gdk/linux-fb/gdkdrawable-fb2.c:
11552         For optization, add an full_shapes argument to gdk_fb_clip_region.
11553         If this is false, only the cliprects of the shapes are used.
11554
11555         * gdk/linux-fb/gdkprivate-fb.h:
11556         Export gdk_fb_window_peek_shape.
11557         Add full_shapes to gdk_fb_clip_region.
11558
11559         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
11560         When moving a window, don't clear everything under the it, just the
11561         root window. Makes stuff faster and flash less.
11562         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
11563         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
11564         offset of the shape.
11565         
11566
11567 2001-01-12  Havoc Pennington  <hp@redhat.com>
11568
11569         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
11570         current invalid region, fixes redraw bug while scrolling the 
11571         text widget
11572
11573         * gtk/gtktextview.c, gtk/gtktextview.h:
11574         Rearrange the scrolling/validation/etc. code in a major way, 
11575         so it seems to make sense to me. Probably isn't genuinely that
11576         much better, but...
11577
11578         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
11579         notifies
11580
11581         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
11582
11583 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
11584
11585         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
11586         Hide mouse pointer while rotation. Show it afterwards.
11587
11588 2001-01-12  Alexander Larsson  <alexl@redhat.com>
11589
11590         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
11591         windows in consideration when generating clip region.
11592
11593         * gdk/linux-fb/gdkfb.h:
11594         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
11595
11596         * gdk/linux-fb/gdkprivate-fb.h:
11597         Add shape to GdkWindowFBDatat.
11598         exported gdk_fb_window_get_abs_shape().
11599         removed gdk_fb_draw_lines declaration.
11600
11601         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
11602         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
11603         send focus changes when there is a grabbed window.
11604         (gdk_window_get_pointer): Handle shaped windows.
11605         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
11606         (gdk_fb_window_peek_shape): Returns the shape for a window,
11607         handles GDK_FB_USE_CHILD_SHAPE.
11608         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
11609         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
11610         (gdk_window_shape_combine_mask): Implement.
11611
11612         * gtk/gtkwindow-decorate.c:
11613         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
11614         setting the shape of a window makes the window transparent.
11615
11616 2001-01-11  Havoc Pennington  <hp@redhat.com>
11617
11618         * gtk/gtktreemodelsimple.h: Oops, broke some macros
11619
11620 2001-01-10  Havoc Pennington  <hp@redhat.com>
11621
11622         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
11623         add this function, bug 40251
11624
11625         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
11626         of type macro   
11627
11628 2001-01-11  Alexander Larsson  <alexl@redhat.com>
11629
11630         * acconfig.h:
11631         Added ENABLE_SHADOW_FB
11632
11633         * configure.in:
11634         Added --disable-shadowfb
11635
11636         * gdk/linux-fb/gdkcursor-fb.c:
11637         Update shadowfb when updating cursor
11638
11639         * gdk/linux-fb/gdkdrawable-fb2.c:
11640         Added wrappers for shadowfb that calls  the normal drawable
11641         methods, but calls gdk_shadow_fb_update(bounding box) when
11642         GdkWindows are drawed to.
11643         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
11644         which also returns the bounding box.
11645
11646         * gdk/linux-fb/gdkfb.h:
11647         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
11648
11649         * gdk/linux-fb/gdkgeometry-fb.c:
11650         Update shadowfb when scrolling window.
11651
11652         * gdk/linux-fb/gdkglobals-fb.c:
11653         Add _gdk_fb_screen_angle.
11654         
11655         * gdk/linux-fb/gdkkeyboard-fb.c:
11656         Test code for screen rotation. Shift-F2 in the xlate driver
11657         rotates the screen.
11658
11659         * gdk/linux-fb/gdkmain-fb.c:
11660         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
11661
11662         * gdk/linux-fb/gdkmouse-fb.c:
11663         Use fb_width/height instead of modeinfo.xres/yres.
11664
11665         * gdk/linux-fb/gdkprivate-fb.h:
11666         Added fb_men, fb_width, fb_height & fb_stride. When using
11667         shadow fb these can differ from the framebuffer stuff.
11668         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
11669         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
11670         _gdk_fb_screen_angle. Removed CM, RP.
11671
11672         * gdk/linux-fb/gdkrender-fb.c:
11673         Added code for shadowfb handling and screen rotation using
11674         shadowfb.
11675
11676         * gdk/linux-fb/gdkwindow-fb.c:
11677         Use fb_mem, fb_stride, fb_width, fb_height.
11678         Added recompute_rowstride to reset the rowstride of all windows.
11679         Added gdk_fb_recompute_all() which recomputes rootwindow size,
11680         window abs positions and window rowstrides. Usefull when the
11681         rotation has changed.
11682
11683 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
11684
11685         * docs/faq/gtk-faq.sgml: update to make web site updating easier
11686
11687 2001-01-10  Havoc Pennington  <hp@redhat.com>
11688
11689         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
11690         where sibling == iter
11691         (gtk_tree_store_insert_after): handle sibling == iter
11692         (gtk_tree_store_prepend): remove stamp checks
11693         (gtk_tree_store_insert_before): ditto
11694         (gtk_tree_store_append): ditto
11695         (gtk_tree_store_get_path): ditto
11696         (gtk_tree_store_get_value): ditto
11697         (gtk_tree_store_iter_has_child): ditto
11698         (gtk_tree_store_iter_n_children): ditto
11699         (gtk_tree_store_iter_nth_child): ditto
11700         (gtk_tree_store_insert_after): ditto
11701         (gtk_tree_store_is_ancestor): ditto
11702         (gtk_tree_store_iter_depth): ditto
11703         (gtk_tree_store_insert_before): assert that sibling's parent is
11704         the same as the passed-in parent
11705         (gtk_tree_store_insert_after): assert that sibling's parent is
11706         the same as the passed-in parent
11707
11708         
11709         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
11710         function to get the first iterator in a model
11711         
11712         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
11713         conventionally the "root" in this sense is just NULL afaict.
11714
11715         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
11716         where sibling == iter
11717         (gtk_list_store_insert_after): handle case where sibling == iter
11718
11719         * tests/testtreeview.c (run_automated_tests): fairly lame basic
11720         automated tests for ListStore, TreeStore
11721
11722         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
11723         (gtk_list_store_insert): update tail pointer, and fix it to work
11724         (gtk_list_store_insert_before): update tail pointer, and fix it to work
11725         (gtk_list_store_append): use tail to be faster
11726         (gtk_list_store_prepend): fix it, update tail pointer
11727         (gtk_list_store_insert_after): fix it, update tail pointer
11728
11729         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
11730         the list
11731
11732 2001-01-09  Havoc Pennington  <hp@redhat.com>
11733
11734         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
11735         is NULL due to a pending resize
11736
11737         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
11738         column width to values less than 1
11739
11740         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
11741         width to be between min/max width, and still set the width 
11742         even if autosize is turned on, so the tree view can use this 
11743         function in order to autosize.
11744         (gtk_tree_view_column_init): set initial width to 1 not 0
11745
11746         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
11747         setter function to modify column width, so we get notification
11748         (gtk_tree_view_insert_iter_height): ditto
11749         (gtk_tree_view_calc_size): ditto
11750         (gtk_tree_view_check_dirty): ditto
11751
11752         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
11753         properties to change all the interesting attributes of the tree
11754         view column.
11755         (gtk_tree_view_column_set_header_clickable): rename set_clickable
11756         (gtk_tree_view_column_get_clickable): add
11757         (gtk_tree_view_column_set_cell_renderer): don't unset the current
11758         attributes; assume a cell renderer with equivalent object
11759         properties has been swapped in. Do g_object_notify().
11760         (gtk_tree_view_column_set_visible): g_object_notify
11761         (gtk_tree_view_column_get_sizing): rename from get_col_type
11762         (gtk_tree_view_column_set_sizing): g_object_notify
11763         (gtk_tree_view_column_set_width): add g_object_notify
11764         (gtk_tree_view_column_set_min_width): ditto
11765         (gtk_tree_view_column_set_max_width): ditto
11766         (gtk_tree_view_column_set_title): ditto
11767         (gtk_tree_view_column_set_clickable): ditto
11768         (gtk_tree_view_column_set_widget): ditto
11769         (gtk_tree_view_column_set_justification): ditto
11770
11771 2001-01-09  Havoc Pennington  <hp@redhat.com>
11772
11773         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
11774         there are no rows in the model
11775
11776         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
11777         NULL, then return the start of the list
11778
11779         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
11780         if we can't get any rows from an empty model 
11781
11782         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
11783         extraneous * after function pointer typedef usage
11784
11785         * Makefile.am: don't specify full path to cp and rm
11786
11787         * gtk/gtkcellrenderertextpixbuf.c
11788         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
11789         NULL before dereferencing, fixes a segfault that happened from
11790         time to time
11791
11792         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
11793         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
11794         and reindent the function
11795         (gtk_cell_renderer_pixbuf_get_size): indentation
11796
11797         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
11798         we quit it
11799         (gtk_dialog_add_buttons_valist): add g_return_if_fail
11800         (gtk_dialog_set_default_response): New function, to set default
11801         button
11802         (gtk_dialog_set_response_sensitive): New function, to set 
11803         sensitivity of buttons
11804
11805         * gtk/gtkcellrendererpixbuf.c
11806         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
11807         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
11808
11809         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11810         handle any G_TYPE_OBJECT subclass, not just the base class, and 
11811         also boxed types.
11812         (_gtk_tree_data_list_value_to_node): ditto
11813
11814         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
11815         --gtk-debug=tree
11816
11817         * gtk/gtkmain.c: add GTK_DEBUG_TREE
11818
11819         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
11820
11821 2001-01-09  Tor Lillqvist  <tml@iki.fi>
11822
11823         * gdk/win32/gdkevents-win32.c: Implement better mouse
11824         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
11825         (find_window_for_pointer_event): New function.
11826         (gdk_event_translate): Use it when handling mouse events.
11827
11828 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
11829
11830         * configure.in:
11831         Added --with-included-loaders option
11832
11833         * gdk-pixbuf/Makefile.am:
11834         * gdk-pixbuf/gdk-pixbuf-io.c:
11835         Add support for including selected gdk-pixbuf loaders only.
11836
11837         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
11838         gtk_window_set_has_frame):
11839         Added inline documentation.
11840
11841         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
11842         * docs/reference/gdk/tmpl/windows.sgml:
11843         Added inline documentation.
11844
11845 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
11846
11847         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
11848         realizing buttons that have already been realized.
11849
11850 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
11851
11852         * tests/testtreeview.c (main): Show menu items before adding to
11853         option menu.
11854
11855         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
11856         around if we kill them.
11857
11858         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
11859         Return if we pass in a NULL model.
11860
11861 2001-01-08  Havoc Pennington  <hp@redhat.com>
11862
11863         * tests/testtreeview.c: hack on this some
11864
11865         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
11866         gtk_tree_store_set_valist, v is for arrays, valist for varargs
11867         list
11868         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
11869
11870         * gtk/gtkliststore.h: Add varargs set() and get() convenience
11871         functions
11872
11873 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11874
11875         * gtk/gtkwindow-decorate.[hc]:
11876         * gtk/Makefile.am:
11877         New files. Contains an implementation of a minimal WM for
11878         linux-fb.
11879
11880         * gtk/gtkwindow.h:
11881         Add the possibility for GtkWindows to specify a frame. This
11882         is used for the window decoration code, but could concievably
11883         be used for X programs too (xmms style windows).
11884         GtkWindow->frame is the toplevel window if the window is framed.
11885         The signal frame_event gets all events that are targeted to
11886         GtkWindow->frame.
11887         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
11888         
11889         * gtk/gtkwindow.c:
11890         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
11891         Call out to gtkwindow-decorate.c for WM support in linx-fb.
11892
11893 2001-01-08  Alexander Larsson  <alexl@redhat.com>
11894
11895         * docs/README.linux-fb:
11896         Correct filename ~/.pangoft2_aliases
11897
11898         * gdk/gdkwindow.h:
11899         Added new function gdk_window_get_decorations.
11900
11901         * gdk/linux-fb/gdkfb.h:
11902         Removed _gdk_window_get_decorations declaration.
11903         Renamed _gdk_window_set_child_handler to
11904         gdk_fb_window_set_child_handler.
11905
11906         * gdk/linux-fb/gdkwindow-fb.c:
11907         Renamed _gdk_window_set_child_handler to
11908         gdk_fb_window_set_child_handler.
11909
11910         * gdk/x11/gdkwindow-x11.c:
11911         New function gdk_window_get_mwm_hints().
11912         Implemented gdk_window_get_decorations.
11913
11914         * docs/reference/gdk/tmpl/windows.sgml:
11915         * docs/reference/gdk/gdk-sections.txt:
11916         Added gdk_window_get_decorations docs.
11917         
11918 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
11919
11920         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
11921         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
11922         gdk_fb_window_send_crossing_events):
11923         Possibly send focus events when the mouse moves from one
11924         window to another.
11925
11926 2001-01-07  Tor Lillqvist  <tml@iki.fi>
11927
11928         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
11929         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
11930         to match current API.
11931
11932         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
11933         environment variable is set, don't call g_error when on a
11934         palettized (PseudoColor) display. Some people want to use GTK+ 
11935         in 256-colour mode even though works only partially.
11936
11937         * gdk/gdk.def
11938         * gtk/gtk.def
11939         * gtk/makefile.mingw.in: Update.
11940
11941 2001-01-05  Havoc Pennington  <hp@redhat.com>
11942
11943         * tests/testtreeview.c: hack on this a bit
11944
11945         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
11946         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
11947
11948         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
11949         was spelled incorrectly
11950         (GTK_IS_TREE_MODEL_SIMPLE): ditto
11951
11952         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
11953         from gtk_tree_view_set_headers_active   
11954
11955         * gtk/gtktexttag.c:
11956         (gtk_text_tag_get_property): handle PROP_DIRECTION
11957         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
11958         properties, bug 40235
11959
11960         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
11961         forward_to_line_end
11962
11963 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
11964
11965         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
11966         modules/input/gtkimcontextxim.c: Adapt to new prototypes
11967         for unicode,locale,filename conversion functions.
11968
11969 2001-01-05  Havoc Pennington  <hp@redhat.com>
11970
11971         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
11972         broken if called on the first position in the buffer.
11973
11974         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
11975         forward_to_delimiters to be called only if we aren't already at
11976         the delimiters.
11977
11978 2001-01-05  Havoc Pennington  <hp@redhat.com>
11979
11980         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
11981
11982 2001-01-05  Alexander Larsson  <alexl@redhat.com>
11983
11984         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
11985         colormap in here. Sync from X port.
11986         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
11987         Sync from X port.
11988         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
11989         This happens now and then, and i don't think it is a bug.
11990         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
11991         != endpoint.
11992         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
11993         GDK_LINE_SOLID.
11994
11995         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
11996         some of the fields filled in at least.
11997
11998         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
11999         miLineArcD is no more, remove it from the function definition.
12000
12001 2001-01-04  Havoc Pennington  <hp@redhat.com>
12002
12003         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
12004         this
12005
12006         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
12007         user_data instead of tree_node
12008
12009         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
12010         TREE_VIEW_COLUMN_SIZE
12011
12012         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
12013         "size" field to "width" finishes bug 40061
12014
12015         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
12016         for bitfields, bug 40268
12017
12018 2001-01-04  Havoc Pennington  <hp@redhat.com>
12019
12020         Rename some stuff:
12021         
12022         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
12023
12024         s/GtkModelSimple/GtkTreeModelSimple/g;
12025         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
12026         s/gtk_model_simple/gtk_tree_model_simple/g;
12027         s/gtkmodelsimple/gtktreemodelsimple/g;
12028
12029         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
12030
12031         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
12032         s/column_set_col_type/column_set_sizing/g;
12033
12034         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
12035         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
12036
12037         s/GtkCellRendererType/GtkCellRendererState/g;
12038         
12039         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
12040         (gtk_cell_renderer_toggle_class_init): change "state" property to
12041         "active", to match GtkToggleButton
12042         (gtk_cell_renderer_toggle_get_active): new function, bug
12043         40269
12044         (gtk_cell_renderer_toggle_set_active): new function
12045         (gtk_cell_renderer_toggle_set_property): route changes to toggle
12046         state through gtk_cell_renderer_set_active
12047
12048 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
12049
12050         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
12051         temporarily until they work again.  Brought up to date with
12052         changes in the model.
12053         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
12054         model.
12055
12056 2001-01-04  Havoc Pennington  <hp@redhat.com>
12057
12058         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
12059         equal to the line length, then position iterator before paragraph 
12060         separators. Fixes crash reported by Mikael Hermansson when
12061         pressing left arrow from the start of a line.   
12062
12063         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
12064         about byte indexes off the end
12065         (iter_set_from_char_offset): add g_error about char offsets
12066         off the end
12067
12068 2001-01-03  Havoc Pennington  <hp@redhat.com>
12069
12070         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
12071
12072         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
12073         of private functions; remove inclusion of private headers.
12074
12075         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
12076         function, so we don't need private functions in gtktextdisplay.c
12077
12078         * gtk/gtktextiterprivate.h: underscore-ification
12079
12080         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
12081         to instead say "only useful to implement widgets"
12082
12083         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
12084         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
12085         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
12086
12087         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
12088         This function was completely broken
12089
12090         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
12091
12092         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
12093
12094         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
12095
12096         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
12097
12098         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
12099
12100         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
12101
12102         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
12103         gtk_paint_layout
12104
12105         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
12106         gtk_paint_layout
12107
12108         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
12109         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
12110         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
12111         which were not implemented.     
12112
12113         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
12114         insert_pixbuf signal. Rename delete_text to delete_range since it
12115         also deletes pixbufs and child anchors. This almost closes bug
12116         40245 (still need to deal with child anchors)
12117
12118         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
12119         insert_pixbuf, change signal names as appropriate, change types of
12120         signals taking marks/tags to have the specific type, not just
12121         G_TYPE_OBJECT
12122         
12123         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
12124         closes bug 40051
12125
12126         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
12127         unnecessary remove_contents() call
12128         (gtk_option_menu_class_init): add a "changed" signal, closes
12129         bug 40039
12130         (gtk_option_menu_update_contents): emit "changed" if the 
12131         active menu item changes
12132
12133         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
12134         cast to GtkObject, reported by Jonas Borgstrom
12135         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
12136         we can't do stuff with side effects in finalize. Instead, spew a
12137         warning if the loader isn't closed.
12138
12139         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
12140         colormap in here, non-X ports probably need to sync to this change
12141
12142         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
12143         assertion that colormap != NULL, you can set the colormap to NULL
12144         if you like.
12145         
12146         * Makefile.am: remove gtk-config-2.0
12147
12148         * configure.in: Use pkg-config to locate GLib. Remove
12149         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
12150         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
12151         Use pkg-config to locate Pango. Output correct Pango libs to
12152         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
12153
12154         * Makefile.am (pkgconfig_DATA): install only target-specific pc
12155         files
12156         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
12157         X11 pc files
12158
12159         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
12160         unref from here
12161
12162 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
12163
12164         * configure.in:
12165         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
12166
12167 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
12168
12169         * gtk/gtktextlayout.c
12170         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
12171         variable when moving back onto a single line.
12172
12173 2001-01-01  Havoc Pennington  <hp@redhat.com>
12174
12175         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
12176
12177         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
12178
12179         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
12180         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
12181
12182 2001-01-01  Havoc Pennington  <hp@redhat.com>
12183
12184         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
12185
12186         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
12187         GtkTextAttributes
12188
12189         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
12190         #40246
12191         (gtk_text_attributes_copy_values): rename from 
12192         gtk_text_attributes_copy
12193         (gtk_text_attributes_copy): a more standard GTK copy function, 
12194         which returns a new object
12195
12196 2001-01-01  Havoc Pennington  <hp@redhat.com>
12197
12198         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
12199         
12200         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
12201         don't fill in tree_view->priv->selection, kind of an unexpected
12202         side effect
12203
12204         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
12205         gtkintl.h
12206         
12207         * gtk/gtkcellrenderer.c: Remove definition of _ and include
12208         gtkintl.h
12209         (gtk_cell_renderer_get_property): remove calls to g_value_init
12210
12211         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
12212         gtkintl.h
12213
12214         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
12215         and include gtkintl.h
12216         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
12217         property names
12218
12219         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
12220         GtkTreeSelection
12221         (_gtk_tree_selection_new_from_with_view): rename, return
12222         GtkTreeSelection
12223         (_gtk_tree_selection_set_tree_view): rename with uscore
12224         (gtk_tree_selection_get_selected): fill in the "model" out param
12225         first, so it gets filled in even if we return at the top of the 
12226         function
12227         (gtk_tree_selection_real_select_all): add a comment and an else{}
12228         to clarify this a bit
12229         (gtk_tree_selection_real_unselect_all): add the same else{}
12230
12231         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
12232         set_tree_view to have underscore prefixes, move them to the
12233         private header, fix return type of new_with_tree_view
12234         (struct _GtkTreeSelection): mark struct
12235         fields private  
12236
12237         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
12238         GtkTreeModelFlags, not a guint
12239         (gtk_tree_path_prev): return gboolean not gint
12240         (gtk_tree_path_up): return gboolean not gint
12241
12242         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
12243         return GtkTreeModelFlags, not a guint
12244
12245         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
12246         that child model is non-null before unrefing it
12247         (g_value_int_compare_func): make this a qsort compare func, not 
12248         a boolean predicate
12249
12250         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
12251         (add -umn to the end), and mark it unimplemented
12252         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
12253         I don't see what it's for - doesn't the model always sort itself?
12254         (gtk_tree_model_sort_set_compare): this had the wrong signature
12255
12256         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
12257         Fix the docs to say that it destructively replaces existing
12258         attributes (previously said that it added attributes).
12259         (gtk_tree_view_column_set_visible): canonicalize bool before
12260         equality testing. Also, check for realization before
12261         hiding/showing the tree_column->window; if this window could exist
12262         before realization, then it's busted and needs fixing, we can't 
12263         create GDK resources pre-realization. Also, remove
12264         superfluous queue_resize(), since set_size() does that for us.
12265         (gtk_tree_view_column_set_col_type): check realization before 
12266         using tree_column->window
12267
12268         * gtk/gtktreedatalist.c: fix filename in copyright notice
12269
12270 2000-12-31  Havoc Pennington  <hp@pobox.com>
12271
12272         * gtk/gtktextview.c: Rearrange all the
12273         scroll-while-dragging-or-selecting code to be different, not
12274         necessarily better. ;-)
12275         (gtk_text_view_scroll_to_mark): Change this
12276         function to take within_margin as a fraction instead of a pixel
12277         value, and to take alignment arguments (indicating where to align 
12278         the mark inside the visible area)
12279         
12280         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
12281         to GtkObject
12282
12283         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
12284         behavior so that offsets past the end of the line are not 
12285         allowed, and an offset equal to the line length moves the iterator
12286         to the next line
12287         (gtk_text_iter_set_line_index): make parallel change
12288         (gtk_text_iter_get_bytes_in_line): add this function
12289         
12290         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
12291         of byte indexes off the end of the line; byte index at the end of
12292         the line now returns FALSE and doesn't fill in the requested
12293         values, byte index past the end of the line is an error.  Also,
12294         don't allow -1 offset anymore, since its meaning is unclear.
12295
12296         This change exposes some bug in visual cursor motion, where we
12297         end up with a huge invalid byte index; needs fixing. Symptom of 
12298         bug is a crash when you hit up arrow.
12299         
12300         (_gtk_text_line_char_locate): match the change to byte_locate
12301
12302         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
12303         from start of line properly. fixes bug reported by Mikael
12304         Hermansson where backspace would delete all text before the
12305         cursor.
12306
12307 2000-12-30  Tor Lillqvist  <tml@iki.fi>
12308
12309         * gdk/win32/gdkwindow-win32.c
12310         (gdk_window_impl_win32_get_visible_region): New function, as in
12311         the X11 backend.
12312         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
12313         instead of duplicating the same code here.
12314
12315         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
12316         GDK_COLORMAP macro.
12317
12318         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
12319         destroy function.
12320         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
12321         access that.
12322
12323         * gtk/gtk.def: Update.
12324
12325         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
12326
12327 2000-12-30  Havoc Pennington  <hp@pobox.com>
12328
12329         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
12330         colormap on input only windows, to avoid special cases all over
12331         the code for these windows.
12332
12333 2000-12-26  Tor Lillqvist  <tml@iki.fi>
12334
12335         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
12336         we are on a palettized display ("PseudoColor" in X11), as the code
12337         for that doesn't work anyway, and never has.
12338
12339 2000-12-22  Alexander Larsson  <alexl@redhat.com>
12340
12341         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
12342         Don't use isprint() for chars > 255.
12343
12344 2000-12-21  Havoc Pennington  <hp@redhat.com>
12345
12346         * tests/testtreeview.c: more work
12347
12348 2000-12-21  Alexander Larsson  <alexl@redhat.com>
12349
12350         * docs/README.linux-fb:
12351         Update the docs to the new pangoft2 way.
12352
12353 2000-12-21  Alexander Larsson  <alexl@redhat.com>
12354
12355         * configure.in:
12356         For linux-fb get the pangoft2 cflags and libs. This needs a recent
12357         pango version.
12358         Remove modules/linux-fb/Makefile.
12359
12360         * gdk/linux-fb/gdkdrawable-fb2.c:
12361         Render glyphs using freetype.
12362
12363         * gdk/linux-fb/gdkfb.h:
12364         Add new fb-specific functions needed for managing windows.
12365
12366         * gdk/linux-fb/gdkmain-fb.c:
12367         Remove gdk_font_init/fini() calls.
12368
12369         * gdk/linux-fb/gdkpango-fb.c:
12370         Remove old implementation. Use pangoft2 instead.
12371
12372         * gdk/linux-fb/gdkprivate-fb.h:
12373         Remove PangoFBFont and related stuff.
12374
12375         * gdk/linux-fb/gdkwindow-fb.c:
12376         Implement drawable->get_visible_region.
12377         Implement support for _gdk_window_set_child_handler () and
12378         _gdk_window_get_decorations().
12379
12380         * modules/Makefile.am:
12381         Remove linux-fb subdir.
12382
12383         * modules/linux-fb/*:
12384         Removed all.
12385         
12386 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
12387
12388         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
12389         calls, as they are no longer needed.
12390
12391         * gtk/gtktreemodelsort.c: Fix up the comparison code.
12392         
12393         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
12394         figure out how to emit a signal on an interface.
12395
12396 2000-12-20  Havoc Pennington  <hp@redhat.com>
12397
12398         * tests: new directory to contain tests, gtk/test* should move
12399         here sometime (with appropriate on-cvs-server hackery)
12400
12401         * tests/testtreeview.c, tests/Makefile.am: a test
12402         
12403         * configure.in (AC_OUTPUT): add tests/Makefile
12404
12405         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
12406         and "invisible_set" which were missing
12407
12408         * gtk/gtkrbtree.h: some cheesy indentation fix
12409         
12410 2000-12-20  Alexander Larsson  <alexl@redhat.com>
12411
12412         * gtk/gtkinvisible.c (gtk_invisible_realize):
12413         Attach the style to the window so that the style it is not
12414         leaked when unrealizing the window.
12415
12416 2000-12-18  Havoc Pennington  <hp@redhat.com>
12417
12418         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
12419         begin/end user action where appropriate
12420         (gtk_text_view_commit_handler): add begin/end user action
12421
12422         * gtk/gtktextbuffer.c: add begin/end user action signals, and
12423         bracket interactive operations with begin/end user action pair.
12424         
12425         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
12426         "interactive" arg from insert_text and delete_text signals.
12427         Add begin_user_action, end_user_action signals
12428         (gtk_text_buffer_begin_user_action): 
12429         (gtk_text_buffer_end_user_action): New functions to delimit 
12430         a user-visible action
12431
12432         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
12433         signals.
12434         
12435 2000-12-18  Havoc Pennington  <hp@redhat.com>
12436
12437         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
12438         was pretty non-working.
12439
12440         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
12441         by passing the length to g_utf8_validate().
12442
12443 2000-12-16  Havoc Pennington  <hp@pobox.com>
12444
12445         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
12446         Port to GObject, can go back in gdk-pixbuf after setting up 
12447         a gdk-pixbuf-marshal.h header over there.
12448
12449         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
12450         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
12451         args
12452         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
12453         set
12454         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
12455         here, do it when we create the buttons later
12456         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
12457         (gtk_tree_view_map): paranoia checks that column->button is shown 
12458         and unmapped
12459         (gtk_tree_view_size_request): only request visible children.
12460         Move header size calculation in here, for cleanliness, and 
12461         to maintain invariants for child widgets if we eventually 
12462         let users set different children inside the buttons
12463         (gtk_tree_view_map_buttons): factor out code to map buttons,
12464         since it was being called several times
12465         (gtk_tree_view_size_allocate_buttons): move_resize the drag
12466         windows instead of just moving them; their height may change 
12467         if we allow random widgets in there, or the theme changes.
12468         (gtk_tree_view_size_allocate): move button size allocation 
12469         above emitting the scroll signals, to ensure a sane state when we
12470         hit user code
12471         (gtk_tree_view_button_release): remove queue_resize after
12472         tree_view_set_size(), set_size() will handle any resize queuing
12473         that's needed
12474         (gtk_tree_view_focus_in): just queue a draw, don't fool with
12475         draw_focus goo
12476         (gtk_tree_view_focus): use gtk_get_current_event() and
12477         gdk_event_get_state()
12478         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
12479         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
12480         semicolon
12481         (gtk_tree_view_create_button): show the button here
12482         (gtk_tree_view_button_clicked): actually emit the clicked signal
12483         on the column
12484         (_gtk_tree_view_set_size): return right away if the size is
12485         unchanged, as a cheesy optimization
12486         (gtk_tree_view_setup_model): rename set_model_realized to 
12487         setup_model to match the flag that indicates whether we've 
12488         called it
12489         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
12490         exist, because set_scroll_adjustment does that and it shouldn't
12491         matter what order you call these in
12492         (gtk_tree_view_get_vadjustment): ditto
12493         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
12494         for paranoia
12495         (gtk_tree_view_set_headers_visible): call
12496         gtk_tree_view_map_buttons() instead of using cut-and-paste code
12497         (gtk_tree_view_append_column): clarify whether the return value
12498         is the count of columns before or after, and do the increment 
12499         separately from the return statement so you can tell from the code.
12500         (gtk_tree_view_remove_column): ditto
12501         (gtk_tree_view_insert_column): ditto
12502         (gtk_tree_view_get_column): remove g_return_if_fail for columns
12503         outside the existing range, the docs say that outside-range
12504         columns are allowed, so we handle them as documented. (Presumably
12505         this allows a nice loop with column != NULL as test.)
12506         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
12507         mean (left/right/center etc.).
12508         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
12509         (gtk_tree_view_expand_row): add docs
12510         (gtk_tree_view_collapse_row): add docs
12511
12512         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
12513         function to emit the clicked signal on a column
12514         
12515         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
12516         state of an event
12517         (gdk_event_get_time): don't treat GDK_SCROLL 
12518         as a button event, remove default case from switch so gcc 
12519         will whine if we don't explicitly handle all event types
12520
12521         * gtk/gtktreeselection.h: added some FIXME 
12522         
12523         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
12524         "columns" to "n_columns" and "column" to "columns" for clarity
12525
12526 2000-12-16  Havoc Pennington  <hp@pobox.com>
12527         
12528         * gtk/gtktextiter.c: General cleanup of the log attr iteration
12529         stuff. This should make e.g. the delete key work again in the
12530         text widget...
12531         (gtk_text_iter_forward_cursor_positions): handle negative count
12532         (gtk_text_iter_backward_cursor_positions): handle negative count
12533         (gtk_text_iter_forward_word_ends): handle negative count
12534         (gtk_text_iter_backward_word_starts): handle negative count
12535
12536         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
12537         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
12538         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
12539         GObject. No doubt will cause breakage.
12540
12541         * demos/gtk-demo/textview.c: remove hacks around
12542         non-GObject-ification of the text objects
12543
12544         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
12545         the text tag
12546         
12547 2000-12-14  Havoc Pennington  <hp@pobox.com>
12548
12549         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
12550         that we have Xrender
12551
12552 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
12553
12554         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
12555         Add two virtualized functions gdk_drawable_get_clip_region - to
12556         get the clip region when drawing.
12557         
12558         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
12559         use invalidate_region.
12560
12561         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
12562         region.
12563
12564         * acconfig.h configure.in: Check for Xft. For now, assume
12565         that if Xft is found, Pango was compiled with Xft support
12566         as well.
12567
12568         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
12569         gdk_colormap_query_color().
12570         
12571         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
12572         with Xft if appropriate.
12573
12574         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
12575         a pangoxft context if we have XFT and the environment
12576         variable GD_USE_XFT is set.
12577         
12578         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
12579         and also possibly an XftDraw structure.
12580
12581         * gtk/gtkfontsel.c: Handle the case where the font from the
12582         style doesn't match any of the fonts a bit better.
12583         
12584         * gtk/testgtk.c: Add tabs between directional segments for
12585         hebrew/arabic test. (Not really necessary, just a little
12586         prettier.)
12587
12588 2000-12-14  Havoc Pennington  <hp@redhat.com>
12589
12590         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
12591         reading a file
12592
12593 2000-12-14  Havoc Pennington  <hp@redhat.com>
12594
12595         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
12596         unused call to get_last_line()
12597
12598         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
12599         here until boxed is working (and maybe after that - we should
12600         really not gratuitously break old code)
12601
12602         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
12603         specific types for font_desc and tabs args, move them to
12604         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
12605         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
12606
12607         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
12608         use GTK_TYPE_POINTER for signal signatures as a hack-around
12609
12610         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
12611         PangoTabArray
12612
12613         * gtk/gtktextlayout.c (line_display_iter_to_index): 
12614         make static
12615         (line_display_index_to_iter): make static
12616
12617         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
12618         to marshal a string not a boxed
12619
12620         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
12621
12622         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
12623         since the UTF-8 isn't validated yet
12624
12625         * gtk/gtktextsegment.c (char_segment_check_func): don't require
12626         lines to end in '\n'
12627         
12628         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
12629         forward_to_delimiters, and grapheme boundaries
12630         (gtk_text_view_delete_from_cursor): properly handle non-newline
12631         delimiters, and grapheme boundaries
12632
12633         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
12634         to gtk_text_iter_forward_to_delimiters, and make it work properly
12635         if empty lines end with a character other than '\n'
12636
12637         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
12638         position
12639
12640 2000-12-15  Tor Lillqvist  <tml@iki.fi>
12641
12642         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
12643
12644         * gtk/gtk.def
12645         * gdk/gdk.def: Update.
12646
12647         * gdk/win32/gdkmain-win32.c
12648         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
12649         gdkmain-win32.c here.
12650
12651         * gdk/win32/makefile.mingw.in (all): No need to make
12652         gdk-win32res.o here, the makefile one step up will call us to make
12653         it.
12654
12655         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
12656         gdkkeys-win32.
12657
12658         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
12659
12660         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
12661         call to g_source_add().
12662
12663         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
12664         leak. Thanks to Andreas Kemnade.
12665
12666 2000-12-13  Havoc Pennington  <hp@pobox.com>
12667
12668         * gtk/gtktextbtree.h: Remove double _ in front of some functions
12669
12670         * gtk/gtktext*.[hc]: update accordingly
12671         
12672 2000-12-13  Havoc Pennington  <hp@pobox.com>
12673
12674         * gtk/gtktextbtree.h: Put _ in front of every function in this 
12675         header file
12676
12677         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
12678
12679 2000-12-13  Alex Larsson  <alexl@redhat.com>
12680
12681         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
12682         Add support for ps2 intellimouse.
12683
12684         * gdkkeyboard-fb.c:
12685         Move shift-F1 repaint handling to xlate handler only.
12686         
12687         * docs/README.linux-fb:
12688         Add imps2 to docs.
12689         Document the new refresh keys.
12690         
12691 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
12692
12693         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
12694
12695         * gtk/gtkbox.c: change property types from (u)long to (u)int for
12696         ::position and ::padding.
12697
12698         * gtk/gtkcontainer.c: make ::border_width an INT property.
12699
12700         * gtk/gtkpacker.c: make ::position an INT property.
12701
12702         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
12703         guard against NULL h/v scrollbars, since this is used at construction
12704         time.
12705
12706         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
12707         internal gtk_clist_constructor().
12708
12709         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
12710         gtk_ctree_constructor().
12711
12712         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
12713         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
12714
12715         * docs/reference/Makefile.am: fun stuff, disabled docs generation
12716         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
12717
12718         * gtk/gtkwidget.[hc]:
12719         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
12720         and gtk_widget_get().
12721         (gtk_widget_new): use g_object_new_valist().
12722         (gtk_widget_set): use g_object_set_valist().
12723
12724         * gtk/gtkobject.[hc]:
12725         removed gtk_object_arg_get_info(), gtk_object_getv(),
12726         gtk_object_query_args(), gtk_object_newv(),
12727         gtk_object_class_add_signals(),
12728         gtk_object_class_user_signal_new(),
12729         gtk_object_class_user_signal_newv(),
12730         gtk_object_arg_set(), gtk_object_arg_get(),
12731         gtk_object_args_collect(),
12732         gtk_object_default_construct(),
12733         gtk_object_constructed(),
12734         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
12735         removed nsignals, signals and n_args members from GtkObjectClass.
12736         (gtk_object_new): use g_object_new_valist().
12737         (gtk_object_set): use g_object_set_valist().
12738         (gtk_object_get): use g_object_get_valist().
12739         
12740         * gtk/gtkcompat.h: define gtk_object_default_construct().
12741         
12742         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
12743         g_object_new().
12744
12745         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
12746         fucntions, cleaned up method assignments (make sure your structures
12747         are setup properly before calling out). removed all GTK_CONSTRUCTED
12748         hacks ;)
12749
12750 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
12751
12752         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
12753         off-by-one error in checks. (Dave Lambert)
12754
12755 2000-12-12  Alexander Larsson  <alexl@redhat.com>
12756
12757         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
12758         Don't free gdk_fb_keyboard twice.
12759
12760 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
12761
12762         * gtk/testgtk.c:
12763         (create_tooltips): 
12764         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
12765         use GObject swapped_signal:: properties instead.
12766
12767         * gtk/gtkcellrenderertoggle.c: 
12768         * gtk/gtkcellrenderertextpixbuf.c: 
12769         * gtk/gtkcellrenderertext.c: 
12770         * gtk/gtkcellrendererpixbuf.c: 
12771         * gtk/gtkcellrenderer.c:
12772         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
12773         missing warnings for invalid property ids, install properties
12774         with g_object_class_install_property() now.
12775         
12776         * gtk/gtksignal.c:
12777         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
12778         
12779 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
12780         
12781         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
12782         to determine if a window is the focus widget within
12783         its toplevel.
12784
12785         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
12786         to be boolean.
12787
12788         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
12789         of the case where the container CAN_FOCUS to here instead
12790         of having it in each individual move-the-focus place.
12791
12792         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
12793         focusing to be geometric in a much more obvious sense. Arrowing
12794         around is still non-intuitive because it isn't perfect and
12795         because entries, etc, grab the arrow keys, but it at least
12796         usually will do what you expect now.
12797         
12798         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
12799         file.
12800
12801         * gtk/gtknotebook.c: Change tabs to be a single item in
12802         the focus chain. Make movement of focus on tabs with arrow
12803         keys wrap around.
12804         
12805         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
12806         CHECK_FIND_CHILD macro to give informative error messages
12807         instead of silent returns.
12808
12809         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
12810         flag since we handle GdkReturn on the tabs.
12811
12812         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
12813         windows rather than sending expose events directly.
12814
12815         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
12816         definition for GtkNotebookPage into .c file, since it is private.
12817
12818         * gtk/testgtk.c (create_notebook): Add option for 
12819         testing borderless notebook.
12820
12821         * gtk/testgtk.c (page_switch): Removed egregious poking
12822         around in GTK+ internals.
12823
12824         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
12825
12826         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
12827         properly through gtk_clist_focus. Make the title headers a
12828         single item in the tab-focus chain, and make left-right wrap
12829         around.
12830
12831         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
12832         focus method so that wrapping around works properly.
12833
12834         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
12835         that is handled for the widget now. 
12836
12837 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
12838
12839         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
12840         widgets as TOPLEVEL.
12841
12842         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
12843         TOPLEVEL widgets are containers.
12844
12845         * gtk/gtkinvisible.h: Remove useless include.
12846
12847 2000-12-11  Havoc Pennington  <hp@redhat.com>
12848
12849         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
12850         Handle chopping off \r\n and 0x2029 in addition to \n before
12851         passing to PangoLayout
12852
12853         * gtk/gtkimcontextsimple.c
12854         (gtk_im_context_simple_get_preedit_string): 
12855         return an empty string if no match is pending
12856
12857         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
12858         assertion that the returned preedit string was sane
12859
12860         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
12861         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
12862         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
12863
12864 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
12865
12866         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
12867         Fix up finalizer to chain to its parent.
12868
12869 2000-12-11  Alexander Larsson  <alexl@redhat.com>
12870
12871         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
12872         Clearified the difference between the keyboard types. Wrote a note
12873         about the magic sysrq key to get out of raw mode.
12874
12875 2000-12-09  James Henstridge  <james@daa.com.au>
12876
12877         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
12878         member to hold masks for detecting the start of a protocol packet.
12879         (mouse_devs): add packet start masks for ps2 and ms device types.
12880         Left the mask for fidmour blank, as I have no idea what it should
12881         be.
12882         (handle_mouse_io): skip bytes until we get to the start of a
12883         packet.  My Logitech mouse seems to be passing an extra NULL pad
12884         byte, and GPM does a similar thing here.
12885         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
12886         this is the ms mouse driver.
12887         (gdk_fb_mouse_ms_packet): fix up button handling, which was
12888         completely broken except for button1.  It was checking the wrong
12889         bit in the packet for the status of the right mouse button, and
12890         wrongly assuming right == button2 rather than 3.  I fixed that and
12891         also added support for middle button (button2).
12892
12893 2000-12-08  Havoc Pennington  <hp@redhat.com>
12894
12895         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
12896         that cause a segfault on text insertion
12897
12898         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
12899         warning
12900
12901         * gtk/gtktextiter.c (test_log_attrs): use
12902         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
12903
12904         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
12905         Get log attrs for a line, using a cache stored on the buffer
12906         
12907         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
12908         reported by Jeff Franks
12909
12910 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12911
12912         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
12913         /dev/ttyS0 -> /dev/mouse
12914
12915 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12916
12917         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
12918         Added dummy gdk_fontset_load.
12919
12920 2000-12-08  Alexander Larsson  <alexl@redhat.com>
12921
12922         * docs/README.linux-fb:
12923         * docs/Makefile.am:
12924         Initial GtkFB docs.
12925         
12926         * gdk/linux-fb/Makefile.am:
12927         Define GDK_DATA_PREFIX.
12928
12929         * gdk/linux-fb/gdkmain-fb.c:
12930         Fix typo.
12931         Change default display to /dev/fb0.
12932
12933         * gdk/linux-fb/gdkpango-fb.c:
12934         Add $(prefix)/share/fonts/ to font path.
12935         
12936 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
12937
12938         * gdk/linux-fb/gdkkeyboard-fb.c:
12939         New file containing the abstracted keyboard driver. Most code
12940         taken from gdkinput-ps2.c
12941
12942         * gdk/linux-fb/gdkinput-ps2.c:
12943         Removed file.
12944         
12945         * gdk/linux-fb/Makefile.am:
12946         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
12947
12948         * gdk/linux-fb/gdkcolor-fb.c:
12949         display->fb was renamed to display->fb_fd.
12950
12951         * gdk/linux-fb/gdkcursor-fb.c:
12952         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12953
12954         * gdk/linux-fb/gdkinput.c:
12955         Moved gdk_input_init here from gdkinput-ps2.c
12956
12957         * gdk/linux-fb/gdkmain-fb.c:
12958         display->fb was renamed to display->fb_fd.
12959         Now the tty and the console is opened here instead
12960         of in the keyboard driver. Also check GDK_VT to see what
12961         tty to open.
12962         Move gdk_beep () here from gdkinput-ps2.c
12963         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12964
12965         * gdk/linux-fb/gdkmouse-fb.c:
12966         Add header.
12967         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12968         Return correct keyboard modifiers.
12969         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
12970
12971         * gdk/linux-fb/gdkprivate-fb.h:
12972         Add tty and vt info to display.
12973         Add orignal modeinfo storage to display
12974         Update global functions
12975
12976         * gdk/linux-fb/gdkwindow-fb.c:
12977         Added gdk_fb_window_find_focus().
12978         gdk_mouse_get_info -> gdk_fb_mouse_get_info
12979
12980 2000-12-07  Havoc Pennington  <hp@pobox.com>
12981
12982         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
12983         function, noticed by Alex
12984
12985 2000-12-06  Elliot Lee  <sopwith@redhat.com>
12986
12987         * configure.in: Detect freetype properly
12988
12989         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
12990         above.
12991
12992 2000-12-06  Alexander Larsson  <alexl@redhat.com>
12993
12994         * gdk/linux-fb/Makefile.am:
12995         Add gdkmouse-fb.c
12996         
12997         * gdk/linux-fb/gdkmouse-fb.c:
12998         New file. Abstracted the mouse drivers a bit.
12999
13000         * gdk/linux-fb/gdkcursor-fb.c:
13001         The cursor hide/show functions was moved here from gdkinput-ps2.c.
13002
13003         * gdk/linux-fb/gdkinput-ps2.c:
13004         Removed old mouse handling code. Moved cursor handling code
13005         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
13006         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
13007         gdk_mouse_get_info.
13008
13009         * gdk/linux-fb/gdkmain-fb.c:
13010         Pass NULL pointers for x,y in gdk_mouse_get_info call.
13011
13012         * gdk/linux-fb/gdkprivate-fb.h:
13013         Removed public gdk_fb_find_common_ancestor, added and renamed
13014         functions for the new mouse handling code.
13015
13016         * gdk/linux-fb/gdkwindow-fb.c:
13017         Moved gdk_fb_window_send_crossing_events here. added global
13018         variable gdk_fb_window_containing_pointer. made
13019         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
13020         renamed to gdk_mouse_get_info.
13021
13022 2000-12-06  Alexander Larsson  <alexl@redhat.com>
13023
13024         * gdk/linux-fb/gdkevents-fb.c:
13025         Update to match latest gmain/gsource changes.
13026
13027         * gdk/linux-fb/gdkinput-ps2.c:
13028         Bogus gdk_keymap_get_entries_for_keycode implementation so that
13029         it links. Will be implemented later.
13030
13031 2000-12-03  Havoc Pennington  <hp@pobox.com>
13032
13033         * gdk/Makefile.am: add gdkkeys.[hc]
13034
13035         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
13036         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
13037
13038         * acconfig.h, configure.in: add checks and command line options
13039         for XKB
13040
13041         * gdk/x11/gdkkeys-x11.c: Implement the above functions
13042         
13043         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
13044         and group in the key event
13045
13046         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
13047         field with the low-level hardware key code, and a group
13048         field with the keyboard group
13049
13050         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
13051         and declare a couple globals used for keymap handling
13052         
13053         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
13054         hold down Shift-Control and type a hex number to get a Unicode 
13055         character corresponding to the hex number
13056         (gtk_im_context_simple_get_preedit_string): Fix cursor position
13057         (return bytes not chars)
13058
13059 2000-12-05  Elliot Lee  <sopwith@redhat.com>
13060
13061         * gdk/gdkcolor.h: Make GdkColor specify element sizes
13062         to avoid waste on 64-bit platforms.
13063
13064 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
13065
13066         * INSTALL: Fix link to PNG home, remove reference
13067         to fribidi.
13068
13069         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
13070         
13071         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
13072         tested.)
13073
13074         * gtk/gtkcheckmenuitem.c: Permanently turn on
13075         always_show_toggle.
13076
13077         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
13078         be NULL. (Vladimir Klebanov, #26545)
13079
13080         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
13081         some signed/unsigned comparison problems. (#6510,
13082         David Kaelbling)
13083
13084         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
13085         return type to boolean (Oskar Liljeblad, #18648)
13086
13087 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13088
13089         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
13090         Remove bogus colormap setting.
13091
13092 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13093
13094         * gdk/linux-fb/gdkcolor-fb.c:
13095         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
13096
13097         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
13098         Must set colormap.
13099         
13100 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
13101
13102         * docs/tutorial/gtk-tut.sgml: DND updates
13103
13104 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
13105
13106         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
13107         Remove old debug g_warning().
13108         (gdk_fb_draw_drawable): The src argument can be either a wrapper
13109         or an implementation, just pass the implementation to draw_drawable_2.
13110         
13111         * gdk/linux-fb/gdkprivate-fb.h:
13112         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
13113
13114         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
13115         clear and invalidate area when window is destroyed.
13116         (send_map_events): Remove old commented out code.
13117
13118 2000-12-05  Alexander Larsson  <alexl@redhat.com>
13119
13120         * gdk/linux-fb/gdkpango-fb.c:
13121         Use italic instead of oblique in font aliases.
13122         
13123         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
13124         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
13125         other unsupported functions.
13126
13127 2000-12-04  Havoc Pennington  <hp@redhat.com>
13128
13129         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
13130
13131         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
13132
13133         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
13134
13135         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
13136         hack to avoid infinite loops (synthetic expose event) - 
13137         Owen has more appropriate fixes in a branch he'll check in later.
13138
13139         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
13140         separator, CR, and CRLF as line ends
13141
13142         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
13143         into lines using pango_find_paragraph_boundary(); other bits of
13144         the widget are still going to be broken if the boundary isn't '\n'
13145         though
13146
13147 2000-12-04  Alexander Larsson  <alexl@redhat.com>
13148
13149         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
13150         multiply.
13151
13152         * gdk/linux-fb/gdkpango-fb.c:
13153         Copied some 26.6 scaling macros from pango to clean up the rounding.
13154         (pango_fb_font_get_glyph_info): Correct sign on x value.
13155
13156         * gdk/linux-fb/gdkprivate-fb.h:
13157         Removed unreferenced external functions.
13158
13159         * modules/linux-fb/Makefile.am: Use ` instead of '.
13160
13161         * modules/linux-fb/basic.c:
13162         Remove dead code. In particular the dummy lang engine which broke all
13163         pango layouts in GtkFB. Don't include tables-big.i anymore.
13164
13165         * modules/linux-fb/tables-big.i:
13166         Upgrade to latest version from pango. Left for reference, basic_ranges
13167         moved to basic.c.
13168         
13169 2000-12-04  Havoc Pennington  <hp@redhat.com>
13170
13171         Fix bugs Alex found:
13172         
13173         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
13174         to "draw"
13175
13176         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
13177
13178         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
13179
13180         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
13181         implementation in here, apparently the expose() implementation was
13182         dead code.
13183
13184 2000-12-04  Alexander Larsson  <alexl@redhat.com>
13185
13186         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
13187         Return positive descent.
13188
13189 2000-12-02  Havoc Pennington  <hp@pobox.com>
13190
13191         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
13192         method and signal
13193         
13194         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
13195         calls gdk_window_process_updates() to push the exposes through
13196         (gtk_widget_class_init): No more draw signal, no
13197         gtk_widget_real_draw()  
13198         
13199         * gtk/gtkbin.c (gtk_bin_draw): remove
13200
13201         * gtk/gtkbox.c (gtk_box_draw): remove
13202
13203         * gtk/gtkbutton.c (gtk_button_draw): remove
13204
13205         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
13206
13207         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
13208
13209         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
13210
13211         * gtk/gtkclist.c (gtk_clist_draw): remove
13212
13213         * gtk/gtkentry.c (gtk_entry_draw): remove
13214
13215         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
13216
13217         * gtk/gtkfixed.c (gtk_fixed_draw): remove
13218
13219         * gtk/gtkframe.c (gtk_frame_draw): remove
13220
13221         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
13222
13223         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
13224
13225         * gtk/gtklayout.c (gtk_layout_draw): remove
13226
13227         * gtk/gtklist.c (gtk_list_draw): remove
13228
13229         * gtk/gtklistitem.c (gtk_list_item_draw): remove
13230
13231         * gtk/gtkmenu.c (gtk_menu_draw): remove
13232
13233         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
13234
13235         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
13236
13237         * gtk/gtknotebook.c (gtk_notebook_draw): remove
13238
13239         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
13240
13241         * gtk/gtkpacker.c (gtk_packer_draw): remove
13242
13243         * gtk/gtkrange.c (gtk_range_draw): remove
13244
13245         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
13246
13247         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
13248
13249         * gtk/gtktable.c (gtk_table_draw): remove
13250
13251         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
13252
13253         * gtk/gtktext.c (gtk_text_draw): remove
13254
13255         * gtk/gtktextview.c (gtk_text_view_draw): remove
13256
13257         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
13258
13259         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
13260
13261         * gtk/gtktree.c (gtk_tree_draw): remove
13262
13263         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
13264
13265         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
13266
13267         * gtk/gtkviewport.c (gtk_viewport_draw): remove
13268
13269         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
13270
13271         * gtk/gtkvscale.c (gtk_vscale_draw): remove
13272
13273         * gtk/gtkwindow.c (gtk_window_draw): remove
13274
13275 2000-20-01  Anders Carlsson  <andersca@gnu.org>
13276
13277         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
13278         a GtkToggleButton is both insensitive and active, it was being
13279         drawn by the GtkButton draw handler which doesn't check the
13280         state. Now it's calling gtk_toggle_button_paint instead.
13281         
13282 2000-12-01  Havoc Pennington  <hp@redhat.com>
13283
13284         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
13285         dangling pointers to the appearance attributes from the 
13286         line display
13287
13288         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
13289         width/height to mean "full width/height of drawable"
13290
13291         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
13292         click to select word/line
13293         
13294         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
13295         when getting log attrs. Get a slice, so that pixmaps and stuff
13296         are properly handled.
13297
13298         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
13299         paste into the selection (replaces selection now, previously
13300         crashed or added to selection). Reveals longstanding btree bug -
13301         select multiple lines, middle-click on the selection, boom. This
13302         isn't related to my changes though.
13303
13304         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
13305         PangoLogAttrs changes
13306         (gtk_entry_move_backward_word): ditto
13307
13308         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
13309         functions return bool whether the iter moved onto a
13310         dereferenceable position.
13311  
13312         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
13313         functions for motion in terms of display lines.
13314
13315         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
13316         get the buffer a mark is inside
13317         
13318 2000-12-01  Alexander Larsson  <alexl@redhat.com>
13319
13320         * gdk/linux-fb/Makefile.am:
13321         * modules/linux-fb/Makefile.am:
13322         Freetype 2 final uses freetype-config
13323
13324         * gdk/linux-fb/gdkpango-fb.c:
13325         Upgrade to use Freetype 2 final.
13326         More flexible support for font aliases, this also fixes a bug with
13327         GtkFontSelector, as the aliases must be visible in the font/family list,
13328         or GtkFontSelector reads uninitialized memory.
13329
13330 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
13331
13332         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
13333         XGetIMValues to properly terminate variable argument list, and do
13334         NULL return check for ic_values and xim_styles.
13335
13336         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
13337         Restore preedit state after XmbResetIC().
13338         
13339         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
13340         XvaCreateNestedList() should take XvaNestedList, but not
13341         XvaNestedList*.
13342
13343         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
13344         preedit_draw_callback, preedit_caret_callback): Match
13345         "preedit-changed" signal name to "preedit_changed" to be
13346         consistent to the spec.
13347
13348         * gtk/gtkimcontextsimple.c (check_table):
13349         Match "preedit-changed" to "preedit_changed" to be consistent
13350         to the spec.
13351
13352 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
13353
13354         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
13355         gc->clip_region == NULL>
13356
13357 2000-11-30  Tor Lillqvist  <tml@iki.fi>
13358
13359         Changes by Hans Breuer:
13360         
13361         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
13362         Dont't use negative width and height as max_hints. This fixes
13363         Owen's recent testgtk changes for win32.
13364
13365         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
13366         gdk_win32_hdc_release): These are exported and may be called with
13367         other drawable types than our GdkDrawableImplWin32 (?).
13368
13369         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
13370         so always #define USE_BACKING_STORE.
13371
13372         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
13373         of printf for debugging output.
13374
13375         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
13376         
13377         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
13378
13379         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
13380         declaration.
13381
13382         * gtk/gtktexttypes.h: Ditto.
13383
13384         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
13385         (GDK_VoidSymbol) also if in case of arg check failure.
13386
13387         * gtk/gtkimcontextsimple.c
13388         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
13389         position to the pointer, but to the variable it points to.
13390
13391         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
13392
13393         * gtk/gtk.def: Updates.
13394
13395 2000-11-29  Elliot Lee  <sopwith@redhat.com>
13396
13397         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
13398         GTK_TYPE_TREE_MODEL.
13399
13400 2000-11-29  Alexander Larsson  <alexl@redhat.com>
13401
13402         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
13403         Set the size of the font from the description.
13404         (gdk_text_width): Gross hack that calculates the width
13405         of text by text_length * size/2. This is necessary because
13406         GtkLabel does some ugly gtk_string_width call to calculate
13407         an good size.
13408         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
13409
13410 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
13411
13412         * docs/tutorial/gtk-tut.sgml: DND updates
13413
13414 2000-11-29  Alexander Larsson  <alexl@redhat.com>
13415
13416         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
13417         If you pass width or height == 0 to gdk_window_clear_area they
13418         should be calculated from the window size.
13419
13420 2000-11-29  Alexander Larsson  <alexl@redhat.com>
13421
13422         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
13423         a grab, but no grab-cursor, use the cursor from the grabbed
13424         window. (gdk_fb_window_send_crossing_events): Send normal
13425         enter/leave notifications if grab and owner_events == TRUE.
13426
13427 2000-11-29  Alexander Larsson  <alexl@redhat.com>
13428
13429         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
13430         Do implicit button grabs, even if the window doesn't
13431         want the event.
13432         (gdk_fb_window_send_crossing_events): If there is a
13433         grab, only the grabbed window gets normal enter/leave
13434         notifications. On ungrab go from grabbed window to current.
13435         Don't send any notification to b when propagating from c -> b.
13436         If setting a grab on window, don't set prev_window.
13437         (handle_mouse_input): Send enter/leave events to the window the
13438         mouse is over, not the grabbed one.
13439         
13440 2000-11-28  Elliot Lee  <sopwith@redhat.com>
13441
13442         * gdk/gdkregion-generic.c: Zap warning.
13443         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
13444         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
13445
13446 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
13447
13448         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13449         The cursor should be hidden if it is part of either the
13450         source or destination region. Not only if it is in both.
13451         (gdk_window_set_transient_for): Silence warnings.
13452
13453 2000-11-28  Alexander Larsson  <alexl@redhat.com>
13454
13455         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
13456         The default mode in X is Pie Arcs, therefore that is
13457         what Gtk+ uses.
13458
13459 2000-11-28  Alexander Larsson  <alexl@redhat.com>
13460
13461         * gdk/linux-fb/gdkinput-ps2.c:
13462         Implement correct EnterNotify/LeaveNotify:
13463         (gdk_fb_window_send_crossing_events): New function that sends
13464         all GdkCrossingEvents from the last mouse-window to the specified
13465         destination.
13466         (gdk_fb_window_visibility_crossing): Removed function.
13467         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
13468         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
13469         instead of gdk_window_get_pointer() for better readability.
13470
13471         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
13472         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
13473
13474         * gdk/linux-fb/gdkprivate-fb.h:
13475         removed gdk_fb_window_visibility_crossing, added
13476         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
13477
13478         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
13479         New function that finds the least common ancestor of two windows.
13480         (gdk_window_show, gdk_window_hide):
13481         Use gdk_fb_window_send_crossing_events.
13482         (gdk_fb_window_move_resize): Send configure events to toplevel
13483         windows. Use gdk_fb_window_send_crossing_events.
13484
13485 2000-11-27  Havoc Pennington  <hp@redhat.com>
13486
13487         * gtk/gtkprivate.h (enum): Remove a trailing comma
13488
13489 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
13490
13491         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
13492         the "changed" callback of the adjustment.  We need to redraw the
13493         spin button's arrows when the adjustment's range changes.
13494         (adjustment_changed_cb): Draw the arrows.
13495         (gtk_spin_button_value_changed): Draw the arrows.
13496
13497 2000-11-23  Alexander Larsson  <alexl@redhat.com>
13498
13499         * gdk/linux-fb/gdkselection-fb.c:
13500         Initial selection implementation.
13501
13502         * gtk/gtkselection.c:
13503         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
13504         requestor in gtk_selection_request.
13505         
13506         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
13507         Added gdk_selection_property atom.
13508
13509         * gdk/linux-fb/gdkprivate-fb.h:
13510         Export _gdk_selection_window_destroyed.
13511         Removed mask_off_x/y from GdkCursorPrivateFB.
13512         Removed hbearing, added top, left to PangoFBGlyphInfo.
13513
13514         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
13515         Call _gdk_selection_window_destroyed
13516         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
13517         the root window has been created.
13518         (static_dx_hack, static_dy_hack, compare_draw_rects,
13519         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
13520         in region. They are already sorted. Instead just traverse them in
13521         reverse if draw_direction < 0.
13522         
13523         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
13524         Double-clicks must be sent after the normal button_press.
13525         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
13526         
13527         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
13528         Pass _gdk_fb_screen_gc instead of NULL.
13529
13530         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
13531         Initialize gdk_selection_property.
13532         (gdk_event_make): Remove unused code.
13533
13534         * gdk/linux-fb/gdkcursor-fb.c:
13535         Make the pixmap for the cursor the same size as the mask. Also remove
13536         the mask_off_x/y fields in GdkCursorPrivateFB and combine
13537         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
13538         Now the whole cursor is visible.
13539
13540         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
13541         Fix bug where xdest+height instead of ydest+height was used
13542         to calculate if the source and dest overlapped. This fixes the
13543         redraw bug when the main window in testgtk was scrolled when
13544         partially covered by a tall window.
13545         Copy rectangles in region in order depending on draw_direction.
13546         Also moved the draw_direction flipping of start_y and end_y into
13547         the gc functions, as this might not be what all of them want.
13548         (gdk_fb_draw_lines): Support dashed lines.
13549         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
13550         so that the text is positioned correctly (was 1 pixel high).
13551
13552         gdk/linux-fb/gdkgc-fb.c:
13553         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
13554         all lines were drawn a pixel to short. Also checked the default of
13555         the rest of the values, and they're the same as X now.
13556
13557         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
13558         Clean up pixel positioning of the glyphs. Just use bgy->top and
13559         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
13560         to all divisions to get correct rounding behaviour.
13561
13562         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
13563         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
13564         Moved start_y/end_y flip into draw_drawable implementations.
13565         Flip also x rendering when draw_direction < 0.
13566         Remove unneccesary multiply with draw_direction.
13567
13568 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
13569
13570         * docs/tutorial/gtk-tut.sgml:
13571           - get rid of gtk_toggle_button_toggled FUD
13572           - start DND section - needs work - based on:
13573                 http://wolfpack.twu.net/docs/gtkdnd/
13574
13575 2000-11-22  Alexander Larsson  <alexl@redhat.com>
13576
13577         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
13578         Correct calculation of font metrics. Now GtkEntrys have sane
13579         size.
13580
13581 2000-11-22  Alexander Larsson  <alexl@redhat.com>
13582
13583         * gdk/gdktypes.h:
13584         Add new type GdkSpan
13585         
13586         * docs/reference/gdk/gdk-sections.txt,
13587         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
13588         gdk/gdkregion.h:
13589         Implement and document gdk_region_spans_intersect_foreach.
13590
13591         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
13592         Add new file gdkrender-fb.c which contains all core
13593         rendering code.
13594         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
13595         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
13596         (optimized rectangle fillers).
13597
13598         * gdk/linux-fb/gdkdrawable-fb2.c:
13599         Move all rendering code to gdkrender-fb.c.
13600         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
13601         Use the new span intersection functions in gdk_fb_fill_spans.
13602         gdk_fb_draw_rectangle() clips filled rectangles and calls
13603         gc->fill_rectangle with the result.
13604         gdk_fb_fill_spans() gets extra argument "sorted".
13605
13606         * gdk/linux-fb/gdkevents-fb.c:
13607         Remove unused includes and defines.
13608         New function gdk_fb_get_time() to get correct time for events.
13609
13610         * gdk/linux-fb/gdkinput-ps2.c:
13611         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
13612         Make sure to set the time of all events.
13613
13614         * gdk/linux-fb/gdkmain-fb.c:
13615         Use gdk_fb_get_time ().
13616
13617         * gdk/linux-fb/gdkprivate-fb.h:
13618         New virtual GC calls: fill_span & fill_rectangle.
13619         Export gdk_fb_get_time().
13620         gdk_fb_fill_spans() gets extra argument "sorted".
13621
13622         * gdk/linux-fb/mi*.c:
13623         Use GdkSpan instead of GdkRectangle.
13624         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
13625         from XFree 4 source)
13626         
13627 2000-11-22    <jrb@redhat.com>
13628
13629         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
13630         reversing the order in an if statement will do.  Doing so managed
13631         to make the treemodelsort half work.  Other half will follow after
13632         I get the insert function fully fixed.
13633
13634 2000-11-21  Elliot Lee  <sopwith@redhat.com>
13635         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
13636         more than 2 bits. Besides, I need to implement an evil hack. :)
13637
13638 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
13639
13640         * docs/tutorial/gtk-tut.sgml: minor corrections
13641
13642 2000-11-20  Jonathan Blandford <jrb@redhat.com>
13643         * gtk/gtktreemodelsort.h: Add convertion functions to let you
13644           convert to and from relative path's and iters.
13645
13646         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
13647           testing sorting functions a bit better.  Currently broken -- will
13648           fix in morning.
13649
13650 2000-11-20  Havoc Pennington  <hp@redhat.com>
13651
13652         * gtk/gtkwidget.c: Documented a bunch of functions in here
13653         (gtk_widget_realize): Warn if you try to realize
13654         a widget with no parent that isn't a toplevel
13655         (gtk_widget_intersect): return a gboolean
13656
13657 2000-11-20  Havoc Pennington  <hp@redhat.com>
13658
13659         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
13660         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
13661         scrolling to be implemented in GDK to finish. Also, right now
13662         we just size_allocate all children on every layout change,
13663         which is pretty lame. Test commented out of testtext.c, 
13664         until it works better.
13665
13666 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
13667
13668         * gdk/linux-fb/gdkdrawable-fb2.c:
13669         Removed unused arguments from gdk_fb_drawable_get_pixel().
13670
13671         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
13672         Renamed fidur specific mouse packet data in MouseDevice to
13673         generic. Used it in ps2 mouse handling code to avoid blocking
13674         reads.
13675
13676 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
13677
13678         * demos/gtk-demo/main.c: Changed to have the list become
13679         non-italic when the demo window is destroyed through an external
13680         event (like a close button).  Doing so found three bugs in the
13681         widget.
13682
13683         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
13684
13685         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
13686         we actually set the cell.
13687
13688         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
13689
13690         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
13691         free a leaked path.  Thanks memprof.
13692
13693 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
13694
13695         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
13696         off-by-one error when destroying allocated segments
13697         on failure. (Elliot)
13698
13699 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
13700
13701         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
13702         memleaks found by Evan Martin.
13703
13704 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
13705
13706         * Released 1.3.2
13707         
13708         * NEWS: Updates for 1.3.2
13709
13710 2000-11-17  Tor Lillqvist  <tml@iki.fi>
13711
13712         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
13713         but in general for window system specific events.
13714
13715         * gtk/gtk.def
13716         * gtk/makefile.mingw.in
13717         * gtk/makefile.msc.in: Update.
13718         
13719         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
13720
13721 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
13722
13723         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
13724         distribute gtk.immodules.
13725
13726         * gtk/Makefile.am (install-data-local): Don't install the
13727         gtk.immodules file created for the uninstalled modules;
13728         instead run gtk-query-immodules after install
13729
13730 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
13731
13732         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
13733         -rpath to the right install location.
13734
13735         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
13736         -export-dynamic.
13737
13738         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
13739         properly.
13740
13741 2000-11-15  Havoc Pennington  <hp@pobox.com>
13742
13743         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
13744         patch from Mikael Hermansson to temporarily stop blinking while
13745         the user is using the keyboard to type or navigate. 
13746
13747         Also, when blinking, stay on for longer than we stay off. Also,
13748         return from start_cursor_blink if !cursor_visible, to save
13749         checking that flag all over the place before we call
13750         start_cursor_blink.
13751
13752 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
13753
13754         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
13755         only contain a "fontset" line, which is now ignored.
13756
13757         * gtk/gtkentry.c (gtk_entry_button_release): Make 
13758         double-click-to-select-word work.
13759         
13760 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
13761
13762         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
13763         Don't move back one char when we are actually at the end of the 
13764         paragraph.
13765
13766 2000-11-15  Robert Brady  <robert@suse.co.uk>
13767
13768         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
13769         'o' < 'p'.
13770         
13771         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
13772         bind_textdomain_codeset.
13773
13774         (gtk_init_check): Make the warning about translating default:LTR
13775         sterner.
13776         
13777 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
13778
13779         * **/Makefile.am : remove unecessary rules for win32-specific
13780         config-substituted targets. If you want these rules, use
13781         --enable-maintainer-mode (called automatically by autogen.sh).
13782         Stops a lot of unneccessary make-time warnings.
13783
13784         * gtk/gtktext{layout,display}.c: Factor in total width as
13785         well as screen when figuring alignment for word-wrap as well as
13786         no wrap; this is necessary to handle lines that cannot be wrapped
13787         at all.
13788
13789 2000-11-15  Havoc Pennington  <hp@redhat.com>
13790
13791         * gtk/testtext.c: Implement essential color cycling feature
13792
13793 2000-11-15  Havoc Pennington  <hp@redhat.com>
13794
13795         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
13796         when we invalidate the main window.
13797
13798         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
13799         GtkTextView will now invalidate the side windows for us when text
13800         changes.
13801
13802 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
13803
13804         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
13805         unconditionally, since we may need to update the horizontal
13806         scrollbars even if the height didn't change.
13807
13808         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
13809         the extra attrs, since some of them affect size.
13810
13811         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
13812         x_offset correctly.
13813
13814 2000-11-15  Havoc Pennington  <hp@redhat.com>
13815
13816         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
13817         don't move the first line out into the margin, instead move the
13818         whole paragraph in order to make space for the first line within 
13819         the margin
13820
13821 2000-11-15  Havoc Pennington  <hp@redhat.com>
13822
13823         * gtk/gtktextview.c (changed_handler): offset redraw rect by
13824         xoffset in addition to yoffset, so horizontal scrolling doesn't
13825         break redraws
13826
13827 2000-11-15  Havoc Pennington  <hp@redhat.com>
13828
13829         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
13830         from the cursor
13831         (render_layout_line): fix reversed test that caused weird
13832         underlines to get drawn
13833
13834 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
13835
13836         * gdk/linux-fb/gdkprivate-fb.h:
13837         Fix debug macros.
13838         
13839 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
13840
13841         * gdk/linux-fb/gdkprivate-fb.h:
13842         Added virtual functions set_pixel, get_color,
13843         fill_span and draw_drawable to the GC.
13844         Added global _gdk_fb_screen_gc to use instead of
13845         NULL when drawing to the screen.
13846         Added _gdk_fb_gc_calc_state() prototype.
13847
13848         * gdk/linux-fb/gdkgc-fb.c:
13849         Call _gdk_fb_gc_calc_state() on any gc state change.
13850
13851         * gdk/linux-fb/gdkglobals-fb.c:
13852         Add _gdk_fb_screen_gc
13853                 
13854         * gdk/linux-fb/gdkdrawable-fb2.c:
13855         _gdk_fb_gc_calc_state() calculates best functions
13856         for the GC state and depth.
13857         Moved bpp specialized code to separate functions.
13858         Added optimized 24 bpp AA draw_drawable.
13859
13860         * gdk/linux-fb/gdkevents-fb.c:
13861         Silence gcc warning.
13862
13863         * gdk/linux-fb/gdkimage-fb.c:
13864         Use _gdk_fb_screen_gc
13865
13866         * gdk/linux-fb/gdkwindow-fb.c:
13867         Init and use _gdk_fb_screen_gc
13868
13869         * gdk/linux-fb/mitypes.h:
13870         Remove unused types.
13871
13872 2000-11-14  Havoc Pennington  <hp@pobox.com>
13873
13874         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
13875         to pixels
13876
13877 2000-11-14  Havoc Pennington  <hp@pobox.com>
13878
13879         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
13880
13881         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
13882         unknown char, no real reason we were using a variable. 
13883         Remove gtk_text_unknown_char variable. Fix all the text widget
13884         files accordingly.
13885
13886         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
13887         since the Unicode spec seems to prefer that character for our
13888         purposes.
13889
13890 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
13891
13892         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
13893         value of g_getenv() isn't freeable, so g_strdup it.
13894
13895         * modules/input/inuktitut.c: Inuktitut input method.
13896
13897         * modules/input/Makefile.am: Build this.
13898         
13899 2000-11-14  Elliot Lee  <sopwith@redhat.com>
13900
13901         * gtk/Makefile.am: Install gtk.immodules, needed for operation
13902         of gtk programs.
13903
13904 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
13905
13906         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
13907         reversed > that was causing Home to go to end of previous line.
13908
13909         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
13910         modified-keypresses (leave for bindings.)
13911
13912         * modules/input/Makefile.am: Remove useless -export-dynamic
13913         from module LDFLAGS.
13914
13915 2000-11-14  Havoc Pennington  <hp@redhat.com>
13916
13917         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
13918         higher.
13919
13920         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
13921         account. Also, render rise, underline, background, etc. for
13922         pixbufs as well as text. Also, draw underlines one pixel higher.
13923
13924         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
13925         PangoAttribute for the rise, so it gets drawn properly. Also,
13926         add the GtkTextAppearance attribute for pixbuf/widget segments
13927         as well; we should go ahead and have rise, underline, background,
13928         stipple work for those
13929
13930         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
13931         Pango
13932
13933 2000-11-15  Tor Lillqvist  <tml@iki.fi>
13934
13935         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
13936
13937         * gtk/gtk.def: Update.
13938
13939         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
13940         included.
13941         (gtk_rc_get_im_module_file): Use run-time installation directory
13942         on Win32.
13943
13944         * gdk/win32/rc/gdk.rc: Remove.
13945         * gdk/win32/rc/gdk.rc.in: New file.
13946         * gdk/win32/rc/Makefile.am: New file
13947         * gdk/win32/Makefile.am: Corresponding changes.
13948
13949         * gtk/gtk.rc: Remove.
13950         * gtk/gtk-win32.rc.in: New file.
13951         * gtk/Makefile.am: Corresponding changes.
13952
13953         * configure.in: Corresponding changes.
13954
13955         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
13956         has a built gtkcompat.h. Developers using CVS code on Win32 can
13957         hand-edit it from gtkcompat.h.in.
13958
13959         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
13960         gtkcompat.h from gtkcompat.h.win32.
13961
13962 2000-11-14  Havoc Pennington  <hp@redhat.com>
13963
13964         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
13965         to default to GDK_ACTION_MOVE if the drag is within a single
13966         widget. Defaults to GDK_ACTION_COPY between widgets.
13967
13968 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
13969
13970         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
13971
13972         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
13973
13974         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
13975         srcdir != builddir
13976
13977         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
13978
13979         * configure.in (GTK_VERSION): Up to 1.3.2
13980
13981         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
13982         gtkimcontextxim.h
13983
13984         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
13985         missing doc comment.
13986
13987 2000-11-14  Alexander Larsson  <alexl@redhat.com>
13988
13989         * modules/linux-fb/basic.c:
13990         Use the glib iconv wrappers.
13991
13992 2000-11-13  Havoc Pennington  <hp@pobox.com>
13993
13994         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
13995         still more bugs.
13996
13997         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
13998         scroll the GdkWindows before realization.
13999
14000 2000-11-13  Havoc Pennington  <hp@redhat.com>
14001
14002         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
14003         where GC didn't always get updated properly
14004
14005         * demos/gtk-demo/textview.c (create_tags): Use subattributes
14006         of fonts instead of setting the entire font
14007
14008         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
14009         setting entire font
14010
14011         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
14012
14013         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
14014         a bunch of individually-settable font attributes. You can still 
14015         use the "font" and "font_desc" args, they just set all the font
14016         attributes at once.
14017
14018 2000-11-13 Elliot Lee <sopwith@redhat.com>
14019
14020         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
14021
14022 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
14023
14024         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
14025         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
14026
14027         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
14028         work better.
14029
14030 2000-11-13  Havoc Pennington  <hp@redhat.com>
14031
14032         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
14033         the module file.
14034
14035         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
14036         dest->language
14037
14038         * gtk/testtext.c: Test pixels above/below/inside paragraphs
14039         settings
14040
14041         * gtk/gtktextview.c: Implement object args and setters/getters for
14042         all the aspects of the GtkTextAttributes that are not set from
14043         GtkWidget attributes. This is spacing, justification, margins,
14044         etc.
14045
14046         (gtk_text_view_set_arg)
14047         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
14048         args
14049         (gtk_text_view_class_init): Add args for justify, left_margin,
14050         right_margin, indent, and tabs
14051         
14052
14053         * gtk/gtktextlayout.c (set_para_values): fix to display indent
14054         attribute properly
14055
14056         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
14057         replace with indent attribute
14058
14059         * gtk/gtktextlayout.c (set_para_values): multiply indent by
14060         PANGO_SCALE
14061
14062         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
14063         rearranging code to do that
14064         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
14065         i.e. don't subtract the top_margin first, just to keep
14066         all margin-futzing in one place.
14067
14068         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
14069
14070         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
14071         special case of last line, Pango now handles this itself.
14072         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
14073         Y coordinate
14074         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
14075         (find_display_line_above): wasn't moving the byte index as it
14076         iterated over lines, so always returned byte 0. Also, port to use
14077         PangoLayoutIter.
14078         (find_display_line_below): same problem as
14079         find_display_line_above. Also, port to use PangoLayoutIter.
14080
14081 2000-11-13  Alexander Larsson  <alexl@redhat.com>
14082
14083         * gdk/linux-fb/*.[ch]:
14084         Massive reindent to gtk+ standard. My hands hurt.
14085
14086         * gdk/linux-fb/gdkcolor-fb.c:
14087         Move GdkColorPrivateFB from inherited to windowing_data
14088
14089         * gdk/linux-fb/gdkcursor-fb.c:
14090         _gdk_cursor_new_from_pixmap made static
14091
14092         * gdk/linux-fb/gdkdnd-fb.c:
14093         GdkDragContextPrivate moved to windowing_data
14094
14095         * gdk/linux-fb/gdkdrawable-fb2.c:
14096         Removed endian.h, use glib endianness macros instead
14097         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
14098         and GDK_DRAWABLE_IMPL_FBDATA
14099
14100         * gdk/linux-fb/gdkfont-fb.c:
14101         Add empty gdk_font_load(). Needed for linking of Gtk+.
14102
14103         * gdk/linux-fb/gdkimage-fb.c:
14104         Removed endian.h, use glib endianness macros instead
14105         Moved GdkImagePrivateFB to windowing_data
14106         gdk_image_new_bitmap didn't always allocate enough
14107         memory.
14108
14109         * gdk/linux-fb/gdkinput-ps2.c:
14110         Added semi-working support for MS serial mice.
14111
14112         * gdk/linux-fb/gdkprivate-fb.h:
14113         s/GdkWindowPrivate/GdkWindowObject/
14114         Removed GdkWindowPrivate typedef
14115         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
14116         Removed GDK_DRAWABLE_P
14117         Move GdkColorPrivateFB from inherited to windowing_data
14118         Moved GdkImagePrivateFB to windowing_data
14119
14120         * gdk/linux-fb/gdkvisual-fb.c:
14121         Removed some unused debug code.
14122
14123         * gdk/linux-fb/gdkwindow-fb.c:
14124         Use stock cursors instead of including X headers.
14125         s/GdkWindowPrivate/GdkWindowObject/
14126
14127         * gdk/linux-fb/mitypes.h:
14128         Removed unused types.
14129
14130         * modules/linux-fb/basic.c:
14131         Use the pango fribidi wrappers.
14132
14133 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
14134
14135         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
14136         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
14137         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
14138         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
14139         GEqualFunc where applicable.
14140         
14141         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
14142         pango_font_description_equal as changed in pango.
14143         
14144         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
14145
14146         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
14147
14148         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
14149
14150         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
14151
14152         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
14153
14154         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
14155
14156         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
14157         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
14158
14159         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
14160         gtk_rc_styles_compare -> gtk_rc_styles_equal.
14161
14162 2000-11-12  Havoc Pennington  <hp@pobox.com>
14163
14164         * demos/gtk-demo/Makefile.am (democodedir): change demo install
14165         dir to datadir/gtk+-2.0/demo
14166
14167         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
14168         sorts of text widget and Pango font bugs. Urgh.
14169
14170         * demos/gtk-demo/Makefile.am (demos): Add textview.c
14171
14172         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
14173         tree that you should double click to see the demo. Fix 
14174         types of variables to reflect changed return values from 
14175         GtkTreeStore and GtkTreeViewColumn constructors.
14176
14177         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
14178         newly-created buffer to prepare for GObject semantics
14179
14180         * gtk/testtext.c: don't leak the buffer with GObject semantics
14181
14182         * gtk/testtextbuffer.c: ditto
14183         
14184 2000-11-12  Havoc Pennington  <hp@pobox.com>
14185
14186         Rename this testgtk to gtk-demo to avoid confusion, and 
14187         install it so people can use it as a supplement to 
14188         the documentation.
14189         
14190         * demos/gtk-demo: Moved from demos/testgtk
14191
14192         * demos/testgtk: Removed
14193
14194         * configure.in: make Makefile in gtk-demo
14195         
14196         * demos/gtk-demo/Makefile.am: Install sample source to 
14197         datadir/gtk-demo (maybe there's a better place?), and 
14198         rename the binary to gtk-demo
14199         
14200         * demos/gtk-demo/main.c (load_file): Load installed sample
14201         source if source isn't found in pwd.
14202
14203 2000-11-09  Havoc Pennington  <hp@pobox.com>
14204
14205         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
14206         argument to set the char displayed when visibility == FALSE
14207         (gtk_entry_create_layout): If !entry->visible, replace 
14208         all chars with the "invisible char"
14209
14210         * gtk/testgtk.c: Test the invisible_char deal
14211         
14212 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
14213
14214         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
14215         can't get a native font in the right encoding.
14216
14217 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
14218
14219         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
14220         respectively.
14221
14222 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
14223
14224         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
14225         Fix warning when moving between paragraphs.
14226
14227         * gtk/gtkentry.[ch]: Change move => move_cursor, 
14228         delete => delete_from_cursor, insert => insert_at_cursor
14229
14230 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
14231
14232         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
14233
14234         * modules/input/imthai-broken.c: A Thai input method for use if
14235         Thai keys are really generating Latin1 keysyms.
14236
14237         * modules/input/Makefile.am: Build these.
14238
14239 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
14240
14241         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
14242         g_filename_{to,from}_utf8 now takes an extra parameter.
14243
14244         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
14245         strftime into UTF-8.
14246
14247         (column_from_x, gtk_calendar_paint_day_names): Support RTL
14248         calendars.
14249
14250         (gtk_calendar_paint_day_names): Draw day names in the right 
14251         place.
14252         
14253 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
14254
14255         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
14256         problem with using result of g_get_charset() backwards -
14257         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
14258
14259         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
14260         negative min_width/height and max_width/height to
14261         mean "requisition"; this allows setting a window
14262         to be user-resizable in only one direction easily.
14263
14264         * gtk/testgtk.c (create_main_window): Remove hard-coded
14265         usize - set a default size in the vertical direction.
14266
14267 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
14268
14269         * gtk/gtkrange.c: Add some missing casts. Support 
14270         2 and 3 button clicks on the arrows to mean 
14271         "move by pages" and "jump to end". (Like gtkspinbutton)
14272
14273 2000-11-12 Hans Breuer <Hans@Breuer.Org>
14274
14275         * gdk/win32/makefile.msc : reflect build module changes
14276
14277         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
14278         from GdkPixmap*, cast implementation member instead.
14279
14280         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
14281         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
14282         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
14283         more Gdi functions return value checking. 
14284         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
14285         GdkImagePrivateWin32 *.
14286
14287         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
14288         menus useable again. Add #pragma message to keep reminded on this issue.
14289         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
14290         windows. This allows to enable backing store on Win32!
14291
14292         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
14293         in drawable is of impl type. Correct specific type checks appropriate.
14294  
14295         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
14296         GDK_WINDOW_DESTROYED before allocating new resources.
14297
14298         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
14299
14300         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
14301         (gdk_window_foreign_new) initialize parent handle.
14302         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
14303
14304         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
14305         Let the GDI invalidate the window on MoveWindow call to fix scrolling
14306         problems (e.g. main buttons in testgtk). 
14307
14308 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
14309
14310         * gtk/gtkentry.c (gtk_entry_key_press): Call 
14311         gtk_widget_activate for GDK_Return.
14312
14313         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
14314         of preedit cursor position.
14315
14316 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
14317
14318         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
14319         static.
14320
14321 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
14322
14323         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
14324         out support for multiple locales; that simple doesn't
14325         work reliably with current Xlib
14326
14327         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
14328         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
14329         Add support for positioning the cursor within the preedit string.
14330
14331 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
14332
14333         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
14334         at XIM input method module.
14335
14336         * gtk/gtktextview.c: Check for bindings after passing
14337         events to im context filter.
14338
14339 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
14340
14341         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
14342         empty attribute lists properly.
14343
14344 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
14345
14346         * gtk/queryimmodules.c (main): Return non-zero exit
14347         status if errors were encountered querying any
14348         modules.
14349
14350         * modules/input/Makefile.am (moduledir): remove
14351         leftover bin program target.
14352
14353         * docs/make-todo: Fix typo in error message.
14354
14355 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
14356
14357         * configure.in: Add modules/input/Makefile
14358
14359 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
14360
14361         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
14362         don't include gtkthemes.h.
14363
14364         * gtk/testgtk.c gtk/testtext.c: Set environment variables
14365         to point
14366
14367         * gtk/Makefile.am: Add new .c and .h files, build 
14368         gtk-query-immodules and use it to create a gtk.immodules
14369         file for use of test programs.
14370
14371         * gtk/gtkpreview.c: remove extra blank line.
14372
14373 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
14374
14375         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
14376         Add the ability to add extra tables beyond the default
14377         one, and also the ability to have compose sequences 
14378         that are prefixes of other compose sequences. 
14379
14380         * gtk/gtkimcontextsimple.c: Export a preedit string which
14381         consists of possible candidates for keystrokes that have
14382         been entered but not yet committed.
14383
14384         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
14385         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
14386
14387         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
14388         Add a function to add input-method switching menu items
14389         to a menu.
14390
14391         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
14392         when switching input methods.
14393
14394         * gtk/gtkimcontextsimple.[ch]: Change the format of
14395         the compose table to allow compose tables of different
14396         lengths / sequence.
14397
14398 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
14399
14400         * gtk/gtkimmodule.[ch]: Support routines for loading
14401         GtkIMContext implementations dynamically at runtime.
14402
14403         * modules/input/imcyrillic-translit.c: A sample input
14404         method (based on GtkIMContextSimple with an extra table),
14405         which demonstrates preedit strings and the module
14406         system for input modules
14407
14408         * gtk/queryimmodules.c: Program to query the available
14409         input modules and write the results into a file.
14410          
14411         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
14412         extra config options "im_module_file" (cache file for
14413         input method modules), and "im_module_path" - path
14414         to look for modules when generating cache file.
14415
14416         This doesn't scale.
14417
14418 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
14419
14420         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
14421         generic code from gtkthemes into a new abstraction
14422         GtkModule which has the logic for implementing
14423         a loadable module which implements a number of 
14424         GObject types.
14425
14426 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
14427
14428         * gtk/gtkeditable.[ch]: Convert GtkEditable from
14429         a class into an interface  
14430         
14431         * gtk/gtkoldeditable.[ch]: Move the old editable
14432         implementation into here, so legacy widgets can
14433         still rely on the implemenation. GtkOldEditable
14434         exports GtkEditable. Make selection handling
14435         code use new text conversion functions (and
14436         handle UTF-8 as a side-effect). Use GtkClipboard
14437         for CLIPBOARD.
14438
14439         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
14440         Adopt to match above changes.
14441
14442         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
14443         avoid GtkOldEditable implementation. Restructure
14444         to reduce number of places that modify state directly.
14445         Move to GtkBindingSet. Display the preedit string.
14446         Queue recomputation of PangoLayout and scroll position
14447         to improve effiency of doing complex changes naively.
14448         Add a menu with cut/copy/paste and input method selection.
14449
14450 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
14451
14452         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
14453         to set preedit string and attributes; display preedit string by
14454         inserting string and attributes at cursor when creating the
14455         GtkTextLineDisplay.
14456
14457         * gtk/gtktextlayout.c: Move all conversions between byte
14458         positions in PangoLayout and GtkTextIter into new functions
14459         line_display_iter_to_index/index_to_iter that properly
14460         handle the preedit string.
14461
14462         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
14463         it to return const char * (eventually will end up
14464         as GCONST char *, most likely.)
14465
14466         * gtk/gtktextview.[ch]: Handle the preedit string, call
14467         gtk_im_context_reset() as necessary, add a menu to switch
14468         input methods.
14469         
14470         * gtk/gtktextlayout.[ch]: Remove useless
14471         gtk_text_layout_get_log_attrs() function.
14472
14473 2000-11-11  Tor Lillqvist  <tml@iki.fi>
14474
14475         * gdk/gdk.def
14476         * gtk/gtk.def: Update.
14477
14478         * gdk/win32/*.c: Add last argument to g_type_register_static()
14479         calls.
14480
14481         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
14482
14483         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
14484         generated by older wheel mouse drivers. Get the correct y
14485         coordinate from WM_MOUSEWHEEL messages.
14486
14487         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
14488         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
14489         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
14490         Debugging functions.
14491
14492         * gdk/win32/gdkprivate-win32.h: Declare them.
14493
14494         * gdk/win32/gdkinput-win32.h: Add declaration for
14495         gdk_input_window_destroy().
14496
14497         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
14498
14499 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
14500
14501         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
14502         function to help handle keeping things in sync.
14503
14504 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
14505
14506         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
14507         BOXED marshallers.
14508
14509         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
14510         (gtk_list_store_class_init): use the new BOXED marshallers.
14511
14512         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
14513         new_with_values to new_with_types.
14514         (gtk_tree_store_get_column_type): add this.
14515         (gtk_tree_store_class_init): use the new BOXED marshallers.
14516
14517         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
14518         mirror some POINTER marshallers.
14519
14520 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
14521
14522         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
14523         allow more interesting iterators.  Also, made the lifecycle of
14524         iterators more explicit.
14525
14526         * gtk/gtktreemodelsort.[ch]: New model for sorting.
14527
14528         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
14529         types.
14530
14531 2000-11-09  Alexander Larsson  <alexl@redhat.com>
14532
14533         * demos/testgtk/menus.c:
14534         Changes to make the new testgtk compile after
14535         gtk_menu_append was removed.
14536
14537         * gdk/linux-fb/gdkdrawable-fb2.c
14538         (gdk_fb_get_depth, gdk_fb_get_visual,
14539         gdk_drawable_impl_fb_class_init): Implement
14540         these drawable functions. Now GtkImages work again.
14541
14542         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
14543
14544         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
14545         
14546         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
14547         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
14548         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
14549         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
14550
14551 2000-11-08  Havoc Pennington  <hp@pobox.com>
14552
14553         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
14554         visible_set args, don't know where these had gone, I thought they
14555         used to be there
14556
14557         * gtk/testtext.c: Add a menu item to apply invisibility tag;
14558         now we can test the feature and see that it's totally broken.
14559
14560 2000-11-08  Havoc Pennington  <hp@pobox.com>
14561
14562         Make DND copy pixbufs and tags when source and target share a 
14563         tag table.
14564         
14565         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
14566         in-process GTK_TEXT_BUFFER_CONTENTS target
14567         (gtk_text_view_drag_data_received): Paste from
14568         GTK_TEXT_BUFFER_CONTENTS if we receive it.
14569
14570 2000-11-08  Alexander Larsson  <alexl@redhat.com>
14571
14572         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
14573         API changes.
14574
14575         * gtk/gtkmenu.c: Add support for scrolling menus.
14576         Remove gtk_menu_append/prepend/insert, these have been moved to
14577         gtkcompat.h as #defines.
14578
14579         * gtk/gtkcompat.h.in:
14580         Add compatibility #defines for gtk_menu_append/prepend/insert
14581
14582         * gtk/gtkmenu.h: Add data needed for scrolling menus.
14583         GtkMenuPositionFunc gets an extra argument push_in.
14584         gtk_menu_append/prepend/insert removed.
14585         
14586         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
14587         positioning behaviour to fit to scrolling menus.
14588
14589         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
14590         into menuitem->submeny. That is wrong, and broke torn
14591         off submenus of torn off menus, since they were unrealized
14592         when the first menu was unrealized.
14593
14594         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
14595         gtk_menu_shell_select_item() since these need to be overridden in
14596         GtkMenu.
14597
14598         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
14599         positioning behaviour to fit to scrolling menus.
14600         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
14601         the current item so that it is prelighted when the menu pops up.
14602         This is a workaround to the fact that the menu doesn't get the
14603         initial enter event (due to grabs).
14604
14605         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
14606         s/gtk_menu_append/gtk_menu_shell_append/
14607
14608         * gtk/gtknotebook.c:
14609         s/gtk_menu_insert/gtk_menu_shell_insert/
14610
14611         * gtk/testgtk.c (create_menu, create_menus):
14612         Create the first menu with 50 items so that menu scrolling
14613         can be tested.
14614         
14615         
14616         Patch from Jonathan Blandford  <jrb@redhat.com>
14617
14618         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
14619         system to handle size requests.  First, we ask what the size of
14620         the toggle is.  Then, when allocating the size, we allocate the
14621         toggle_size first.  This way we can have multiple menu-item
14622         classes w/o needing a seperate class for each.
14623
14624         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
14625         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
14626
14627         * gtk/gtkcheckmenuitem.c
14628         (gtk_check_menu_item_toggle_size_request): New function to handle
14629         the toggle size-request.
14630
14631 2000-11-07  Havoc Pennington  <hp@redhat.com>
14632
14633         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
14634         Half-ass somewhat fix this function, so that scrolling to the
14635         insertion point works. Pango hacking is in the future to really
14636         fix it.
14637
14638         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
14639         length of data, no longer used.
14640
14641         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
14642         method contents in here, get rid of destroy method
14643         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
14644         that were backward. Remove debug spew.
14645         (cut_or_copy): Make the clipboard work with insert_range to
14646         preserve tags and pixbufs, not just the primary selection.
14647
14648 2000-11-07  Havoc Pennington  <hp@redhat.com>
14649
14650         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
14651         to gtk_text_mark_get_visible
14652
14653         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
14654         bug that was generating an invalid iterator
14655
14656         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
14657         ensure_char_offsets() in front of code placing the iter in an
14658         invalid state.
14659
14660         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
14661         make override_location arg const
14662         (paste): Replace the selection if we paste into the 
14663         current selection
14664
14665         * gtk/gtkselection.h: Remove "GtkSelectioData"
14666         (struct _GtkSelectionData): move the definition here.
14667
14668         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
14669         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
14670
14671         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
14672
14673         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
14674         (gtk_text_buffer_insert_range_interactive): implement
14675         (gtk_text_buffer_get_tags): Remove, replaced by
14676         gtk_text_iter_get_tags()
14677
14678         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
14679         limit parameter, to avoid infinite linear scan.
14680         (gtk_text_iter_backward_search): Add search limit
14681         (gtk_text_iter_forward_find_char): Add search limit
14682         (gtk_text_iter_backward_find_char): Add search limit
14683
14684 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
14685
14686         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14687         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
14688         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
14689         gdk/linux-fb/gdkwindow-fb.c:
14690         use g_object_new() instead of g_type_create_instance() which
14691         is a private function for fundamental type implementations.
14692
14693         * gdk/linux-fb/gdkinput-ps2.c:
14694         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
14695         instead just store the current modifier state. Add a (somewhat broken)
14696         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
14697         Rename exported function gdk_input_ps2_get_mouseinfo to
14698         gdk_input_get_mouseinfo.
14699
14700         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
14701         gdk/linux-fb/gdkwindow-fb.c:
14702         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
14703         
14704
14705 2000-11-02  Havoc Pennington  <hp@redhat.com>
14706
14707         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
14708         use stock buttons. Should be 100% source compatible, appropriate
14709         filesel fields now point to dialog->vbox and dialog->action_area.
14710         On the bizarre side, dialog->action_area and filesel->action_area
14711         are not the same widget.
14712         (gtk_file_selection_init): Put some padding around the selection
14713         entry, so it isn't touching the GtkDialog separator.    
14714
14715         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
14716         use stock buttons, etc. Should also be source compatible.
14717         Set the dialog default title in _init not _new().
14718         
14719         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
14720         Use stock buttons; don't put a button box inside the existing
14721         dialog button box. Don't bother with push/pop colormap anymore.
14722
14723         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
14724         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
14725         for message dialog, and necessary for the font selection and color
14726         selection with help and apply buttons.
14727         
14728         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
14729         to the created button widget. Set GTK_CAN_DEFAULT on the button.
14730         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
14731         between buttons, put less padding around the action area.
14732         (gtk_dialog_run): Exit on unmap rather than on destroy. 
14733         This will also exit the loop if the widget is hidden.
14734         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
14735         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
14736         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
14737         special-case delete event.
14738
14739         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
14740         formatting
14741         
14742 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
14743
14744         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
14745         button to temporarily disable position recording in the
14746         "saved position" test.
14747
14748 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
14749
14750         * gtk/gtkthemes.c: added compat code that temporarily implements
14751         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
14752         going to be revamped by owen's upcoming GtkModule patches, but
14753         untill then people want gtk to build, right? ;)
14754
14755 2000-11-04  Havoc Pennington  <hp@pobox.com>
14756
14757         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
14758         list
14759
14760         * docs/Changes-2.0.txt: Add note about
14761         gtk_container_get_toplevels()
14762
14763         * gtk/gtktextview.h: formatting
14764         
14765         * gtk/gtktextview.c: don't start descriptions with "Returns",
14766         confuses gtk-doc
14767
14768 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
14769
14770         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
14771         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
14772
14773 2000-11-03  Havoc Pennington  <hp@redhat.com>
14774
14775         * gtk/gtktexttagtable.c: Docs
14776         (gtk_text_tag_table_size): return a signed int
14777
14778         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
14779         (gtk_text_tag_event): make the event_object a GObject
14780
14781         * gtk/gtktextview.c: Write API docs for all functions.
14782
14783         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
14784         for gtk_text_view_get_window_type() called on one of the private
14785         windows.
14786
14787         * gtk/gtktextview.c: Instead of accessing text_view->buffer
14788         directly, call get_buffer() which demand-creates a default
14789         buffer. So gtk_text_view_new() can be used to create a view with a
14790         default buffer in it, if you just want an empty text box users can
14791         put data in. Useful for GUI builders also.
14792
14793 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
14794
14795         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
14796         the charset encodign portion MUST be in lowercase.
14797         * gtk/gtkrc.az: added file for Azeri language
14798
14799 2000-11-03  Havoc Pennington  <hp@redhat.com>
14800
14801         Get widgets working on the btree/buffer side. Display of them 
14802         still doesn't work.
14803         
14804         * gtk/gtktextview.c: start implementing child widget stuff
14805
14806         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
14807
14808         * gtk/gtktextlayout.c: handle embedded widgets
14809
14810         * gtk/gtktextdisplay.c: handle embedded widgets
14811
14812         * gtk/gtktextchild.c: Implement all the child anchor goo
14813
14814         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
14815         function
14816
14817         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
14818         (insert_pixbuf_or_widget_segment): abstract out common portions of 
14819         creating a child anchor or a pixbuf segment.
14820         (gtk_text_btree_create_child_anchor): new function
14821         (gtk_text_btree_unregister_child_anchor): new function
14822
14823         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
14824         allocate_child signal on GtkTextLayout
14825
14826         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
14827         values
14828         (gtk_text_iter_get_child_anchor): new function
14829
14830         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
14831         default handler for the changed signal, which calls
14832         gtk_text_buffer_set_modified(), instead of just always emitting
14833         changed then calling set_modified() manually. I guess this is
14834         maybe more flexible. It seems logical.
14835
14836 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
14837
14838         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
14839         now.
14840
14841         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
14842
14843 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
14844
14845         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
14846         been marked static.
14847
14848 2000-11-02  Havoc Pennington  <hp@redhat.com>
14849
14850         * gtk/testgtk.c (create_labels): had a test backward
14851
14852         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
14853         fields, so the dest GC ends up with the correct clip origin, 
14854         etc. Fixes a bug where colored labels didn't redraw 
14855         properly.
14856
14857 2000-11-02  Alexander Larsson  <alexl@redhat.com>
14858
14859         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
14860         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
14861         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
14862         Add last argument to t_type_register_static call.
14863         
14864         * gdk/linux-fb/gdkdrawable-fb2.c:
14865         Add last argument to t_type_register_static call.
14866         export the get_image drawable virtual function.
14867
14868         * gdk/linux-fb/gdkimage-fb.c:
14869         Add last argument to t_type_register_static call.
14870         rename gtk_image_get to _gdk_fb_get_image and
14871         export it for use by gdkdrawable-fb2.
14872
14873         * gdk/linux-fb/gdkprivate-fb.h:
14874         export _gdk_fb_get_image.
14875
14876         * gdk/linux-fb/gdkselection-fb.c:
14877         Add new api call stubs.
14878
14879         * gtk/Makefile.am:
14880         Missing ( in linux-fb part.
14881
14882         * modules/linux-fb/Makefile.am:
14883         Must link with gdk_pixbuf or get unresolved symbol.
14884
14885 2000-11-01  Havoc Pennington  <hp@pobox.com>
14886
14887         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
14888         GTK_TYPE_TEXT_ITER and BOXED marshallers
14889
14890         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
14891
14892         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
14893         
14894         * gtk/gtk-boxed.defs: add GtkTextIter
14895
14896         * gtk/gtkmarshal.list: Add marshallers for text widget that 
14897         properly use OBJECT and BOXED
14898
14899 2000-11-01  Havoc Pennington  <hp@redhat.com>
14900
14901         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
14902
14903         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
14904         before returning it. 
14905         
14906 2000-11-01  Havoc Pennington  <hp@redhat.com>
14907
14908         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14909         Clip the rectangle to be rendered to the drawable, since
14910         get_from_drawable() requires a region within the drawable
14911
14912 2000-11-01  Havoc Pennington  <hp@redhat.com>
14913
14914         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
14915         from coordinates.
14916
14917 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
14918
14919         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
14920         it isn't NULL.
14921
14922 2000-11-01  Havoc Pennington  <hp@pobox.com>
14923
14924         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
14925         on a label
14926         (gtk_label_finalize): unref the attr list if any.
14927
14928         * gtk/testgtk.c (create_get_image): close test on second click
14929         (make_message_dialog): close dialog if it exists
14930
14931         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
14932
14933         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
14934         gdk-pixbuf
14935
14936         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
14937         from Pango markup format
14938         (gtk_label_set_markup_with_accel): ditto but with accelerator
14939         parsing
14940
14941         * gtk/gtkimage.c (gtk_image_expose): reformatting.
14942
14943         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
14944         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
14945         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
14946         call gdk_window_get_origin().
14947
14948         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
14949         implement GDK_PIXBUF_ALPHA_FULL
14950         
14951 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
14952
14953         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
14954         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
14955         g_signal_handlers_disconnect_matched to block/unblock and disconnect
14956         multiple handlers respectively, instead of only treating the
14957         first handler found (bug reported by owen).
14958
14959 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
14960
14961         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
14962
14963         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
14964
14965         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
14966         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
14967         gtk/gtktreeviewcolumn.h: Fixed inline docs.
14968
14969         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
14970         widget.  Needs writing someday.
14971
14972         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
14973         the docs.
14974
14975 2000-10-30  Havoc Pennington  <hp@redhat.com>
14976
14977         * gtk/gtktextview.h, gtk/gtktextview.c:
14978         Rename delete_at_cursor delete_from_cursor, and 
14979         move to move_cursor.
14980
14981 2000-10-30  Havoc Pennington  <hp@redhat.com>
14982
14983         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
14984         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
14985         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
14986         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
14987         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
14988         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
14989         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
14990         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
14991         gtktexttypes.h, gtktextview.c, gtktextview.h:
14992
14993         Massive reindentation and reformatting. Arg alignment and comments
14994         still need fixing in various places.
14995
14996 2000-10-30  Havoc Pennington  <hp@redhat.com>
14997
14998         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
14999         to be named insert_at_cursor and delete_at_cursor so C++ can
15000         handle them.
15001
15002 2000-10-28  Tor Lillqvist  <tml@iki.fi>
15003
15004         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
15005         to get a double directory separator in case the home directory
15006         ends with one. This would cause trouble especially on Windows,
15007         where the path will be confused with the syntax for an an UNC
15008         (network share) path \\server\share\path.
15009         (gtk_rc_add_initial_default_files): Ditto.
15010
15011 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
15012
15013         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
15014
15015         * gtk/gtktextview.c: Use correct marshallers.
15016
15017 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
15018
15019         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
15020         use new iter stuff, and added all the appropriate signals et al.
15021
15022         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
15023         code is internal to gtk only.
15024
15025 2000-10-28  Tor Lillqvist  <tml@iki.fi>
15026
15027         * gtk/gtk.def
15028         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
15029         glib-genmarshal etc.
15030
15031 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
15032
15033         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
15034         parallel builds.
15035
15036 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
15037
15038         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
15039
15040 2000-10-27  Robert Brady  <robert@suse.co.uk>
15041
15042         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
15043         en_GB (British), ia (Interlingua).
15044
15045 2000-10-26  Havoc Pennington  <hp@redhat.com>
15046
15047         * gtk/gtktextiter.c (my_strrstr): fix constness warning
15048
15049         Fixed output of:
15050         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
15051         
15052         * gtk/gtktextsegment.c (char_segment_new): rename
15053         (_char_segment_new_from_two_strings): rename
15054         (_toggle_segment_new): rename
15055         
15056         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
15057         (make_clipboard_widget): make it static
15058         (text_get_func): static
15059         (text_clear_func): static
15060
15061         * gtk/gtkcolorsel.c (adjustment_changed): make this function
15062         static
15063         (hex_changed): make it static
15064         (hsv_changed): make it static
15065         (opacity_entry_changed): make it static
15066
15067         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
15068         (toggle_segment_check_func): rename with _gtk
15069
15070         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
15071         (_widget_segment_new): rename
15072         (_widget_segment_add): rename
15073         (_widget_segment_remove): rename
15074         (_widget_segment_ref): rename
15075         (_widget_segment_unref): rename
15076
15077         * gtk/gtktextmark.c (_mark_segment_new): Rename
15078         _gtk_mark_segment_new   
15079
15080 2000-10-26  Havoc Pennington  <hp@redhat.com>
15081
15082         * gtk/gtkmarshal.list: add new marshallers used by the text widget
15083         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
15084         types
15085
15086         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
15087         marshaller types
15088
15089         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
15090         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
15091         license on these files.
15092
15093         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
15094         work.
15095
15096         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
15097         runtime random number different for each tree, instead of 
15098         a constant I made up.
15099
15100 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
15101
15102         * gtk/Makefile.am: buncha cleanups, kludged build sources
15103         dependencies with a Makefile: oldest-source-stamp dependancy
15104         for the moment. automake is really fighting us here, with
15105         intentionally not allowing user-defined rules or dependancies
15106         prior to it's -include $(DEP_FILES) statement. sucks rocks!
15107
15108         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
15109         to public headers. tehy have a comment stating that they are
15110         "semi-public" aren't included by gtk.h and if enums popup there,
15111         they can be /*< skip >*/-ed.
15112
15113         * gtk/gtktextlayout.h: 
15114         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
15115         added LGPL... <SIGH>
15116
15117 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
15118
15119         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
15120         GtkTreeIter.  Added iterators everywhere.
15121
15122         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
15123
15124         * gtk/gtktreeviewselection.c: Changed to use the iterators.
15125
15126         * gtk/gtktreestore.c: Changed to use the iterators.
15127
15128         * gtk/gtkliststore.c: Commented out the code.  Will convert to
15129         iterators tomorrow.
15130
15131         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
15132         iterators tomorrow.
15133
15134         * gtk/treestoretest.c: Changed to use iterators.
15135
15136         * demos/testgtk/main.c: Moved to use the new iterator system.
15137
15138 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
15139
15140         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
15141         localization misbehaviour.
15142
15143         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
15144         a useless type without copy/free.
15145
15146         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
15147         of GTK_TYPE_CTREE_NODE.
15148
15149 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
15150
15151         * gtk/gtksignal.c:
15152         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
15153         applicable.
15154
15155         * gtk/gtk-boxed.defs (GtkSelectionData): specify
15156         gtk_selection_data_copy and gtk_selection_data_free
15157         do GtkSelectionData work as params in signals.
15158
15159 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
15160
15161         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
15162         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
15163         couldn't they at least give it a non-standard name?
15164         
15165         * gtk/gtktextlayout.c: arg! yet another implementation of
15166         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
15167
15168         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
15169         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
15170         home. now i know this _is_ a conspiracy.
15171
15172         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
15173         ::state-changed.
15174
15175         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
15176         (gtk_accel_group_create_add): marshaller signature fixups.
15177
15178         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
15179         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
15180
15181         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
15182         anymore.
15183
15184 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
15185
15186         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
15187         due to the signal system changes, it wouldn't build currently. to
15188         be fixed soon.
15189
15190         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
15191
15192         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
15193         so it needs gtk_marshal_VOID__ENUM() instead of
15194         gtk_marshal_NONE__UINT().
15195
15196         * gdk/gdk*.c: adapted type registration functions.
15197
15198         * gtk/gtkbindings.c:
15199         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
15200         gone.
15201
15202         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
15203
15204         * gtk/gtkobject.c:
15205         (gtk_object_destroy):
15206         (gtk_object_shutdown): fixed recursion guards. basically we have to
15207         catch the case where any of GObject.shutdown() or gtk_object_destroy()
15208         is called during ::destroy, and avoid recursion there.
15209
15210         * gtk/gtktypeutils.c:
15211         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
15212         boxed_copy/boxed_free. this needs a more general solution based on a
15213         publically installed code-generator utility.
15214
15215         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
15216         glib's gobject has support for that now.
15217         define GtkSignalMarshaller in terms of GSignalCMarshaller.
15218
15219 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
15220
15221         * gtk/gtksignal.[hc]:
15222         * gtk/gtkmarshal.[hc]:
15223         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
15224         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
15225         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
15226         care of that.
15227
15228         * *.c: marshaller name fixups.
15229
15230         * gtk/gtkmarshal.list: added a comment briefing the format.
15231
15232 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
15233
15234         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
15235         compatibility macros here now. more specifically, most of
15236         the API is preserved (yes, _most_, nonwithstanding the
15237         following exceptions listed, the API is stil lHUGE ;)
15238         things that got removed completely:
15239         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
15240         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
15241         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
15242         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
15243         gtk_signal_remove_emission_hook().
15244         non-functional functions variants:
15245         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
15246         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
15247         not supported anymore.
15248         (gtk_signal_compat_matched): new internal function to aid
15249         implementation of the compatibility macros, it  provides
15250         functionality to block/unblock/disconnect handlers based
15251         on func/data.
15252
15253         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
15254
15255         * *.c: adaptions to new type registration API signatures.
15256
15257 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
15258
15259         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
15260
15261 2000-10-25  Robert Brady  <robert@suse.co.uk>
15262
15263         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
15264         gdk_property_delete): If window == NULL, assume the root window.
15265         (restoring the behaviour that was in 1.2).
15266         
15267         * gtk/testtext.c (save_buffer): Allow creation of new files when
15268         saving.
15269
15270         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
15271         calls to read().
15272
15273 2000-10-25  Tor Lillqvist  <tml@iki.fi>
15274
15275         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
15276
15277         * gdk/win32/gdkdrawable-win32.c
15278         * gdk/win32/gdkimage-win32.c
15279         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
15280         X11 backend.
15281
15282         * gdk/win32/gdkcc-win32.c
15283         * gdk/win32/gdkcolor-win32.c
15284         * gdk/win32/gdkfont-win32.c
15285         * gdk/win32/gdkinput-win32.c
15286         * gdk/win32/gdkmain-win32.c
15287         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
15288
15289 2000-10-24  Havoc Pennington  <hp@redhat.com>
15290
15291         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
15292         it a static function
15293
15294         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
15295         redraw text when a tag is applied to it.
15296
15297         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
15298         (gtk_text_tag_affects_nonsize_appearance): private functions to
15299         see if a tag requires various kinds of redraw/layout to be queued
15300         up.
15301
15302         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
15303
15304         * gtk/testtext.c (fill_example_buffer): Put the cursor 
15305         at the start of the buffer, so search works by default
15306
15307         * gtk/gtktextiter.c (lines_match): init match_start always
15308
15309         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
15310         function, get iter at a line + a byte index
15311
15312         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
15313         to set byte position within a line
15314         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
15315
15316 2000-10-23  Havoc Pennington  <hp@redhat.com>
15317
15318         * gtk/testtext.c: Re-enable the "find" dialog
15319
15320         * gtk/testgtk.c: Add test for gdk_drawable_get_image
15321         
15322         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
15323         the arguments to gdk_draw_drawable were in the wrong order
15324         (gdk_window_paint_init_bg): This function was ignoring the
15325         init_region, instead of clipping to it, so the entire backing
15326         pixmap was cleared on every begin_paint()
15327         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
15328         was in here again, the loop kept using the same GtkWindowPaint
15329         over and over.
15330         (gdk_window_begin_paint_region): Fix a bug where we had two
15331         x_offset instead of x_offset and y_offset
15332
15333         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
15334         before we get the image.
15335         (gdk_draw_drawable): get the composite before we draw the drawable.
15336         (gdk_drawable_real_get_composite_drawable): default
15337         get_composite_drawable implementation that returns the drawable 
15338         itself
15339
15340         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
15341         get_composite_drawable virtual function
15342
15343         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
15344         list-walking bug
15345
15346         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
15347         make this work if the source drawable is a GdkDrawableImplX11
15348         instead of a public drawable type. This is really broken; the
15349         problem is that GdkDrawable needs a virtual method get_xid(), but
15350         of course that doesn't work in practice. Enter RTTI.
15351
15352         Also, improve mismatched depth message.
15353
15354         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
15355         GdkPixmap
15356
15357         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
15358         install _gdk_x11_get_image as our implementation of get_image
15359         
15360         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
15361         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
15362
15363         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
15364         gdk_drawable_get_image
15365
15366         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
15367
15368         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
15369         get_image
15370
15371         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
15372         trailing semicolon after for loop
15373
15374 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
15375
15376         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
15377         where font_desc for widget's context lagged widget's font_desc by
15378         one step.
15379
15380 2000-10-22  Tor Lillqvist  <tml@iki.fi>
15381
15382         * gdk/win32/gdkgc-win32.c
15383         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
15384
15385         * gtk/makefile.mingw.in
15386         * gtk/gtk.def: Updates.
15387
15388         * gtk/testgtk.c: sleep() is called _sleep in MS's C
15389         library.
15390
15391         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
15392
15393         * gtk/makefile.msc: Remove
15394
15395         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
15396
15397         * gtk/Makefile.am: Add it.
15398
15399         * configure.in: Generate it.
15400
15401         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
15402         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
15403         something even if not implemented, to satisfy picky MSVC.
15404
15405         Patches by Hans Breuer:
15406         
15407         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
15408         SetBkMode() and SetTextAlign() before calling
15409         pango_win32_render().
15410
15411         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
15412         Set hcliprgn to NULL after destroying it.
15413         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
15414
15415         * gdk/win32/gdkgeometry-win32.c
15416         (_gdk_windowing_window_queue_antiexpose): More effective
15417         implementation.
15418
15419         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
15420         depth as default, not the visual's.
15421
15422         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
15423         against empty title.
15424
15425         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
15426         IMAGE_PRIVATE_DATA.
15427
15428         * gdk/win32/gdkimage-win32.c: Use it.
15429
15430 2000-10-22  Robert Brady  <robert@suse.co.uk>
15431
15432         * configure.in: Check for bind_textdomain_codeset
15433
15434         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
15435         present, make use of it.
15436
15437         Add a translatable string "default:LTR" which, if translated
15438         to "default:RTL", will cause the default direction to be
15439         Right-to-Left.
15440
15441         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
15442         direction if marked as flippable.
15443
15444         * gtk/gtkhscale.c: Mark widget as flippable.
15445         
15446 2000-10-04  Havoc Pennington  <hp@redhat.com>
15447
15448         * gtk/testgtk.c (create_buttons): create some stock buttons
15449         with the default accel group
15450         (create_image): test some new GtkImage features
15451         (make_message_dialog): test GtkMessageDialog
15452         (create_modal_window): fix someone's bizzarro indentation
15453
15454         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
15455         GTK_WIN_POS_CENTER_ON_PARENT. 
15456         Add "destroy with parent" setting, which means the window goes
15457         away with its transient parent.
15458         (gtk_window_get_default_accel_group): get the default accel group
15459         for the window.
15460         (gtk_window_set_destroy_with_parent): set/unset destroy with
15461         parent flag
15462         (gtk_window_read_rcfiles): invalidate icon set caches
15463         after reloading rcfiles 
15464
15465         * gtk/gtkenums.h (GtkWindowPosition): add
15466         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
15467         on its parent window when the dialog is mapped for the first time.
15468
15469         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
15470         a simple message dialog class
15471         
15472         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
15473         handler to emit response signal, and maybe later it would
15474         honor a hide_on_delete flag - though that isn't there yet.
15475         Set border width on the vbox to 2, so we get some padding.      
15476         Use a button box for the action area.
15477         (gtk_dialog_key_press): synthesize a delete event if Esc
15478         is pressed and the GtkWidget key press handler didn't 
15479         handle the escape key.
15480         (gtk_dialog_new_with_buttons): new function creates a dialog
15481         with some default buttons in it.
15482         (gtk_dialog_add_action_widget): add an activatable widget
15483         as a button in the dialog - you can also add a non-activatable
15484         widget by accessing the action area directly.
15485         (gtk_dialog_add_button): add a simple button - stock ID or 
15486         label - to the action area
15487         (gtk_dialog_response): emit response signal
15488         (gtk_dialog_run): block waiting for the dialog, return 
15489         the response. Override normal delete_event behavior, so that 
15490         delete_event does nothing inside gtk_dialog_run().
15491
15492         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
15493         emitted when an action widget is clicked or the dialog gets
15494         delete_event
15495
15496         * gtk/gtk.h: add gtkmessagedialog.h
15497
15498         * gtk/Makefile.am: add gtkmessagedialog.[hc]
15499
15500 2000-10-18  Havoc Pennington  <hp@redhat.com>
15501
15502         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
15503         where any number of empty lines would get skipped
15504
15505         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
15506         edge.
15507
15508         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
15509         warning about invalid iterators (explain more thoroughly)
15510         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
15511
15512         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
15513         big
15514
15515         * demos/*.c: Add error handling
15516
15517         * gtk/gtktextbuffer.c: don't modify const iterators
15518
15519         * gtk/gdk-pixbuf-loader.c: Add full error handling here
15520
15521         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
15522         on file load
15523
15524         * gtk/gtkiconfactory.c: Update to reflect addition of error
15525         handling to gdk-pixbuf loaders
15526
15527 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
15528
15529         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
15530         move to new modularized testgtk.
15531
15532 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
15533
15534         * gtk/gtktreeview.c: Draw the arrows correctly.
15535
15536         * gtk/gtktreemodel.c: Added user docs.
15537
15538         * gtk/gtk.h: remove gtktreedatalist.h.
15539
15540         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
15541         parent when generating my type.
15542
15543         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
15544         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
15545
15546 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
15547
15548         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
15549         GtkTreeModel from object to interface.
15550
15551 2000-10-16  Havoc Pennington  <hp@redhat.com>
15552
15553         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
15554         compilation
15555
15556 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
15557
15558         * gtk/gtktreeselection.c: Add API documentation to all public
15559         functions.
15560
15561         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
15562         functions.
15563
15564 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
15565
15566         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
15567         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
15568         docs to all public functions.
15569
15570         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
15571         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
15572         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
15573         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
15574         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
15575         issue.
15576
15577 2000-10-14  Robert Brady  <robert@suse.co.uk>
15578
15579         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
15580
15581 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
15582
15583         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
15584         values other then G_TYPE_STRING.
15585         * gtk/gtktreeselection.c: Minor commenting updates.
15586         * gtk/gtktreeview.c: Format updates.
15587
15588 2000-10-09  Tor Lillqvist  <tml@iki.fi>
15589
15590         * README.win32: Update.
15591
15592         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
15593         lines that had been deleted by mistake (?).
15594
15595         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
15596         also the case fg==white and bg==black (but still not randomly
15597         coloured cursors). Thanks to Wolfgang Sourdeau.
15598
15599         * gdk/win32/*.c: Silence gcc -Wall.
15600
15601         * gtk/gtk.def: Add missing entry points.
15602
15603         Fixes by Hans Breuer:
15604
15605         * gdk/makefile.msc
15606         * gdk/win32/makefile.msc: Update.
15607
15608         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
15609         some MSVC thing, presumably), cause breakpoint on failures. Add
15610         GDK_NOR case. Call g_log_set_always_fatal.
15611
15612         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
15613         should be pased by reference.
15614         
15615         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
15616         
15617         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
15618
15619         * gdk/win32/gdkevents-win32.c
15620         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
15621
15622         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
15623         implementation object.
15624
15625         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
15626         not just windows.
15627         
15628         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
15629         Use the wrapper object.
15630         
15631 2000-10-06  Havoc Pennington  <hp@redhat.com>
15632
15633         * Makefile.am (SRC_SUBDIRS): contrib subdir
15634
15635         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
15636         so it can be used in Xlib version
15637
15638         * demos/testpixbuf.c (update_timeout): error checking from 1.0
15639         tree
15640
15641         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
15642         change from 1.0 tree that returns first frame of animation
15643         if the loaded file is an animation.
15644
15645         * contrib: add new directory to hold stuff that comes with GTK+
15646         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
15647         
15648         * configure.in: add contrib/*
15649
15650 2000-10-05  Havoc Pennington  <hp@redhat.com>
15651
15652         * demos/testpixbuf-save.c: add pixbuf save test
15653
15654         * demos/Makefile.am: add testpixbuf-save.c
15655
15656 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
15657
15658         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
15659         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
15660         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
15661         * gtk/gtktreeselection.[ch]: Replaced
15662         "node_selected"/"node_unselected" signal with "selection_changed"
15663         signal.
15664
15665 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
15666
15667         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
15668         tree widget.
15669
15670 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
15671
15672         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
15673         drawing.
15674
15675 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
15676
15677         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
15678         Move list pointer forwards before removing item from
15679         list. (Crash reported by Salmaso Raffaele)
15680
15681         * gdk/gdkwindow.h: Remove spurious trailing ,
15682
15683         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
15684         dependencies on uninstalled libraries, sorry folks.
15685
15686 2000-10-04  Havoc Pennington  <hp@redhat.com>
15687
15688         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
15689         gtk/gtkiconfactory.c: Fix copyrights    
15690
15691         * demos/testpixbuf.c: add inline pixbuf test
15692         
15693 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
15694
15695         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
15696         Add gdk_window_iconify.
15697
15698         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
15699         (gdk_window_set_geometry_hints): Add win_gravity
15700         to geometry structure.
15701
15702         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
15703         Implement _NET_WM_PING.
15704
15705         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
15706         Set _NET_WM_PID on the client leader.
15707
15708         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
15709         Handle UTF-8 better.
15710
15711         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
15712         UTF-8 better, set _NET_WM_NAME as well. Only set
15713         icon name if it hasn't previously been explicitely 
15714         set.
15715
15716 2000-10-03  Havoc Pennington  <hp@redhat.com>
15717
15718         * gtk/testtextbuffer.c: clean up trailing whitespace,
15719         add extensive tests for tag toggle iteration.
15720         
15721         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
15722         distance
15723
15724         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
15725         optimize case where the tag root is on level 1
15726         (gtk_text_line_previous_could_contain_tag): attempt to implement
15727         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
15728         functionality
15729
15730         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
15731         Implement this, though not very efficiently.
15732
15733         * gtk/gtktextiterprivate.h: reformat
15734
15735         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
15736         iterator
15737
15738         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
15739         this to properly revalidate the iterators.
15740
15741         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
15742         properly at the end of the line (and therefore on empty lines)
15743
15744         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
15745         maybe we should return a value...
15746
15747 2000-10-03  Tor Lillqvist  <tml@iki.fi>
15748
15749         * config.h.win32: Guard definition of alloca(). glib.h now handles
15750         that.
15751
15752         * gdk/gdk.def
15753         * gtk/gtk.def: Add new entry points.
15754
15755         Changes just to make GTK+ build without errors on Win32. No hope
15756         of it working in its current state, though...:
15757         
15758         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
15759         some functions from the X11 backend, just to make GTK+ build.
15760
15761         * gdk/makefile.mingw.in
15762         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
15763         number. Add new object files.
15764
15765         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
15766         GetMessageTime to get timestamp (where on X11 uses
15767         gdk_x11_get_server_time()).
15768
15769 2000-10-02  Havoc Pennington  <hp@pobox.com>
15770
15771         * gtk/gtktextview.c: text_window_* weren't static and should have
15772         been.
15773         Start work on child widgets; not yet complete, syncing to 
15774         office computer.
15775
15776         * gtk/gtktextchild.h: change this to contain a public interface,
15777         starting work on child interfaces.
15778         * gtk/gtktextchildprivate.h: move private interfaces here
15779
15780         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
15781
15782         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
15783         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
15784         gtk/gtktextmark.c: copyright notices
15785
15786         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
15787         internal functions      
15788
15789         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
15790         internal function
15791
15792         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
15793         Reformatting    
15794
15795 2000-09-30  Havoc Pennington  <hp@pobox.com>
15796
15797         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
15798         NULL start/end pointers
15799
15800         * gtk/gtktextbuffer.c: Write some docs
15801         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
15802         NULL, so you can just check whether there's a selection.        
15803
15804         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
15805         cleanup_line or segments_changed ourselves, it gets done 
15806         in unlink_segment
15807
15808         * gtk/gtktextmark.h:
15809         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
15810         
15811         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
15812
15813         * gtk/gtktextmark.c: delete some more old Tk cruft
15814
15815         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
15816         mark before removing it, so we can emit MARK_DELETED with a valid
15817         pointer.
15818         (gtk_text_buffer_mark_set): hold ref across signal emission
15819
15820         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
15821         whining about attempts to delete special marks
15822
15823         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
15824         underscore, since it's internal.
15825
15826         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
15827         now implemented in terms of iterators in gtktextiter.h
15828
15829         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
15830         New function, destructively sets contents of buffer. Also 
15831         a convenient way to clear the buffer by setting text to ""
15832
15833         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
15834         multiline string literal
15835
15836         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
15837         text changes.
15838
15839         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
15840         is not dereferenceable
15841         (gtk_text_iter_forward_lines): fix return value
15842
15843 2000-09-29  Havoc Pennington  <hp@redhat.com>
15844
15845         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
15846
15847         * gtk/gtktextview.c: Implement drag thresholding; change functions 
15848         that set border window size to have nicer name
15849         (gtk_text_view_mark_set_handler):  Fix this to have the 
15850         right signature.
15851
15852         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
15853
15854         * gtk/testtext.c: Update with API changes, put line numbers on 
15855         both sides.
15856         
15857         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
15858         with this
15859
15860         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
15861         pixbuf; delete a big block of #if 0 Tk code
15862
15863         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
15864         insert_pixmap with insert_pixbuf
15865
15866 2000-09-29  Martin Baulig  <baulig@suse.de>
15867
15868         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
15869         confusion with the GdkPixbuf of the GNOME 1.x platform.
15870
15871 2000-09-29  Havoc Pennington  <hp@pobox.com>
15872
15873         * gtk/gtktextview.c: Implement the side windows.
15874
15875         * gtk/testtext.c: Implement simple line numbering in the 
15876         left side window; seems to make scrolling sloooow. Oops.
15877         Also, cursor blink is for some reason causing redraws
15878         of the line numbers. Should investigate...
15879
15880 2000-09-28  Havoc Pennington  <hp@redhat.com>
15881
15882         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
15883         scrolling child windows, and draw focus rectangle properly.
15884         
15885         (gtk_text_view_buffer_to_window_coords):
15886         Coordinate transformation to deal with all these freaking windows
15887         and offsets
15888         (gtk_text_view_window_to_buffer_coords): transform the other way
15889
15890         * gtk/testtext.c (create_buffer): Update to match Pango API change
15891
15892         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
15893         anonymous tags
15894         (foreach_unref): don't emit remove signal from finalize, just
15895         set tag's parent to NULL
15896
15897 2000-09-26  Havoc Pennington  <hp@redhat.com>
15898
15899         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
15900         Fix some warnings       
15901
15902 2000-09-26  Havoc Pennington  <hp@redhat.com>
15903
15904         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
15905         headers into the private header list
15906
15907         * Makefile.am (pkgconfig_DATA): install pkg-config files
15908
15909         * configure.in: add pkg-config files
15910
15911         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
15912
15913         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
15914         outstanding icon caches on theme change.
15915
15916         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
15917         important types:
15918
15919         (GtkIconSource): Specification for creating a pixbuf 
15920         appropriate for a direction/state/size triplet from 
15921         a source pixbuf or filename
15922
15923         (GtkIconSet): List of GtkIconSource objects that are used to
15924         create the "same" icon (e.g. an OK button icon), and cache for
15925         rendered icons
15926
15927         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
15928         up the icon set for a given stock ID.  GTK maintains a stack of
15929         GtkIconFactory to search, and applications or libraries can add
15930         additional icon factories on top of the stack
15931         
15932         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
15933         the set of GtkIconSource specified for a given stock ID into 
15934         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
15935         RcStyle, under the specified stock ID.
15936
15937         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
15938         render_icon used to derive a GdkPixbuf from a GtkIconSource.
15939         This allows people to theme how prelight, insensitive, etc. are
15940         done.
15941
15942         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
15943         icon factories for a style, and return the resulting 
15944         icon set if any.
15945
15946         (gtk_style_render_icon): Render an icon using the render_icon 
15947         method in the GtkStyleClass.
15948
15949         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
15950         Use the style for a given widget to look up a stock ID, get the
15951         icon set, and render an icon using the render_icon method 
15952         of the style
15953
15954         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
15955         (contains information about a stock item), the built-in stock item
15956         IDs, and functions to add/lookup stock items.
15957
15958         * gtk/stock-icons/*: Stock icons that come with GTK
15959
15960         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
15961         a button based on a GtkStockItem
15962         (gtk_button_new_accel): Takes a uline string and accel group, and
15963         installs the accelerator.
15964
15965         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
15966         image-display widget.
15967
15968 2000-09-25  Havoc Pennington  <hp@redhat.com>
15969
15970         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
15971
15972         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
15973         Fix a bug when removing node data, we didn't properly 
15974         re-splice the linked list after removing the data.
15975
15976         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
15977         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
15978
15979         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
15980
15981         * gtk/gtktextlayout.c (set_para_values): Set tab array 
15982         for the layout from the GtkTextTag.
15983
15984         * gtk/gtktexttypes.h: delete tab and search cruft, 
15985         remove g_convert() in favor of GLib version
15986
15987         * gtk/gtktexttypes.c: remove tab implementation from here,
15988         move to Pango
15989
15990         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
15991         tab stuff using new PangoTabArray from Pango
15992
15993         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
15994         unused border_width stuff
15995
15996 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
15997
15998         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
15999         glib) and now useless utf_to_latin1() latin1_to_utf()
16000
16001         * gtk/gtktextview.[ch]: Change ::move_insert and
16002         ::delete_text action signals to ::move and ::delete;
16003         create the signals with the right enumeration type,
16004         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
16005         C-v bindings, change Home, End to move to beginning/end
16006         of line, Add C-Home C-End to move to beginning/end
16007         of buffer. Change ::cut_text to ::cut_clipboard, etc;
16008         combine ::scroll_text into ::move; use new GtkSelectionData
16009         functions to simplify DND text handling.
16010         
16011         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
16012         deletion enumerations here, rename enumeration values to 
16013         be consistently plural.
16014
16015         * gtk/gtktextbuffer.c: Use new clipboard interfaces
16016         for cut/copy/paste and primary selection.
16017
16018         * gtk/gtktextbuffer.[ch]: Remove excess time and
16019         'interactive' arguments from cut/copy/paste;
16020         rename cut to cut_clipboard, etc; remove
16021         gtk_text_buffer_get_clipboard_contents().
16022
16023         * gtk/gtktextlayout.[ch]: Add 
16024         gtk_text_layout_move_iter_to_line_end() to move the iter to 
16025         line ends.
16026
16027         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
16028         Functions to set or get a UTF-8 string on the selection
16029         data.
16030
16031         * gtk/gtkclipboard.[ch]: New, simplified selection handling
16032         interfaces.
16033
16034         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
16035         created widgets - one of these is useless if we don't.
16036
16037         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
16038         a public function clear all targets registered for the
16039         widget.
16040
16041         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
16042         Never call gtk_widget_realize() - that was just asking
16043         for bizarre side-effects.
16044
16045         * gtk/gtkselection.c (gtk_selection_owner_set): Call
16046         gdk_selection_owner_set even if the widget is the
16047         same so that we reliably update the timestamp on
16048         the server.
16049
16050         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
16051         gdk_x11_get_server_time() function.
16052         
16053         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
16054         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
16055         Add some tricky filtering on serial numbers for
16056         selection clear events to fix up long-standard
16057         race condition FIXME's in gtkselection.c.
16058
16059         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
16060         routines to convert from utf8 to compound text or
16061         STRING and from a text property to UTF-8.
16062
16063         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
16064         a convenience function gdk_get_current_event_time().
16065
16066         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
16067         and free selection_data->data properly
16068
16069 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
16070
16071         * gtk/gtkthemes.c: Remove some unecessary includes.
16072
16073 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
16074
16075         * gtk/gtktextdisplay.c
16076         * gtk/gtktextlayout.c
16077         * gtk/gtktexttag.c
16078         * gtk/gtktexttag.h
16079         * gtk/testtext.c: Change the overstrike property to strikethrough,
16080         to closer match pango.
16081
16082 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
16083
16084         * gtk/gtktextview.c: Fix up visibility so that focus,
16085         cursor_visible and blink interact properly.  Reenable cursor blink
16086         which had been roughly disabled. Make blink and focus
16087         properly per-view.
16088
16089         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
16090         Add a flag for whether to display insertion cursor and
16091         a function to set the flag.
16092
16093         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
16094         get_line_y() to get_line_yrange(), to be a bit more generally
16095         useful.
16096
16097 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
16098
16099         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
16100           do stop_navigating_submenu, to clear last timeout properly.
16101           Also in gtk_menu_motion_notify move ignore_enter above
16102           the conditional to make it always happen as suggested by Owen
16103
16104 2000-09-07  Tor Lillqvist  <tml@iki.fi>
16105
16106         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
16107
16108         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
16109         w32api headers.
16110
16111         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
16112         declarations.
16113
16114         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
16115         (gdk_win32_get_colormap): A line had been deleted by mistake.
16116
16117         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
16118         (gdk_event_translate): Handle more virtual keycodes to be able to
16119         generate GDK events for Control-comma, Control-period, etc.
16120
16121         * gtk/gtk.def: Add some missing entry points.
16122
16123 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
16124
16125         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
16126         Doc comment fixing. (Mostly non-matching parameter names.)
16127
16128         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
16129         comments a little to avoid looking like a doc comment.
16130
16131         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
16132         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
16133         conversions be changed to GError?)
16134
16135         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
16136         Move private #defines into .c file.
16137
16138         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
16139         order of argument addition, remove duplicates.
16140
16141         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
16142         parent class is FrameClass, not BinClass.
16143
16144         * gtk/gtk.h: Add gtkinvisible, which was missing.
16145         (It's occasionalyl useful for client apps, if seldom.)
16146
16147         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
16148         #define.
16149
16150 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
16151
16152         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
16153         coordinates when creating window, instead of GDK-space
16154         coordinates. (Avoid BadValue on too large windows.)
16155
16156 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16157
16158         * configure.in (use_mmx_asm): Remove conftest* after use along the
16159         lines of AC_TRY_COMPILE.        
16160         
16161         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
16162         of g_dirname, which is deprecated.
16163         (gtk_rc_parse_any): Removed calls to
16164         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
16165
16166         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
16167         Removed calls to g_hash_table_{freeze,thaw}, as they are
16168         deprecated now.
16169
16170         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
16171         instead of g_basename.
16172         
16173 2000-09-04 Elliot Lee <sopwith@redhat.com>
16174         
16175         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
16176         ANSI warning.
16177
16178 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
16179
16180         * gtk/gtkwidget.h:  Add some documenting comments about 
16181           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
16182           just as owen said on irc.
16183
16184         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
16185           set HAS_DEFAULT.  Only set it if there isn't another window
16186           holding it (a focus window which RECEIVES_DEFAULT) and only unset
16187           it if the widget is not the focused window with RECEIVES_DEFAULT.
16188           This fixes weird double default bugs in dialogs which has things
16189           call gtk_window_set_default at times.
16190
16191 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
16192
16193         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
16194         Nils Barth and David Santiago to improve submenu
16195         navigation. The patch does this by creating a triangular
16196         region from the point where the pointer leaves the
16197         menu to the submenu.  While the pointer is in
16198         that region and a timeout has not expired, events 
16199         that would cause the active submenu to change are
16200         ignored.
16201
16202 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
16203
16204         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
16205         moving a toplevel window immediately after sizing it would
16206         result in it being sized back to the old size since 
16207         impl->width, impl->height aren't updated until we hear
16208         back from the server. There is still a (longstanding) bug
16209         here that gdk_window_get_size() will give the wrong size
16210         until we do hear back.
16211
16212 2000-08-31  Havoc Pennington  <hp@redhat.com>
16213
16214         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
16215         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
16216         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
16217         Rename GtkTextStyleValues to GtkTextAttributes
16218
16219 2000-08-31  Havoc Pennington  <hp@pobox.com>
16220
16221         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
16222         for rapid testing whether an iterator is the end iterator
16223         (gtk_text_btree_new): init end line cache
16224         (gtk_text_line_is_last): use fast cached line to 
16225         see if we're the last line.
16226         (get_last_line): use cached line here too, should 
16227         speed up some random unrelated code.
16228         
16229 2000-08-30  Havoc Pennington  <hp@pobox.com>
16230
16231         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
16232         signals.
16233
16234         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
16235         delete_text signals. This allows the signals to be used for
16236         implementing undo.
16237
16238         * gtk/gtktextbuffer.c: Change signal handler signatures; 
16239         provide "interactive" argument when emitting insert_text or
16240         delete_text signal.
16241         
16242 2000-08-30  Havoc Pennington  <hp@pobox.com>
16243
16244         * gtk/gtktextbuffer.c: Docs
16245
16246 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
16247
16248         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
16249         from switch statements, since Tor removed the enumeration
16250         value.
16251         
16252         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
16253         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
16254
16255 2000-08-29 Elliot Lee <sopwith@redhat.com>
16256         * */*.h: Use G_GNUC_CONST.
16257
16258 2000-08-27  Havoc Pennington  <hp@pobox.com>
16259
16260         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
16261         minor indentation fixes, inserted some FIXME about stuff I
16262         realized was broken while documenting it.
16263         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
16264         GTK convention  
16265
16266 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
16267
16268         * gtk/testgtk.c (create_styles): Fix double free of
16269         font desc.
16270
16271 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
16272
16273         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
16274         
16275         * gtk/testgtk.c (create_styles): Add a test for modifying
16276         the style through gtk_widget_modify_*.
16277
16278         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
16279         a function to get the current modifier style.
16280
16281         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
16282         of the passed in GtkRcStyle instead of ref'ing it.
16283
16284         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
16285
16286 2000-08-20  Tor Lillqvist  <tml@iki.fi>
16287
16288         * gdk/gdkimage.h
16289         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
16290         shared memory image+pixmap GdkImage type, or
16291         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
16292         I am dropping that.
16293
16294         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
16295         actually call gtk_init_abi_check(), passing also
16296         sizeof(GtkWindow). Ditto for gtk_init_check(). 
16297
16298         * gtk/gtk.def
16299         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
16300         New functions, used to check that the GTK+-using code has been
16301         compiled using the correct compiler and switches. In particular,
16302         with gcc one has to use the -fnative-struct switch as GTK+ is
16303         compiled with that.
16304
16305 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
16306
16307         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
16308         ->prev fields when merging lists. (Found simultaneously
16309         by Pawel Salek and Jakub Jelinek)
16310
16311 2000-08-12  Tor Lillqvist  <tml@iki.fi>
16312
16313         * gdk/gdk.def
16314         * gtk/gtk.def: Add missing entries.
16315
16316         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
16317         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
16318
16319         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
16320         function. Dummy implementation at this point.
16321
16322         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
16323         rules. Undefine GTK_COMPILATION when compiling the test programs.
16324         
16325         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
16326
16327 2000-08-11  Tor Lillqvist  <tml@iki.fi>
16328
16329         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
16330         to convert back and forth from UTF-8 and the "system" (or "current
16331         locale") charset when necessary. Indentation/spacing cleanup.
16332
16333 2000-08-10  Havoc Pennington  <hp@redhat.com>
16334
16335         * Makefile.am (snapshot): Change the format of the snapshot
16336         version to match glib
16337
16338         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
16339         from EXTRA_DIST since it doesn't seem to exist
16340
16341 2000-08-10  Tor Lillqvist  <tml@iki.fi>
16342
16343         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
16344         version of the directory name (not the UTF-8 one) when building
16345         the path name to stat().
16346
16347 2000-08-03  Elliot Lee  <sopwith@redhat.com>
16348
16349         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
16350         PANGO_ATTR_SHAPE set.
16351
16352 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
16353
16354         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
16355         Peter Osterlund to simplify the code while keeping the
16356         functionality the same.
16357
16358 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
16359
16360         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
16361         is_viewable() test further inside the function, since removing the 
16362         window from the redraw list without clearing ->update_area
16363         was also very broken.
16364
16365 2000-08-02  Tor Lillqvist  <tml@iki.fi>
16366
16367         * configure.in: Check for <unistd.h>.
16368
16369 2000-08-01  Martin Baulig  <baulig@suse.de>
16370
16371         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
16372         to display the message that this is a development version of GTK+.
16373
16374 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
16375
16376         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
16377         was depending on widget->allocation instead of the width of text_area,
16378         which was incorrect for subclasses like GtkSpinButton.
16379
16380         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
16381         with width == 1 tests that should be width == -1.
16382
16383 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
16384
16385         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
16386         (broken, Elliot, every single window blank on X) custom code with call
16387         to gdk_window_is_viewable() which a) prevents code duplicate and
16388         b) works. 
16389
16390 2000-07-31  Elliot Lee  <sopwith@redhat.com>
16391
16392         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
16393         to get the GDK_PARENT_ROOT() macro to work.
16394         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
16395         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
16396         of, windows that aren't shown.
16397         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
16398         pointer grab stuff.
16399
16400 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
16401
16402         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
16403           s/gtk_main_iteration/g_main_iteration/
16404
16405           Did this already in change:
16406                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
16407           don't know how it got reverted.
16408
16409 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
16410
16411         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
16412         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
16413
16414         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
16415         not gdk_pixbuf.
16416
16417 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
16418
16419         * configure.in,po/{sp,sr}.po: Added Serbian files
16420
16421 2000-07-30  Tor Lillqvist  <tml@iki.fi>
16422
16423         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
16424
16425         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
16426         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
16427         GIOChannel implementation.
16428
16429         * gdk/win32/gdkinput.c
16430         * gdk/win32/gdkpango-win32.c: Update license name here, too.
16431
16432         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
16433         definition to match prototype.
16434
16435         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
16436
16437 2000-07-27  Elliot Lee  <sopwith@redhat.com>
16438
16439         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
16440         function, to allow handling image formats that cannot be detected
16441         by looking at content alone.
16442
16443 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
16444
16445         * docs/tutorial/*.gif *.jpg *.eps
16446           Update these to the same look-n-feel.
16447           Why does including images in DocBook suck so badly?
16448
16449 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
16450
16451         * gtk/gtktable.c: applied patch from Phil Thompson
16452         <phil@river-bank.demon.co.uk> that enables space settings for
16453         the last row/columns as well.
16454
16455 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
16456
16457         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
16458         updates the license headers to the GNU Lesser General Public License,
16459         as well as updating the copyright year to 2000.
16460
16461 2000-07-26  Robert Brady  <rwb197@zepler.org>
16462
16463         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
16464           and po/Makefile, was installing and looking for them under gtk20
16465           and gtk2 respectively.
16466
16467 2000-07-25  Havoc Pennington  <hp@redhat.com>
16468
16469         * gtk/testtext.c: Comment out some stuff that depends on the rest
16470         of my patches.
16471
16472 2000-07-25  Havoc Pennington  <hp@redhat.com>
16473
16474         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
16475         buffer
16476
16477 2000-07-25  Havoc Pennington  <hp@redhat.com>
16478
16479         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
16480         widget changes.
16481
16482         * gtk/gtktextview.h: To be consistent with usage of "line"
16483         throughout the API to mean "newline-terminated thingy", change
16484         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
16485         to MOVEMENT_LINE.
16486
16487         (GtkTextView): Add flags for default editability, and whether to
16488         show the cursor. Add functions to get/set that. Add 
16489
16490         (gtk_text_view_get_iter_location): new function
16491
16492         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
16493         gtktextlayout.h
16494         (g_convert): Add g_convert temporarily, will go in glib in a bit
16495         
16496         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
16497         GtkTextTagTableForeach instead of brokenly using GHFunc.
16498         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
16499
16500         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
16501         moved to public header.
16502
16503         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
16504         "invisible", since "elide" was a bad name.
16505         (gtk_text_tag_get_priority): Added
16506
16507         (GtkTextStyleValues): put this in public header, along with
16508         functions to use it.
16509
16510         * gtk/gtktextmarkprivate.h: Include more headers, since we no
16511         longer include gtktextbtree.h.
16512
16513         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
16514         gtk_text_mark_deleted
16515
16516         * gtk/gtktextlayout.h: Don't include the "really private" headers,
16517         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
16518         to make this possible. Now we only need to install
16519         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
16520         (However the Makefile.am isn't changed yet because of the
16521         logistics of merging gtk-hp-patches piecemeal)
16522
16523         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
16524         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
16525         gtk_text_iter_get_line is now used in the public API for a
16526         different purpose.
16527
16528         * gtk/gtktextiter.h: Clean up function names to be more
16529         consistent. Always call char offset "offset" and byte index
16530         "index". A "line" is always a line number. 
16531
16532         (gtk_text_iter_is_last): new function, more efficient than 
16533         the existing way to check
16534         (gtk_text_iter_is_first): new function, also more efficient
16535
16536         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
16537
16538         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
16539         gtk_text_iter_forward_char, etc.
16540
16541         (gtk_text_iter_forward_to_tag_toggle): Renamed from
16542         forward_find_tag_toggle, since this isn't a linear search
16543
16544         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
16545
16546         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
16547         New functions, search for a buffer substring.
16548
16549         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
16550         interactive and default editable (since we need to store that info
16551         until we receive the selection data).
16552
16553         Remove all the _at_char and at_line etc. versions of functions;
16554         only have iterator versions.
16555
16556         Add _interactive() versions of functions, that consider the
16557         editability of text. (FIXME add interactive flag to the 
16558         insert/delete signals per Darin's suggestion)
16559
16560         (gtk_text_buffer_get_tag_table): new function, demand-creates the
16561         tag table if necessary
16562
16563         Remove declaration of gtk_text_buffer_get_iter_from_string
16564
16565         (_gtk_text_buffer_get_btree): private/internal function, added.
16566         
16567
16568         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
16569         (gtk_text_line_is_last): new function
16570
16571 2000-07-25  Havoc Pennington  <hp@redhat.com>
16572
16573         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
16574         using GtkProgressBar. See Changes-2.0.txt for details.
16575
16576         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
16577         "pulse_step" which are the equivalent of
16578         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
16579         Implement new API.
16580         
16581         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
16582         (use_text_format) to mark whether text set on the progress bar is
16583         a format string. Deprecate entire GtkProgress interface.
16584
16585         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
16586         (gtk_progress_build_string): make this a no-op if use_text_format
16587         is FALSE
16588
16589         * docs/Changes-2.0.txt: Describe progress bar changes.
16590
16591 2000-07-25  Tor Lillqvist  <tml@iki.fi>
16592
16593         * Makefile.am: Include the build directory.
16594
16595         * configure.in: Generate build/Makefile, build/win32/Makefile,
16596         gdk/, gdk/win32/, and gtk/makefile.mingw.
16597
16598         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
16599         Add GETTEXT_PACKAGE.
16600         
16601         * gdk/gdk.def
16602         * gtk/gtk.def: Updates.
16603
16604         * gdk/gdkfont.h
16605         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
16606         need them any longer.
16607
16608         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
16609
16610         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
16611         PANGOWIN32_LIBS and gdk_pixbuf.
16612
16613         * gdk/win32: Compiles, but no doubt doesn't work at all.
16614
16615         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
16616
16617         * gdk/win32/gdkinput.c: New file, temporarily.
16618         
16619         * gdk/win32/gdkinput-win32.h: New file
16620
16621         * gdk/win32/gdkinputprivate.h: Remove.
16622
16623         * gdk/win32/gdkpango-win32.c: New file.
16624
16625         * gtk/makefile.mingw.in: New file
16626
16627         * gtk/makefile.cygwin: Removed
16628         
16629         * gtk/Makefile.am: Update accordingly.
16630
16631         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
16632         made externally visible.
16633
16634         * gtk/gtkmain.c: Use it.
16635         
16636         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
16637         is enough.
16638
16639         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
16640
16641 2000-07-24 Elliot Lee <sopwith@redhat.com>
16642         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
16643         individual backends already.
16644         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
16645         again. Yes, there really is a good reason for this, if you are using the gdkregion
16646         internals, and if you're not, why do you care?
16647         * gdk/gdkwindow.c: Fix inverted condition
16648         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
16649         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
16650         * gtk/gtkrange.c: Redraw trough when moving.
16651         * gtk/gtktypeutils.c: Fix warning by adding const cast.
16652         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
16653
16654 2000-07-23  Tor Lillqvist  <tml@iki.fi>
16655
16656         * configure.in: Check for mkstemp and sigsetjmp. Output
16657         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
16658
16659         More work on GDK for Win32. Still in an intermediate state.
16660
16661         * gdk/makefile.cygwin
16662         * gdk/win32/makefile.cygwin: Removed.
16663         
16664         * gdk/makefile.mingw.in
16665         * gdk/win32/makefile.mingw.in: New files.
16666
16667         * gdk/Makefile.am
16668         * gdk/win32/Makefile.am: Generate and distribute them.
16669
16670         * gdk/win32/gdkwindow-win32.h
16671         * gdk/win32/gdkdrawable-win32.h
16672         * gdk/win32/gdkpixmap-win32.h: New files.
16673
16674         * gdk/win32/gdkcolor-win32.c
16675         * gdk/win32/gdkcursor-win32.c
16676         * gdk/win32/gdkdrawable-win32.c
16677         * gdk/win32/gdkgc-win32.c
16678         * gdk/win32/gdkimage-win32.c
16679         * gdk/win32/gdkprivate-win32.h
16680         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
16681         Rename fields and variables called xcursor, xid, etc (these names
16682         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
16683
16684 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
16685
16686         * gtk/gtkentry.[ch]: Fix some problems with vertical
16687         alignment.
16688
16689         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
16690         char/byte confusion.
16691
16692 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
16693
16694         * gtk/gtktextview.c (changed_handler): Fix bug where
16695         redraw wasn't being done properly when height of
16696         dirty region changed.
16697
16698         * demos/Makefile.am: Remove various references to
16699         -lgmodule
16700
16701 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
16702
16703         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
16704         PangoAttrShape to reserve space for pixmaps, add 
16705         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
16706         in the display functions.
16707         
16708         * gtk/testgtk.c (create_layout): Set some more exotic
16709         scrolled window options
16710
16711         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
16712         Add function to set the shadow type of a window, to allow
16713         putting a shadow around widgets such as GtkLayout or GnomeCanvas
16714         which don't draw their own frame.
16715
16716 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
16717
16718         * docs/tutorial/package-db-tutorial.sh: New file for
16719           packaging DocBook format tutorial
16720
16721 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
16722
16723         * docs/tutorial/gtk-tut.sgml: Minor updates
16724
16725         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
16726
16727 2000-07-19  Tor Lillqvist  <tml@iki.fi>
16728
16729         * gtk/gtksignal.c: Fix C++ comment.
16730
16731         * gtk/gtkimmulticontext.c
16732         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
16733         don't return value from void functions.
16734
16735         * gtk/gtk.def: Add gtk_rc_style_unref.
16736
16737 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
16738
16739         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
16740         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
16741         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
16742         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
16743         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
16744         gtk/gtktypeutils.h: Include files outside of the extern "C"
16745         block. Makes some C++ compiler happy. Reported by Denis Vakatov
16746         <vakatov@peony.nlm.nih.gov>.
16747
16748 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
16749
16750         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
16751           Completes first pass. Hurrah!
16752
16753 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
16754
16755         * docs/tutorial/gtk-tut.sgml: More clean ups.
16756
16757 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
16758
16759         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
16760         paint the background of the text area which was accidentally
16761         removed at some point.
16762
16763         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
16764           
16765          - Move most of the functionality from the theme vtable
16766            into GtkRcStyleClass and GtkStyleClass. The moved
16767            vtable functions were changed a bit in the move to
16768            work better in their new home.
16769
16770          - Get rid of the engine and engine_data fields from
16771            GtkRcStyle and GtkStyle; instead the theme
16772            engine derives theme-specific subclasses of GtkRcStyle
16773            and GtkStyle
16774
16775          - Add extra dlsym() found entry point to themes,
16776            theme_create_rc_style().
16777
16778         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
16779         in gtk_style_real_copy.
16780
16781         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
16782         to register a type associated with an engine. (The engine
16783         won't be unloaded as there is an instance of the type.)
16784
16785
16786 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
16787
16788         * docs/tutorial/gtk-tut.sgml: Clean ups.
16789
16790 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
16791
16792         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
16793           of cleaning up to do.
16794
16795 2000-07-15  Tor Lillqvist  <tml@iki.fi>
16796
16797         * gdk/testgdk.c: New file, quick hack to test backends for
16798         pixel-by-pixel correctness of the most simple graphic operations.
16799
16800 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
16801
16802         * Really release 1.3.1
16803         
16804         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
16805         include structure.
16806
16807 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
16808
16809         * Released 1.3.1
16810
16811 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
16812
16813         * gtk/gtktextlayout.c: use FALSE for size_only most
16814         of the time when calling gtk_text_layout_get_line_display()
16815         to avoid causing double reshapes when a redraw follows
16816         immediately after.
16817
16818 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
16819
16820         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
16821         appropriate region and gdk_window_process_updates() so trough
16822         updating doesn't lag behind the window being scrolled.
16823
16824         * gdk/gdkgc.c: Make parent_class pointer static.
16825          
16826 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
16827
16828         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
16829         include <string.h>.
16830          
16831         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
16832         cut-and-paste error in computing memory offset for 4 channels.
16833
16834 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
16835
16836         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
16837         gtk_rc_append_default_pixmap_path(), since it wasn't
16838         adding an interesting path and we don't have a meaningful
16839         default for this value.
16840
16841 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
16842
16843         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
16844         gtk-config to gtk-config-2.0 move gtk_.m4 to
16845         gtk-2.0.m4
16846
16847         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16848         gdk/Makefile.am demos/Makefile.am: Change 
16849         library names to libgtk-1.3.la, etc, so that we
16850         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
16851
16852         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
16853         gdk/Makefile.am gdk/x11/Makfile.am
16854         Move include files into /usr/include/gtk-2.0, 
16855         /usr/lib/gtk-2.0/include/
16856          
16857         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
16858         gtk/gtkintl.h: Change package for gettext from 
16859         gtk+ to gtk20. Put hack in autogen.sh to modify
16860         po/Makefile.in.in after gettextize to make this
16861         possible.
16862
16863         * gtk+.spec: Some updates, not tested.
16864
16865         * gdk-pixbuf/Makefile.am: Move loaders into
16866         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
16867
16868         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
16869         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
16870         to THEMENAME/gtk-2.0/. Move engine directory  to
16871         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
16872         
16873 2000-07-12  Tor Lillqvist  <tml@iki.fi>
16874
16875         Win32 changes, still doesn't build though.
16876
16877         * gdk/makefile.cygwin
16878         * gdk/win32/makefile.cygwin
16879         * gtk/makefile.cygwin: Updates.
16880
16881         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
16882         default values for fg and bg pixel as X11 does (0 and 1), not
16883         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
16884         Use 0 for pen width by default (treated as 1 anyway later, but for
16885         apps that might check the value in the GdkGC).
16886         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
16887         interface to gdk_gc_predraw and _postdraw.
16888
16889         * gdk/win32/gdkwin32.h
16890         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
16891
16892         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
16893         extraneous semicolon.
16894
16895         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
16896
16897         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
16898         not the Win32 bitspixel value.
16899
16900         * gdk/win32/gdkcc-win32.c:
16901         * gdk/win32/gdkcolor-win32.c 
16902         * gdk/win32/gdkprivate-win32.h
16903         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
16904         GDK object structure.
16905
16906 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
16907
16908         * docs/tutorial/gtk_tut_12.es.sgml (name): 
16909         * docs/tutorial/gtk_tut_it.sgml (name): 
16910         * docs/tutorial/gtk_tut_fr.sgml (name): 
16911         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
16912         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
16913
16914 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
16915
16916         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
16917           small changes.
16918
16919 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
16920
16921         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
16922         a bug here, never been here and never fixed anything ;(
16923         (don't segfault if tree->root_tree is NULL, which happens prior
16924         to widget realization, but puke instead).
16925
16926 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
16927
16928         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
16929         add the necessary tokens.
16930
16931         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
16932         (gtk_rc_style_to_style): copy thicknesses.
16933         (gtk_rc_init_style): apply thicknesses.
16934         (gtk_rc_parse_style): parse xthickness and ythickness.
16935
16936         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
16937
16938         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
16939         (gdk_window_new): 
16940         (_gdk_windowing_window_init): 
16941         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
16942         (gdk_pixmap_create_from_data): 
16943         (gdk_bitmap_create_from_data): 
16944         (gdk_pixmap_new): 
16945         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
16946         (gdk_image_new): 
16947         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
16948         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
16949         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
16950         (gdk_colormap_get_system): 
16951         (gdk_colormap_new): 
16952         * gdk/gdkwindow.c (gdk_window_init): 
16953         * gtk/gtkstyle.c (gtk_style_new):
16954         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
16955         * gdk/gdkpixmap.c (gdk_pixmap_init): 
16956         * gtk/gtkrc.c (gtk_rc_style_new):
16957         use g_object_new() instead of g_type_create_instance() which
16958         is a private function for fundamental type implementations.
16959
16960 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
16961
16962         * configure.in: Add check for db2html
16963
16964 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
16965
16966         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
16967         hack to set glib_debug_objects based on gtk_debug_flags.
16968
16969 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
16970
16971         * INSTALL.in: Update the Prerequisites section.
16972
16973         * Makefile.am demos/Makefile.am docs/Makefile.am
16974         docs/tutorial/Makefile.am gdk/x11/Makefile.am
16975         gdk/linux-fb/Makefile.am: Dist fixes
16976
16977 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
16978
16979         * NEWS: 10,000 foot view of 1.3.1 changes.
16980
16981 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
16982
16983         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
16984         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
16985         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
16986         gdk/x11/gdkmain-x11.c: 
16987
16988         Patch from George Lebl to add a GdkGrabStatus enumeration to use
16989         as a return value of gdk_*_grab(). Previously, we just
16990         returned the X11 values directly.
16991
16992 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
16993
16994         * gdk/x11/Makefile.am: Patch from George Lebl to 
16995         install all the headers in the right place.
16996
16997 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
16998
16999         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
17000           initial conversion to DocBook.
17001
17002 2000-07-04  Tor Lillqvist  <tml@iki.fi>
17003
17004         * README.win32: Improve a bit.
17005
17006         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
17007         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
17008         Alt+0nnn on the numpad (used to enter characters by numeric code
17009         from current DOS or ANSI codepage) working correctly, as in other
17010         Windows apps.
17011
17012         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
17013         same argument validity tests as in X11 version.
17014         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
17015
17016         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
17017         definitions in case missing from headers.
17018
17019         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
17020         destroy the window-specific cursor.
17021         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
17022         calling GetModuleHandle(NULL).
17023         (gdk_window_set_cursor): Reworked to always copy the passed cursor
17024         with CopyCursor before setting it as the window-specific
17025         cursor. It is OK for the caller to destroy the GdkCursor (and thus
17026         also its Windows cursor) after calling this function. Destroy any
17027         previous window-specific cursor.
17028
17029 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
17030
17031         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
17032         font charset is iso8859-1, not iso-8859-1.
17033
17034 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
17035
17036         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
17037         Use g_get_charset() instead of g_get_codeset().
17038
17039         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
17040         Comment out some strdup'ing functions to keep timj
17041         happy until we finish fighting this out.
17042
17043 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
17044
17045         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
17046         <= width or height.
17047
17048         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
17049         from 1.2 for parent/child states.
17050
17051         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
17052         of typos.
17053
17054         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
17055         event structures, replace with a generic axes field. Replace 
17056         deviceid/sourec with GdkDevice *device.
17057
17058         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
17059         to extract particular axis use value from event. (Also
17060         can be used for normal X/Y.)
17061
17062         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
17063         allow for arbitrary number of axes, namespace everything
17064         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
17065         everywhere.
17066
17067         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
17068         Get rid of the gdk_input_vtable setup if favor of simply
17069         defining the functions in gdkinput-none/gxi/xfree.c in
17070         a similar fashion to the way that the port structure is 
17071         done.
17072
17073         * gtk/gtkdnd.c: Fix fields of synthesized button press event
17074         for new event structures. 
17075
17076         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
17077         new device interfaces.
17078
17079 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
17080
17081         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
17082         set the initial text.
17083
17084         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
17085         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
17086         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
17087         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
17088
17089         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
17090         pango_layout_set_font_description to simplify.
17091
17092 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
17093
17094         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
17095         pango_layout_set_font_description to simplify.
17096
17097 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
17098
17099         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
17100         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
17101         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
17102
17103         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
17104         PANGO_PIXELS() macro.
17105
17106 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
17107
17108         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
17109         that returns a PangoContext owned by the widget and updated to
17110         match future changes in the widget. Also, make 
17111         gtk_widget_create_pango_layout() use this context. If we ever
17112         add a ::changed signal to PangoContext, this will make things
17113         much more convenient. 
17114
17115         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
17116         in the appropriate places instead of destroying the layouts and
17117         creating new ones.
17118
17119         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
17120         in a few strategic places.
17121
17122 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
17123
17124         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
17125         gtk_widget_size_request() on reparented child, if one. Otherwise,
17126         queue_resize() on the child never results in it getting size-requested
17127         at all.
17128
17129         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
17130         in option menus, so that (with luck) people won't copy it into
17131         their apps in the future.
17132
17133         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
17134         to gtk_option_menu_calc_size. This isn't perfect, but should fix
17135         a lot of problems with changing the size of the menu's menu
17136         items after adding it to the option menu.
17137
17138         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
17139
17140         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
17141         the text direction for a widget changes.
17142
17143         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
17144         ::direction_changed to get rid of various hacks.
17145
17146 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
17147
17148         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
17149         name.
17150
17151 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
17152
17153         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
17154         flag to the structure. Do not call XFreePixmap on pixmaps created
17155         by gdk_pixmap_foreign_new().
17156
17157 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
17158
17159         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
17160         value using GdkRGB functionality given GdkColormap and GdkColor.
17161         (name not final, waiting for inspiration.)
17162         
17163         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
17164         set the foreground/background of a GC using the GC's colormap
17165         and GdkRGB. (name not final, waiting for inspiration.)
17166
17167         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
17168         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
17169
17170         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
17171         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
17172         purely a function of the corresponding colormap. Make
17173         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
17174
17175         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
17176         gdk_pixbuf_*create_from_xpm_* in terms of
17177         gdk_pixbuf_new_from_xpm_data(), move into platform independent
17178         code.
17179
17180         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
17181         advantage of the new draw_rgb_32_image_dithalign.
17182
17183         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
17184
17185         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
17186         on each created GC.
17187
17188         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
17189
17190         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
17191         which we initialize from the drawable when the GC is created,
17192         if the drawable has a colormap.
17193
17194         * gdk/x11/gdkgc-x11.c: include string.h for memset.
17195
17196         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
17197
17198         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
17199
17200 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
17201
17202         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
17203         actually returning expose events, make sure to set
17204         the count field properly.
17205
17206         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
17207         accidentally reintroced bug which always cleared
17208         the graphics_exposures value. 
17209
17210 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
17211
17212         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
17213
17214 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
17215
17216         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
17217
17218 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
17219
17220         * docs/faq/gtk-faq.sgml: Start of Section 6.
17221
17222 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
17223
17224         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
17225         
17226         (Fixes problem with drawing childless frames. Pointed out
17227         by and a first patch from Anders)
17228         
17229         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
17230         compute a child_allocation, even if we don't have a child.
17231
17232         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
17233         Always chain to the parent's impl, even if we don't have a child.
17234
17235 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
17236
17237         * gdk/gdkrgb.c: If possible, create only a single shm segment and
17238         use multiple parts of it instead of creating a bunch of separate
17239         segments, since the maximum number of segments per system is not
17240         large. (This might be worth backporting to GTK+-1.2.x if we make a
17241         new release )
17242
17243         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
17244         structure in preparation for per-colormap GdkRGB.
17245
17246         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
17247         to False when we get EINVAL from shmget so that the caller of
17248         gdk_image_new can retry with a smaller segment size.
17249
17250 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
17251
17252         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
17253
17254 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
17255
17256         * configure.in: make the current version number 1.3.1 (binary age 0,
17257         interface age 0).
17258         
17259         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
17260         gtkcompat.h is all we want.
17261
17262         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
17263         GLib primitive types. fixed g_type_register_fundamental() argument
17264         ordering.
17265
17266         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
17267         compiles.
17268
17269         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
17270         object code cleanup, comment trigraph fixes, etc...
17271
17272 2000-06-23  Havoc Pennington  <hp@redhat.com>
17273
17274         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
17275         instead of making up a bogus name for first_para_mark
17276
17277         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
17278         0 as a context ID
17279
17280 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
17281
17282         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
17283
17284 2000-06-21  Havoc Pennington  <hp@pobox.com>
17285
17286         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
17287         we didn't check window->bg_pixmap != GDK_NO_BG.
17288
17289         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
17290         gdk-pixbuf
17291
17292 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
17293
17294         * docs/faq/gtk-faq.sgm: Move file to here.
17295           TODO: Update Makfile.am 
17296
17297 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
17298
17299         * docs/gtk-faq.sgm: Add Section 2
17300
17301 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
17302
17303         * docs/gtk-faq.sgm: New file. Start of DocBook
17304           version of the FAQ.
17305
17306 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
17307
17308         * configure.in (GDK_PIXBUF_MAJOR): Define version
17309         numbers for GDK_PIXBUF_*, as they get substituted
17310         into a header file. Need to consider versioning
17311         for gdk-pixbuf more carefully later.
17312
17313 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
17314
17315         Work with srcdir != builddir.   
17316         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
17317         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
17318         * demos/testpixbuf.c: Likewise.
17319         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
17320         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
17321         <gdk/x11/gdkx.h>.
17322         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
17323         "gdk-pixbuf.h".
17324         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
17325
17326 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
17327
17328         * TODO.xml: Change 1.4 version numbers to 2.0.
17329
17330 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
17331
17332         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
17333         fixups to GTK+ standard.
17334
17335 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
17336
17337         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
17338         gdk-pixbuf.
17339
17340         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
17341         fixups for GObject.
17342
17343         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
17344         gdk-pixbuf with GDK dependencies moved into GDK.
17345         
17346         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
17347         move gdk-pixbuf-loader here until GObject has signals.
17348
17349         * demos/: New directory of demos. Move demos from
17350         gdk-pixbuf here.
17351
17352         * demos/pixbuf-init.c: Small bit of code to check for
17353         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
17354         set GDK_PIXBUF_MODULEDIR appropriately.
17355
17356         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
17357         define which no longer makes sense.
17358
17359 2000-06-21  Havoc Pennington  <hp@redhat.com>
17360
17361         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
17362         gtk_get_default_language
17363
17364         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
17365         new function to get the default language
17366
17367         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
17368         s/gtk_text_view_style_values/gtk_text_style_values/
17369
17370         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
17371         Add a "language" field to tags.
17372
17373         (gtk_text_tag_set_arg): Fix bug in setting
17374         "bg_full_height_set" tag.
17375
17376 2000-06-21  Havoc Pennington  <hp@redhat.com>
17377
17378         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
17379         in the interfaces
17380
17381         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
17382         stuff instead when possible.
17383
17384         * gtk/gtktexttypes.h: Delete some unused constants
17385
17386         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
17387         testtextbuffer.c: use glib instead of custom unicode routines
17388
17389 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
17390
17391         * docs/es/: Removed mistakenly added generated sgml
17392
17393         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
17394         Remove outdated info files.
17395
17396         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
17397         Moved tutorial files into subdir
17398
17399         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
17400         subdir.
17401
17402         * docs/man/gtk_button.pod: Remove. (contents will be
17403         integrated into gtk-reference button page.)
17404
17405         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
17406         docs/faq/Makefile.am: Adjust for new organization
17407
17408 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
17409
17410         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
17411         not $(MKINSTALLDIRS)
17412
17413 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
17414
17415         * gtk/testgtk.c (create_text): Finish the job Elliot started
17416         of removing font setting test for text widget. (Since text widget
17417         and GdkFont are not deprecated, and cause portability problems.)
17418
17419 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
17420
17421         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
17422         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
17423         Remove use of libunicode in favor of new GLib functions.
17424
17425         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
17426         nano-x, framebuffer. The X11 include is just a hack until we get
17427         the necessary functions in gdkcolor.h, so there is no reason to
17428         add other includes of platforms.
17429
17430         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
17431         window bigger than the screen change.
17432
17433         * gtk/testgtk.c: Revert some random changes from Elliot
17434         that had no particular point and were causing testgtkrc
17435         not to function correctly.
17436         
17437         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
17438         because GdkSegment and GdkRegionBox have the same fields,
17439         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
17440         results in clearer code.
17441
17442         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
17443         gdk_input_translate_coordinates): Fix missed GdkObjectification
17444
17445 2000-06-18  Elliot Lee  <sopwith@redhat.com>
17446
17447         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
17448         * gtk/gtk{plug,socket}.h: Missed commits from previous.
17449
17450 2000-06-20  Havoc Pennington  <hp@redhat.com>
17451
17452         * modules/linux-fb/Makefile.am: Make this compile
17453         without framebuffer enabled
17454
17455         * gdk/linux-fb/Makefile.am: Add conditional to not build
17456         framebuffer unless specified in configure
17457
17458         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
17459         the size of the target instead of source if -1 was passed for
17460         width/height
17461
17462         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
17463         width/height confusion.
17464
17465 2000-06-19  Havoc Pennington  <hp@redhat.com>
17466
17467         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
17468         GDK_DRAWABLE_XID. In the future, we probably want to make it
17469         faster with G_DISABLE_CHECKS turned on.
17470
17471 2000-06-14  Havoc Pennington  <hp@redhat.com>
17472
17473         * gdk/Makefile.am: add gdkpixmap.c
17474
17475         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
17476         s/gdk_image_init/_gdk_windowing_image_init
17477
17478         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
17479         ref/unref
17480
17481         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
17482
17483         * gdk/gdkcompat.h: remove GdkWindowType compat, since
17484         GdkWindowType is now non-deprecated; 
17485         change gdk_window_get_type() compat to be
17486         gdk_window_get_window_type().
17487
17488         * gdk/gdkdnd.h: make GdkDragContext a GObject.
17489
17490         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
17491         virtual GObject. Make all functions call into the vtable.
17492         Move gdk_image_put() guts in here. Remove GdkDrawableType
17493         and gdk_drawable_get_type(), these are now GdkWindow-specific.
17494         draw_image, get_depth, get_size, set_colormap, get_colormap,
17495         get_visual added to the vtable.
17496         
17497         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
17498         GObject. Virtualize everything. 
17499         (gdk_gc_new_with_values): remove check for destroyed window,
17500         because now GdkWindow::create_gc will check this.
17501         (gdk_gc_set_values): New function to set GC values, this 
17502         was already implemented but wasn't in the header
17503
17504         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
17505
17506         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
17507         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
17508         remove _gdk_window_class; add _gdk_window_impl_get_type() and
17509         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
17510         _gdk_windowing_window_init, rename gdk_image_init to
17511         _gdk_windowing_image_init.
17512         
17513         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
17514         (gdk_draw_layout): Remove check for destroyed window, 
17515         because all the drawable methods already check it.
17516         
17517         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
17518         Add gdkpixmap.c which contains implementation of GdkDrawable
17519         virtual table (by chaining to a platform-specific implementation
17520         object).
17521         
17522         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
17523         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
17524         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
17525         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
17526         GdkColormapPrivate. 
17527
17528         * gdk/gdktypes.h: #include <glib-object.h>
17529
17530         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
17531         Move most functionality to platform-specific implementation
17532         object. GdkWindow itself now handles the backing store, then
17533         chains to the platform-specific implementation.
17534         (gdk_window_get_window_type): return GdkWindowType of the window.
17535         (gdk_window_peek_children): New routine, returns the children of 
17536         a GdkWindow
17537         (gdk_window_get_children): Was in X11-specific code and did 
17538         XQueryTree. Changed to simply return a copy of window->children; 
17539         so it can go in cross-platform code.
17540         
17541         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
17542
17543         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
17544         GdkColormap; just changed to use the new private data instead
17545         of casting to GdkColormapPrivate.
17546
17547         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
17548         gdk_cursor_new().
17549
17550         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
17551         (private data member in the GObject). 
17552         (xdnd_manager_source_filter): Function had broken 
17553         error handling, fix it (use gdk_error_trap_push).
17554
17555         * gdk/x11/gdkdrawable-x11.c: This file now implements
17556         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
17557         base class is purely for the convenience of the X port,
17558         and not part of the interface to cross-platform GDK.
17559
17560         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
17561         
17562         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
17563         specific to X, and returned by the create_gc virtual method
17564         of GdkDrawableImplX11. 
17565         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
17566         rather than gchar, this was also changed in the GdkGC vtable.
17567         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
17568         mask is 0, return immediately, instead of checking every flag.
17569         This is faster, and keeps us from segfaulting if values is NULL
17570         and the mask contains some nonzero flags.
17571
17572         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
17573         GdkWindow.
17574
17575         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
17576         GdkWindowPrivate is gone.
17577
17578         * gdk/x11/gdkim-x11.c: rename things that got renamed.
17579
17580         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
17581         remove the image_put stuff that got transferred to GdkDrawable.
17582         
17583         * gdk/x11/gdkinput.c: renamings
17584
17585         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
17586
17587         * gdk/x11/gdkpixmap-x11.c: GObject conversion
17588
17589         * gdk/x11/gdkprivate-x11.h: indentation fixes
17590
17591         * gdk/x11/gdkproperty-x11.c: renamings
17592
17593         * gdk/x11/gdkselection-x11.c: renamings
17594
17595         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
17596         implements the platform-specific "impl" object.
17597         Moved gdk_window_get_children to gdk/gdkwindow.c
17598
17599         * gdk/x11/gdkx.h: Remove all the private structs and private datas
17600         that no longer exist. Add declaration of GdkGCX11 object here.
17601         Fix all the macros to still work. 
17602
17603         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
17604         GdkDragContext from the boxed types since they are now GObjects.
17605
17606         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
17607         moved xthickness/ythickness into the instance. GtkStyleClass
17608         functions are now in the standard vtable for GtkStyle, so you have
17609         to create a GObject subclass to write a theme engine.
17610         (gtk_style_copy): fixed a leaked PangoFontDescription
17611         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
17612         can be the standard GObject function.
17613         
17614         * Throughout GTK:
17615         s/style->klass->[xy]thickness/style->[xy]thickness
17616         s/pango_layout_unref/g_object_unref/
17617
17618         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
17619         
17620         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
17621         accessing GDK internals.
17622
17623         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
17624         accessing GDK internals.
17625
17626 2000-06-18  Elliot Lee  <sopwith@redhat.com>
17627
17628         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
17629
17630         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
17631         problem by calculating event position relative to the trough
17632         rather than the slider.
17633         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
17634
17635         * gdk/gdkgc.h: Add GDK_NOR.
17636
17637         * configure.in, Makefile.am: Add modules top level dir
17638         * configure.in: Only use pangox library if building x11 target.
17639         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
17640
17641 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
17642
17643         * gtk/gtkcolorsel.c: Change private class member to be named
17644         private_data throughout the file.
17645
17646         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
17647         private_data to avoid clashing with keyword.
17648
17649 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
17650
17651         * gdk/gdkdnd.h: Add comment to remove warning.
17652
17653 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
17654
17655         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
17656         Byelorussian language; changed the Makefile and file names 
17657         to reflect that.
17658
17659 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
17660
17661         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
17662         rather than gdk_window_hide; this makes things work
17663         correctly if the window is programmatically hidden while
17664         iconified.
17665
17666 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
17667
17668         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
17669         cut and paste typo where wrong pixmap was being
17670         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
17671
17672 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
17673
17674         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
17675         Add helper function to compute format / bytes 
17676         relationship. Use in a couple places to fix up
17677         errors which assume 8 * format.
17678
17679         * gtk/gtkselection.c (gtk_selection_request): Use 32
17680         rather than 8 * sizeof (GdkAtom), to work correctly
17681         on Alpha.
17682
17683 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
17684
17685         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
17686         libgtk.la
17687         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
17688         versions
17689
17690         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
17691         checking macros return NULL since the function has a return value.
17692
17693 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
17694
17695         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
17696         GTK+ from building at all.
17697
17698         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
17699
17700 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
17701
17702         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
17703         gtk/Makefile.am: make it possible to configure gtk for different
17704         targets on the same platform. The library name is now 
17705         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
17706         flag. Only the x11 target compiles right now.
17707         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
17708         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
17709         * gdk/nanox/gdk*generic*: delete generic region code.
17710         * gdk/linux-fb/gdk*generic*: delete generic region code.
17711         * README.nanox: update information.
17712         
17713 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
17714
17715         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
17716         prepend not append. (Pointed out by Brett Hall.)
17717
17718 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
17719
17720         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
17721
17722 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
17723
17724         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
17725         need this later, and this makes sure that the atexit for
17726         glib gets called after that for GDK, so atexits are
17727         properly ordered for object leak checking.
17728
17729         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
17730
17731         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
17732         pango_x_shutdown_display()
17733
17734         * gtk/simple.c (main): Close window on destroy.
17735
17736 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
17737
17738         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
17739         to treat initial creation different from setting with 
17740         regards to the graphics-exposures parameter, so add a parameter
17741         indicating whether this is initial or not.
17742
17743 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
17744
17745         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
17746         to sort of work by adding an extra return_exposes arg
17747         to gdk_event_translate() - it might be better to simply
17748         deprecate the function altogether and force people to rewrite
17749         without it. gdk_window_scroll() handles most of it, and where
17750         gdk_window_scroll() doesn't work, simply redrawing more does.
17751
17752         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
17753         assertion.
17754
17755         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
17756
17757         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
17758         bunch of pretty much useless /* Print debugging info */ comments 
17759         which had drifted away from the code they were commenting.
17760
17761 2000-06-02  Havoc Pennington  <hp@pobox.com>
17762
17763         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
17764         is in working order.
17765         
17766         * gtk/testtext.c: Change to reflect anonymous mark API
17767
17768         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
17769
17770         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
17771         field, which was unused.
17772
17773         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
17774         saves some typing.
17775
17776         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
17777
17778         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
17779         flag on the insertion point and selection bound
17780
17781         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
17782         make mark-manipulation functions take a GtkTextMark* instead of a
17783         mark name.
17784         
17785         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
17786         GtkTextMarkBody; will be used to detect attempts to delete
17787         the permanent marks (insert and selection bound)
17788
17789         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
17790
17791 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
17792
17793         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
17794         flag to on.
17795
17796         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
17797         Honor DOUBLE_BUFFRED_FLAG
17798
17799         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
17800         function to set the DOUBLE_BUFFERED flag.
17801
17802         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
17803         or not exposes done on the widget should be double-buffered.
17804
17805         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
17806         to be what would be expected. (Fixes problem with a
17807         g_return_if_fail() validating a TextDirection enumeration)
17808
17809 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
17810
17811         * gtk/gtkwidget.c: Remove all references to 
17812         offscreen flag which was no longer used.
17813
17814         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
17815
17816         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
17817         for non-null label_widget->parent.
17818
17819         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
17820         which no longer was used.
17821
17822         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
17823
17824         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
17825         for null arguments.
17826
17827         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
17828         check for destroyed windows.
17829
17830 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
17831
17832         * gtk/gtkimmulticontext.c: Add a finalize method and unref
17833         the slave context there.
17834
17835         * gtk/gtkinvisible.[ch]: Make reference counting behavior
17836         identical to GtkWindow.
17837
17838 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
17839
17840         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
17841         pangox to here, so we can write them independent of rendering
17842         system, using GDK primitives.
17843
17844         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
17845         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
17846         since we have a rendering-system independent implementation in
17847         terms of draw_glyphs().
17848         
17849         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
17850         function to render a single line.
17851
17852         * gdk/x11/gdkpango.c: Move the guts of this file mostly
17853         into ../gdkpango.c, which simplifies things, since we
17854         don't have to deal with raw X gc's.
17855
17856 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
17857
17858         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
17859         get the logical attributes for a given GtkTextLine.
17860
17861 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
17862
17863         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
17864         g_locale_get_codeset() to g_get_codeset() change.
17865
17866 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
17867
17868         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
17869         descriptions.
17870
17871         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
17872         the entry.
17873
17874         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
17875         redoing (vastly simplifying) for Pango. Still needs quite
17876         a bit of work. (Size selection is currently poor. List of 
17877         predefined sizes is not a good idea, since all of these
17878         sizes won't necessarily be distinct.)
17879
17880 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
17881
17882         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
17883         CODESET results for LANG=C.
17884
17885 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
17886
17887         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
17888         which takes a stringized pango font description;
17889         ignore the older 'font' and 'fontset' declarations.
17890
17891         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
17892         field with a GdkFont derived via gdk_font_from_description(),
17893         for compatibility. (Should we just remove it entirely?
17894         Probably too much compatibility breakage, but people
17895         should be migrating to the new Pango stuff as quickly
17896         as possible.)
17897
17898 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
17899
17900         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
17901
17902 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
17903
17904         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
17905         redoing; there are some bugs in size allocation right
17906         now, the semi-existant distinction between header / day
17907         fonts was removed, but, with Pango, could actually
17908         be made functional in a nice way.
17909         
17910         * gtk/testcalender: Move calender from examples into this
17911         directory as a test program. (We really need to restrcture
17912         testgtk into a whole directory full of tests for every
17913         widget or functionality group, separated into multiple .c
17914         files.)
17915
17916 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
17917
17918         * gtk/testgtk.c (file_exists): Fix stupid typo that
17919         was keeping RC file from being loaded.
17920
17921         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
17922         RC file font code.
17923
17924 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
17925
17926         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
17927         Add function to load a GdkFont from a PangoFontDescription.
17928
17929 2000-05-29  Tor Lillqvist  <tml@iki.fi>
17930
17931         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
17932         variable should be of type GdkEventPrivate.
17933
17934 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
17935
17936         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
17937         to have any widget for the label, use a GtkLabel widget
17938         to display the text. (Based partially on a patch from
17939         Anders Carlson.)
17940
17941         (Quite a bit of code reorganization - strip 90% of the
17942         guts out of gtkaspectframe and add a single virtual
17943         func to GtkFrameClass - compute_child_allocation.)
17944
17945 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
17946
17947         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
17948         (Removed clist->row_center_offset field because caching
17949         it wasn't saving time or code, added private function
17950         _gtk_clist_create_cell_layout()).
17951
17952 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
17953
17954         * gtk/gtkaccellabel.c: Pangoized.
17955
17956         * gtk/[hv]ruler.c: Pangoized
17957
17958 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
17959
17960         * gtk/gtkfilesel.c (gtk_file_selection_init):
17961         Use gtk_clist_set_column_auto_resize() to remove need
17962         need for manual column width computations.
17963
17964 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
17965
17966         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
17967         ensuring Pango correctness, and considerably simplifying the
17968         code.
17969         
17970         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
17971
17972         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
17973         getting of numbers of lines.
17974
17975         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
17976         to the actual requested width of the lable, not to the wrap
17977         width we set.
17978
17979         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
17980
17981         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
17982           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
17983
17984         * gtk/gtktextview.c: Fix structure inheritance.
17985
17986         * gtk/gtkprogressbar.c: Pangoize.
17987
17988 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
17989
17990         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
17991         in a function.
17992
17993         * gtk/gtktextlayout.c (find_display_line_above): Fixed
17994         bug with computing line tops.
17995
17996         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
17997
17998 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
17999
18000         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
18001         and y_offset coordinates to do what we need now. (The offset between
18002         buffer and layout coordinates has been reintroduced, but is a 
18003         bit different than before.)
18004
18005         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
18006         handle the adjustments ourselves, and scroll as necessary using
18007         the new gdk_window_scroll().
18008         
18009         The advantage of this is that when we are incrementally revalidating,
18010         we are essentially rearranging things around the visible portion
18011         of the screen. With the old setup, the visible portion of the
18012         screen was moved around in the layout, so scrolling and redrawing
18013         to track that caused jumping of the display. Since we now
18014         control the scrolling ourselves, we can suppress this and
18015         only redraw when things actually change.
18016
18017 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
18018
18019         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
18020         the region not just redisplay it after-all, since we store the
18021         cursors in the LineDisplay. (Ugly interactions here between
18022         GtkLayout and GtkTextBTree here.)
18023         
18024         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
18025
18026 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
18027
18028         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
18029         Added function to scroll contents of a window while keeping the
18030         window constant. Works by XCopyArea or guffaw-scrolling depending
18031         on the details of how the window is set up. (guffaw-scrolling
18032         still needs to be filled in.)
18033
18034 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
18035
18036         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
18037         move the debugging that was tied to a global variable
18038         to that.
18039
18040         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
18041
18042         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
18043         validated flag, in line data instead of setting height/width to
18044         -1. This allows us to perform operations with partially invalid
18045         buffer (using the old size for invalid lines) and thus to do
18046         incremental vaidation. Keep height/width aggregates up to date
18047         when deleting text and rebalancing the tree.
18048
18049         * gtk/gtktextbtree.[ch]: Add functions validate a line
18050         (gtk_text_btree_validate_line), and to validate up
18051         to a number of pixels (gtk_text_btree_validate).
18052
18053         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
18054         that indicates that something is changed and a revalidation
18055         pass is needed. Change ::need_repaint to ::changed, and
18056         make it take old and new yranges instead of a rectangle.
18057
18058         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
18059         the line_data_destroy() function from 
18060         gtk_text_btree_add_view() to a virtual function in 
18061         GtkTextLayout
18062
18063         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
18064         since we are handling partial repaints in a different fashion
18065         now.
18066
18067         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
18068         of the selection instead of queueing a repaint on the
18069         entire widget.
18070
18071         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
18072         get_selection_bounds() down to btree, make the function
18073         in buffer a wrapper around the btree function.
18074
18075         * gtk/gtktextlayout.[ch]: Add functions to check if the
18076         layout is valid and to recompute either a range of pixels
18077         aroudn a line or a certain total number of pixels.
18078
18079         * gtk/gtktextlayout.[ch]: Cache a single line display;
18080         now that we only redraw the needed portions, the hit rate
18081         for this cache is quite high.
18082         
18083         * gtk/gtktextview.[ch]: Keep track of the first paragraph
18084         on the screen so that when re-laying-out the buffer, we can
18085         keep the same place. This requires connecting to ::value_changed
18086         on the adjustments
18087
18088         * gtk/gtktextview.[ch]: Add idle functions to revalidate
18089         the buffer after we receive an ::invalidated signal.
18090         
18091 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
18092
18093         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
18094         to max of allocation and layout size, not just to the
18095         layout size.
18096
18097         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
18098         Invalidate window so it gets redrawn properly.
18099
18100         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
18101         to mean the entire window.
18102
18103         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
18104         into public header.
18105
18106 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
18107
18108         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
18109         to get the name of a mark.
18110
18111         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
18112         to find the paragraph from a y position.
18113
18114 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
18115
18116         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
18117         nodes have width/height >= 0, not > 0.
18118
18119 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
18120
18121         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
18122         Add a size_only flag, so when we only need the size, we don't create
18123         useless appearance attributes.
18124
18125         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
18126         duplicate setting of font description.
18127
18128         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
18129
18130 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
18131
18132         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
18133         EXTRA_DIST. It does not work well when the file that
18134         everything depends on is not in the tarball.
18135
18136 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
18137
18138         * gtk/testgtk.c: Some hacks and fixes so that it basically
18139         works when not sitting in the GTK+ build tree.
18140
18141 2000-05-03  Havoc Pennington  <hp@redhat.com>
18142
18143         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
18144         Properly determine the ordering of the tag root and the current
18145         line within the tree. Previous algorithm only worked if the tag
18146         root's immediate parent was the common root of both the current
18147         line and the tag root.
18148
18149 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
18150
18151         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
18152         alignment.
18153
18154         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
18155         the widget text directional dynamically.
18156
18157         * gtk/gtktextview.[ch]: Added functions to get and set default
18158         wrap mode.
18159
18160 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
18161
18162         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
18163         in cursor location computation.
18164
18165 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
18166
18167         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
18168         vadjusment values properly when layout gets smaller.
18169
18170         * gtk/gtktextview.c (need_repaint_handler): Areas being
18171         passed in are far completely inaccurate, and sometimes
18172         too small, so, for now, just queue a redraw on the
18173         whole visible region.
18174
18175 2000-04-25  Havoc Pennington  <hp@redhat.com>
18176
18177         * gtk/gtktextbtree.c (summary_destroy): new function to 
18178         destroy tag summary nodes
18179         (gtk_text_line_next_could_contain_tag): this function was 
18180         totally broken if the line passed in wasn't below the tag
18181         root. Fix it.
18182         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
18183         "wildcard" case, we have to do a linear scan. Blah.
18184         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
18185         we have to do the linear scan
18186         (tag_removed_cb): When a tag is removed from the tag table, 
18187         remove the GtkTextTagInfo node from the btree.
18188         (gtk_text_btree_spew): Implement the spew function, for 
18189         our debugging pleasure.
18190
18191 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
18192
18193         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
18194         a problem with referring to the wrong buffer.
18195
18196         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
18197
18198         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
18199         font description to gtk_style_new() - otherwise things
18200         don't work without a .gtkrc file.
18201
18202         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
18203         tags table if we create it ourself, too.
18204
18205         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
18206         it was conflicting with XKB modifiers.
18207
18208         * gtk/gtktextview.[ch]: Add simple support for 
18209         GtkIMContext.
18210
18211 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
18212
18213         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
18214         with deletion from last commit.
18215
18216 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
18217
18218         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
18219         in the context from the current locale.
18220         
18221         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
18222         context, not hardcoded value.
18223
18224         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
18225         not logical.
18226
18227 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18228
18229         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
18230         attributes - that doesn't handle partial-glyph selection
18231         properly. Instead use new pango_layout_line_get_x_ranges()
18232         functionality to draw the selection.
18233
18234         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
18235         now properly handles out-of-range coordinates.
18236
18237         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
18238
18239         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
18240         public.
18241
18242         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
18243         for paragraphs opposite to the base direction of the widget.
18244
18245         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
18246
18247         * gtk/gtktextlayout.c: Don't split segments on marks, since that
18248         causes Arabic words to reshape as you cursor through.
18249
18250         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
18251         cursor position when moving vertically with the arrow keys and
18252         scrolling with page-up/page-down. (Arrow keys save only the X,
18253         scrolling saves both X and Y.)
18254
18255         This means you can line-up / line-down or page-up / page-down
18256         without losing your place, and also that moving vertically
18257         with the cursor keys keeps the same X position, not the same
18258         character count:
18259
18260         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
18261         arrow keys move by display lines, not paragraphs.
18262
18263 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
18264
18265         * gtk/gtklayout.c: Make sure that the bin window is at least
18266         as big as the allocation. (Should we also make sure that the
18267         bin window is big enough to completely cover widget->window?)
18268
18269         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
18270         function to get the onscreen rectangle.
18271
18272         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
18273         for offsets in window coordinates.
18274
18275 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
18276
18277         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
18278         confusion.
18279
18280         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
18281         from the widget direction.
18282
18283         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
18284         Add a "direction" attribute.
18285
18286         * gtk/gtktextview.c: global s/tkxt/text_view/.
18287
18288         * gtk/testtext.c: Added long block of text in Arabic, to test out
18289         the direction attributes. (Some problems with the shaping system
18290         for arabic become obvious - like the fact the cursor splits words
18291         into unjoined pieces.)
18292
18293 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
18294
18295         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
18296
18297         * gtk/gtktextlayout.c: Fix up alignment.
18298
18299         * gtk/testtext.c: Add some tests for centering, wrapping.
18300
18301 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
18302
18303         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
18304         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
18305         If we wrote GTK+-specific layout-render function this could just replace
18306         the draw_layout() operation in the vtable.
18307
18308         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
18309         pango_layout_get_cursor_pos() and use that function.
18310
18311         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
18312         is a non-static symbol.
18313
18314         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
18315         with gtk_text_btree_find_line_by_y()
18316
18317         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
18318         renderer that handles GtkTextAppearance attributes.
18319
18320         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
18321
18322           - Move the values in the style that don't affect geometry into a
18323             GtkTextAppearance structure.
18324           - Change underline to take a PangoUnderline and "font" a string
18325             representation of a font description
18326           - Add a "font_desc" attribute which takes a FontDescription structure.
18327
18328         * gtk/gtktextlayout.[ch]:
18329
18330           - Get rid of the display-line list per each line. Instead, we
18331             generate, on demand, a GtkTextLineDisplay structure which]
18332             contains a PangoLayout * and other necesary information
18333             (offsets, cursor locations) for displaying a paragraph.
18334           - Get rid of the code to wrap lines, create display chunks,
18335             etc. Instead, we just go through a paragraph and convert
18336             it into the necessary inputs to a PangoLayout.
18337           - Implement a new attribute type, GtkTextAttrAppearance. This
18338             holds a GtkTextAppearance, and is used to pass colors, 
18339             stipple, etc, through from the layout to the display without
18340             having to use lots and lots of individual attributes.
18341           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
18342             in terms of PangoLayout functions.
18343         
18344         * gtk/gtktextview.c: 
18345          
18346           - Handle passing the necessary PangoContext to the layout
18347           - Some fixups in painting to deal with the automatic backing store
18348             and offsetting of GTK+-1.4
18349           - Add a style_set handler so that the default style reacts
18350             properly to theme changes.
18351         
18352         * gtk/gtktext?*.[ch]: Random code-style fixes.
18353
18354         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
18355
18356 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
18357
18358         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
18359         in original form preparatory to Pango-ization and gdkimcontext-ization.
18360
18361 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
18362
18363         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
18364         so that we can derive from gtkimcontext in language bindings properly.
18365
18366 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
18367
18368         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
18369         Add a compose table including (almost) all the compose combinations
18370         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
18371         data in the XIM implementation.
18372
18373         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
18374         Moved functions to convert keyvalues from and to unicode here from
18375         the win32 port and made them public.
18376
18377 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
18378
18379         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
18380
18381 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
18382
18383         * gtk/gtkimcontext.[ch]: Base class for new input context system
18384
18385         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
18386         the real input context implementation to be loaded from modules
18387         and switched on the fly.
18388
18389         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
18390         context that just does direct keysymbol => unicode translation.
18391
18392         * gtk/gtkentry.[ch]: Start switching editing over to using
18393         GtkInputContext. (No handling of preedit yet.)
18394
18395 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
18396
18397         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
18398         many substitutions. (klass should not be subsituted.)
18399
18400 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
18401
18402         * configure.in: Add checks for Pango
18403
18404         * configure.in docs/Makefile.am: Add test for sgml2html
18405         and allow 'make dist' without building html, but print out
18406         warnings in that case. (For making snapshots)
18407
18408         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
18409         Add Pango libraries and C flags
18410
18411         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
18412         Add function (gdk_draw_layout) to draw a pango layout.
18413
18414         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
18415         for getting Pango contexts for GDK.
18416
18417         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
18418
18419         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
18420         editing.
18421
18422         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
18423         keysym => unicode translations. More languages can be added
18424         here, but real input-method support is needed.
18425
18426         * docs/Changes-1.4.txt: Added note about entry behavior.
18427         
18428         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
18429         to set the reading direction for a widget and the global direction.
18430         Add test which allows toggling the global direction. Two private
18431         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
18432
18433         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
18434           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
18435
18436         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
18437
18438         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
18439         underlining now handled by Pango.
18440
18441         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
18442         to RCStyle and Style. (Having both this and the old font name and GdkFont 
18443         is temporary.)
18444
18445         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
18446         convenience functions for creating contexts and layouts for widgets.
18447
18448         * gtk/testgtk.c: Enhance label tests with multilingual labels.
18449
18450 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
18451
18452         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
18453         titles to be active, even if they aren't visible.
18454         (gtk_clist_column_titles_passive):  Ditto.
18455
18456 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
18457
18458         * gtkmenu.c:
18459         * gtkmenu.h:
18460         * gtktypeutils.h: Spelling/grammar fixes in comments.
18461
18462 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
18463
18464         * gdk/nanox/*.h: add missing header files.
18465
18466 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
18467
18468         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
18469         send_event to TRUE.
18470         (gtk_drawing_area_size): queue a resize.
18471
18472 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
18473
18474         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
18475         the handlers, also invalidate them. bug nailed down by Karl Nelson
18476         <kenelson@ece.ucdavis.edu>.
18477
18478 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
18479
18480         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
18481         "(nil)" foundries, patch from Grigorios Magklis.
18482
18483         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
18484         on non-available fonts, based on a patch by Grigorios Magklis
18485         <maglis@cs.rochester.edu>.
18486
18487 2000-05-18  Elliot Lee  <sopwith@redhat.com>
18488
18489         * gdk/x11/gdkregion-generic.c: If a region does not have any
18490         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
18491         instead of GDK_OVERLAP_RECTANGLE_IN.
18492
18493 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
18494
18495         * gtk/gtklayout.c (gtk_layout_map): Remove references to
18496         OFFSCREEN, as it is no longer necessary.
18497
18498 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
18499
18500         * gtk/gtkcolorsel.c: Patch from David Santiago
18501         <mrcooger@cyberverse.com> to change things so that the 
18502         indicator of the active palette entry is done independently,
18503         not via the focus, since it should always be visible.
18504
18505 2000-05-17  Tor Lillqvist  <tml@iki.fi>
18506
18507         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
18508         refcount leaks as in the X11 backend.
18509
18510         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
18511         cosmetics.
18512
18513         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
18514         backend. Add _gdk_windowing_window_destroy().
18515
18516         * gtk/gtkcolorsel.c: Include correct backend-specific header.
18517         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
18518         either, but these probably do exist on nanox?)
18519         
18520         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
18521         which isn't necessarily defined by <math.h>.
18522
18523         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
18524         ancestry past GtkObject.
18525
18526         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
18527         from DLL on Win32.
18528
18529         * gtk/gtk.def: Update corresponding to recent changes.
18530
18531         * gtk/makefile.{cygwin,msc}: Updates.
18532
18533 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
18534
18535         * docs/Changes-1.4.txt: A bit of editing.
18536
18537         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
18538         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
18539         to clear the update area for the window, and clear it
18540         when hiding a window.
18541
18542         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
18543         if window destroyed.
18544
18545         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
18546
18547         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
18548         gdk_window_destroy() to the generic code, since there was a lot of 
18549         window-system-independent logic it in. Add a function:
18550         
18551          _gdk_window_destroy() 
18552
18553         to the internal API to destroy a window without unreferencing it.
18554         Add a function:
18555
18556          _gdk_windowing_window_destroy()
18557
18558         That does the windowing-system-dependent part of destroying 
18559         the window.
18560
18561 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
18562
18563         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
18564
18565 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
18566
18567         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
18568         Make gtk_widget_shape_combine_mask() keep a reference count on
18569         the pixmap since it keeps it around.
18570
18571 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
18572
18573         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
18574         leak.
18575
18576         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
18577         leak with event filters.
18578
18579 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
18580
18581         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
18582         signal handlers with the right data arguments. (Fixes
18583         some warnings when a widget was repeatedly set as a drag
18584         destination.)
18585
18586         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
18587         window so we can avoid avoid setting the DND properties on the
18588         toplevel window repeatedly.
18589
18590 2000-05-13  Tor Lillqvist  <tml@iki.fi>
18591
18592         * gdk/win32/gdkwin32.h: Define more message types missing from
18593         mingw headers.
18594
18595         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
18596         call gdk_window_destroy_notify(). It was never called. This
18597         probably meant that the GdkWindow was never freed. Thanks Owen for
18598         noticing (!).
18599
18600         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
18601         window as destroyed before calling DestroyWindow(). DestroyWindow()
18602         causes a call to the window procedure (gdk_WindowProc), which
18603         calls gdk_event_translate(), which calls
18604         gdk_window_destroy_notify(), which gets confused unless the window
18605         is set as destroyed.
18606
18607         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
18608         this function to indicate it's win32 only. Put inside #ifdef
18609         G_ENABLE_DEBUG.
18610
18611         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
18612         debugging function. (gdk_event_translate:) Add a default branch
18613         that uses the above function to print debug messages with all
18614         Windows messages symbolically.
18615
18616         * gdk/win32/gdkprivate-win32.h: Declare it, and
18617         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
18618
18619 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
18620
18621         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
18622         public header file.
18623
18624 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
18625
18626         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
18627
18628         * gtk/gtktext.c: made the adjustments no-construct args, simply
18629         provide default adjustments.
18630         (gtk_text_destroy): release adjustments.
18631
18632         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
18633         adjustment argument non-construct.
18634
18635         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
18636         instead of in finalize.
18637         (gtk_progress_get_text_from_value): 
18638         (gtk_progress_get_current_text): 
18639         (gtk_progress_set_value): 
18640         (gtk_progress_get_percentage_from_value): 
18641         (gtk_progress_get_current_percentage): 
18642         (gtk_progress_set_percentage): 
18643         (gtk_progress_configure): ensure an adjustment is present.
18644
18645 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
18646
18647         * gtk/gtkcolorsel.[hc]:
18648         * gtk/gtkcolorseldialog.[hc]:
18649         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
18650         their parent implementation, use bit fields for boolean values, don't
18651         create unused widgets, usage of glib types, braces go on their own
18652         lines, function argument alignment, #include directives etc. etc. etc..
18653
18654         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
18655
18656 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
18657
18658         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
18659
18660         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
18661         of NULL.
18662
18663         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
18664         to freed data.
18665         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
18666
18667         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
18668         to NULL when the toplevel is getting destroyed.
18669         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
18670         (gtk_menu_destroy): 
18671         (gtk_menu_init): store the information of whether we have to
18672         readd the initial child ref_count during destruction in a new
18673         GtkMenu field needs_destruction_ref_count.
18674
18675         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
18676         here, those reading: learn from my mistake! ;)
18677         in order for set_?adjustment to support a default adjustemnt if
18678         invoked with an adjustment pointer of NULL, the code read (pseudo):
18679         if (v->adjustment) unref (v->adjustment);
18680         if (!adjustment) adjustment = adjustment_new ();
18681         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
18682         now imagine the first unref to actually free the old adjustment and
18683         adjustment_new() creating a new adjustment from the very same memory
18684         portion. here, the latter comparision will unintendedly fail, and
18685         all hell breaks loose.
18686         (gtk_viewport_set_hadjustment):
18687         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
18688         after unreferencing it.
18689
18690         * gtk/gtkcontainer.[hc]: removed toplevel registration
18691         functions: gtk_container_register_toplevel(),
18692         gtk_container_unregister_toplevel() and
18693         gtk_container_get_toplevels() which had wrong semantics
18694         anyways: it didn't reference and copy the list.
18695
18696         * gtk/gtkwindow.c: we take over the container toplevel registration
18697         bussiness now. windows are registered across multiple destructions,
18698         untill they are finalized. the initial implicit reference count
18699         users are holding on windows is removed with the first destruction
18700         though.
18701         (gtk_window_init): ref & sink and set has_user_ref_count, got
18702         rid of gtk_container_register_toplevel() call. add window to
18703         toplevel_list.
18704         (gtk_window_destroy): unref the window if has_user_ref_count
18705         is still set, got rid of call to
18706         gtk_container_unregister_toplevel().
18707         (gtk_window_finalize): remove window from toplevel list.
18708         (gtk_window_list_toplevels): new function to return a newly
18709         created list with referenced toplevels.
18710         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
18711
18712         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
18713         adjustment a non-construct arg.
18714         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
18715         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
18716         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
18717
18718         * gtk/gtkrange.c: added some realized checks.
18719         (gtk_range_destroy): get rid of the h/v adjustments in the
18720         destroy handler instead of finalize. remove timer.
18721         (gtk_range_get_adjustment): demand create adjustment.
18722
18723         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
18724         we simply create them on demand now and get rid of them in
18725         the destroy handler.
18726         (gtk_viewport_destroy): get rid of the h/v adjustments in the
18727         destroy handler instead of finalize.
18728         (gtk_viewport_get_hadjustment): 
18729         (gtk_viewport_get_vadjustment): 
18730         (gtk_viewport_size_allocate): demand create h/v adjustment
18731         if required.
18732
18733         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
18734         gtk_widget_real_destroy () functionality.
18735         (gtk_widget_real_destroy): reinitialize with a new style, instead
18736         of setting widget->style to NULL.
18737
18738 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
18739
18740         * gtk/gtkcalendar.c:
18741         * gtk/gtkbutton.c: ported _get_type() implementation over to
18742         GType, either to preserve memchunks allocation facilities,
18743         or because Gtk+ 1.0 GtkTypeInfo was still being used.
18744
18745         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
18746         over. prepare for ::destroy to be emitted multiple times.
18747         removed reference tracer magic. chain into GObjectClass.shutdown()
18748         to emit ::destroy signal.
18749
18750         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
18751         fundamental.
18752
18753         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
18754         cludge.
18755
18756         * gtk/gtksocket.c:
18757         * gtk/gtkplug.c:
18758         * gtk/gtklayout.c:
18759         * gtk/gtklabel.c:
18760         * gtk/gtkargcollector.c:
18761         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
18762         not being a fundamental anymore, and to work with the new
18763         type system (nuked fundamental type varargs clutter).
18764
18765         * gtk/*.c: install finalize handlers in the GObjectClass
18766         part of the class structure.
18767         changed direct GTK_OBJECT()->klass accesses to
18768         GTK_*_GET_CLASS().
18769         changed direct object_class->type accesses to GTK_CLASS_TYPE().
18770
18771         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
18772         GType. made most of the GTK_*() type macros and Gtk* typedefs
18773         simple wrappers around macros and types provided by GType.
18774         most notably, a significant portion of the old API vanished:
18775         GTK_TYPE_MAKE(),
18776         GTK_TYPE_SEQNO(),
18777         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
18778         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
18779         GTK_TYPE_ARGS,
18780         GTK_TYPE_CALLBACK,
18781         GTK_TYPE_C_CALLBACK,
18782         GTK_TYPE_FOREIGN,
18783         GtkTypeQuery,
18784         gtk_type_query(),
18785         gtk_type_set_varargs_type(),
18786         gtk_type_get_varargs_type(),
18787         gtk_type_check_object_cast(),
18788         gtk_type_check_class_cast(),
18789         gtk_type_describe_tree(),
18790         gtk_type_describe_heritage(),
18791         gtk_type_free(),
18792         gtk_type_children_types(),
18793         gtk_type_set_chunk_alloc(),
18794         gtk_type_register_enum(),
18795         gtk_type_register_flags(),
18796         gtk_type_parent_class().
18797         replacements, where available are described in ../docs/Changes-1.4.txt.
18798         implemented compatibility functions for the remaining API.
18799
18800         * configure.in: depend on glib 1.3.1, use gobject module.
18801
18802 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
18803
18804         * TODO.xml: Various updates to current status.
18805
18806 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
18807
18808         * gtk.m4: Print out version when test succeeds.
18809
18810 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
18811
18812         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
18813         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
18814         
18815         (Original triangle color selector from Simon Budig
18816         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
18817         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
18818         Santiago <mrcooger@cyberverse.com>)
18819
18820         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
18821         out into a separate widget.
18822
18823         * gtk/testgtk.c: Add some checkbuttons for toggling palette
18824         and opacity controls.
18825
18826 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
18827
18828         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
18829         snuck in prematurely.
18830
18831 2000-05-07  Tor Lillqvist  <tml@iki.fi>
18832
18833         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
18834         had deleted a ! operator by mistake, which caused
18835         GDK_SELECTION_CLEAR events never to be generated, which caused
18836         only the first copy to the clipboard from an gtkeditable to
18837         actually cause a copy to the Windows clipboard.
18838
18839 2000-05-06  Tor Lillqvist  <tml@iki.fi>
18840
18841         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
18842         compilation, too. Current mingw gcc distributions include the
18843         necessary headers. Also the necessary IIDs are now in mingw
18844         headers/libraries, and own definitions unnecessary.
18845
18846         More hacking on OLE2 DND, still doesn't work though, and thus
18847         ifdeffed out.
18848
18849         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
18850         here, too.
18851
18852 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
18853
18854         * gdk/nanox/*: nano-X port work in progress.
18855         * gdk/simple.c: simple test for Gdk.
18856         * README.nanox: notes about the port: read this first!
18857         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
18858         with nano-X.
18859
18860 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
18861
18862         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
18863         gdk_window_clear() into common code, implement in terms of
18864         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
18865         not redirected to the backing rectangle.
18866
18867 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
18868
18869         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
18870         EXTRA_DIST. It does not work well when the file that
18871         everything depends on is not in the tarball.
18872
18873 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
18874
18875         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
18876         with recursion where process_updates() is called from
18877         an expose handler. (GtkTextView is highly broken in
18878         doing this, but it should work, so it is a nice test
18879         case.)
18880
18881 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
18882
18883         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
18884         handle the case where updates are queued during processing of
18885         updates.
18886
18887 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
18888
18889         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
18890         window is on gdk_display - use that instead of segfaulting.
18891
18892 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
18893
18894         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
18895         broken and require an empty arg, give it to them.
18896
18897 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
18898
18899         * gtk/gtklabel.h: indentation fixes.
18900
18901 2000-05-02  Tor Lillqvist  <tml@iki.fi>
18902
18903         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
18904         draw too narrow or too low arcs, they seem to fail, at least with
18905         some display drivers.
18906
18907         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
18908
18909         Large changes to the Win32 backend, partially made necessary by
18910         the changes to the backend-independent internal
18911         structures. Attempts to implement similar backing store stuff as
18912         on X11. The current (CVS) version of the Win32 backend is *not* as
18913         stable as it was before the no-flicker branch was merged. A
18914         zipfile with that version is available from
18915         http://www.gimp.org/win32/. That should be use by "production"
18916         code until this CVS version is usable. (But note, the Win32
18917         backend has never been claimed to be "production quality".)
18918
18919         * README.win32: Add the above comment about versions.
18920
18921         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
18922
18923         * gdk/gdk.def: Update.
18924
18925         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
18926         presumably be replaced by some more better mechanism as 1.4 gets
18927         closer to release shape.
18928
18929         * gdk/makefile.{cygwin,msc}: Update.
18930
18931         * gdk/win32/*.c: Correct inclusions of the backend-specific and
18932         internal headers. Change code according to changes in these. Use
18933         gdk_drawable_*, not gdk_window_* where necessary.
18934
18935         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
18936         our old DND.
18937
18938         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
18939         to interpret single characters as UTF-8. Thanks to Hans Breuer.
18940         Use correct function name in warning messages.
18941
18942         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
18943         GSourceFuncs gdk_event_prepare and gdk_event_check.
18944         (gdk_event_get_graphics_expose): Do implement, use
18945         PeekMessage. Thanks to Hans Breuer.
18946         (event_mask_string): Debugging function to print an GdkEventMask.
18947         (gdk_pointer_grab): Use it.
18948
18949         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
18950         (old) book I used claimed was Hangul actually is CJK Unified
18951         Ideographs Extension A. Also, Hangul Syllables were missing.
18952         Improve logging.
18953
18954         * gdk/win32/gdkgc-win32.c: Largish changes.
18955
18956         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
18957         g_win32_getlocale() from GLib, and not setlocale() to get current
18958         locale name.
18959
18960         * gdk/win32/gdkprivate-win32.h
18961         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
18962         gdkwin32.h, similarily as in the X11 backend.
18963
18964         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
18965         assignment was used instead of equals in if test. Thanks to Hans
18966         Breuer.
18967
18968         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
18969         the X11 version.
18970
18971         * gdk/win32/makefile.{cygwin,msc}
18972         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
18973         path to the Win32 headers that works also with the mingw compiler.
18974
18975         * gtk/gtkstyle.c: Include <string.h>.
18976
18977 2000-04-26  Havoc Pennington  <hp@redhat.com>
18978
18979         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
18980         replacing the broken gtk_label_get ()
18981
18982 2000-04-15  Havoc Pennington  <hp@pobox.com>
18983
18984         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
18985         this keeps scanner scripts from getting confused.
18986
18987         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
18988         data, rather than void
18989
18990 2000-04-15  Tor Lillqvist  <tml@iki.fi>
18991
18992         * gtk/gtkclist.c (gtk_clist_motion)
18993         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
18994         with is_hint FALSE, get x and y from the event. They used to be
18995         used uninitialised. The Win32 backend never sends motion events
18996         marked as hints. This for instance fixes the annoying file and
18997         font selector behaviour in the Win32 version.
18998
18999 2000-04-14  Tor Lillqvist  <tml@iki.fi>
19000
19001         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
19002         gtk_private_n_signals variables, they are used by some software,
19003         sigh.
19004
19005         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
19006         installation directory from the Registry, where the installer
19007         should have put it.
19008
19009 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
19010
19011         * gdk/x11/Makefile.am: Fix problem with installation directory for
19012         gdkx.h
19013
19014         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
19015         <mrcooger@cyberverse.com> so that when selecting menus with the
19016         mouse, the first item will not be selected, but when selecting
19017         with an accelerator, or navigating left-right on a menubar with
19018         the menus popped up, the first item will be selected.
19019
19020 2000-04-05  Dan Damian  <dand@dnttm.ro>
19021
19022         * configure.in: Added "ro" to ALL_LINGUAS.
19023
19024 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
19025
19026         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
19027         indentation.
19028
19029         * Makefile.am (EXTRA_DIST): Fix typo.
19030
19031         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
19032         to catch gdkconfig.h
19033
19034         * gtk/gtkitemfactory.c: Added FIXME.
19035
19036 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
19037
19038         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
19039         s/return_if_fail/return_val_if_fail/g and add a return value.
19040
19041 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
19042
19043         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
19044         merge slipup.
19045
19046         * gdk/gdkinput.h: Fix missing line from merge.
19047
19048 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
19049
19050         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
19051         instead of gdkprivate.h.
19052
19053 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
19054
19055         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
19056         parent class to correctly be GtkDialogClass.
19057
19058 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
19059
19060         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
19061         toplevel windows and their immediate children by their parents,
19062         since the size of toplevel windows is out of our immediate
19063         control and we don't get any real benefit from trying to track
19064         this size for clipping.
19065
19066         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
19067         for input_only windows.
19068
19069         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
19070         to fix some hacks and make sure that we don't try to set the
19071         background of input only windows.
19072
19073 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
19074
19075         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
19076         the _really_ internal stuff, and leave gdkprivate.h for the fake private
19077         stuff that we've traditionally exposed.
19078
19079         * gdk/**.c: Use gdkinternals.h where appropriate.
19080
19081         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
19082         not include gdkprivate-x11.h, move all stuff of conceivable public
19083         interest into gdkx.h; keep all really private stuff in
19084         uninstalled header gdkprivate-x11.h.
19085
19086         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
19087         image->image_put on windows through a new function _gdk_window_draw_image()
19088         to allow us to do backing store for images. (Sort of ugly)
19089
19090         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
19091         contexts locally so that we can offset them properly when drawing 
19092         onto backing pixmaps.
19093
19094         * gdk/gdkinput.h: Reindented
19095
19096         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
19097         pixmap or color for the window, so we can properly initialize
19098         our double-buffer pixmaps, and also so that we temporarily set
19099         a background of None while scrolling.
19100
19101         * gdk/gdkregion.h: Revise region boolean operators to have an
19102         interface that is actually convenient - switch from creating new
19103         regions on every op, to "methods" that modify existing regions
19104         (A = A OP B). 3 argument forms which allow dest == src, would also
19105         be possible, but the current interfaces seem to map nicely
19106         onto what needs to be done. (There is quite a lot of region
19107         code in GDK now.)
19108
19109         * gdk/gdkregion.h: Add constructor from rectangle and a copy
19110         operator.
19111
19112         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
19113         gdkpoly-generic.h: Copy region code from Xlib, switch it over
19114         to 32 bit coordinates, modify it to be mostly GTK+ style
19115         and to have interfaces that match gdkregion.h.
19116
19117         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
19118         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
19119         create a backing pixmap and redirect all drawing to
19120         that backing pixmap until a matching gdk_window_end_paint().
19121
19122         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
19123         Create a special drawable class for GtkWindow's that 
19124         redirects the drawing to the backing pixmap as necessary
19125         and then calls the real operations in _gdk_windowing_window_class.
19126
19127         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
19128         Store invalid region for each window. Generate expose events for invalid
19129         region in an idle. This replaces both the expose compression
19130         and the redrawing queuing in GTK+. It is both more efficient and
19131         simpler than either one individually and far more so then the
19132         combination.
19133
19134         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
19135         Emulate 32 bit coordinates for windows with 16 bit coordinates
19136         by offsetting drawing, guffaw scrolling techniques and
19137         mapping/unmapping child windows as necessary.
19138
19139         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
19140         where, when invalid regions are processed, the region is stored,
19141         and if expose events come in that are detectably duplicate
19142         the processed exposes (by comparison of event serial numbers),
19143         the stored region is subtracted out of those exposes.
19144
19145         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
19146         regions newly exposed when scrolling or resizing windows.
19147         This, combined with forcing processesing of queued invalidated
19148         regions, gives nice flicker-free scrolling.
19149
19150         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
19151         invalidated regions after every scroll.
19152
19153         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
19154         emulation in GDK. Its, for all practical purposes just a
19155         GtkViewport/GtkFixed hybrid now.
19156
19157         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
19158         (16-bit) structures as necessary instead of just casting.
19159
19160         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
19161         in terms of the structures from gdkregion-generic.c, using appropriate
19162         offsets from GDK to X11 coordinates. Cache clip mask and
19163         origin and ts origin locally and only flush to the server
19164         when drawing, to avoid constantly setting and resetting these
19165         values when offsetting GC's for scrolling and backing pixmaps.
19166
19167         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
19168
19169         * gtk/gtkcontainer.c: Call process_all_updates at end
19170         of resizing to reduce flicker. (Avoids having redraw
19171         lag arbitrarily behind resize under some circumstances)
19172
19173         * gtk/gtkentry.c: Remove old backing store code, and simply take
19174         advantage of the new backing store capabilities of GDK.
19175
19176         * gtk/gtkmain.c: Simple implementation of widget backing
19177         store - simply push a paint while handling each expose.
19178         (Should really be configurable widget for widget.)
19179         
19180         * gtk/gtkwidget.c: Remove all the old complicated redraw
19181         code, and simply invalidate the GDK windows from
19182         gdk_window_queue_clear(), etc. (Sigh, so much carefully
19183         debugged complexity ... gone to the winds.)
19184
19185         Remove all the code for suppressing expose events while
19186         resizes are pending; this isn't needed since the invalid
19187         areas won't be processed until after the resizes are
19188         processed, since they are in a lower priority idle.
19189
19190 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
19191
19192         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
19193         and height of dest rectangle for non-intersecting rectangles.
19194
19195 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
19196
19197         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
19198         for GdkRectangle.
19199
19200 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
19201
19202         * gdk/gdk{events,image,private,types,window}.h
19203          gdk/x11/gdkinputprivate.h: Change all coordinates
19204          from int16 to int. Also, Change width and height from
19205          unsigned to signed to avoid all the stupid C 
19206          signedness bugs.
19207
19208 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
19209
19210         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
19211         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
19212         Add some more detailed checking.
19213
19214         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
19215         New function to retrieve the depth of a drawable.
19216
19217         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
19218         field, reorder fields to save memory. 
19219
19220 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
19221
19222         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
19223         of the background image instead of scaling the background down to
19224         a line.
19225
19226         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
19227         which temporarily set slider to wrong size.
19228
19229         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
19230         queue_clear().
19231
19232 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
19233
19234 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
19235
19236         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
19237
19238 2000-03-17  Tor Lillqvist  <tml@iki.fi>
19239
19240         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
19241         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
19242
19243         * gdk/win32/gdkfont-win32.c
19244         * gdk/win32/gdkproperty-win32.c
19245         * gdk/win32/gdkselection-win32.c
19246         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
19247         now declared such.
19248
19249 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
19250
19251         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
19252
19253 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
19254
19255         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
19256         is called without trapping X errors.
19257
19258 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
19259
19260         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
19261         way into the fontset lists.
19262
19263 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
19264
19265         * gtk/gtkthemes.h: add extern "C" scope.
19266
19267 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
19268
19269         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
19270         to make appends to the list constant. (gtk-guy-990901-0.patch)
19271
19272 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
19273
19274         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
19275         for the typename hash table.
19276
19277 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
19278
19279         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
19280         to make sure we never divide by zero. 
19281         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
19282
19283 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
19284
19285         * gtk/gtkfontsel.c: Apply patch from
19286         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
19287         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
19288
19289         Also, some cleanups in atom handling.
19290
19291 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
19292
19293         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
19294         not GtkWidget.
19295
19296 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
19297
19298         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
19299         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
19300         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
19301         more guint wrap-around bugs before going to bed.
19302
19303 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
19304
19305         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
19306         guint wrap arounds in allocation.width.
19307
19308         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
19309         process untill we fit the allocation given.
19310
19311 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
19312
19313         * gtk/gtkwidget.c:
19314         (gtk_widget_unrealize): guard widget access with ref/unref
19315         around signal emission.
19316         (gtk_widget_hide): same here, but also check its destroyed
19317         state before queueing a resize.
19318
19319 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
19320
19321         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
19322         of gtk_default_insensitive_bg as insensitive base color.
19323
19324         * gtk/gtktext.c (gtk_text_style_set): set the background color according
19325         to the widget's state.
19326         (gtk_text_realize): same here.
19327         (gtk_text_state_changed): same here.
19328         (draw_bg_rect): compare background color against base[] from
19329         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
19330
19331 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
19332
19333         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
19334         grabs are active, unless a delete event is send to the toplevel
19335         of the currently grab holding widget.
19336
19337 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
19338
19339         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
19340         debugging g_print's.
19341
19342 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
19343
19344         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
19345         ever make the scrolled-window requisition ever depend on the 
19346         visibility state of the scrollbars for the AUTOMATIC policy. 
19347         This breaks the GTK+ requisition model, and causes loops.
19348
19349 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
19350
19351         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
19352         the default font to avoid problems with XFree86-4.0 where the
19353         default charset is iso10646-1, not iso8859-1.
19354
19355 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
19356
19357         * acinclude.m4
19358         * config.guess
19359         * config.sub
19360         * ltconfig
19361         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
19362
19363         * gtk/Makefile.am: minor cosmetic consistency tweak
19364
19365 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
19366
19367         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
19368         the activate_time to 0, so that we handle a quick
19369         press/release press/release properly and don't suppress
19370         the second release. (Red Hat bug #7545)
19371
19372 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
19373
19374         * gtk/gtkctree.c (row_delete):
19375         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
19376         bugs with destruction notifier, *always* update internal
19377         structures *before* calling user code.
19378
19379 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
19380
19381         A few more fixes for bug #5487, #2051, #2677.
19382         * gtk/gtkclist.c : 
19383         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
19384         not GDK_BUTTON_PRESS.
19385         (resync_selection): resync only if selection_mode is
19386         GTK_SELECTION_EXTENDED
19387         * gtk/gtkctree.c (resync_selection): same here
19388
19389 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
19390
19391         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
19392         gdk_drag_get_selection() and gtk_menu_detach().
19393
19394         [ From Jeroen Ruigrok/Asmodai ]
19395
19396 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
19397
19398         * gtk/gtknotebook.c (gtk_notebook_size_request): 
19399         page->tab_label can be NULL.
19400
19401 2000-01-25  Havoc Pennington  <hp@pobox.com>
19402         
19403         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
19404         arg is boolean
19405
19406         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
19407
19408         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
19409
19410         * gdk/gdkproperty.c (gdk_property_get): return boolean
19411
19412         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
19413
19414         * gdk/gdkim.c (gdk_im_ready): return boolean
19415
19416         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
19417
19418         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
19419         glib clash, should fix glib)
19420
19421         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
19422         (gdk_get_show_events): return gboolean, and canonicalize 
19423         to TRUE/FALSE
19424
19425         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
19426         colormap is private
19427         (gdk_colors_alloc): gboolean whether to be contiguous
19428         (gdk_color_equal): return gboolean since we are a predicate
19429         and not a qsort() (this looks semi-wrong due to glib breakage,
19430         IMO glib should be fixed)
19431         
19432         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
19433         (gdk_get_use_xshm): return gboolean
19434         (gdk_pointer_is_grabbed): return gboolean
19435
19436         * gdk/gdk.h: Change prototypes to match all the above changes,
19437         and re-run egtk-format-protos as required.
19438
19439 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
19440
19441         * gtk/gtkctree.c (resync_selection): 
19442         * gtk/gtkclist.c (resync_selection):
19443
19444         Return immediately if clist->drag_pos < 0. This is a workaround
19445         for the corrupt state that the clist gets into when a
19446         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
19447
19448         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
19449         
19450         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
19451         variable from recent commit.
19452
19453 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
19454
19455         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
19456
19457 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
19458
19459         * gtk/Makefile.am: prefix all autogenerated source that get build in
19460         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
19461         in builddir. since we subsequently cd into srcdir for autogeneration,
19462         the paths have to be stripped from the target file names, thusly we
19463         use $(@F) as target names now.
19464         put a comment about configure.in's --disable-rebuilds option,
19465         which can be used for non-writable source directories, for development
19466         setups though, srcdir has to be *writable*.
19467
19468 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
19469
19470         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
19471           Finish the job of allowing event to be NULL.
19472           (Fixes bug #4283, reported by Chris Blizzard)
19473
19474         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
19475           things so that the cursor appears on screen, properly
19476           take into account INNER_BORDER.
19477           (Fixes bug #4754, reported by Antonio Campos)
19478
19479 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
19480
19481         * gtk/gtknotebook.c (gtk_notebook_map): Don't
19482           show the tab_label unless it itself is visible.
19483
19484           gtk/gtknotebook.c (gtk_notebook_size_request):
19485           Do a better job of making sure that the visibility
19486           of the tab label corresponds to whether it should
19487           be mapped or not.
19488
19489 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
19490
19491         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
19492           Use the requisition, not the allocation, since the
19493           allocation has not necessarily been computed yet.
19494           (Pointed out by Eugene Osintsev)
19495
19496 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
19497
19498         * gtk/gtkstyle.c (gtk_style_new): Dont' set
19499           style/base[GTK_STATE_INSENSITIVE] both to
19500           gtk_default_insensitive_bg!
19501           (Bug #2187, reported by Jonathan Blandford)
19502
19503         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
19504           Add Alt_L, Alt_R to list of invalid accelerators.
19505           (Bug #3736, reported by Vlad Harchev)
19506
19507 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
19508
19509         * gtk/gtkfilesel.c (open_ref_dir): Fix several
19510         bugs which occured after an attempt to open 
19511         invalid home directory left cmpl_state->reference_dir == NULL.
19512
19513          - completion on files in home directory didn't work
19514          - completion on an empty string caused  segfault
19515
19516          (Bug #3678, reported by Steve Ratcliffe)
19517
19518         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
19519         cut and paste error that was causing scales to
19520         be incorrectly positioned.
19521         (Bug #2956,
19522          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
19523
19524 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
19525
19526         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
19527         when checking for dcgettext, if we've found we needed
19528         it for dgettext.
19529 +
19530 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
19531
19532         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
19533         queue_clear on NO_WINDOW widgets during a reparent,
19534         since at that point the window and widget heirarchies
19535         are out of sync. This stops crashing in some cases
19536         (the scrolled window reparent test, for instance), and
19537         _probably_ won't cause drawing errors.
19538
19539         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
19540         test do what it was supposed to do and be robust against
19541         window closings, etc. (Bug #2443)
19542
19543 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
19544
19545         * gtk/gtkentry.c: Fix return values on mouse events.
19546         (Bug #2686, Sky <seb_sky@yahoo.com>)
19547
19548         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
19549         (pointed out by George Lebl)
19550
19551         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
19552         (From Ettore Perazzoli  <ettore@helixcode.com>)
19553  
19554 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
19555
19556         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
19557         clicks between rows or outside calender area correctly.
19558         (Patch from Damon Chaplin)
19559
19560         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
19561         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
19562           Call destroy function when overwriting existing data. 
19563           (Pointed out by Damon Chaplin)
19564
19565 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
19566
19567         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
19568           which was causing problems on various systems with Xmu.
19569           This hasn't been needed for a very long time.
19570           (Fixes #1185 3167)
19571
19572 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
19573
19574         * gdk/gdki18n.h: Include <ctype.h> when defining
19575           gdk_isw* in terms of is* as a fallback.
19576           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
19577
19578 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
19579
19580         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
19581           realize the widget when it is size allocated!
19582           (old, old bug)
19583
19584         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
19585           Removed unused call to gdk_window_get_size() that
19586           showed up when the above was fixed.
19587
19588 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
19589
19590         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
19591           fix up widget->window when the widget is a
19592           NO_WINDOW container widget.
19593
19594 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
19595
19596         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
19597           to account for the fact that feof() does _not_ 
19598           return TRUE on errors, and thus avoid infinite loops
19599           when trying to use gdk_pixmap_create_from_xpm()
19600           on unreadable values.
19601
19602 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
19603
19604         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
19605
19606 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
19607
19608         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
19609           gdk_gc_set_dashes to take gint8 instead of gchar to
19610           make it clearer that it is _not_ a NULL terminated string.
19611
19612         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
19613           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
19614           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
19615           arguments.
19616
19617 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
19618
19619         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
19620         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
19621         background size relative to our allocation, guard against small
19622         allocations, we may have not yet been size allocated.
19623
19624 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
19625
19626         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
19627         not just version == 3. We implement all 3 + most of 4 - 
19628         (we don't support matching text/plain;charset=iso-8859-1
19629         to a dest that expects text/plain). We'll still advertise
19630         3 to be safe, but any client implementing version >= 3
19631         must interoperate with 3.
19632         
19633 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
19634
19635         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
19636         background and gc members, add a warning in gtk_tooltips_set_color()
19637         indicating that this function is deprecated.
19638
19639 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
19640
19641         * docs/gtkfaq.sgml: FAQ Update:
19642           - Minor cleanups (Emmanuel, me)
19643           - New questions:
19644                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
19645                 How can I retrieve the text from a GtkMenuItem? (timj)
19646                 How do I validate/limit/filter the input to a GtkEntry? (me)
19647                 Memory does not seem to be released when I free the list
19648                         nodes I've allocated (timj)
19649
19650 2000-03-07  Tor Lillqvist  <tml@iki.fi>
19651
19652         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
19653         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
19654         for which it is no use to call GetLastError onWin9x.
19655         (gdk_other_api_failed) New function, for general error
19656         reporting without calling GetLastError.
19657         (gdk_win32_api_failed) OTOH, this function always calls
19658         GetLastError. (gdk_win32_last_error_string) Remove this function,
19659         GLib has the equivalent now.
19660
19661         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
19662         call them with function name, file name and line number in the
19663         arguments.
19664
19665         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
19666         functions.
19667         
19668         * gtk/gtk.def: Add some missing entry points.
19669
19670         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19671         gtk_paned_set_gutter_size, which don't exist any longer, as void.
19672         
19673         Fixes by Hans Breuer:
19674
19675         * gdk/makefile.msc: Update for debugging.
19676
19677         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
19678         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
19679         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
19680         in the dash_list.
19681
19682         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
19683         the x11 backend.
19684
19685         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
19686
19687         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
19688
19689 2000-03-04  Tor Lillqvist  <tml@iki.fi>
19690
19691         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
19692         just pixel value of background colour.
19693
19694         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
19695         containing code snippet previously duplicated in a couple of
19696         places.
19697         
19698         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
19699         gdk_colormap_color.
19700
19701         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
19702         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
19703         events for autorepeated Shift, Control and Alt keys. Use
19704         gdk_colormap_color.
19705
19706         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
19707         pointer is inside the window the cursor of which we are setting,
19708         call SetCursor immediately.
19709
19710         * gdk/win32/makefile.cygwin
19711         * gtk/makefile.cygwin: If we don't have the build number stamp
19712         file, use zero.
19713
19714         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
19715         gtk_paned_set_gutter_size as empty.
19716
19717         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
19718         
19719 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
19720
19721         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
19722           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
19723           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
19724           docs/gtk_tut.sgml docs/gtk.texi TODO:
19725
19726           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
19727
19728 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
19729
19730         * gtk/gtkcalendar.c: Implement num_marked_dates,
19731           and don't emit mutiple day_selected signals on
19732           month_prev.
19733
19734 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
19735
19736         * docs/make-todo (lineno): let title and logo be configurable so
19737         that GNOME can use this script too.
19738
19739         * TODO.xml: added logourl and a title
19740
19741 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
19742
19743         * TODO.xml: Added some UI items, and an explanatory
19744         comment at the top of the file.
19745
19746 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
19747
19748         * TODO.xml: some updates, added abunch of new entries.
19749         a note for those fiddeling with this file, when done
19750         with it, invoke:
19751         $ ./docs/make-todo TODO.xml >/dev/null
19752         and correct output errors before comitting changes.
19753
19754 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
19755
19756         * TODO.xml: Added XML-structured TODO file.
19757         * docs/make-todo: python script to turn TODO.xml into
19758           pretty XML output. 
19759
19760 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
19761
19762         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
19763         the function to let it draw the seven dots, instead of the old,
19764         much maligned, method.
19765         (draw_dot): New function to draw a dot.
19766
19767         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
19768         to draw the handle inside the border width as opposed to outside.
19769         Use paint function instead of gdk_draw_point.
19770
19771         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
19772         to draw the handle inside the border width as opposed to outside.
19773         Use paint function instead of gdk_draw_point.
19774
19775         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
19776         Change indenting to be more GTK like.
19777
19778 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
19779
19780         * docs/gtk_tut.sgml: New section on GtkCalendar
19781         * examples/calendar: Update example code
19782
19783 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
19784
19785         * docs/gtkfaq.sgml: FAQ Update
19786
19787 2000-02-19  Anders Carlsson  <andersca@gnu.org>
19788
19789         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
19790         to prevent the scroll event to be propagated upwards.
19791
19792 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
19793
19794         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
19795         OwnerGrabButtonMask from button entries for
19796         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
19797
19798         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
19799         to the event mask (which will result in button/press release
19800         being added to the event mask on Unix) so scrolling works
19801         for layouts in scroll windows.
19802
19803         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
19804
19805         Patch from Anders Carlsson  <andersca@gnu.org> to add
19806         a scroll event.
19807
19808         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
19809         scrolling to the "Test Scrolling" part of testgtk.
19810  
19811         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
19812  
19813         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
19814         it against GDK_SCROLL.
19815  
19816         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
19817         way of mouse wheel scrolling.
19818  
19819         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
19820  
19821         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
19822  
19823         * gtk/gtkmain.c: Removed previous mouse wheel hack.
19824  
19825         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
19826         gdk_event_mask_table.
19827  
19828         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
19829         GdkEventScroll handler.
19830  
19831         * gdk/gdkevents.h: Added GdkEventScroll structure.
19832  
19833 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
19834
19835         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
19836         and Anders Carlsson to change the Paned widgets so that they
19837         can be dragged from anywhere along the length. Also change
19838         the way that this is drawn to make this apparent.
19839
19840         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
19841         from George Lebl to check that option_menu->menu is present
19842         before getting history.
19843
19844 2000-02-14  Tor Lillqvist  <tml@iki.fi>
19845
19846         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
19847         before the assertion for non-NULL segment list.
19848
19849         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
19850         Seems that pattern brushes *must* be 8x8 pixels! At least on my
19851         machine, but it might be display driver dependent. Sigh, so make
19852         sure the stipple is that size. Does Windows suck or what?
19853
19854         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
19855         places.
19856
19857 2000-02-13  Havoc Pennington  <hp@pobox.com>
19858
19859         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
19860         refcount to 1
19861         (gdk_cursor_new): init refcount to 1
19862
19863         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
19864
19865 2000-02-13  Tor Lillqvist  <tml@iki.fi>
19866
19867         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
19868         so that we don't have to do unnecessary settings to the HDC.
19869
19870         * gdk/win32/gdkdrawable-win32.c
19871         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
19872         gdk_gc_predraw.
19873
19874         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
19875         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
19876         GDI paths, call WidenPath to get the outline of the stroken path,
19877         and then fill the outline (with the brush that was built from the
19878         stipple).
19879
19880         * gdk/win32/gdkgc-win32.c: Factor out common code from
19881         _gdk_win32_gc_new and gdk_win32_gc_set_values into
19882         gdk_win32_gc_values_to_win32values. Use correct colour for
19883         SetBkColor() (Until now the code actually used a random colour in
19884         the call to SetBkColor()... but that didn't show up as not many
19885         GDI APIs use the background colour. Pattern (opaque stippled)
19886         brushes do.)
19887
19888         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
19889         gdk_win32_api_failed): New functions for error logging.
19890
19891         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
19892         WIN32_API_FAILED to call them, passing function or file name and
19893         line number.
19894
19895         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
19896
19897         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
19898         GdkColor for foreground and background in GdkGCWin32Data.
19899
19900         * gdk/makefile.cygwin: Link in the resource object separately.
19901
19902         * gdk/win32/rc/gdk.rc
19903         * gtk/gtk.rc (New file)
19904         * gdk/win32/makefile.cygwin
19905         * gtk/makefile.cygwin: Update build number in DLLs automatically,
19906         as in GLib.
19907
19908 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
19909
19910         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
19911         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
19912         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
19913         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
19914         parameters given and cursor->ref_count. coding style fixups.
19915
19916         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
19917         not GtkWidget.
19918         
19919         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
19920         fix up widget macros and add _GET_CLASS() variant.
19921         
19922         * gtk/*.c: some GtkType fixups.
19923
19924 2000-02-09  Tor Lillqvist  <tml@iki.fi>
19925
19926         * gdk/win32/gdkproperty-win32.c
19927         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
19928         were reversed.
19929
19930 2000-02-04  Tor Lillqvist  <tml@iki.fi>
19931
19932         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
19933         g_filename_to_utf8 to convert the font names Windows gives us from
19934         whatever is the default codepage to UTF-8.
19935         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
19936         in the other direction.
19937
19938         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
19939         error in debugging output.
19940
19941 2000-02-02  Tor Lillqvist  <tml@iki.fi>
19942
19943         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
19944         and height parameters to gdk_window_clear_area(). Not minus one.
19945
19946 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
19947
19948         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
19949         checks if the widget passed to gtk_drag_get_data() was not the
19950         dest widget.
19951
19952 2000-02-01  Tor Lillqvist  <tml@iki.fi>
19953
19954         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
19955         g_filename_from_utf8 functions (which were added a moment ago to
19956         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
19957         size buffers.
19958
19959         gtk_file_selection_get_filename returns the filename in the C
19960         runtime encoding. It calls g_filename_from_utf8, but copies the
19961         returned string to a static buffer, which is returned. I think
19962         this is better than returning the result from g_filename_from_utf8
19963         directly, which would mean all apps that use it would have to free
19964         the return value. Or should this function care about this issue at
19965         all? Maybe a new function with clearly defined semantics.
19966
19967         * gtk/gtkfilesel.h: Add comment about
19968         gtk_file_selection_get_filename returning the filename in the C
19969         runtime's encoding.
19970
19971         * README.win32
19972         * gdk/gdk.def
19973         * gdk/makefile.{cygwin,msc}
19974         * gtk/gtk.def: Updates.
19975
19976         * gdk/gdkcursor-win32.c: Initialise refcount.
19977
19978 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
19979
19980         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
19981
19982 2000-01-30  Havoc Pennington  <hp@pobox.com>
19983
19984         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
19985         destroy
19986
19987         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
19988
19989         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
19990         implemented in platform-specific code
19991
19992         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
19993
19994         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
19995         underscore in front
19996
19997         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
19998         put an underscore in front
19999
20000         * gdk/gdkcursor.c: new file, implements
20001         gdk_cursor_ref/gdk_cursor_unref
20002
20003         * gdk/gdkcursor.h: Refcount GdkCursor
20004
20005         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
20006
20007 2000-01-29  Tor Lillqvist  <tml@iki.fi>
20008
20009         * gdk/gdkwindow.h
20010         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
20011
20012 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
20013
20014         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
20015         structures to properly inherit from GtkWidget not GtkBin.
20016
20017 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
20018
20019         * gtk+.spec.in: Added lib/gtk+/include/* to %files
20020         (bug #5178 - Peter Wainright)
20021         
20022         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
20023         so that it will be installed.
20024         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
20025
20026 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
20027
20028         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
20029         for the GtkStyleClass vtable const.
20030
20031         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
20032         take a const string argument like GtkTranslateFunc. This will
20033         require changes in use code.
20034
20035 2000-01-19  Tor Lillqvist  <tml@iki.fi>
20036
20037         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
20038         semantics (to mimic the X11 backend, which just calls XClearArea)
20039         is to check for zero width (and height), and in that case use the
20040         window's width minus x (height minus y). This fixes for instance
20041         some redraw problems with gtkclist, which were easily noticeable
20042         in the gtk file selection widget.
20043
20044         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
20045         windows.
20046
20047 2000-01-13  Tor Lillqvist  <tml@iki.fi>
20048
20049         * configure.in
20050         * gdk/Makefile.am
20051         * gdk/x11/Makefile.am
20052         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
20053         (bug #5177).
20054         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
20055         out later.
20056
20057 2000-01-09  Tor Lillqvist  <tml@iki.fi>
20058
20059         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
20060         WM_MOVE for iconified or invisible windows. This fixes various
20061         problems when minimising windows. Thanks to Bernd Herd.
20062
20063 2000-01-05  Tor Lillqvist  <tml@iki.fi>
20064
20065         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
20066         backend's draw_lines method, not draw_points.
20067
20068 2000-01-02  Tor Lillqvist  <tml@iki.fi>
20069
20070         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
20071         before Owen's reorganisation: Don't have queued_events and
20072         queued_tail statics in this file, but use gdk_queued_events and
20073         gdk_queued_tail. This makes exposure event compression work again.
20074
20075         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
20076         seem to be needed?
20077
20078 1999-12-30  Tor Lillqvist  <tml@iki.fi>
20079
20080         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
20081         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
20082         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
20083         doesn't do anything.
20084
20085         * gdk/gdk.def: Add gdk_xid_table_insert.
20086
20087         * gdk/win32/gdkprivate-win32.h
20088         * gdk/win32/gdkevents-win32.c
20089         * gdk/win32/gdkinput-win32.c
20090         
20091         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
20092         extension_events field in the GdkWindowWin32Data struct. Use only
20093         the extension_events field in GdkWindowPrivate. Previously one was
20094         set, and the other one tested, which broke tablet
20095         functionality. Thanks to Keishi Suenaga for pointing this out.
20096
20097 1999-12-18  Tor Lillqvist  <tml@iki.fi>
20098
20099         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
20100         When handling a single character (text length == 1), don't handle
20101         it as if it was UTF-8.
20102
20103 1999-12-11  Tor Lillqvist  <tml@iki.fi>
20104
20105         * Makefile.am: Distribute README.win32.
20106         
20107         * gdk/Makefile.am
20108         * gdk/win32/Makefile.am: Distribute Win32 files.
20109
20110         * gdk/makefile.msc: New file.
20111
20112         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
20113         after label).
20114
20115         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
20116         gdk_error_code as GDKVAR, as they are referred outside GDK.
20117
20118         * gdk/win32/makefile.msc: Update.
20119
20120         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
20121         tweaks. Check only if at least one of those Unicode subrange bits
20122         we care for is set. If no code page bits are set, guess (wildly)
20123         based on the charset.
20124
20125         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
20126
20127         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
20128         non-NULL.
20129
20130         * gtk/gtkdnd.c
20131         * gtk/gtklayout.c
20132         * gtk/gtkplug.c
20133         * gtk/gtkselection.c
20134         * gtk/gtksocket.c
20135         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
20136         appropriate. There must be a cleaner way to handle this?
20137
20138         * gtk/gtkrc.c: Must include windows.h on Win32.
20139
20140         * gtk/testgtk.c: No need to include gdkx.h.
20141
20142         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
20143
20144 1999-12-07  Tor Lillqvist  <tml@iki.fi>
20145
20146         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
20147         the rbearing is set to the same as the width, but this should be
20148         fixed.
20149
20150 1999-12-06  Tor Lillqvist  <tml@iki.fi>
20151
20152         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
20153         function. If Windows doesn't tell us what Unicode subranges a font
20154         covers, guesstimate based on the codepages it covers. This will
20155         hopefully help those Windows versions or fonts that don't give us
20156         any useful Unicode subrange information with GetTextCharsetInfo.
20157         Call this function in gdk_font_load_internal.
20158
20159         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
20160         minor changes.
20161
20162 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
20163
20164         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
20165         New function, long needed.
20166
20167 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
20168
20169         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
20170         only_if_exists argument of gdk_atom_intern to
20171         bool.
20172
20173 1999-11-25  Tor Lillqvist  <tml@iki.fi>
20174
20175         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
20176         Fix two copy&paste errors.
20177
20178         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
20179         win32 has changed.
20180
20181         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
20182         GdkWin32SingleFont struct.
20183
20184         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
20185         subranges of loaded fonts. Clear font signature first, in case
20186         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
20187         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
20188
20189         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
20190         Unoffset clip region.
20191
20192 1999-11-23  Tor Lillqvist  <tml@iki.fi>
20193
20194         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
20195         event->any.window before calling filter functions.
20196
20197 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
20198
20199         * gtk/gtkgamma.h: Adapt cast macros to standard.
20200
20201 [ Merges from 1.2 ]
20202
20203 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
20204
20205         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
20206         If translation does not include a '/', use entire
20207         translation instead of crashing.
20208
20209 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
20210
20211         * docs/gtk_tut.sgml:
20212         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
20213
20214 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
20215
20216         * gtk/gtkselection.c (gtk_target_list_remove): Use
20217         g_list_remove_link, not g_list_remove.
20218
20219         [ From Geert Bevin <gbevin@thunderstorms.org> ]
20220         
20221 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
20222
20223         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
20224         statement upon unselection (how the heck did that slip in?).
20225
20226 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
20227
20228         * gtk/gtktext.c (gtk_text_freeze): 
20229         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
20230         in frozen state (and aparently crashes). patch provided by Anders
20231         Melchiorsen <and@kampsax.dtu.dk>.
20232
20233 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
20234
20235         * fix insensitive default/focus widget activation,
20236         reported by Matt Goodall <mgg@isotek.co.uk>.
20237
20238         * gtk/gtkwindow.c (gtk_window_key_press_event): 
20239         (gtk_window_activate_default):
20240         (gtk_window_activate_focus):
20241         return handled=FALSE for actiavtion of insensitive default
20242         widgets. return handled=TRUE for activation of insensitive
20243         focus widgets. don't activate in either case.
20244
20245 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
20246
20247         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
20248         and $glib_cflags to match library order and in the
20249         theory that an old version of GLib is more likely to
20250         be in the include directory for X then vice-versa.
20251         (Bug #2776)
20252
20253 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
20254
20255         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
20256         to determine the locale for fontsets, not LC_MESSAGES;
20257         the user may want English messages with a handling
20258         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
20259         will still be broken) (Bug #2891)
20260
20261 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
20262
20263         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
20264
20265 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
20266
20267         * gtk/gtkrc.ko: Changed the Korean default fontset.
20268
20269 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
20270
20271         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
20272         where when scrolling to the left or top double exposes
20273         were done, causing major slowdowns.
20274
20275 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
20276
20277         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
20278         names to lowercase and alphanumeric, before looking
20279         them up.
20280
20281         * gtk/Makefile.am: Install codeset variant gtkrc files
20282         with normalized names.
20283
20284 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
20285
20286         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
20287         popup menus when the menu is already visible, but its parent
20288         is still hidden, (happens after tornoff window got hidden).
20289
20290 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
20291
20292         * gtk/Makefile.am (install-data-local): Fix
20293         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
20294         deleted, causing error messages on install.
20295
20296 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
20297
20298         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
20299         the handle as well, since we now sometimes ignore
20300         exposes on the handle while resizing.
20301
20302 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
20303
20304         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
20305         extra g_free introduced in one of the last one or two 
20306         commits.
20307
20308 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
20309
20310         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
20311         consistent, put each style that a gtkrc.* file creates
20312         in a unique namespace, remove old files before installing.
20313
20314 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
20315
20316         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
20317         gtk_rc_init is called multiple times. (Yes, people who
20318         do that have bugs in their code.)
20319
20320 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
20321
20322         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
20323         Remove it since it's generated by the Makefile anyway
20324
20325 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
20326
20327         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
20328         device->info.axes for core pointer.
20329
20330 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
20331
20332         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
20333         idle_id, to deal with obsolete, broken C libraries.
20334
20335 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
20336
20337         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
20338         allocation->x/y twice!
20339
20340         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
20341         consistent with gtk_vscale_pos_trough().
20342
20343 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
20344
20345         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
20346         be queueing a resize on a toplevel container between
20347         the time we show it and when we map it. So, we need
20348         to test GTK_WIDGET_VISIBLE() for toplevels, and only
20349         use GTK_WIDGET_DRAWABLE() for child windows.
20350
20351 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
20352
20353         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
20354         (fixes bug #2144)
20355
20356 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
20357
20358         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
20359         container DRAWABLE (instead of VISIBLE), so we don't queue
20360         resizes on non-toplevel containers.
20361
20362 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
20363
20364         * gtk/gtkselection.[ch]: Make the data argument
20365         const guchar *.
20366
20367 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
20368
20369         * gtk/gtkwindow.c: Try to behave sensibly if 
20370         the focus widget is the window itself. (Should
20371         we allow this at all?)
20372
20373 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
20374
20375         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
20376         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
20377         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
20378         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
20379         in prototypes and implementations consistent (Tomas Ogren).
20380
20381         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
20382         before the widget is unparented (reported by damon).
20383
20384         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
20385         since we provide unsigned data anyways.
20386
20387 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
20388
20389         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
20390         the call to gtk_tooltips_layout_text() until later.
20391
20392         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
20393         Call gtk_widget_ensure_style() before using the style.
20394
20395 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
20396
20397         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
20398         for old widgets that don't propagate draws to all
20399         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
20400
20401 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
20402
20403         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
20404         for a redraw but just the widget that requested the resize.
20405
20406 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
20407
20408         * gtk/gtkcontainer.c: added new widget level method
20409         gtk_container_set_reallocate_redraws() and a GtkContainer flag
20410         reallocate_redraws : 1 to reflect the setting, exported this through
20411         the argument system as a boolean ::reallocate_redraws.
20412
20413         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
20414         on the widget because the allocation changes, do so as well for
20415         widget->parent if the parent has reallocate_redraws set to TRUE.
20416         with that containers requesting reallocation redraws get automatically
20417         redrawn if their children changed allocation (this unfortunately
20418         affects also other children that didn't change allocation, but we
20419         cannot work around that before 1.3).
20420
20421 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
20422
20423         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
20424         _and_ height are >0 (not _or_).
20425
20426         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
20427         instead of gtk_container_queue_resize(), which is a core gtk internal
20428         function (must have been on crack when i queued that).
20429
20430         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
20431         we can check more reliably if we want to discard expose events.
20432         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
20433         flag.
20434         
20435         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
20436         we simply trust these events. for deciding whether to discard exposes,
20437         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
20438         
20439 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
20440
20441         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
20442         queues of areas that are completely off screen.
20443
20444         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
20445         logic for handleboxes.
20446
20447         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
20448         check on width/height.
20449
20450 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
20451
20452         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
20453         we are fine with using $@ the way we do (if we actually encounter
20454         brokeness with $@ in VPATH builds because of additional path prefixes,
20455         we need to use $(@F) actually).
20456
20457 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
20458
20459         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
20460         short lived bugs, that would allow language bindings to do surgeries
20461         to our guts.
20462
20463 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
20464
20465         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
20466         where comparison was being done against an uninitialized
20467         value causing intermittant results depending on
20468         compiler flags. Also make it clearer that we aren't
20469         ever initializing the child as 0x0 (though this will
20470         be caught in gtk_widget_size_allocate())
20471
20472 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
20473
20474         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
20475         gtk_window_unset_transient_for() call after we do checks
20476         involving the old transient parent.
20477         [ From Lance Capser <lmc@cyberhighway.net> ]
20478
20479 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
20480
20481         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
20482         an empty file.
20483
20484 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
20485
20486         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
20487         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
20488
20489 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
20490
20491         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
20492         `$@' is valid only in the build dir, not after we've done 
20493         `cd $srcdir'.  Also use `test -f' instead of less portable
20494         `test -e'.
20495
20496 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
20497
20498         * gtk/gtktext.c (correct_cache_insert): Rewrite
20499          for simplicity, and hopefully correctness.
20500          (Fixes bug #1322, which was a segfault when
20501           on some insertions with the properties around
20502           the insertion set up just wrong.)
20503
20504         * gtk/gtktext.c (gtk_text_adjustment): When we receive
20505          a "changed" signal, clamp the new value to the adjustment
20506          bounds to avoid segfaulting if someone tries to change
20507          the adjustment to a bogus value. (Bug #1795)
20508
20509 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
20510
20511         * gtk/gtkmain.c: Ignore unexpected destroy notifies
20512         for children, for toplevel windows handle them
20513         like delete_event.
20514
20515         * gtk/gtkplug.c: Add an unrealize handler so that
20516         we unref plug->socket_window when we are done
20517         with it.
20518
20519 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
20520
20521         * gtk/gtktext.c (clear_area): Fix stupid signedness
20522          problem that was causing background to sometimes
20523          be misaligned.
20524
20525 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
20526
20527         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
20528         
20529         * gtk/gtkmenu.c (gtk_menu_position): Make
20530          sure we never position menus with negative x, y,
20531          since gtk_widget_set_uposition() can't handle that.
20532
20533         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
20534          Modify the positioning code a bit so that we always
20535          put the top-left corner onscreen. (This is for
20536          UI reasons, gtk_menu_position() now takes care of
20537          gtk_widet_set_uposition() brokeness.)
20538
20539 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
20540
20541         * gtk/Makefile.am: fixed up things for -jx, x > 1.
20542
20543 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
20544
20545         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
20546           RC style that is passed in. The lack of the ref
20547           before was a bug. If people worked around this
20548           bug, this will introduce a slight memory leak
20549           in their code. The code should typically look like:
20550
20551             rc_style = gtk_rc_style_new ();
20552             [...]
20553             gtk_widget_modify_style (widget, rc_style);
20554             gtk_rc_style_unref (rc_style);
20555
20556         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
20557           the style if it was already set.
20558
20559         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
20560           style if it was set before.
20561
20562 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
20563
20564         * gtk/testgtk.c (main): Add a check to see if we
20565           are being run from the correct directory and
20566           to quit nicely if we are not.
20567
20568         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
20569           static.
20570
20571 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
20572
20573         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
20574
20575         * gtk/gtkwindow.c:
20576         queue resizes unconditionally (gtk_widget_queue_resize will figure
20577         what to do if the window is not realized).
20578         (gtk_window_move_resize): only recenter the window
20579         for GTK_WIN_POS_CENTER_ALWAYS.
20580         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
20581         the same way as GTK_WIN_POS_CENTER.
20582
20583 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
20584
20585         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
20586         with (!(info->last_flags & GDK_HINT_POS)) instead of
20587         (!info->last_flags & GDK_HINT_POS).
20588
20589         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
20590         new_height unconditionally, because we use these values even if
20591         !default_size_changed && !hints_changed.
20592         comented the (default_size_changed || hints_changed) case with
20593         respect to resize rejects from the window manager.
20594
20595         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
20596         in the zvt condition hack, since this includes the window hints, set
20597         the hints after the handling_resize case.
20598
20599         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
20600         window is initially shown with to the geometry.
20601
20602 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
20603
20604         * gtk/gtkwindow.c (gtk_window_move_resize):
20605         s/size_changed/default_size_changed/g so i know what's
20606         really going on (frying brain on smaller flame now).
20607
20608 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
20609
20610         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
20611         we have size_changed upon handling_resize. this is a gross
20612         workaround for the broken zvt widget and should be removed in
20613         1.3 again (search for FIXME).
20614         Owen provided an accurate comment for this:
20615
20616         /* We could be here for two reasons
20617          *  1) We coincidentally got a resize while handling
20618          *     another resize.
20619          *  2) Our computation of size_changed was completely
20620          *     screwed up, probably because one of our children
20621          *     is broken. It's probably a zvt widget.
20622          *
20623          * For 1), we could just go ahead and ask for the
20624          * new size right now, but doing that for 2)
20625          * might well be fighting the user (and can even
20626          * trigger a loop). Since we really don't want to
20627          * do that, we requeue a resize in hopes that
20628          * by the time it gets handled, the child has seen
20629          * the light and is willing to go along with the
20630          * new size. (this happens for the zvt widget, since
20631          * the size_allocate() above will have stored the
20632          * requisition corresponding to the new size in the
20633          * zvt widget)
20634          *
20635          * This doesn't buy us anything for 1), but it shouldn't
20636          * hurt us too badly, since it is what would have
20637          * happened if we had gotten the configure event before
20638          * the new size had been set.
20639          */
20640
20641 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
20642
20643         * gtk/gtkrc.c: deal properly with the fact that RC
20644           style lists may include rc styles more than once.
20645
20646         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
20647           unused static function.
20648
20649         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
20650           stack of directories of RC files currently being
20651           parsed and implicitely add them to pixmap path.
20652           
20653           This fixes a bug where the directory would get
20654           appended then overwritten by pixmap_path declarations.
20655
20656           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
20657
20658         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
20659           theme's exit function. (Patch from Peter Wainwright,
20660           bug #1454)
20661
20662         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
20663           Add a destroy() handler to take care of removing
20664           group for menu item. (Fixes bug #1197)
20665
20666         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
20667           in warning message.
20668
20669 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
20670
20671         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
20672         roundtrip to figure window's width and height, since we know that
20673         anyways from widget->allocation.
20674
20675 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
20676
20677         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
20678           the hints after we request the new size.
20679
20680 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
20681
20682         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
20683           GTK_WIDGET_REALIZED() assertion - we can compute the
20684           hints before we are realized.
20685
20686         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
20687           hint changing so that we have a value of hints_changed
20688           when we decide whether to constrain the window size.
20689
20690         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
20691
20692         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
20693         change back to G_MAXINT.
20694
20695 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
20696
20697         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
20698         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
20699         contain uncluttered values.
20700         (gtk_window_compute_hints): simply assert that window is realized
20701         and that geometry_info is valid, since we rely on this anyways.
20702         (gtk_window_constrain_size): major cleanups to the code.
20703         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
20704         for the base size, instead of the minimums. use 32767 as max width
20705         and height (like in gtkwindow.c) instead of G_MAXINT.
20706
20707 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
20708
20709         * cleaned up the GtkContainer.need_resize flag handling mess, we
20710         only need to force resize requests when we were prematurely
20711         realized, or our widget tree was modified when we were temporarily
20712         hidden. handling these cases directly upon showing the window (i.e.
20713         while the GdkWindow is still unmapped) avoids the need to wait for
20714         a configure event response and therefore makes the GUI more snappier
20715         and avoids blank windows during the roundtrip.
20716
20717         * gtk/gtkwidget.c:
20718         (gtk_widget_hide): 
20719         (gtk_widget_show): don't queue resizes on toplevels, they know how
20720         to deal with matters.
20721
20722         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
20723         flag directly for not visible resize containers and spare us unecessary
20724         signal emissions.
20725
20726         * gtk/gtkwindow.c:
20727         (gtk_window_realize): if we need to enforce premature size allocation,
20728         queue a container resize so we are correctly resized later on.
20729         (gtk_window_init):
20730         (gtk_window_size_request):
20731         don't freak around with the ->need_resize flag,
20732         gtk_container_queue_resize() will care about that.
20733         (gtk_window_show):
20734         handle initial resizing issues here, we can handle matters better in
20735         this place, especially since we know that our GdkWindow is still
20736         unmapped.
20737         (gtk_window_move_resize):
20738         don't care about ->need_resize at all.
20739         handle size changes properly that occoured while we waited for a
20740         configure event.
20741
20742 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
20743
20744         * gtk/gtkwidget.c (gtk_widget_set_uposition):
20745         * gtk/gtkwindow.[hc] (gtk_window_reposition):
20746         Move the hint setting code from gtk_widget_set_uposition
20747         to here; set the hints so that we respect any previously
20748         set geometry hints.
20749
20750         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
20751         change the window hints here or move the window here,
20752         let that happen in gtk_window_move_resize().
20753
20754 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
20755
20756         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
20757         to already queued resizes (and therefore redraws) on a widget, check
20758         its anchestry as well.
20759
20760         * gtk/gtkcontainer.c:
20761         (gtk_container_queue_resize): clear resize widgets for resize
20762         containers before aborting prematurely. this is especially important
20763         for toplevels which may need imemdiate processing or their resize
20764         handler to be queued.
20765         (gtk_container_dequeue_resize_handler): added new internal function for
20766         gtkwindow.c.
20767
20768         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
20769         configure event, take possible changes in window position into account
20770         as well.
20771         if we request a new window size, queue up a resize handler that will
20772         last until the configure event response arrives.
20773         combined the ->need_resize case (initial show) with the general size
20774         (hints) changed case and added even more comments.
20775         if !auto_shrink, only revert to the old allocation if the new size
20776         is smaller than the current allocation.
20777
20778 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
20779
20780         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
20781                            gtk_window_set_geometry_hints
20782                            gtk_window_set_default_size):
20783         When hints are set, queue a resize so that the hints will
20784         be eventually reset on the toplevel.
20785
20786         * gtk/gtkwindow.c (gtk_window_show): Use
20787         gtk_window_compute_default_size(). Clear the need_resize flag
20788         on the initail map so that we don't unnecessarily trigger the
20789         resize code.
20790
20791         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
20792         into separate functions. Compare the hints we are setting
20793         with what we set last time so that we can accurately
20794         tell when we need to reset the hints.
20795
20796         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
20797         function to figure out the size from requisition
20798         and default_size.
20799
20800         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
20801         from fvwm to constrain a size to the geometry hints.
20802
20803         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
20804         to compare two sets of geometry hints.
20805
20806         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
20807         from gtk_window_set_hints(), just compute the hints,
20808         don't set them.
20809
20810         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
20811         code from gtk_window_move_resize() to separate function,
20812         rationalize a bit.
20813
20814 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
20815
20816         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
20817         structure into a new private structure.
20818
20819         * gtkrc.c: Split GtkRcStyle into public/private.
20820         In the private part, add a list of pointers to the
20821         RcStyle lists this RcStyle participates in.
20822
20823         * gtkrc.c: When a RcStyle is free, remove all
20824         lists referencing it from the 
20825         realized_style_ht hash, and free those lists.
20826         
20827         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
20828         gtk_rc_init(), since that adds the default styles
20829         to the list of parsed RC files again.
20830
20831         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
20832         
20833 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
20834
20835         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
20836         checks that ensure that a widget's allocation is at least 1 in width
20837         and height. (GNOME note: this doesn't affect old panel code anymore,
20838         because GtkSocket will request width and height of at least 1 since
20839         Fri Jul 23).
20840
20841         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
20842         allocated yet (happens if the user realizes the window prematurely),
20843         size request and allocate it.
20844         (gtk_window_size_allocate): guard against guint underflows.
20845
20846 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
20847
20848         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
20849         in gtk_built_sources, so gtk.defs gets built prior to all other
20850         sources.
20851
20852 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
20853
20854         * gtk/Makefile.am:
20855         invoke indent on gtkmarshal.*. 
20856         rewrote source generation rules, use COPYING as oldest source tag for
20857         a piggyback rule to generate all sources from (don't touch it ;).
20858         major cleanups, strip spaces on build rules for GNU Make.
20859
20860         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
20861         source and target files from commandline arguments. don't invoke indent.
20862
20863 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
20864
20865         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20866         notebook after switch to avoid drawing problems.
20867         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20868         
20869         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20870         show them instead. 
20871         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20872
20873 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
20874
20875         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
20876         notebook after switch to avoid drawing problems.
20877         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
20878         
20879         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
20880         show them instead. 
20881         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
20882
20883 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
20884
20885         * gtk/gtkwindow.c:
20886         we use window->need_resize from configure_event now, to indicate that
20887         the gtkwindow should keep its allocation (e.g. because the user resized
20888         the window through window manager handles). resize_count is now reliably
20889         used to figure whether we got the allocation we requested from the
20890         window manager.
20891         configure events get queued as resizes now, the real stuff (size
20892         computation and allocation) now only goes on in gtk_window_move_resize().
20893         GtkWindow's requisition now contains its *real* requisition (like all
20894         other widgets), *not* taking usize into account.
20895         geometry_info->last_{width|height} is now updated from set_hints() only
20896         so it always contains the last hints we set for the window manager.
20897         made some event handlers return TRUE instead of FALSE.
20898         the overall code should be much more straight forward now, and the
20899         significant code portions are accompanied by comments now.
20900         (gtk_window_set_hints):
20901         removed requisition argument and made it
20902         fetch the requisition through gtk_widget_get_child_requisition.
20903         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
20904         does that now.
20905         (gtk_window_show):
20906         ensure that the widget is realized before calling 
20907         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
20908         ensure that we got properly size requested and allocated before
20909         realization.
20910         (gtk_window_configure_event):
20911         ignore plain window moves, or reallocate the widget tree through the
20912         resize queue otherwise.
20913         (gtk_window_move_resize):
20914         mostly rewrote this function to figure window manager hints more
20915         reliably, coalesce window moves and resizes to reduce configure events
20916         and do actuall size allocations.
20917
20918 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
20919
20920         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
20921         that have a resize pending, because a redraw is already queued for them.
20922
20923         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
20924         hack to clear resize_widgets.
20925
20926         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
20927         for resize containers prior to size allocation. (this is also a bit
20928         ugly, but avoids side effects for stopped emissions and is thus more
20929         reliable).
20930         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
20931
20932         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
20933         function from gtk_tooltips_expose, as we connect to ::expose_event
20934         *and* ::draw now.
20935
20936 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
20937
20938         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
20939         checks.
20940         (gtk_target_list_unref): Likewise.
20941
20942         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
20943
20944 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
20945
20946         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
20947         guard against division by zero. (Fixes bug #1339)
20948
20949 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
20950
20951         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
20952         Prevent the trivial leak of information of allowing
20953         word motion when the entry is not visible.
20954
20955 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
20956
20957         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
20958         modality to error dialog as well as confirmation dialogs.
20959         (Bug #1803, reported by Rosanna Wing Sze Yuen)
20960
20961 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
20962
20963         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
20964         tree->view_lines.
20965         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
20966
20967         * gtk/Makefile.am (install-data-local): Solaris apparently
20968         has various troubles with ln -f; use rm first instead.
20969         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
20970
20971 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
20972
20973         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
20974         use `cp' followed by `rm' (the `rm' was already there).
20975
20976 July 30, 1999 Elliot Lee <sopwith@redhat.com>
20977         
20978         * configure.in: Fix autoconf warnings about cross compilation by
20979         trying to provide sane defaults for AC_TRY_RUN.
20980         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
20981         put them into $(srcdir) when generated. Also add a dependency of
20982         gtksignal.h on gtkmarshal.h for -j builds. 
20983         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
20984
20985 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
20986
20987         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
20988         GDK_THREADS_{LEAVE,ENTER} pair.
20989         (From Paul Fisher <pnfisher@redhat.com>)
20990
20991 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
20992
20993         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
20994         width and height are always >0 (owen).
20995
20996 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
20997
20998         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
20999         change that assured that a widget's allocated with and height are
21000         always >1, since this breaks *buggy* panel code. unfortunately this
21001         back-breaks the gimp's color selector.
21002
21003         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
21004         allocation is always >0 in width and height, before sending the
21005         configure event; this is a *gross* hack to get the gimp back to work.
21006         
21007         * marked both cases with TODO-1.3
21008
21009 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
21010
21011         * gtk/gtktext.c: Don't display wrap indicators when
21012         text is not editable and word wrap is on.
21013
21014 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
21015
21016         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
21017         option menus here as they are not derived from menu shell, assure that
21018         the option menu has a menu we can add items to.
21019
21020 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
21021
21022         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
21023         width/height to (gint) before calculations and check against < 0 to
21024         avoid guint wraparounds.
21025
21026 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
21027
21028         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
21029         width and height is never zero. sanity check both dimensions against
21030         32767 and issue a warning if the allocation is greater than that.
21031
21032 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
21033
21034         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
21035         to g_main_pending() as well.
21036
21037 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
21038
21039         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
21040         call to g_main_iteration() - since that will regrab
21041         GTK+ lock to process events.
21042
21043 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
21044
21045         * gtk/gtkwindow.c
21046         - Regularize with the rest of GTK+ by making widget->requisition
21047           not reflect the set_usize()
21048         - Always recompute geometry hints, then check if they
21049           changed before sending them to the X server. The
21050           previous checks for changes would fail in a number
21051           of circumstances. 
21052
21053 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
21054
21055         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
21056
21057 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
21058
21059         * gtk/gtkdnd.c:
21060         - Code cleanups
21061         - Instantaneously update on modifier key presses
21062         - Allow cancellation of the drag with Escape.
21063
21064 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
21065
21066         * gtk/testgtk.c (create_handle_box): Set the policy
21067         to auto_shrink - otherwise the appearance is rather
21068         strange when flipping between horizontal and vertical.
21069
21070 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
21071
21072         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
21073         (gtk_window_set_default_size): don't change a value if it's < 0.
21074         queue a resize.
21075
21076 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
21077
21078         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
21079
21080 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
21081
21082         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
21083         add an extra "/" when concating "/" + filename.
21084         (From Matt Grossman <mattg@oz.net>)
21085
21086 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
21087
21088         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
21089         for fg_gc if we set it for drawing pixmap.
21090
21091 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
21092
21093         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
21094         
21095         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
21096         already set, call old engine's destroy function and
21097         unref the old engine.
21098
21099 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
21100
21101         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
21102
21103 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
21104
21105         * gtk/gtkaccelgroup.h: mark certain functions as internal.
21106
21107 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
21108
21109         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
21110         expand behaviour changed.
21111
21112         * gtk/gtklabel.c (gtk_label_set_pattern):
21113         (gtk_label_set_justify):
21114         (gtk_label_set_line_wrap):
21115         don't bother invoking queue_clear, the reallocation does
21116         that for us, always free_words so the upcoming resize will
21117         relayout the label's contents.
21118
21119 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
21120
21121         * applied argument implementation patches from Elena Devdariani
21122         <elena@cogent.ca>.
21123
21124         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
21125         ::space_style, ::relief
21126         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
21127         * gtk/gtkpreview.c: ::expand
21128         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
21129         * gtk/gtknotebook.c: ::homogeneous
21130         * gtk/gtklabel.c: ::wrap
21131         * gtk/gtklist.c: ::selection_mode
21132         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
21133         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
21134         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
21135         * gtk/gtkclist.c: ::sort_type
21136         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
21137         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
21138
21139 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
21140
21141         * gtk/gtkstyle.c: Removed ill-thought-out part of last
21142         comment.
21143
21144 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
21145
21146         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
21147         counting right when we have to attach a new style
21148         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
21149
21150         * gtk/gtkstyle.c: Documented the refcounting
21151         peculularities of gtk_style_attach.
21152
21153 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
21154
21155         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
21156         window types.
21157
21158         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
21159         of GTK_TOPLEVEL for creating the window.
21160
21161 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
21162
21163         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
21164         the last argument (reported by Per Winkvist).
21165         
21166 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
21167
21168         Fixes for invisible XOR lines (Frank Loemker
21169         <floemker@TechFak.Uni-Bielefeld.DE>)
21170         
21171         * gtk/gtkclist.c (gtk_clist_realize): Always use
21172         a non-zero pixel for GDK_XOR.
21173
21174         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
21175         Use GDK_INVERT instead of GDK_XOR.
21176
21177 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
21178
21179         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
21180         signals if h/voffsets differ from adjustment values.
21181         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
21182
21183 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
21184
21185         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
21186         ::selection-done emissions up to the topmost menu shell.
21187
21188 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
21189
21190         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
21191         the user data on the window before destroying it.
21192
21193         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
21194         unrealize handler to take care of destroying 
21195         notebook->panel properly. 
21196         (Bug #1198 - Morten Welinder <terra@diku.dk>)
21197
21198         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
21199         of g_new and g_realloc to stop memory leak. (Actually,
21200         we could just use g_realloc(), but I'm not 100% sure
21201         that is portable).
21202         (Bug #1196 - Morten Welinder <terra@diku.dk>)
21203
21204 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
21205
21206         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
21207
21208         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
21209         for fontsets.
21210
21211         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
21212         with bin/button confusion.
21213
21214 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
21215
21216         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
21217         and show how preselection of radio items is done.
21218
21219 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
21220
21221         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
21222         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
21223         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
21224         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
21225         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
21226         * gtk/gtktable.c (gtk_table_attach): 
21227         * gtk/gtklist.c (gtk_list_insert_items): 
21228         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
21229         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
21230         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
21231         * gtk/gtkbin.c (gtk_bin_add): 
21232         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
21233         * gtk/gtkfixed.c (gtk_fixed_put): 
21234         * gtk/gtklayout.c (gtk_layout_put):
21235         general fixups to container_add logic. always realize child if
21236         child->parent is realized, only map the child and queue a resize
21237         if child and child->parent are both visible.
21238
21239 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
21240
21241         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
21242         instead of gtk_container_foreach to walk and unrealize children, so
21243         composite children get also unrealized.
21244         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
21245         (gtk_widget_map): assert that the widget is visible (basic constrain).
21246         (gtk_widget_real_map): assert that the widget is realized (basic
21247         constrain).
21248
21249 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
21250
21251         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
21252
21253 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
21254
21255         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
21256         file for iso-8859-2 locales.
21257
21258         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
21259
21260 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
21261
21262         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
21263          (Pointed out by andy@rz.uni-karlsruhe.de and others).
21264          Remove some suspicious and useless lines. 
21265
21266 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
21267
21268         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
21269         width,height = 0, 0 to mean - here to edge of window,
21270         instead of -1, -1, since the former is all we support.
21271
21272 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
21273
21274         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
21275         when removing from quit_functions list.
21276
21277 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
21278
21279         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
21280
21281 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
21282
21283         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
21284          When redrawing characters on non-visible entry, use appropriate
21285          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
21286
21287 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
21288
21289         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
21290         from drag coordinates.
21291         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
21292         use drag_dest_cell.
21293
21294         * gtk/gtktree (drag_dest_cell)
21295         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
21296         (Bug #1129)
21297
21298 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
21299
21300         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
21301         translate_* fields.
21302         (gtk_item_factory_finalize): invoke translate_notify independant from
21303         translate_data.
21304         (gtk_item_factory_set_translate_func): likewise.
21305         (gtk_item_factory_destroy): only remove ifactory pointer from those
21306         widgets that belong to us (stupid me).
21307
21308 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
21309
21310         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
21311         rc_style list when lookup succeeeds.
21312
21313 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
21314
21315         * gtk/gtkctree.c (resync_selection): 
21316         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
21317         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
21318         bug.
21319
21320 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
21321
21322         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
21323         Add some missing GDK_THREADS_ENTER()/LEAVE around
21324         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
21325
21326 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
21327
21328         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
21329         rather than emit_by_name.
21330
21331         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
21332         on the widget across multiple signal emissions.
21333         (gtk_editable_delete_text): same here.
21334         (gtk_editable_class_init): set widget_class->activate_signal after
21335         editable_signals[ACTIVATE] has been created.
21336
21337 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
21338
21339         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
21340         position here prematurely -- we might not have the
21341         right ->min_position and ->max_position yet.
21342
21343 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
21344
21345         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
21346         Add error traps so if the other end of the connection
21347         dies, we survive.
21348
21349         * gtk/gtkselection.c (gtk_selection_notify): Clean
21350         up properly when selection property retrieval fails.
21351         
21352         * gtk/gtkselection.c (gtk_selection_request): Correctly
21353         reject SelectionRequest notifies where the handler
21354         returns no data.
21355
21356 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
21357
21358         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
21359         when we've previously highlighted.
21360
21361         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
21362         emit two "drag_leave" signals for Motif drops.
21363
21364         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
21365         back the correct status messages when dropping from
21366         Motif onto a proxy window that is rejecting the
21367         drop.
21368
21369 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
21370
21371         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
21372         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
21373         to compare two argument values. added gtk_arg_to_valueloc() to set a
21374         variable from an arg through its location (pointer).
21375
21376         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
21377         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
21378         as gfloat*, uchars are collected as guchar*, ints are collected as
21379         gint*, etc...
21380
21381 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
21382
21383         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
21384         Include <string.h> instead of <strings.h>.
21385
21386         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
21387         (actually, a lot more duplicate includes occur if
21388          you trace through the sequence of #include's)
21389         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
21390         
21391 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
21392
21393         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
21394         gtk-a-higuti-990322-[0-3]
21395
21396         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
21397         that was causing -DX_LOCALE not to work.
21398
21399         * gtk/gtkrc.c (gtk_rc_init):
21400         X_LOCALE will never have LC_MESSAGES defined
21401
21402 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
21403
21404         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
21405         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
21406
21407         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
21408         left/right as well (gtk-michael-980726-0.patch.gz).
21409
21410         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
21411         for pointer values, use gchar instead of char. fixed uline allocation
21412         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
21413         chunks instead of G_ALLOC_ONLY.
21414         (gtk_label_size_request): always alter requisition as passed and leave
21415         widget->requisition alone.
21416         (gtk_label_set_text): allow NULL strings.
21417         (gtk_label_new): likewise.
21418
21419 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
21420
21421         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
21422
21423 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
21424
21425         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
21426         *and* mapped (i.e. drawable).
21427         (gtk_bin_expose): only send exposes to drawable children.
21428
21429         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
21430         (gtk_box_expose): only send exposes to drawable children.
21431
21432         * gtk/gtkhscale.c (gtk_hscale_draw): 
21433         * gtk/gtkvscale.c (gtk_vscale_draw):
21434         hm, this is an ugly one. we first compute the size of our trough area
21435         here (window relative) and then check intersection with the draw_area
21436         which is parent relative because we're a NO_WINDOW widget, so we need
21437         to offset the trough area by allocation.x and allocation.y before the
21438         check. (this must not be done for the background area though, since
21439         that's already computed parent relative).
21440
21441 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
21442
21443         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
21444         unrealize title buttons.
21445
21446 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
21447
21448         * gtk/gtkclist.c (gtk_clist_column_title_passive)
21449         (gtk_clist_column_title_active): 
21450         only connect/disconnect to GtkWidgetClass::event to block mouse events.
21451
21452         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
21453         zero initialize event, removed superfluous gdk_window_get_pointer call
21454
21455         * gtk/gtklist.c (gtk_list_vertical_timeout)
21456         (gtk_list_horizontal_timeout): removed superfluous
21457         gdk_window_get_pointer call
21458
21459 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
21460
21461         * plugging problems reported by "Bruce Mitchener, Jr."
21462         <bruce@puremagic.com> due to a purify session.
21463
21464         * gtk/gtkstyle.c:
21465         (gtk_style_ref): 
21466         (gtk_style_unref): assert ref_count to be > 0.
21467
21468         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
21469         the requisition.
21470         (gtk_clist_set_shift): likewise.
21471
21472         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
21473         adjustments.
21474
21475         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
21476         event before sending it and set send_event to TRUE (which needs to
21477         be done for *all* synthesized events).
21478         (gtk_list_vertical_timeout): likewise.
21479
21480         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
21481         leaks.
21482
21483         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
21484         to TRUE when synthesizing events.
21485
21486 [ *** end of merges from 1.2 *** ]      
21487         
21488 1999-11-21  Tor Lillqvist  <tml@iki.fi>
21489
21490         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
21491         (or copied from gdkconfig.h.win32 on Win32, sigh).
21492
21493         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
21494
21495         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
21496
21497         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
21498
21499         * gdk/gdkconfig.h.win32: New file.
21500
21501         * gdk/win32/makefile.cygwin: Build just a static archive here.
21502
21503         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
21504         for the DLL from the static archive built above.
21505
21506         * gdk/gdk.def: Moved here from the win32 subdirectory.
21507
21508         * gdk/win32/*: Adapt for the changed private struct organisation.
21509
21510         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
21511
21512 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
21513
21514         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
21515         for wheel mice (buttons 4 and 5).
21516
21517 1999-11-18  Tor Lillqvist  <tml@iki.fi>
21518
21519         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
21520         drawables use just the pixel field in the foreground and
21521         background GdkColor of the GdkGC.
21522
21523         gdk_gc_set_{fore,back}ground() are called in the GIMP with
21524         GdkColors containing uninitialized (red,green,blue) fields, and
21525         just the pixel field filled in, and furthermore in the
21526         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
21527         It thus turns out that we really don't need to have the full
21528         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
21529         it later to have just the pixel values.
21530
21531 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
21532
21533         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
21534
21535 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
21536
21537         * docs/gtkfaq.sgml: threads example from Erik Mouw.
21538         New question on GtkLabel background colors.
21539
21540         * docs/gtk_tut.sgml:
21541           - Correct the example code callback
21542             function definitions.
21543           - Update the gtkdial example code, from Frans van Schaik.
21544           - Update setselection.c to current API.
21545
21546         * examples/Makefile examples/*/*.c: Update to code
21547         listed in tutorial.
21548
21549 1999-11-10  Tor Lillqvist  <tml@iki.fi>
21550
21551         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
21552         subrange table (from the "Developing International Software for
21553         WIndows 95 and Windows NT" book) was missing the Hangul syllable
21554         block... Get the loaded font's charset correctly.
21555
21556         (Note that this, and the other *-win32.c files, still really are
21557         the old ones, the win32 subdirectory is not ready for compilation
21558         yet after the reorg.)
21559
21560 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
21561
21562         * gtk/gtkclist.c: Fix off-by-one bug in parameter
21563         check.
21564
21565 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
21566
21567         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
21568         on results of XQueryDeviceState().
21569
21570 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
21571
21572         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
21573         we need to accesss only ->children. We need an accessor
21574         for the children.
21575
21576         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
21577         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
21578         to get rid of gdkx.h include.
21579         
21580         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
21581         and random references to 'None'.
21582
21583         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
21584         Get rid of unused #include <gdk/gdkx.h>
21585
21586         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
21587         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
21588         gdkconfig.h.
21589
21590 1999-11-08  Tor Lillqvist  <tml@iki.fi>
21591
21592         * gdk/win32/gdkdraw.c
21593         * gdk/win32/gdkfont.c
21594         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
21595         following yesterday's changes. (Unrelated to Owen's reorg.)
21596
21597 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
21598
21599         * gdk/x11/gdkinput-gxi.c: Add missing include,
21600           fix GdkWindowPrivate => GdkDrawablePrivate.
21601
21602         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
21603
21604         * gdk/x11/Makefile.am (xinput_sources): Add missing
21605         backslash to fix building with --with-xinput=none
21606
21607 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
21608
21609         Move all X specific code into the x11/ directory.
21610         Aside from shuffling things around, did the following:
21611
21612        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
21613          gdk_arg_context_* - a simple argument parsing system
21614          in the style of popt.
21615
21616        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
21617          gdk/x11/gdkprivate-x11.h:
21618          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
21619          add ->klass and ->klass_data fields. The klass_data
21620          field points to an auxilliary structure that is
21621          windowing system dependent.
21622
21623        * gdk/gdkfont.c: Make most of the measurement functions
21624          simply wrappers around gdk_text_extents().
21625
21626        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
21627          _gdk_font_strlen() function that hides the weird
21628          behavior in gtk+-1.[02] where a string is interpreted
21629          differently for 8-bit and 16-bit fonts.
21630
21631        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
21632          to store common code for synthesizing double/triple
21633          press events.
21634         
21635        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
21636          Make all the function that modify an existing GC
21637          simply wrappers around gdk_gc_set_values().
21638          
21639        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
21640          for throwing out later.
21641
21642        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
21643          GdkImagePrivate and GdkColormapPrivate to have a
21644          windowing system dependent part (GdkFontPrivateX etc.)
21645          that "derives" from the system-independent part.
21646
21647        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
21648          Got rid of the included-source-files for XInput in
21649          favor of automake conditionals. (Which didn't exist
21650          when XInput support was originally added.)
21651
21652        * gdk/gdkrgb.c: Remove the visual id from the debugging
21653          statements since that is X11 specific; print out
21654          type/depth info instead.
21655          
21656
21657 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
21658
21659         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
21660         loading duplicates of hashed fonts.
21661
21662         * gdk/gdk.c (gdk_keysym_convert_case): rename
21663         gdk_XConvertCase to gdk_keysym_convert_case, allow
21664         results to be NULL in the GTK+ style.
21665
21666         * gdk/gdkcompat.h: Started compatibility header
21667         for renames.
21668
21669 1999-11-07  Tor Lillqvist  <tml@iki.fi>
21670
21671         * gdk/win32/gdkprivate.h: New font private structures, related to
21672         fontsets.
21673
21674         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
21675         gdk_font_list_free(). On X11, will just be wrappers to
21676         XListFonts() and XFreeFontNames(). On Win32, the code previously
21677         in gtkfontsel.c is now here.
21678
21679         New function gdk_font_xlfd_create(). On X11 will get the FONT
21680         property of the font (for GDK_FONT_FONTs), or call
21681         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
21682         builds a XLFD style name from the font information in the LOGFONT
21683         struct(s).
21684
21685         New function gdk_font_xlfd_free(), which correspondingly frees the
21686         string returned by gdk_font_xlfd_create().
21687
21688         Implement fontsets on Win32. Add a function that iterates over a
21689         wide char string and calls a callback function for each substring
21690         of wide chars from the same Unicode subrange (and thus probably
21691         available in the same real font).
21692
21693         Improve the XLFD emulation a bit.
21694
21695         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
21696
21697         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
21698         Beta3, WM_IME_CHAR messages don't seem to contain the composed
21699         multi-byte char as with the Active IMM on Win9x. Oh well, handle
21700         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
21701         ImmGetCompositionStringW() to get the composed Unicode chars.
21702
21703         * gdk/win32/gdkgc.c
21704         * gdk/win32/gdkdraw.c: Changes needed because of the font private
21705         struct changes.
21706
21707         * gdk/win32/gdk.def: Add the new functions.
21708
21709 1999-11-04  Tor Lillqvist  <tml@iki.fi>
21710
21711         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
21712         get the Platform SDK to get <dimm.h>.
21713
21714         * gdk/win32/gdkevents.c: More event handling fixes and
21715         simplification. Never generate motion events with is_hint true. We
21716         used to do that on bogus grounds earlier. Windows sends
21717         WM_MOUSEMOVE messages on button events even if the mouse hasn't
21718         moved, ignore these.
21719
21720         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
21721
21722         * gdk/win32/gdkglobals.c
21723         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
21724         the TrackMouseEvent function, and use it.
21725
21726         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
21727         char before calling WideCharToMultiByte in order to get a string
21728         for the window title.
21729
21730         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
21731
21732         * gdk/win32/gdk.def: Remove obsolete functions.
21733
21734         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
21735         /nodefaultlib and /defaultlib switches.
21736
21737         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
21738
21739 1999-10-31  Tor Lillqvist  <tml@iki.fi>
21740
21741         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
21742         EuroSign).
21743
21744         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
21745         same type as GdkWChar, especially on Win32.
21746
21747         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
21748
21749         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
21750         before passing to Windows GDI for drawing etc. Convert to the
21751         system default codepage before passing to Windows as window
21752         titles.
21753
21754         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
21755         support changing input locale on the fly.
21756
21757         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
21758         on-the-fly changes. Convert incoming characters from the current
21759         codepage to Unicode (and then to a UTF-8 multi-byte string) based
21760         on the current input language. Use keysym<->Unicode mapping tables
21761         and functions borrowed from xterm sources.
21762
21763         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
21764         editions of Win9x, use the ActiveX-based Active IMM (Input Method
21765         Manager) if available. IMEs and the Active IMM are available under
21766         the disguise of Chinese, Korean and Japanese support for IE and
21767         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
21768         support is present in all editions (as long as you install it).
21769
21770         Call DispatchMessage from gdk_events_queue() (and thus
21771         gdk_WindowProc()), instead of duplicating the code in
21772         gdk_WindowProc().
21773
21774         Reworked the grab handling and propagation code, factored out
21775         duplicated code snippets into separate functions. Other cleanups,
21776         too.
21777
21778         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
21779         the <dimm.h> header describing the Active IMM.
21780
21781         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
21782         just do the same as for "single" fonts.
21783
21784         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
21785         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
21786         the new keysyms from gdkkeysyms.h.
21787
21788         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
21789         fontset, so that gtkentry uses wide characters.
21790
21791         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
21792         GTk+'s system directory "gtk+", not "gtk".
21793
21794 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
21795
21796         * docs/gtkfaq.sgml: FAQ update
21797
21798 1999-10-21  Tor Lillqvist  <tml@iki.fi>
21799
21800         * gdk/win32/gdkprivate.h: Add more font private data.
21801
21802         * gdk/win32/gdkfont.c
21803         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
21804         fonts and strings. Now works much better. You still have to
21805         have a correct font selected, though. No fontset emulation yet.
21806
21807 1999-10-19  Tor Lillqvist  <tml@iki.fi>
21808
21809         * gtk/maketypes.awk: Use G_OS_WIN32.
21810
21811         * gtk/gtk.def: Add some missing entry points. Also some non-public
21812         ones, but PyGTK porter claims to need them.
21813
21814         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
21815         built-in type generation.
21816
21817 1999-10-14  Tor Lillqvist  <tml@iki.fi>
21818
21819         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
21820         GDK_FONT_FONT fonts (which is all we have for now, we don't
21821         emulate fontsets). The X11 version uses plain XDrawString in that
21822         case, too. The string passed to gdk_draw_text_wc seems to be in
21823         fact (at least, when used by gtkentry and gtktext) either in a
21824         single-byte charset, or a DBCS. Not Unicode.
21825
21826         This fixes the problem in gtkfontsel, where even if you had
21827         selected a font with a non-Latin1 charset (windows-greek, for
21828         instance), the preview still used Latin-1 glyphs.
21829
21830         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
21831         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
21832         (gdk_font_load): Recognize the demibold etc weights, even if we
21833         don't have the corresponding constants in the headers.
21834         (gdk_font_hash_insert): Use same hash mechanism as in the X11
21835         version. Should save font resources a bit, when we don't have
21836         multiple HFONTs for the same font.
21837
21838         * gdk/win32/gdkprivate.h: Add the names field as in the X11
21839         version.
21840
21841 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
21842
21843         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
21844         X values
21845
21846 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
21847
21848         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
21849         layout support (as mentioned on
21850         http://www.jcinteractive.com/gnome-ui/software/widgets/)
21851
21852 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
21853
21854         * gtk/fnmatch.c
21855         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
21856
21857 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
21858
21859         * configure.in (ALL_LINGUAS): Added Galician (gl)
21860
21861 1999-10-05  Tor Lillqvist  <tml@iki.fi>
21862
21863         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
21864
21865         * gdk/win32/gdkcompat.c: New file, actually provide an
21866         implementation for the deprecated functions. (Just temporarily.)
21867
21868         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
21869
21870         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
21871
21872         * gdk/win32/gdk.def gtk/gtk.def: Updates.
21873
21874 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
21875
21876         * configure.in: Added "uk" to ALL_LINGUAS.
21877         
21878 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
21879
21880         * configure.in: correct checking for BeOS check
21881
21882         * gdk/gdktypes.h
21883         * gtk/fnmatch.c
21884         * gtk/gtkfilesel.c
21885         * gtk/gtkitemfactory.c
21886         * gtk/gtkmain.[ch]
21887         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
21888
21889 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
21890
21891         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
21892         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
21893         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
21894         by Bulgarian). 
21895
21896 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
21897
21898         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
21899         Fix a reference to window_private->destroyed.   
21900
21901         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
21902         (ugly) setting of an internal GdkWindow member to use
21903         a _slightly_ cleaner macro.
21904
21905         * gdk/gdkprivate.h: Split GdkWindowPrivate into
21906         GdkDrawablePrivate and GdkWindowPrivate.
21907         Add extra macros for accessing GDK_DRAWABLE_ components.
21908
21909         * *.[ch]: Massive adjustments for the above, use the
21910         new macros in a lot of places.
21911
21912 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
21913
21914         * gdk/gdktypes.h: Make GdkDrawable the base type,
21915         not GdkWindow.
21916
21917 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
21918
21919         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
21920
21921 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
21922
21923         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
21924
21925 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
21926
21927         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
21928         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
21929
21930         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
21931
21932         * docs/gtk-config.1: Now autogenerated.
21933         * docs/Changes-1.4.txt: started
21934         
21935 1999-10-03  Tor Lillqvist  <tml@iki.fi>
21936
21937         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
21938         to #ifdef also here.
21939
21940         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
21941         Owen did to the X11 backend.
21942
21943         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
21944         ScrollWindowEx when blitting inside a window, it can't be correct
21945         in the general case.
21946
21947         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
21948         WM_GETMINMAXINFO is easier.
21949
21950         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
21951         depth equal to the bitspixel value, not the visual's depth.
21952
21953         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
21954         to 24 even if the bitspixel value is 32.
21955
21956         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
21957         need to check for depth==32 when bpp==32, depth will always be 24.
21958
21959 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
21960
21961         * docs/Changes-1.4.txt: Started
21962         
21963         * gtk/Makefile.am (gdk_headers): Include all the new headers.
21964
21965         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
21966         
21967         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
21968         into C file.
21969         
21970         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
21971         header to gdkinputprivate.h.
21972
21973         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
21974         unused since before 1.2.
21975
21976 1999-09-30  Tor Lillqvist  <tml@iki.fi>
21977
21978         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
21979         expand possible hex escapes in the font family (put there by
21980         logfont_to_xlfd if the font name isn't a legal XLFD font family,
21981         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
21982         On Win32, add hex escapes here, too.
21983
21984 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
21985
21986         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
21987         to #ifdef GDK_WINDOWING_X11.
21988
21989 [ Merges from gtk-1-2 ]
21990
21991 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
21992
21993         * configure.in: fixed "GNU Make" check to pass with new make version
21994         3.77.95.
21995
21996 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
21997
21998         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
21999         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
22000         AM_PATH_GTK() macros don't get confused by the -pre1.
22001
22002 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22003
22004         * configure.in (REBUILD): Change check for perl5
22005           to check explicitely for v >= 5.002. (5.001
22006           does not work with our scripts.)
22007
22008 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
22009
22010         * configure.in: evaluate $PERL for the perl version check. added
22011         --disable-rebuilds to give the user an option to completely disable
22012         any source autogeneration rules.
22013
22014 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
22015
22016         * configure.in: evaluate $ac_make when checking for GNU Make.
22017
22018 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22019
22020         * docs/Makefile.am: added generation.txt.
22021
22022         * Makefile.am: require automake 1.4, build README from README.in and
22023         INSTALL from INSTALL.in in dist-hook.
22024         
22025         * README.in:
22026         * INSTALL.in: new files to autogenerate README and INSTALL from.
22027
22028         * configure.in: figure whether we have GNU Make
22029
22030         * docs/generation.txt: minor additions/corrections.
22031
22032 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
22033
22034         * docs/gtkfaq.sgml: FAQ Update
22035
22036 July 30, 1999 Elliot Lee <sopwith@redhat.com>
22037         
22038         * configure.in: Fix autoconf warnings about cross compilation by
22039         trying to provide sane defaults for AC_TRY_RUN.
22040
22041 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
22042
22043         * ltconfig
22044         * ltmain.sh: upgrade to libtool 1.3.3
22045
22046 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
22047
22048         * INSTALL: Indicate that the --with-glib= configure
22049         time flag is unsupported.
22050
22051 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
22052
22053         * docs/generation.txt: Added a file that gives
22054         documenation about the autogeneration process for
22055         various autogenerated files.
22056         
22057 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
22058
22059         * configure.in (LIBS): Look for libgmodule in the
22060         right location.
22061
22062 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
22063
22064         * docs/gtk_tut.sgml: Removed references to
22065         code examples in my directory on gtk.org as
22066         they should all be in the tutorial now.
22067
22068         * docs/gtk_tut.sgml: Added sources for dial-test
22069         and scribble-xinput programs that were previously
22070         missing.
22071
22072 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
22073
22074         * TODO: Added entry about menu keyboard navigation, removed
22075         some finished items.
22076
22077 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
22078
22079         * acinclude.m4: Standardize on func_dgettext
22080         not func_gettext, so that the checks for dgettext
22081         actually are paid attention to.
22082
22083 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
22084
22085         * configure.in (LIBS): Add $INTLLIBS into $LIBS
22086         directly, rather than repeating the checks for
22087         gettext.
22088
22089         * INSTALL: Added information about gettext and
22090         NLS support.
22091
22092         * acinclude.m4 (LIBM): Check for dgettext, not
22093         just gettext. This should hopefully fix things wrt
22094         systems with old versions of GNU gettext installed.
22095
22096 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
22097
22098         * configure.in (LIBS): Look for libgmodule in the
22099         right location.
22100
22101 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
22102
22103         * autogen.sh: add --enable-maintainer-mode
22104
22105         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
22106
22107 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
22108
22109         * docs/gtk-config.1.in:
22110           docs/Makefile.am:
22111           configure.in: gtk-config is now generated.
22112
22113         * docs/gtk-config.1: Removed, now generated.
22114
22115 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
22116
22117         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
22118         handle CreateNotify itself, still put out a debuging message for
22119         --gdk-debug=events. made the ReparentNotify debugging message more
22120         verbose.
22121         wrap xcoords translation for ConfigureEvents into an error trap,
22122         a destroy event may already be pending, and in that case, the
22123         actuall coordinate values are not at all critical.
22124
22125 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
22126
22127         * gdk/gdkcc.c: Stop leaking the color_hash all over
22128         the place. Simplify and improve the logic.
22129
22130 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
22131
22132         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
22133         for prototypes and function implementations consistent (reported
22134         by Tomas Ogren).
22135
22136 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
22137
22138         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
22139         send_event set in debugging output.
22140         (gdk_compress_exposures): default initialize the event so we don't
22141         operate on bogus values (namely send_event).
22142
22143 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
22144
22145         * gdk/gdkwindow.c: When we receive an unexpected
22146         destroy notify on one of our windows, don't just
22147         warn about it, also mark our windows as destroyed.
22148
22149 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
22150
22151         * gdk/gdkfont.c (gdk_font_hash_insert): Add
22152           name => font and name => fontset hashes. The 
22153           name => fontset hash is a _big_ win since we
22154           weren't previously caching fontsets at all and loading
22155           fontsets is expensive. The name => font hash
22156           is less of a win, but it does save us from doing
22157           repeated XQueryFont calls on the same font.
22158
22159         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
22160           list so we can remove font/fontset from hash.
22161
22162 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
22163
22164         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
22165           and slightly confusing test. [ XInternAtom (,,TRUE)
22166           will never return None ].
22167
22168 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
22169
22170         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
22171           gdk/gdkwindow.c (gdk_window_set_hints):
22172
22173         Don't omit setting the properties if flags == 0 -
22174         there may be an existing set of properties there
22175         already. (Very old bug. Would it be better to
22176         delete the property instead?)
22177
22178         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
22179           spelling error in comment.
22180
22181 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
22182
22183         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
22184           to avoid stomping over gdk_error_warnings.
22185
22186         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
22187           as (bits_per_pixel + 7) / 8. This gives the same
22188           result as before for multiples of 8, but actually
22189           a "reasonable" value for 1bit or 4bit displays.
22190
22191 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
22192
22193         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
22194         GNU Make.
22195
22196 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
22197
22198         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
22199         discarding configure events.
22200
22201 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
22202
22203         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
22204         refcount is greater than zero.
22205
22206         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
22207
22208         * gdk/gdkfont.c (gdk_font_unref): Likewise.
22209
22210         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
22211
22212         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
22213
22214 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
22215
22216         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
22217         that format 32 => sizeof(item) == 4. It really is
22218         sizeof(long).
22219
22220 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
22221
22222         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
22223         core dump at all on X IO errors, only core dump
22224         if --enable-debug for X errors.
22225
22226 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
22227
22228         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
22229         unknown window:" message. disabled ConfigureNotify discarding code,
22230         because it led to events being processed out of order.
22231
22232 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
22233
22234         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
22235
22236         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
22237         we export this function, supress error warnings and don't reset the
22238         error code in the first half of this function.
22239
22240         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
22241         code (instead of just -1) so gdk_error_trap_pop() reveals something
22242         actually informative about the error that happened.
22243
22244         * gdk/*.c:
22245         don't rely on gdk_error_code being -1 if an error occoured, but just
22246         gdk_error_code != 0.
22247
22248 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
22249
22250         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
22251         pointer *before* invoking the filter function, so we at least don't
22252         crash if a filter is removed that is currently executed. window filters
22253         *really* need to be made truely reentrant at some point.
22254
22255 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
22256
22257         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
22258         PropertyNotify debug messages.
22259
22260 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
22261         
22262         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
22263         
22264         * gdk/gdkim.c: Fix cut-and-paste errors for 
22265         x/y and PreeditAttributes/StatusAttributes.
22266
22267 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
22268
22269         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
22270         G_MAXINT to 2^16 to alleviate overflow problems in
22271         various window managers.
22272
22273 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
22274
22275         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
22276         for fontsets.
22277
22278 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
22279
22280         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
22281         Initialize size_hints.x and size_hints.y because kwm
22282         brokenly pays attention to them.
22283         (Bug #1181 -  Lars Heete <hel@admin.de>)
22284
22285 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
22286
22287         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
22288         return value of gdk_list_visuals(). 
22289         (Bug #1193 - Morten Welinder <terra@diku.dk>)
22290
22291 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
22292
22293         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
22294         XSetIMValues to (void *) when comparing to NULL, to workaround
22295         the problem of some compilers barfing since older X headers don't
22296         have the prototype for it.
22297
22298 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
22299
22300         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
22301         for pseudocolor where colormap->colors was double
22302         allocated.
22303
22304         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
22305         color value in the hash table with the pixel filled
22306         in so when we do later hash table lookups, the color
22307         value is correct.
22308         
22309 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
22310
22311         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
22312         making the call
22313
22314 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
22315
22316         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
22317         pointed out by Morten Welinder <terra@diku.dk>.
22318
22319 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
22320
22321         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22322           default filter from the list
22323
22324 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
22325
22326         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22327           default filter from the list
22328
22329 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
22330
22331         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
22332
22333         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
22334         g_strdup_printf instead of calcing the length separately
22335
22336 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
22337
22338         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
22339         that we don't do in many other places. (Fixing duplicate 
22340         #include of config.h)
22341
22342         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
22343         Otherwise, #ifndef XINPUT_NONE check in the latter
22344         doesn't work. (Bug #546)
22345
22346 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
22347
22348         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
22349         "None" case insensitive.
22350
22351 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
22352
22353         * gdk/gdkselection.c: 
22354         Add error traps so if the other end of the connection
22355         dies, we survive.
22356
22357 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
22358
22359         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
22360         dest_xid field into two fields - one for the window
22361         to send in messages, one to indicate the last looked
22362         up window for caching purposes. This is needed, so
22363         that Leave messages get the correct window.
22364
22365 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
22366
22367         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
22368         Fix warning created by people mucking around
22369         with the gsource API.
22370
22371         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
22372         Change mapping between GIOCondition and GdkInputCondition
22373         to match the way the Linux kernel does it. This should
22374         fix problems where closed pipes were no longer signalling
22375         GDK_INPUT_READ on systems with a native poll().
22376
22377 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
22378
22379         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
22380         explicitly for the string "None" - it is in the XPM
22381         spec and some servers treat unknown colors in odd ways
22382         (like asking the user!)
22383
22384 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
22385
22386         * gdk/gdkevents.c: made "->" into a "." of previous change so
22387         it compiles
22388
22389 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
22390
22391         * gdk/gdkevents.c (gdk_compress_exposures): Set the
22392         window field of the event structure before calling
22393         user filters.
22394
22395 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
22396
22397         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
22398         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
22399
22400 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
22401
22402         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
22403         intermediate text property - prevents major memory
22404         leak when gdk_use_mb.
22405         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
22406
22407 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
22408
22409         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
22410         gtk-a-higuti-990322-[0-3]
22411
22412         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
22413         sizeof(wchar_t) != sizeof (GdkWChar)
22414
22415         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
22416         that was causing -DX_LOCALE not to work.
22417
22418         * gtk/gtkrc.c (gtk_rc_init):
22419         X_LOCALE will never have LC_MESSAGES defined
22420
22421         * gdk/gdk.c (gdk_init_check):
22422         Remove --xim-preedit and --xim-status from argv properly.
22423
22424         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
22425         that the client window is present on the X server
22426         before we pass it to the input method.
22427
22428 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
22429
22430         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
22431         if --display is specified on the command line, than
22432         the drag window will not be created on that display.
22433         
22434 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
22435
22436         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
22437         lookups with only_if_exists == TRUE were inserting
22438         bogus values into the atom cache.
22439
22440 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
22441
22442         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
22443         then reset it to NULL.
22444
22445         * gdk/gdkcolor.c:
22446         (gdk_colors_free): 
22447         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
22448         key for g_hash_table_remove() in both functions, this prevents us
22449         from accessing possibly uninitialized portions of a GdkColor structure
22450         where we are only interested in its pixel value.
22451
22452 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
22453
22454         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
22455         font hash table, if we have a GdkFontPrivate entry for this font
22456         already, simply increment its reference count, provided by Olaf Dietsche
22457         <olaf.dietsche+list.gtk@netcologne.de>.
22458
22459 1999-09-21  Tor Lillqvist  <tml@iki.fi>
22460
22461         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
22462         just to be sure.
22463
22464         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
22465         unused variables, leftovers from the X11 version.
22466
22467         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
22468
22469         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
22470         downcase fields on X11.
22471
22472 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
22473         
22474         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
22475         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
22476
22477 1999-09-17  Tor Lillqvist  <tml@iki.fi>
22478
22479         * gdk/win32/gdk.def: Add gdk_threads_mutex.
22480
22481         * gtk/makefile.msc: Correct path to libintl.
22482
22483         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
22484         use of gint vs. int, and gint vs. gboolean in headers and
22485         definitions. Use GtkType for the *_get_type functions. Note that
22486         these changes preserve binary compatibility.
22487
22488         * gdk/gdk.c
22489         * gdk/win32/gdk.c
22490         * gdk/gdk.h: Fix inconsistencies: gint vs int.
22491
22492         * gtk/gtkmain.c
22493         * gtk/gtkclist.c
22494         * gtk/gtkmenufactory.c
22495         * gtk/gtknotebook.c
22496         * gtk/gtkwidget.c: Fix inconsistencies, also gint
22497         vs. gboolean.
22498
22499         * gtk/gtkcolorsel.[ch]
22500         * gtk/gtkcombo.[ch]
22501         * gtk/gtkdrawingarea.[ch]
22502         * gtk/gtkgamma.[ch]
22503         * gtk/gtkhandlebox.[ch]
22504         * gtk/gtkhpaned.[ch]
22505         * gtk/gtkhruler.[ch]
22506         * gtk/gtkplug.[ch]
22507         * gtk/gtkpreview.[ch]
22508         * gtk/gtkruler.[ch]
22509         * gtk/gtksocket.[ch]
22510         * gtk/gtkstatusbar.[ch]
22511         * gtk/gtktoolbar.[ch]
22512         * gtk/gtkvbbox.[ch]
22513         * gtk/gtkvpaned.[ch]
22514         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
22515         functions.
22516
22517         * gtk/gtkgamma.h: Fix bug, missing () in call of
22518         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
22519
22520 1999-09-14  Tor Lillqvist  <tml@iki.fi>
22521
22522         * gdk/gdkcolor.c (gdk_colormap_new)
22523         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
22524         colormap->colors was allocated twice.
22525
22526         * gdk/win32/gdk.c: Remove some unused stuff.
22527
22528         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
22529         colormap.
22530
22531         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
22532         * gtk/gtklabel.h (gtk_label_get_type)
22533         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
22534         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
22535         in a couple of places, not guint.
22536
22537 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22538
22539         * configure.in,po/et.po: added Estonian language file
22540
22541 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
22542
22543         * configure.in,po/da.po: added Danish file
22544
22545 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
22546
22547         * docs/gtkfaq.sgml: Minor FAQ Update
22548
22549 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
22550
22551         * docs/gtkfaq.sgml: FAQ update
22552
22553 1999-08-27  Tor Lillqvist  <tml@iki.fi>
22554
22555         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
22556         way to get window contents continually refreshed while resizing. I
22557         didn't like the effects myself, so it's not on by default.
22558
22559         * gdk/win32/gdkprivate.h: New flag variable
22560         gdk_event_func_from_window_proc, FALSE by default.
22561
22562         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
22563         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
22564         are passed --gdk-event-func-from-window-proc.
22565
22566         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
22567         and we have am event_func, call it instead of enqueing the event.
22568
22569 1999-08-23  Tor Lillqvist  <tml@iki.fi>
22570
22571         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
22572         Kelley: Set expose_count in GdkEventExposes correctly.
22573
22574         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
22575         MULTIPLE_WINDOW_CLASSES).
22576
22577         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
22578         for bug in NT, apparently NT *does* draw the end pixel, too, in
22579         LineTo with a one-pixel pen, so we don't have to do it ourselves.
22580
22581 1999-08-21  Tor Lillqvist  <tml@iki.fi>
22582
22583         Improvements by Hans Breuer: 
22584
22585         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
22586
22587         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
22588         CS_?REDRAW flags as they cause lots of (late) redraws when "show
22589         window contents while dragging" is turned on. Allocate at least
22590         one unique class for every GdkWindowType. If support for single
22591         window-specific icons is ever needed (eg. Dialog specific), every
22592         such window should get its own class.
22593
22594 1999-08-19  Tor Lillqvist  <tml@iki.fi>
22595
22596         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
22597         error that caused crashes.
22598
22599 1999-08-17  Tor Lillqvist  <tml@iki.fi>
22600
22601         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
22602         window, use ScrollWindowEx, and call UpdateWindow. This prevents
22603         bugs when for instance part of the window was outside the
22604         display. Thanks to Philippe Colantoni for finding and fixing this.
22605
22606 1999-08-16  Tor Lillqvist  <tml@iki.fi>
22607
22608         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
22609         endpoint calculations which were totally wrong. (A little RTFMing
22610         helps a lot ;-)
22611
22612         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
22613         from a separate directory, not from gettext, because of licensing
22614         issues (we want to use the LGPL version).
22615
22616         * README.win32: Mention the intl from glibc vs from gettext issue.
22617
22618 1999-08-13  Tor Lillqvist  <tml@iki.fi>
22619
22620         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
22621         in the key event handling: Now AltGr chars work again. Also,
22622         now Alt-digits are passed up as well as Control-digits.
22623         Pass keypad plus and minus as normal plus and minus.
22624
22625 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
22626
22627         * docs/gtkfaq.sgml: FAQ Update
22628
22629 1999-07-25  Tor Lillqvist  <tml@iki.fi>
22630
22631         * README.win32
22632         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
22633         the Wintab SDK.
22634
22635         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
22636         OK, but getting closer. Guard against bogus tilt data from Wacom
22637         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
22638         enable easier building without Wintab.
22639
22640         * gdk/win32/gdkinput.h
22641         * gdk/win32/gdkevents.c 
22642         * gdk/win32/gdkwindow.c: Minor changes related related to above.
22643         
22644         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
22645         code. As we have just one visual on Win32, no sense to have it in a
22646         table, and no need for the hash table.
22647
22648         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
22649         better on white background.
22650
22651 1999-07-21  Tor Lillqvist  <tml@iki.fi>
22652
22653         * README.win32: Update gcc build instructions. Mention gettext is
22654         GPL.
22655
22656         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
22657         supported cursor size with GetSystemMetrics.
22658
22659         * gdk/win32/gdkfont.c
22660         * gtk/gtkfontsel.c: Guard against some font weight and charset
22661         symbols being undefined (in mingw32 headers).
22662
22663         * gdk/win32/makefile.cygwin
22664         * gtk/makefile.cygwin
22665         * gtk/gtkthemes.c: No longer need to have differently named
22666         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
22667
22668 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
22669
22670         * docs/gtkfaq.sgml: Long awaited FAQ update.
22671
22672 1999-07-15  Tor Lillqvist  <tml@iki.fi>
22673
22674         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
22675         it. Obscure bit manipulation needed.
22676
22677         * gdk/win32/gdkevents.c: Logging.
22678         
22679         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
22680         style (file name include compiler name) for theme engines.
22681
22682 1999-07-13  Tor Lillqvist  <tml@iki.fi>
22683
22684         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
22685
22686         * gdk/win32/gdkevents.c: Fix long-standing bug in key
22687         events. The key.string wasn't zero-terminated, still we strdup'ed
22688         it in gdk_event_copy(). Synthesize crossing events for button
22689         events before possible propagation.
22690
22691         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
22692
22693         * gdk/win32/makefile.cygwin
22694         * gtk/makefile.cygwin: Use new DLL naming style for the
22695         GCC-compiled ones.
22696
22697         * gdk/win32/makefile.msc
22698         * gtk/makefile.msc: Cosmetics mostly.
22699
22700         * gtk/gtk.def: Add missing entry points.
22701
22702         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
22703
22704 1999-07-09  Tor Lillqvist  <tml@iki.fi>
22705
22706         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
22707         or height is zero. Don't print a warning if Pie or Arc fails, they
22708         always fail (?) for very narrow ellipses.
22709
22710         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
22711         the part or the destination window corresponding to source area
22712         outside of the source drawable's boundary.
22713
22714         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
22715         anything if less than two points.
22716
22717         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
22718         return NULL. Gtk cut-and-paste inside a single program works
22719         better this way. (It always gets the clipboard contents from
22720         Windows, not from its own copy, which is cleared anyway. I can't
22721         say I fully understand what happens... Emulating the X selection
22722         and property stuff is a bit of a mess.)
22723
22724         * gdk/win32/gdkevents.c
22725         * gdk/win32/gdkproperty.c: A bit more verbose logging.
22726
22727         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
22728         that never got deleted). Revamp gdk_region_shrink.
22729
22730         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
22731         after use.
22732
22733         * gtk/gtk.def: Add some missing entry points.
22734
22735         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
22736         component.
22737
22738 1999-07-04  Tor Lillqvist  <tml@iki.fi>
22739
22740         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
22741         Control-digits specially.
22742
22743 1999-07-03  Tor Lillqvist  <tml@iki.fi>
22744
22745         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
22746
22747 1999-06-28  Tor Lillqvist  <tml@iki.fi>
22748
22749         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
22750         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
22751         finding this.)
22752
22753 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
22754
22755         * gtk+.spec.in: Corrected some typos in files section.
22756         
22757 1999-06-15  Tor Lillqvist  <tml@iki.fi>
22758
22759         * README.win32: Mention using GNU gettext.
22760         * config.h.win32: Enable NLS stuff.
22761         * gtk/makefile.msc: Use GNU gettext.
22762         * gdk/win32/gdkdnd.c: Minor header reorg.
22763         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
22764         cosmetics.
22765         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
22766         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
22767
22768 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
22769
22770         * acinclude.m4
22771         * config.guess
22772         * config.status
22773         * ltconfig
22774         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
22775
22776 1999-05-30  Tor Lillqvist  <tml@iki.fi>
22777
22778         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
22779         SafeAdjustWindowRectEx. Don't override all calls to
22780         AdjustWindowRectEx by it, but use it only in two places: When
22781         creating a new top-level window and when moving a top-level
22782         window.
22783
22784         Use screen coordinate rectangle, not client rectangle, in
22785         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
22786         when we try to place a window so that the decoration (mainly,
22787         title bar) isn't visible.
22788
22789         These changes fix the bug that showed up for instance as the
22790         GIMP's saved top-level windows moving right and down (by an amount
22791         equal to the window decoration) for each session. This bug showed
22792         up also in testgtk's "Saved Position".
22793
22794         gdk_window_resize also redone a bit.
22795
22796 1999-05-25  Tor Lillqvist  <tml@iki.fi>
22797
22798         * gtk/testgtkrc: Add (commented out) Windows-style theme
22799         include line.
22800
22801         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
22802
22803 1999-05-18  Tor Lillqvist  <tml@iki.fi>
22804
22805         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
22806         gdkx.h to a gdk subdirectory, so that applications can include
22807         these with <gdk/*.h> without trouble.
22808
22809         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
22810         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
22811         have their bitmap destroyed.
22812
22813         * gdk/win32/gdk.def: Add gdk_root_parent.
22814
22815 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
22816
22817         * configure.in
22818           gtk-config.in
22819           ltconfig
22820           ltmain.sh     
22821           gtk/Makefile.am: changes to compile nicely (with xlib) 
22822           on BeOS
22823
22824 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
22825
22826         * acinclude.m4
22827         * config.guess
22828         * config.sub
22829         * ltconfig
22830         * ltmain.sh: upgrade to libtool 1.3
22831
22832 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
22833
22834         * gtk/gtkclist.c:
22835         * gtk/gtkctree.c: merges from gtk-1-2
22836
22837 1999-04-25  Tor Lillqvist  <tml@iki.fi>
22838
22839         Support added for building using a GNU toolchain on Win32,
22840         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
22841
22842         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
22843         * config.h.win32: Changes for gcc.
22844         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
22845         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
22846         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
22847         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
22848         Protect shl stuff unavaiilable with mingw32 headers.
22849         * gdk/win32/gdkevents.c: Fix typo.
22850         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
22851         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
22852         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
22853         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
22854         the mingw32 headers.
22855         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
22856         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
22857         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
22858         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
22859         Test for NATIVE_WIN32, not _MSC_VER.
22860         * gtk/gtkmain.c: No use warning about developer version on Win32,
22861         there aren't any non-developer versions anyhow.
22862         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
22863         * gtk/makefile.msc: Use pthread from another directory. Minor other
22864         changes. 
22865
22866 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
22867
22868         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
22869           default filter from the list
22870
22871 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
22872
22873         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
22874          when gtk_widget_grab_default() is called for a widget that
22875          is not within a GtkWindow.
22876
22877 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
22878
22879         * docs/gtk_tut.sgml, examples/clist.c: use a
22880           scrolled window in the clist example. Minor
22881           tutorial fixes.
22882
22883 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
22884
22885         * docs/gtk_tut.sgml: Style check from David King
22886           <dking@youvegotmail.net>
22887
22888 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
22889
22890         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
22891         compile with unknown value of GDK_WINDOWING
22892
22893 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
22894
22895         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
22896         after the rule is fired.
22897         (install-exec-local): Install gdkconfig.h only if the contents are
22898         different from the currently installed gdkconfig.h.
22899
22900 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
22901
22902         * gdk/Makefile.am (configexecincludedir): Rename from 
22903         configincludedir so that gdkconfig.h will be installed 
22904         as part of `make install-exec'. 
22905
22906 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
22907
22908         * acinclude.m4
22909         * config.guess
22910         * config.sub
22911         * ltconfig
22912         * ltmain.sh: upgrade to libtool 1.2f
22913
22914         * autogen.sh: libtool is not required to autogen gtk+
22915
22916         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
22917         needed)
22918
22919 1999-03-18  Tor Lillqvist  <tml@iki.fi>
22920
22921         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
22922         declaring gdk variables exported/imported from the DLL. New image
22923         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
22924         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
22925         GDK_DRAG_PROTO_OLE2.
22926
22927         * gdk/gdk.h: Merge in Win32 version: Two new functions,
22928         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
22929         declared only for the Win32 version, but could be in the X11
22930         version as well. (Needed for a Xlib-less gdk_imlib.)
22931         gdk_color_hash should have only one parameter. Declare
22932         gdk_threads_mutex with GDKVAR.
22933         
22934         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
22935         just one parameter.
22936
22937         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
22938         per pixel, not bits.
22939
22940         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
22941         Fetch bpp (which means bits-per-pixel here) from another place on
22942         Win32. Accept also depth==32 (which we might get on Win32) with
22943         bpp==32.
22944
22945         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
22946         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
22947         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
22948         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
22949         in the backend-dependent directory, not in the common gdk
22950         directory.
22951
22952         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
22953         headers.
22954
22955 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
22956
22957         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
22958         want to use the Gtk+ devel version (which is true, and yes - even i am
22959         currently working with the 1.2.x branch). so everyone reading this, you
22960         probably want to issue
22961         cvs checkout -r glib-1-2 glib
22962         and
22963         cvs checkout -r gtk-1-2 gtk+
22964         as your next two comands.
22965
22966 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
22967
22968         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
22969         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
22970
22971         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
22972         file. strongly deprecated the GTK_HAVE_* macros, we provide
22973         GTK_CHECK_VERSION() for people that need to check for certain
22974         Gtk+ versions.
22975
22976         * gtk/gtkcompat.h: removed this from CVS.
22977         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
22978         idea right from the start, it just didn't seem like that back then.
22979
22980 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
22981
22982         * merges from gtk-1-2:
22983
22984 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
22985
22986         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
22987         item factory class has been created.
22988         (gtk_item_factory_parse_rc): likewise.
22989
22990         * gtk/gtkmenu.c:
22991         keep proper references for old_active_menu_item.
22992         (gtk_menu_reparent): unset the usize of the new parent,
22993         so the menu can sanely be size requested and we don't get nasty screen
22994         artefacts upon next reparentation.
22995         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
22996         enter notify. only synthesize enter notifies if the pointer really is
22997         inside the event window.
22998         (gtk_menu_popdown): use gtk_menu_shell_deselect().
22999         (gtk_menu_popup): move the background setting stuff into
23000         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
23001
23002         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
23003         gtk_menu_shell_select_item() to select the new item.
23004         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
23005         do the right thing for deselection as well.
23006
23007 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
23008
23009         * gtk/gtkwidget.[hc]:
23010         (gtk_widget_accelerators_locked): return whether a widget's accelerators
23011         are locked.
23012
23013         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
23014         existing accelerators if the widget's accelerators are locked.
23015
23016 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
23017
23018         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
23019
23020         * gtk/gtkmenu.c: truely forward key press and key release events to
23021         the menu widget from the toplevel or tearoff window. we can't simply
23022         connect to that, we need to stop further processing of the events as
23023         well.
23024
23025 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
23026
23027         * gtk/gtkmenu.c:
23028         (gtk_menu_key_press): pass event->keyval, event->state to
23029         gtk_accelerator_valid, instead of event->keyval twice.
23030         refuse to install single letter accelerators for menus that use
23031         single letter shortcuts.
23032
23033         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
23034         gtk_menu_ensure_uline_accel_group().
23035
23036         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
23037         which will always return an uline accel group, made
23038         gtk_menu_get_uline_accel_group() return NULL if the group isn't
23039         yet created.
23040
23041 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
23042
23043         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
23044
23045         * gtk/gtkclist.c (gtk_clist_column_title_passive):
23046         Leave button sensitive, trap  button_press, button_release,
23047         motion_notify, enter_notify and leave_notify events instead.
23048         (gtk_clist_column_title_active): disconnect event handler.
23049         (gtk_clist_drag_data_get): fixed memory leak. Reported by
23050         Guillaume Laurent <glaurent@worldnet.fr>
23051
23052 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
23053
23054         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
23055         width/height mixups.
23056
23057         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
23058         if needed.
23059
23060 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
23061
23062         * gtk/testgtk.c (create_item_factory): unref the item factory after
23063         window's destruction.
23064
23065         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
23066         count on the menu shell around the menu item's activation, since the
23067         signal emission may cause menu shell destruction.
23068
23069         * gtk/gtkitemfactory.c:
23070         the previous code leaked one accel group per menu. we use
23071         gtk_menu_get_uline_accel_group() now to fix that, and with that
23072         also create the underline accelerator group of the menus only if
23073         required (i.e. an underline accelerator has been specified).
23074         (gtk_item_factory_construct):
23075         (gtk_item_factory_create_item): removed code that would create an
23076         extra accel group for the menu (and leak references).
23077         (gtk_item_factory_create_item): adapted the underline accelerator
23078         installation code to properly feature gtk_menu_get_uline_accel_group().
23079
23080         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
23081         menu->accel_group, this may return NULL if the accelerator group
23082         hasn't been set yet.
23083         added gtk_menu_get_uline_accel_group() to retrive the underline
23084         accelerator group of the menu, this will be created on demand
23085         and proper care is taken about its reference count.
23086
23087         * gtk/gtkitemfactory.h:
23088         * gtk/gtkitemfactory.c:
23089         dumped the approach of keeping a widgets by action list on the
23090         factory since the factory<->widget destroy negotiation didn't work
23091         and would be hard to get going at all. instead we keep a list of
23092         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
23093         persistant throughout a program's life time).
23094         also, i removed the static const gchar *key_* variables, and made
23095         them inline strings (they weren't actually used anyways).
23096         (gtk_item_factory_add_item): update ifactory->items.
23097         (gtk_item_factory_destroy): destroy ifactory->items (and remove
23098         the item factory pointer from the remaining ifactory widgets).
23099         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
23100         list to find the widget.
23101         (gtk_item_factory_get_item): new function that works around
23102         gtk_item_factory_get_widget() limitations, this function will only
23103         return menu items, even for <Branch> entries.
23104
23105 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23106
23107         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23108         font hash table, if we have a GdkFontPrivate entry for this font
23109         already, simply increment its reference count, provided by Olaf Dietsche
23110         <olaf.dietsche+list.gtk@netcologne.de>.
23111
23112         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
23113         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
23114
23115 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
23116
23117         * gtk/gtkcontainer.c:
23118         (gtk_container_add_with_args):
23119         (gtk_container_addv):
23120         (gtk_container_add): before adding a child to a conatiner, make sure
23121         it is (default) constructed, this is neccessary because under certain
23122         circumstances the child will get relized and mapped immediatedly, in
23123         which case it has to be constructed already.
23124
23125 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
23126
23127         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
23128         values > 1 as TRUE also.
23129
23130 1999-03-16  Tor Lillqvist  <tml@iki.fi>
23131
23132         * README.win32: New file.
23133                 
23134         * configure.in: Check for lstat.
23135
23136         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
23137         completeness.
23138
23139         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
23140
23141         * gtk/gtk.def: Removed CRs.
23142
23143         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
23144         ..\gdk\win32).
23145
23146         * gdk/win32/makefile.msc: Correct upwards relative paths.
23147         
23148 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
23149
23150         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
23151           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
23152           it was connecting a void function to expose_event and the int
23153           returning function to the draw signal
23154
23155 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
23156
23157         * configure.in:
23158         Use correct path to libgmodule.la when ref'ing uninstalled copy
23159         of glib.  (Already in stable branch, Bug #417)
23160
23161 1999-03-15  Tor Lillqvist  <tml@iki.fi>
23162
23163         Win32 merge and general portability stuff:
23164                 
23165         * acconfig.h,configure.in: Check for <sys/time.h>.
23166
23167         * gdk/win32: New directory (actually, been there for a while).
23168         
23169         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
23170         NATIVE_WIN32, and use these. Always case fold on Win32. No
23171         backslashed escapes on native Win32.
23172
23173         * gtk/{gtk.def,makefile.msc}: New files.
23174
23175         * gtk/Makefile.am: Add above new files.
23176         
23177         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
23178         instead of <strings.h>.
23179
23180         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
23181         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
23182         <unistd.h> appropriately.
23183
23184         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
23185         Use ABS() (from <glib.h>) instead of abs().
23186         
23187         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
23188         of gtk (and thus glib) headers, so that WIN32 will be
23189         defined. With MS C, include <direct.h> for mkdir prototype.
23190
23191         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
23192         some casts, needed by MS C.
23193
23194         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
23195         implemented).
23196
23197         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
23198         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
23199         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
23200
23201         * gtk/gtkmain.h: Mark variables for export/import on Win32.
23202                 
23203         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
23204         the event is not a hint, or its window is not the slider. Needed
23205         on Win32, at least.
23206
23207         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
23208         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
23209         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
23210         a subdirectory of the Windows directory as gtk system
23211         configuration directory.
23212
23213         * gtk/gtkselection.c: No chunks on Win32.
23214
23215         * gtk/gtksocket.c: Not implemented on Win32.
23216
23217         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
23218
23219         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
23220
23221         * gtk/maketypes.awk: Declare variables with a macro that expands to
23222         necessary export/import magic in the case of Win32.
23223                 
23224         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
23225
23226 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
23227
23228         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
23229         since those were meant only for gdki18n.h.  
23230         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
23231         for widechar tests.
23232         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
23233
23234 1999-03-13  Tor Lillqvist  <tml@iki.fi>
23235
23236         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
23237         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
23238
23239         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
23240         installed) to CFLAGS.
23241
23242         * gdk/Makefile.am: Add rules for gdkconfig.h.
23243
23244         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
23245         APIs.
23246
23247         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
23248         gdkx.h anyway when compiling for X11.
23249         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
23250         general): Merge in Win32 version.
23251         
23252         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
23253         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
23254         expansion (if we don't have HAVE_PWD_H), allow for drive
23255         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
23256         included code from Craig Setera's port to Win32 (the one that uses
23257         X11, and the cygwin dll), even if it probably will be abandoned.
23258
23259         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
23260         the user entered one herself.  This way one can complete *.h and
23261         don't get matches on any .help files, for instance.
23262         
23263 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
23264
23265         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
23266         font hash table, if we have a GdkFontPrivate entry for this font
23267         already, simply increment its reference count, provided by Olaf Dietsche
23268         <olaf.dietsche+list.gtk@netcologne.de>.
23269
23270         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
23271         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
23272
23273 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
23274
23275         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
23276         the number of calls to gdk_draw_point() (and thus to X) by
23277         clipping the points by hand.
23278
23279         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
23280         the clip parameter.
23281         (gtk_handle_box_paint): Only paint the handle if the expose area
23282         intersects it.
23283
23284 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
23285
23286         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
23287
23288 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
23289
23290         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
23291         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
23292
23293 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
23294
23295         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
23296          textmode (O_TEXT) for OS/2 version.
23297
23298 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
23299
23300         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
23301         GtkSpinButton, "input" and "output", to make the output more flexible.
23302         The user has to provide a mapping between adjustment->value and the
23303         output string (and vice versa, if the spin button is editable). 
23304         See testgtk for examples.
23305
23306 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
23307
23308         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
23309         new one.
23310         
23311         * configure.in: set gtk+ version to 1.3.0.