]> Pileus Git - ~andy/gtk/blob - ChangeLog
put into #ifdef GDK_WINDOWING_X11 to make GTK+ compile for non-X11 targets
[~andy/gtk] / ChangeLog
1 2001-04-23  Sven Neumann  <sven@gimp.org>
2
3         * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
4         compile for non-X11 targets again
5
6 2001-04-20  Alexander Larsson  <alexl@redhat.com>
7
8         * gtk/gtkcolorsel.[ch]:
9         API Change. Take GdkColor arguments instead of gdouble *.
10         Leave the old gtk_color_selection_set_color for compatibility,
11         but marked deprecated.
12         Do correct rounding when converting RGB <-> HSV.
13         
14         * gtk/gtkcolorseldialog.c:
15         * tests/testgtk.c:
16         Use new GtkColorSelection API.
17
18         * gtk/gtkhsv.c:
19         Fix problem selecting colors in triangle when Hue is 330.
20         Fix some black dots around the HSB triangle.
21         
22         * gtk/gtkfilesel.c:
23         return FALSE from the focus_in_event handler to fix focus problems.
24
25 2001-04-18  Havoc Pennington  <hp@redhat.com>
26
27         * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
28         set, so keybindings are configurable    
29         (gtk_window_activate_default): Change to activate the focus widget
30         instead if there's a focus widget, to be consistent with the
31         behavior that previously existed in key_press_event
32
33 2001-04-18  Havoc Pennington  <hp@redhat.com>
34
35         * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
36
37 2001-04-18  Havoc Pennington  <hp@redhat.com>
38
39         Close bug #50615:
40         
41         * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
42         the layout
43
44         * gtk/gtktext.c: Use base/text instead of bg/fg throughout
45
46         * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
47
48         * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
49         
50         * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
51         to blue for base, in addition to bg
52         
53 2001-04-18  Havoc Pennington  <hp@redhat.com>
54
55         * tests/testgtk.c (create_image): allow shrinking the image window
56         to test that we clip to allocation.
57
58         * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
59         #9845
60
61         * gtk/gtkenums.h: move GtkWrapMode in here, #50472
62
63 Wed Apr 18 14:23:14 2001  Owen Taylor  <otaylor@redhat.com>
64
65         * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
66         mode on shm segments to 0600. We'll see who complains.
67
68         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
69         _gdk_windowing_window_destroy() AFTER recursing through
70         children.
71
72         * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
73         testsocket_child on X.
74
75         * tests/testsocket[_child].c: Fix uses of
76         gtk_window_get_default_accel_group().
77
78         [ Merge patch from Ramiro Estrugo  <ramiro@eazel.com> from gtk-1-2 ]
79
80         * gdk/gdkimage.c: (gdk_image_get):
81         Deal with the possibility that XGetImage() might return NULL.
82         Allocate the GdkImagePrivate structure only after XGetImage()
83         succeeds in order not to dereference a NULL ximage pointer.  This
84         prevents a core dump when XGetImage() fails - which is unlikely,
85         but can happen due to race conditions accessing the geometries of
86         drawables.  An x error will still be triggered, but the gdk image
87         wrapper at least wont seg fault.
88         
89 2001-04-18  Havoc Pennington  <hp@redhat.com>
90
91         * gtk/gtkimage.c: fix to properly queue resizes when the image is
92         set
93
94         * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
95         if the insertion point isn't editable
96
97         * demos/gtk-demo/images.c: Added a GtkImage demo
98
99         * demos/gtk-demo/drawingarea.c: drawing area demo
100         
101         * demos/gtk-demo/menus.c (create_menu): cleanups
102
103 Wed Apr 18 12:15:52 2001  Owen Taylor  <otaylor@redhat.com>
104
105         * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h 
106           gdk/x11/gdkevents-x11.c: Introduce an extra child
107         of toplevel windows that serves to hold the focus to
108         avoid events being delivered to embedded windows.
109
110         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
111         some extra variables to clean up code and reduce the
112         number of casts.
113
114         * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
115         guint for 1 bit bit fields, not gboolean.
116
117 Wed Apr 18 10:04:23 2001  Owen Taylor  <otaylor@redhat.com>
118
119         * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
120         not TRUE. (Fixes #52925)
121
122 Tue Apr 17 18:05:34 2001  Owen Taylor  <otaylor@redhat.com>
123
124         * Released 1.3.4
125
126         * NEWS: Updated
127
128         * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
129         use GTK_TYPE_ENUM.
130
131 Tue Apr 17 13:47:12 2001  Owen Taylor  <otaylor@redhat.com>
132
133         * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
134
135         * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
136         names to compatibility #defines so docs work.
137
138         * gtk/gtkenums.h: Remove GtkMenuFactoryType
139
140         * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
141
142         * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
143
144         * tests/testgtkrc: No magenta cursors, please.
145
146         * README.in INSTALL.in HACKING README.cvs-commits: Updated.
147
148         * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
149         
150 Mon Apr 16 14:38:41 2001  Owen Taylor  <otaylor@redhat.com>
151
152         * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
153         grabs, since they are no longer necessary.
154
155         * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
156         by signal_connect() and call gtk_button_pressed() rather
157         than signal_connect_after().
158
159         * tests/testgtk.c: Restore radio menu items to combos 
160         since they'll look OK with Raleigh, and it is easier
161         than finishing the process of removing them that was
162         started earlier.
163
164 2001-04-16  Hans Breuer  <hans@breuer.org>
165
166         * gdk/gdk.def :
167         * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
168
169         * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
170         we are interested in the functions return value not the function address
171         * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
172
173         * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
174
175 2001-04-14  Hans Breuer  <hans@breuer.org>
176
177         * gdk/gdk.def :
178         * gdk/makefile.msc : updated
179
180         * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is 
181         "fill with tile" do so with new helper function gdk_win32_draw_tiles 
182         (the testgtk::text backgound pixmap is drawn again)
183         Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect 
184         Win32 Pango change
185         * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
186
187         * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
188         Not sure if the returned settings have the right unit, because I couldn't
189         find any docs for the X version ...
190
191         * gtk/gtk.def :
192         * gtk/makefile.msc.in : updated
193
194 Thu Apr 12 17:41:17 2001  Owen Taylor  <otaylor@redhat.com>
195
196         * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
197         wording problems. (Compared to version from Johannes Stezenbach to
198         check correctness.)
199
200 Thu Apr 12 21:04:26 2001  Tim Janik  <timj@gtk.org>
201
202         * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
203         this to compile.
204
205 2001-04-12  Anders Carlsson  <andersca@codefactory.se>
206
207         * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
208         not pixbufpos.
209
210         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
211
212         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
213         are unsigned insts, therefore use g_value_set_uint.
214         (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
215
216 Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@webwynk.net>
217
218         * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
219
220         * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
221         GTK_TYPE_STRING.
222
223         * gtk/gtktreeview.c: New functions to allow initial column
224         dragging work.
225
226         * gtk/gtktreeviewcolumn.c: Initial column dragging support.
227
228         * tests/testtreefocus.c: give dave some love.
229
230         * tests/testtreesort.c: Modify test to check really long samples.
231
232 2001-04-11  Alexander Larsson  <alexl@redhat.com>
233
234         * gtk-2.0.m4: Pass pkg-config options
235         before the other args so it works even if
236         POSIXLY_CORRECT is set.
237
238 Mon Apr  9 19:02:07 2001  Tim Janik  <timj@gtk.org>
239
240         * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
241         0, interface 0).
242
243 2001-04-04  Denis Oliver Kropp  <dok@convergence.de>
244
245         * gtk/gtkcalendar.c (gtk_calendar_button_press):
246         check for action_func != NULL
247
248 2001-04-04  Sven Neumann  <sven@gimp.org>
249
250         * tests/testgtk.c (test_init): corrected path to gtk.immodules
251
252 Wed Apr  4 09:18:18 2001  Tim Janik  <timj@gtk.org>
253
254         * Released Gtk+-1.3.3.
255
256 Wed Apr  4 07:42:23 2001  Tim Janik  <timj@gtk.org>
257
258         * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
259
260 Wed Apr  4 04:13:18 2001  Tim Janik  <timj@gtk.org>
261
262         * gtk/stock-icons/Makefile.am: stay in builddir and read/write
263         files to/from source dir. (if we don't stay in builddir, we
264         can't reach make-inline-pixbuf.
265
266         * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
267         deps.
268
269         * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
270         ages 0).
271
272 Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>
273
274         * gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
275         moved to the GtkTreeSortable interface.
276
277         * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
278         Make more efficient (fixes #50262).
279
280 Tue Apr  3 13:55:37 2001  Owen Taylor  <otaylor@redhat.com>
281
282         * NEWS: Updated.
283
284         * configure.in: Remove support for uninstalled glib.
285
286         * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
287         so as not to stop emission.
288
289         * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
290         is no longer supported.
291
292         * Makefile.am gtk/Makefile.am tests/*: Moved all tests
293         into tests, change build order to build modules before
294         gtk/.
295
296         * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
297         to here.
298
299 Tue Apr  3 13:52:57 2001  Tim Janik  <timj@gtk.org>
300
301         * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
302         and gtk_item_factory_dump_rc() GtkPatternSpec argument to
303         GPatternSpec. this is actually unlikely to cause breakage in
304         third-party apps since except for gle, pretty much ever caller
305         passes NULL here.
306
307         * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
308
309         * *.c: use g_pattern_*() API.
310
311         * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
312
313         * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
314         directions aren't passed in.
315
316         * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
317         functionality to be usable from gtkstyle.c as well, give precedence
318         for conversion to user-supplied parsers.
319         s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
320
321         * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
322         _gtk_settings_parse_convert() for rcporperty value conversion.
323
324 2001-04-03  Alexander Larsson  <alexl@redhat.com>
325
326         * gdk/linux-fb/gdkevents-fb.c:
327         Add empty gdk_setting_get().
328
329 Tue Apr  3 05:09:07 2001  Tim Janik  <timj@gtk.org>
330
331         * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
332         variable names.
333         
334         * gtk/makeenums.pl: touch this so enum files get remade.
335
336 Mon Apr  2 19:36:57 2001  Jonathan Blandford  <jrb@redhat.com>
337
338         * gtk/gtktreestore.c (gtk_tree_store_init):  Bug fix to make trees
339         work again when not sorted.
340
341         * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
342         and "expand_row" signal, closing bug 52578.
343
344         * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
345         support.
346
347         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
348         support.
349
350 Mon Apr  2 18:18:07 2001  Owen Taylor  <otaylor@redhat.com>
351
352         * gdk/gdkevents.h: Add GdkEventSetting event for notification
353         of changes to system settings, gdk_setting_get() to retrieve
354         a single system setting.
355
356         * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
357         to the draft XSETTINGS mechanism.
358
359         * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
360         XSETTINGS.
361
362         * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
363         of GDK settings changes to the GtkSettings object.
364
365         * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
366         double-click-timeout property to GDK.
367
368         * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
369         Define GDK boxed types here.
370
371         * gdk/Makefile.am gdk/makeenums.pl: Generate source files
372         gdk/gdkenumtypes.[ch] for enum definitions.
373
374         * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
375         * gtk/gtk-boxed.defs: Comment out GDK types
376         * gtk/gtktypeutils.h: Remove GDK types
377         * gtk/Makefile.am: No longer scan GDK headers for enumerataions
378
379 Mon Apr  2 16:41:08 2001  Owen Taylor  <otaylor@redhat.com>
380
381         * Applied patch from Ron Steinke to add signal accumulators
382         so that signals with the convention 'TRUE return means
383         handled' stop emission on a TRUE return.
384
385         * gtk/gtkmain.[ch]: Add private accumulator 
386         _gtk_boolean_handled_accumulator, used throughout GTK+.
387         
388         * gtk/gtkspinbutton.c: Add accumulator for ::output.
389
390         * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
391         
392         * gtk/gtkwidget.c: Add accumulators for event signals,
393         ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
394         for ::mnemonic-activate.
395
396         * gtk/gtkwindow.c: Add accumulator for ::frame_event
397
398 Mon Apr  2 16:24:21 2001  Owen Taylor  <otaylor@redhat.com>
399
400         * gtk/gtkwidget.c: Add missing include.
401
402 Mon Apr  2 16:56:15 2001  Jonathan Blandford  <jrb@redhat.com>
403
404         * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
405         marshaller.
406
407         * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
408         "changed" signal to "range_changed".
409
410         * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
411         removing a tree from one model would remove all trees from that
412         model.
413         * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
414         changed signal instead.
415
416 Mon Apr  2 16:13:58 2001  Owen Taylor  <otaylor@redhat.com>
417
418         * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
419         chaining up to parent impl, since we have a INPUT_ONLY
420         window.
421
422         * gtk/gtkentry.[ch]: Add a cursor_color property to set the
423         foreground color for the cursor.
424
425 Mon Apr  2 15:06:13 2001  Owen Taylor  <otaylor@redhat.com>
426
427         * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference 
428         param spec when caching property values, since we unref it
429         later when we free the style.
430
431         * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
432         values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
433
434 Mon Apr  2 10:47:57 2001  Owen Taylor  <otaylor@redhat.com>
435
436         * gtk/gtkwidget.c (gtk_widget_class_init): Fix 
437         G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
438         stupidity.
439
440 Mon Apr  2 00:51:11 2001  Owen Taylor  <otaylor@redhat.com>
441
442         [ First pass at adding style properties. Still needs some definite
443         fine-tuning. ]
444
445         * gtk/gtkbutton.c: Add ::default_spacing style property.
446          
447         * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
448         ::indicator_spacing style properties.
449
450         * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
451         style properties.
452
453         * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
454         rather than a normal property.
455
456         * gtk/gtkwidget.c: Add an ::interior_focus style property to
457         draw focus inside buttons, in the Windows/Java Metal/etc. style.
458
459         * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
460         Honor ::interior_focus.
461         
462         * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is 
463         TRUE.
464
465         * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
466         Add ::slider_width, ::trough_border, ::stepper_size,
467         ::stepper_spacing style properties.
468
469         * gtk/gtkscale.[ch] Add ::slider-length style property.
470
471 2001-04-02 Alexander Larsson   <alexl@redhat.com>
472
473         * gdk/linux-fb/gdkwindow-fb.c:
474         Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
475         warnings that were spewed on startup.
476
477         * gtk/gtkwindow-decorate.c:
478         gtk_window_reposition -> _gtk_window_reposition
479
480 Sun Apr  1 21:37:22 2001  Owen Taylor  <otaylor@redhat.com>
481
482         * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
483         Add boxed type for GtkRequistion. Use it for ::size-request.
484
485         * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
486         Add a new GtkBorder structure useful for geometry properties
487         for widgets. Add corresponding GTK_TYPE_BORDER.
488         
489         * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
490         Support automatic parser selection like
491         gtk_settings_install_property_parser().
492
493         * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
494         functionality for use by gtk_widget_class_install_style_property.
495         Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
496
497 Sun Apr  1 20:48:59 2001  Owen Taylor  <otaylor@redhat.com>
498
499         * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
500         g_param_spec_unichar(). 
501
502 Sun Apr  1 23:41:37 2001  Tim Janik  <timj@gtk.org>
503
504         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
505         _NET window managers.
506
507         * gtk/gtkmenufactory.[hc]: cvs removed those files now.
508
509 Sun Apr  1 08:00:13 2001  Tim Janik  <timj@gtk.org>
510
511         * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
512         bad needs to be nuked, not just deprecated.
513
514         * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use 
515         gtk_widget_popup().
516
517         * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
518         
519         * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
520         widget.
521         
522         * docs/Changes-2.0.txt: updates.
523         
524 Sun Apr  1 01:02:54 2001  Jonathan Blandford  <jrb@redhat.com>
525
526         * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
527         for (i = 0; i < 100; i ++)
528           g_print ("I will confirm it compile before committing\n");
529
530 Sun Apr  1 00:52:06 2001  Jonathan Blandford  <jrb@redhat.com>
531
532         * gtk/gtktreestore.c: Initial work on implementing the
533         GtkTreeSortable interface.  Basicaly a big cut'n'paste job.
534
535 Sun Apr  1 03:28:14 2001  Tim Janik  <timj@gtk.org>
536
537         * gtk/gtkwidget.c: fixed a bunch of notifications, added
538         reference counts around emissions where the widget is used afterwards.
539         added freeze/thaws around multiple properties being notified.
540         (_gtk_widget_get_aux_info): cleanups.
541         
542         * gtk/gtksettings.c (gtk_settings_install_property): provide
543         default parsing functions for gdkcolor, enums and flags.
544
545         * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
546         applied by owen.
547         backed out gtk_window_get_location(), gtk_window_set_location(),
548         gtk_window_get_size() and gtk_window_set_size(), these
549         have to be sorted out wrg x/y/width/height/default_with/default_height
550         properties.
551         kept a flag in GtkWindowGeometryInfo to handle user
552         resetting default sizes.
553         cleaned up ZVT comments.
554         bunch of assorted bug fixes, notification fixes.
555         (_gtk_window_reposition): make this a really internal function.
556         
557         * gtk/testgtk.c: fixups.
558         
559 2001-03-31  Hans Breuer  <hans@breuer.org>
560
561         * config.h.win32.in : disable USE_MMX for msvc build cause
562         the assembler doesn't fit and is out of my scope. Disable
563         USE_GMODULE for msvc build as wel. The right way to share
564         binaries on win32 would be to use libtiff.dll etc. To reduce
565         installation hassles IMO it's better to include all fileformats
566         builtin to gdk-pixbuf
567
568         * gdk-pixbuf/makefile.msc : new file
569
570         * gdk/gdk.def : updated
571
572         * gdk/win32/gdkevents-win32.c : don't erase the background if
573         .no_bg is set. It improves the scrolling (e.g. of testgtk main
574         buttons
575         * gdk/win32/gdkgeometry-win32.c : added comment about the above
576
577         * gdk/win32/gdkwindow-win32.c : added three new functions like
578         the X version. Only one is implemented, because the other two
579         "gdk_window_begin_(resize|move)_drag" got no docs and appear to
580         be default behaviour on win32 anyway ...
581
582         * gtk/gtk.def : updated
583
584         * gtk/makefile.msc.in : update for new files, use glib-genmarshal
585         from where it was built and add an additional rule to automagically
586         build gtkmarshal.[hc]
587
588         * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
589         before array access for the current entry isn't finished
590
591         * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
592         use g_return_val_if_fail
593
594         * gtk/testgtk.c (window_controls) : don't use the *wrong* size
595         for the static array, but let the compiler calculate it. It
596         makes me wonder if gcc isn't capable to catch bugs like this ...
597
598 2001-03-31  James Henstridge  <james@daa.com.au>
599
600         * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
601         constant "-1" in the aux info structure.
602
603 2001-03-30  Alexander Larsson  <alexl@redhat.com>
604
605         * gtk/gtkbutton.c (gtk_button_get_property):
606         * gtk/gtklabel.c:
607         Remove leaks.
608         
609         * gtk/gtkcontainer.c:
610         * gtk/gtkhscale.c:
611         * gtk/gtkhscrollbar.c:
612         * gtk/gtklayout.c:
613         * gtk/gtkmisc.c:
614         * gtk/gtkprogress.c:
615         * gtk/gtkprogressbar.c:
616         * gtk/gtkrange.c:
617         * gtk/gtktable.c:
618         * gtk/gtkviewport.c:
619         * gtk/gtkvscale.c:
620         * gtk/gtkvscrollbar.c:
621         * gtk/gtkwidget.c:
622         Property patches, based on patches from John Margaglione and Lee Mallabone.
623
624 Thu Mar 29 21:20:38 2001  Mike Kestner  <mkestner@ameritech.net>
625
626         * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
627         adjustment. Cleaned redundant preconditions (spin != NULL). Added
628         inline API function docs.
629         (gtk_spin_button_new_with_range): New convenience constructor.
630         (gtk_spin_button_set_increments): New adjustment helper.
631         (gtk_spin_button_set_range): New adjustment helper.
632
633         * gtk/testgtk.c : added test of the new convenince constructor and
634         value_changed signals.
635
636 Thu Mar 29 20:20:38 2001  Jonathan Blandford  <jrb@redhat.com>
637
638         * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
639         listen to the reorder signal.
640
641 Wed Mar 28 20:30:26 2001  Owen Taylor  <otaylor@redhat.com>
642
643         * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
644         to get the aux info structure fo the widget.
645
646         * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
647         above function.
648
649         [ Patch from  Havoc Pennington  <hp@redhat.com> ]
650
651         * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
652         to get the size of the window manager frame, basically the same
653         code that gdk_window_get_root_origin() had
654         (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
655
656         * gtk/gtkwindow.c (gtk_window_set_default_size): use
657         gdk_window_resize() if the window is realized and resizeable
658
659         * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
660         typo so that setting gravity works
661
662         * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
663         allocation if auto_shrink is on, even if the default size
664         has not changed.
665
666         * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
667         g_return_if_fail
668
669 Thu Mar 29 16:29:12 2001  Jonathan Blandford  <jrb@redhat.com>
670
671         * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
672         reordering/sorting work.  Now pretty much works.
673
674         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
675         reorder mostly work.  Still need to get the parity correct.
676
677         * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
678         signal, so I can listen for the sort_column_changed signal so I
679         can change my "sort_indicator" property.  Cool.
680
681 Wed Mar 28 00:03:10 2001  Owen Taylor  <otaylor@redhat.com>
682
683         [ Patch from Havoc Pennington, hp@redhat.com ]
684
685         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
686         Add functions gdk_window_begin_resize_drag/begin_move_drag
687         to start resizing or moving a toplevel window. This
688         is done either using the _NET_WM_MOVERESIZE protocol,
689         or, if that isn't present, by emulation.
690
691         * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
692         to export the above to GTK+-land.
693
694         * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
695         
696         * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
697         Move this function into gdkwindow, since we need it
698         when implementing fallback resizing.
699
700         * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
701         Fix typo when setting gravity.
702
703         * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
704         Add an optional (but on by default) resize grip for resizing 
705         the parent window.
706
707 01-03-29  Alexander Larsson  <alexl@redhat.com>
708
709         * gtk/gtktooltips.c (gtk_tooltips_event_handler):
710         Don't return TRUE from the event handler, that blocks all
711         event signals on the tooltip widget. Now you can press buttons
712         in toolbars again.
713
714 Wed Mar 28 19:20:43 2001  Owen Taylor  <otaylor@redhat.com>
715
716         * gtk/testtext.c (create_buffer): Add missing NULL on
717         valist.
718
719         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
720         c-n-p problem with INCONSISTENT property.
721
722         [ Patch from Havoc Pennington  <hp@redhat.com> ]
723
724         * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
725         hook.
726
727         * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
728         signal as a hook for extending the default popup menu
729
730         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
731         use radio menu items for the input method menuitems
732
733         * gtk/gtkimcontextsimple.c (check_hex): do better validation of 
734         inserted unicode from Ctrl-Shift-hex input method
735
736         * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
737         validatation here, already done at GtkTextBuffer level.
738
739         * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
740         popup_menu run action signal and Shift+F10 and Menu keybindings.
741
742         * gtk/gtkentry.c: implement a default handler for popup_menu
743
744         * gtk/gtktextview.c: implement a default handler for popup_menu
745
746         * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
747         from a key event
748         
749         * gtk/gtklabel.c: remove "trailer" cruft
750
751 Wed Mar 28 17:27:12 2001  Jonathan Blandford  <jrb@redhat.com>
752
753         * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
754         handle reordering of trees.  Seems to mostly work w/ the exception
755         of the parity flag.
756
757         * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
758         signal.
759
760 Wed Mar 28 21:12:37 2001  Tim Janik  <timj@gtk.org>
761
762         * gtk/gtkwidget.h: c++ fixes.
763
764 Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
765
766         * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
767         memory.
768
769 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
770
771         * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
772         Nils Barth fixing event return values. (#51041)
773
774         * gtk/gtkwidget.c: Fix some return values for default
775         functions.
776
777         * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
778         return values for trough_keys functions.
779
780         * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
781         value for add_accelerator (shoudl have been a void
782         return.)
783
784         * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
785         Fix return type of EVENT.
786
787         * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
788         signal return a boolean.
789
790 Tue Mar 27 22:07:44 2001  Jonathan Blandford  <jrb@redhat.com>
791
792         * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
793         reordered signal.
794
795         * tests/testtreesort.c (main): fix spelling.
796
797 Tue Mar 27 20:55:29 2001  Jonathan Blandford  <jrb@redhat.com>
798
799         * gtk/gtkliststore.c: More work on implementing sortable
800         interface.
801
802 Mon Mar 26 15:48:45 2001  Owen Taylor  <otaylor@redhat.com>
803
804         * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
805         reference the widgets in the resulting list. (#11821)
806         This makes this consistent with gtk_container_children.
807
808         * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
809         uses of gtk_window_list_toplevels.
810
811 Mon Mar 26 15:26:17 2001  Owen Taylor  <otaylor@redhat.com>
812
813         * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
814         a virtual function to set whether the IM context should use 
815         the preedit string. (#51922)
816         
817 Mon Mar 26 14:42:59 2001  Owen Taylor  <otaylor@redhat.com>
818
819         * gdk/gdkpango.h: Remove stale FIXME comment.
820
821 2001-03-26  Alexander Larsson  <alla@lysator.liu.se>
822
823         * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
824         Fixed bug that returned NULL if a filename was selected.
825
826 2001-03-24  Havoc Pennington  <hp@pobox.com>
827
828         * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
829         to contain the word "theme"
830
831 2001-03-24  Havoc Pennington  <hp@pobox.com>
832
833         * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
834         slower but finer-grained
835         (gtk_hsv_focus): get initial focus on the ring or triangle 
836         according to tab direction
837
838         * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
839
840 2001-03-23  Havoc Pennington  <hp@pobox.com>
841
842         * gtk/gtkhsv.c: make this somewhat key-navigable
843
844         * gtk/gtkfontsel.c: mnemonics
845
846         * gtk/gtkgamma.c: mnemonics
847
848         * gtk/gtkcolorsel.c: add mnemonics to labels
849
850 2001-03-22  Havoc Pennington  <hp@pobox.com>
851
852         Applied big patch from Seth Lytle to fix event handler return
853         values, slightly modified.
854
855         * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
856         handled.
857         (gtk_calendar_key_press): return TRUE for GDK_space triggers
858         select_day
859
860         * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
861         (gtk_clist_button_release): return TRUE if handled
862
863         * gtk/gtkcolorsel.c (mouse_release):
864         (palette_activate): 
865         (palette_press): 
866         (palette_new): 
867         (mouse_press): 
868         (get_screen_color): 
869         fixed return type (void to gboolean), return TRUE,
870         added GTK_SIGNAL_FUNC cast
871
872         * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
873         (void to gboolean), and return TRUE
874         (gtk_combo_button_release): changed return value to TRUE after
875         gtk_grab_add on combo->popwin
876
877         * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
878         collapse or expand
879
880         * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
881         button/motion
882
883         * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
884         press/release and motion that trigger act
885
886         * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
887
888         * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
889         for GDK_Return
890         
891         * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
892         (gtk_list_button_release): return TRUE if selection
893
894         * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
895         press
896
897         * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
898         (gtk_menu_shell_button_release): chain parent_menu_shell retval
899
900         * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
901         nothing triggered
902         (gtk_notebook_button_release): return TRUE if we do anything
903
904         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): 
905         (gtk_spin_button_button_release): return TRUE or chained retval
906
907         * gtk/gtktext.c (gtk_text_button_press): 
908         (gtk_text_button_release): return TRUE
909         (gtk_text_key_press): remove redundant retval code
910         
911         * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
912         and sensitive
913         (gtk_tree_item_subtree_button_click): changed type to gint, and return
914         TRUE if sensitive
915
916         * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies 
917         return TRUE
918
919 2001-03-23  Havoc Pennington  <hp@redhat.com>
920
921         * gtk/testgtk.c: fix warnings
922
923         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
924
925         * gtk/gtktextview.c: fix warnings
926
927         * gtk/gtktext.c (find_cursor_at_line): fix warning
928
929         * gtk/gtkselection.c (gtk_selection_notify): fix warning 
930
931         * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
932         of this function
933
934         * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
935         fix warning
936
937         * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
938
939         * gtk/gtkfontsel.c: fix warning
940
941         * gtk/gtkcolorsel.c: fix warnings
942
943 2001-03-23  Havoc Pennington  <hp@redhat.com>
944
945         * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
946
947         * gtk/gtkbox.c: Apply property patch from Lee Mallabone
948
949         * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
950         and deprecated gtk_check_menu_item_set_show_toggle().
951         
952         * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
953
954         * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
955
956         * gtk/gtkframe.c: Apply property patch from Lee Mallabone
957
958 2001-03-23  Havoc Pennington  <hp@redhat.com>
959
960         * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
961         some docs
962
963 Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
964
965         * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
966         this.
967
968         * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
969         set_cell to set_value
970
971         * gtk/gtkliststore.c (gtk_list_store_set_value): change from
972         set_cell to set_value
973
974 Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
975
976         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
977         fix braino.
978         * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
979         support.
980
981         * gtk/gtktreeview.c: Addition of initial sortable support.
982
983         * gtk/gtktreestore.c: Addition of initial sortable support.
984
985         * gtk/gtkliststore.c: Addition of initial sortable support.
986
987         * gtk/gtkmarshal.list: yet another marshaller.
988
989         * gtk/gtktreedatallist.[ch]: shared code between the store models
990         for handling sorting headers.
991
992 2001-03-22  Havoc Pennington  <hp@redhat.com>
993
994         * gtk/gtkcontainer.c (gtk_container_set_focus_chain): 
995         (gtk_container_unset_focus_chain): Add ability to override the 
996         focus chain for a container explicitly
997
998 Thu Mar 22 13:01:44 2001  Tim Janik  <timj@gtk.org>
999
1000         * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
1001         added PROP_MNEMONIC_WIDGET.
1002
1003         * gtk/gtkwindow.c (gtk_window_activate_mnemonic): 
1004         (gtk_window_remove_mnemonic): 
1005         (gtk_window_add_mnemonic): fixed assertions.
1006         (gtk_window_activate_mnemonic): constrain modifier checks to those
1007         permitted by gtk_accelerator_get_default_mod_mask().
1008         got rid of gtk_window_get_default_accel_group().
1009
1010         * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
1011         activatable widgets either by focussing or a warning.
1012         added a signal accumulator to ::activate_mnemonic which stops the
1013         emission once a handler returned TRUE.
1014
1015 2001-03-22  Havoc Pennington  <hp@pobox.com>
1016
1017         * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
1018         the stock item label
1019
1020         * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
1021
1022         * gtk/gtkstock.c (builtin_items): add mnemonics where missing
1023
1024         * demos/gtk-demo/*.c: Add mnemonics all over the place
1025
1026         * gtk/gtklabel.h: mark parse_uline deprecated
1027
1028 2001-03-21  Alexander Larsson  <alexl@redhat.com>
1029
1030         * gtk/gtkitemfactory.[ch]:
1031         Add support for stock and normal imagemenuitems.
1032         
1033         * gtk/testgtk.c:
1034         Add some tests for mnemonics, stock toolbars, stock
1035         and image menuitems in itemfactory and gdk_window_scroll.
1036
1037 2001-03-21  Alexander Larsson  <alexl@redhat.com>
1038
1039         * gtk/gtkbutton.[ch]:
1040         * gtk/gtkdialog.c:
1041         Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
1042         removed accel_group argument. Renamed gtk_button_new_accel() to
1043         gtk_button_new_with_mnemonic() and removed accel_group argument.
1044
1045         * gtk/gtkcheckbutton.[ch]:
1046         New function gtk_check_button_new_with_mnemonic().
1047
1048         * gtk/gtkentry.c:
1049         Override activate_mnemonic and just grab focus.
1050
1051         * gtk/gtkitemfactory.c:
1052         Don't add menu uline accel group, instead use mnemonics support.
1053
1054         * gtk/gtklabel.[ch]:
1055         New support for mnemonics.
1056
1057         * gtk/gtkmarshal.list:
1058         Needed BOOLEAN:BOOLEAN for activate_mnemonic.
1059
1060         * gtk/gtkmenu.[c]:
1061         * gtkmenushell.c:
1062         Use mnemonics instead of accel groups for uline
1063         support in menu items.
1064         Removed gtk_menu_get_uline_accel_group() and
1065         gtk_menu_ensure_uline_accel_group().
1066
1067         * gtk/gtkmenuitem.c:
1068         Override activate_mnemonic to handle switching between
1069         menu items if there are collisions.
1070         
1071         * gtk/gtknotebook.c:
1072         Connect to activate_mnemonic on the tab_label, so that
1073         activating it switches to that notebook page.
1074
1075         * gtk/gtkwidget.[ch]:
1076         Add activate_mnemonic signal. New function
1077         gtk_widget_activate_mnemonic() to emit it.
1078         Default implementation does activate/grab_focus.
1079
1080         * gtk/gtkwindow.[ch]:
1081         Add support for mnemonics in windows.
1082         New functions:
1083         gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
1084         gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
1085
1086         * gtk/testgtk.c:
1087         Update to function name changes.
1088         
1089 2001-03-21  Alexander Larsson  <alexl@redhat.com>
1090
1091         * gtk/gtkimagemenuitem.[c]:
1092         Add gtk_image_menu_item_new_from_stock()
1093
1094 Tue Mar 20 15:00:43 2001  Jonathan Blandford  <jrb@redhat.com>
1095
1096         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
1097         Fix buglet in meeting.
1098
1099 2001-03-19  Havoc Pennington  <hp@redhat.com>
1100
1101         * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
1102         add a bunch of accessor functions. This is because we have
1103         reasonable expectations of extending what fields it contains in
1104         the future.
1105
1106         * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
1107         changes
1108
1109         * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
1110         GtkIconSource   
1111
1112 Mon Mar 19 15:53:36 2001  Owen Taylor  <otaylor@redhat.com>
1113
1114         * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
1115         handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
1116
1117         * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c 
1118           gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
1119           gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
1120           gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
1121         Change float to double everywhere with the exception of 0<->1.0 alignment
1122         and GtkCurve.
1123
1124 2001-03-19  Tor Lillqvist  <tml@iki.fi>
1125
1126         * gdk/win32/gdkdrawable-win32.c
1127         * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
1128         output.
1129
1130         * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
1131         gdkwin32.h.
1132
1133 2001-03-18  Tor Lillqvist  <tml@iki.fi>
1134
1135         * gdk/win32/gdkevents-win32.c (print_window_state): New function.
1136         print_event_state, print_event): Use preprocessor macro to make
1137         code more compact. Print also GDK_WINDOW_STATE events.
1138         (synthesize_crossing_events): Remove the old #ifdeffed-out code.
1139         
1140         * gtk/gtk.def
1141         * gtk/makefile.mingw.in: Update.
1142
1143         * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
1144         to catch also Cygwin.
1145
1146 Sun Mar 18 01:15:30 2001  Tim Janik  <timj@gtk.org>
1147
1148         * gtk/gtkspinbutton.[hc]: added rc-style argument
1149         GtkSpinButton::shadow_type.
1150         removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
1151         and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
1152         rc-style settings.
1153
1154         * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
1155
1156         * gtk/gtkwidget.c: quark cleanups.
1157
1158         * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
1159         scanner with appropriate configuration, renamed GtkRcStyleClass.clone
1160         to create_rc_style() (we don't do cloning in standard OO sense).
1161         added per rc style properties.
1162         
1163         * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
1164         property values and for caching those. some cleanups.
1165         
1166         * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
1167         
1168         * gtk/gtksettings.[hc]: new file for global rc-file properties
1169         (at least currently, should get extended to support X properties
1170         and other communication mechanisms).
1171         
1172         * gtk/gtkwidget.[hc]: added style property support:
1173         (gtk_widget_class_install_style_property_parser): install style
1174         property pspec with parser function for rc-file values other
1175         than LONG, DOUBLE or STRING.
1176         (gtk_widget_class_install_style_property): same as above without
1177         parser (parsers are going to be needed quite infrequently).
1178         (gtk_widget_style_get_property): retrive style property value.
1179         (gtk_widget_style_get_valist): same as above with varargs support,
1180         has NOCOPY semantics.
1181         (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
1182
1183 Fri Mar 16 18:24:53 2001  Jonathan Blandford  <jrb@redhat.com>
1184
1185         * demos/gtk-demo/main.c (row_activated_cb): modified to use
1186         "row_activated" signal.
1187
1188         * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
1189         stupidity.  Lets actually pass in the row with this signal...
1190
1191 Fri Mar 16 18:01:17 2001  Jonathan Blandford  <jrb@redhat.com>
1192
1193         * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
1194
1195         * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
1196
1197         * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
1198         everything into the ::destroy function, and freed a lot more.
1199
1200 2001-03-16  Havoc Pennington  <hp@redhat.com>
1201
1202         * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
1203         instead of gint16, to avoid overflow issues, since sizes > 16-bit
1204         are now allowed.
1205
1206 2001-03-16  Havoc Pennington  <hp@redhat.com>
1207
1208         * Applied patch from Nils Barth (bug # 51041) to 
1209         replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
1210         in various places.
1211
1212 2001-03-15  Havoc Pennington  <hp@redhat.com>
1213         
1214         * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs 
1215         for properties to set on the tag.
1216
1217         * gtk/testtext.c: fixups to reflect create_tag change
1218         
1219         * gtk/gtktexttag.c (gtk_text_tag_set_property):
1220         background/foreground stipple are objects, not boxed.
1221
1222         * demos/gtk-demo/textview.c: intellihancing
1223
1224 Fri Mar 16 11:38:42 2001  Jonathan Blandford  <jrb@redhat.com>
1225
1226         * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
1227         braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
1228
1229 2001-03-16  Alexander Larsson  <alexl@redhat.com>
1230
1231         * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
1232         Fix sign error with queued region translations.
1233
1234 2001-03-15  HideToshi Tajima  <tajima@happy>
1235
1236         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location): 
1237         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
1238         * gtk/gtkentry.c (update_im_cursor_location): 
1239         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
1240         * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
1241         set_cursor_pos to set_cursor_location in GtkInputContext class
1242
1243 Thu Mar 15 18:22:44 2001  Jonathan Blandford  <jrb@redhat.com>
1244
1245         * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
1246         the location of the cell relative to its area.
1247         * gtk/gtkcell*: modified for above change
1248         * gtk/gtktreeview.c: modified for above change.
1249
1250 Wed Mar 14 13:58:32 2001  Jonathan Blandford  <jrb@redhat.com>
1251
1252         * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
1253          (gtk_tree_view_finalize): actually unref the model.  Thanks to
1254         Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
1255
1256 2001-03-14  Havoc Pennington  <hp@redhat.com>
1257
1258         * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
1259         
1260         * gtk/gtk.h: remove gtkdata.h
1261
1262         * gtk/Makefile.am: remove gtkdata
1263         
1264         * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
1265         not "disconnect" on the adjustments.
1266         
1267         * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
1268         GtkData
1269
1270         * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
1271         not GtkData
1272
1273         * configure.in: handle case where X render exists, but Pango lacks
1274         Xft support.
1275
1276 2001-03-15 Alexander Larsson  <alexl@redhat.com>
1277
1278         * gtk/gtktoolbar.[ch]:
1279         New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
1280         to add stock items to toolbars.
1281
1282         * gtk/Makefile.am:
1283         Remove ../gdk/gdkim.h from gdk_headers.
1284
1285 2001-03-15  Sven Neumann  <sven@gimp.org>
1286
1287         * gdk/gdkim.h: removed
1288         
1289         * gdk/gdkprivate.h
1290         * gdk/x11/gdkim-x11.c: do not include gdkim.h 
1291
1292 2001-03-14  HideToshi Tajima  <tajima@happy.sunsoft.eng.sun.com>
1293
1294         * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
1295         * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
1296         * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
1297         set_cursor_pos() virtual method
1298
1299         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
1300         (gtk_im_context_xim_set_cursor_pos): add implementation for
1301         set_cursor_pos() method
1302
1303         * gtk/gtkentry.c (recompute_idle_func): set current cursor
1304         position to input methods
1305
1306 Mon Mar 12 21:02:08 2001  Jonathan Blandford  <jrb@redhat.com>
1307
1308         * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
1309         code a lot.
1310
1311         * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
1312         g_mem_chunk.
1313         (_gtk_tree_data_list_alloc): use g_mem_chunk.
1314         (_gtk_tree_data_list_node_to_value): Fix to switch on
1315         G_TYPE_FUNDAMENTAL.
1316         (_gtk_tree_data_list_value_to_node): Fix to switch on
1317         G_TYPE_FUNDAMENTAL.
1318         (_gtk_tree_data_list_node_copy): Fix to switch on
1319         G_TYPE_FUNDAMENTAL.
1320
1321 2001-03-12  Havoc Pennington  <hp@redhat.com>
1322
1323         * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione 
1324         to convert to new property API. Also, change default_width and
1325         default_height get_property to return 0 as the flag value for
1326         "unset"; -1 is not a valid value for these fields.
1327
1328 2001-03-12  Havoc Pennington  <hp@redhat.com>
1329
1330         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
1331         enum with registration for icon sizes, instead of strings.
1332
1333         * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h, 
1334         gtkwidget.c: Fix to reflect GtkIconSize
1335         
1336 2001-03-12  Alexander Larsson  <alexl@redhat.com>
1337
1338         Make GtkFB compile and link.
1339         
1340         * gdk/linux-fb/gdkdrawable-fb2.c:
1341         window->mapped to GDK_WINDOW_IS_MAPPED(). 
1342         
1343         * gdk/linux-fb/gdkwindow-fb.c:
1344         window->mapped to GDK_WINDOW_IS_MAPPED(). 
1345         Added gdk_window_shape_combine_region.
1346         Added assorted placeholders for unimplemented new GdkWindow API calls.
1347
1348 2001-03-12  Alexander Larsson  <alexl@redhat.com>
1349
1350         * gtk/gtkfilesel.c:
1351         Add more test when converting filenames from/to utf-8.
1352         Don't allow entering text in the filename entry which isn't allowed in
1353         a filename. Just beep instead.
1354
1355 2001-03-12  Alexander Larsson  <alexl@redhat.com>
1356
1357         * gtk/gtkclist.c:
1358         Scroll using gdk_window_scroll(). Don't wait for exposes.
1359         Move the column headers in an order that makes them flash less.
1360
1361 2001-03-10  Hans Breuer  <hans@breuer.org>
1362
1363         * gdk/gdk.def : updated
1364
1365         * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
1366         to offseting the clip_mask at the right place
1367
1368         * gdk/win32/gdkwindow-win32.c : don't create background brushes
1369         for all the gdkClasses, especially not for the input_only case.
1370         Otherwise flickering wont be avoidable, because we don't get
1371         WM_ERASEBKGND message for these windows.
1372
1373         * gdk/win32/gdkevents-win32.c : initialize event->expose.region
1374         and fixed massive redraw problems apparently triggered by Alexanders 
1375         recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
1376         but it seems to work quite well :-)
1377
1378         * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
1379         prototype
1380
1381 Sat Mar 10 12:15:31 2001  Jonathan Blandford  <jrb@redhat.com>
1382
1383         * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
1384         (gtk_list_store_set_cell): Fix a stupid typo.
1385
1386 Fri Mar  9 20:36:21 2001  Jonathan Blandford  <jrb@redhat.com>
1387
1388         * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
1389         select_all not work if you're in SINGLE mode (it doesn't make that
1390         much sense, anyway.)
1391
1392         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
1393         handle types more sanely.
1394         (_gtk_tree_data_list_value_to_node): handle types more sanely.
1395         (_gtk_tree_data_list_node_copy): handle types more sanely.
1396
1397         * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
1398         GValue better. Converts the type as well.
1399
1400         * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
1401         GValue better. Converts the type as well.
1402
1403 Wed Mar  7 20:47:41 2001  Owen Taylor  <otaylor@redhat.com>
1404
1405         * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
1406         gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c 
1407         gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
1408         gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
1409
1410         * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
1411         gdk_im/gdk_ic.
1412
1413 2001-03-09  Hans Breuer  <hans@breuer.org>
1414
1415         * gdk/gdk.def : updated
1416
1417         * gdk/win32/gdkevents-win32.c : don't ask input_only windows
1418         for their palette
1419
1420         * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
1421         removing
1422
1423         * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
1424         removing and implemented Havoc's GdkWindow state functions; 
1425         stick/unstick only as no-op, cause I don't know how to emulate 
1426         on win32 ...
1427
1428         * gtk/gtk.def : updated
1429
1430         * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
1431
1432         * gtk/gtktypeutils.c : #include <string.h>
1433
1434         * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
1435
1436 Fri Mar  9 09:31:55 2001  Tim Janik  <timj@gtk.org>
1437
1438         * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
1439         GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
1440         not a boxed.
1441
1442 2001-03-09  Alexander Larsson  <alexl@redhat.com>
1443
1444         * docs/Changes-2.0.txt:
1445         Document expose event->region change and that gtk_widget_event
1446         doesn't allow passing expose events.
1447
1448         * gdk/gdkevents.h:
1449         Add region to expose event.
1450         
1451         * gdk/gdkevents.c:
1452         Handle event->region in gdk_event_copy() and gdk_event_free().
1453
1454         * gdk/gdkwindow.c (gdk_window_process_updates_internal):
1455         Generate expose_event->region when creating expose events.
1456
1457         * gdk/x11/gdkevents-x11.c:
1458         Generate expose events with regions when translating X events.
1459
1460         * gtk/gtkcontainer.[ch]:
1461         Default expose handler that propagates expose events to NO_WINDOW
1462         children. New function gtk_container_propagate_expose()
1463
1464         * gtk/gtkwidget.[ch]:
1465         Moved gtk_widget_event implementation to gtk_widget_event_internal.
1466         gtk_widget_event calls gtk_widget_event_internal but doesn't allow
1467         expose events. New function gtk_widget_send_expose() to send expose
1468         events. New function gtk_widget_region_intersect() to calculate
1469         window/region intersections.
1470         
1471         * gtk/gtkmain.c (gtk_main_do_event):
1472         Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
1473         Use gtk_widget_send_expose() to send expose events.
1474         
1475         * gtk/gtkbin.c:
1476         * gtk/gtkbox.c:
1477         * gtk/gtkfixed.c:
1478         * gtk/gtkimagemenuitem.c:
1479         * gtk/gtklist.c:
1480         * gtk/gtkpacker.c:
1481         * gtk/gtktable.c:
1482         * gtk/gtktree.c:
1483         Remove expose handler, using the default container implementation
1484         instead.
1485         
1486         * gtk/gtkbutton.c:
1487         * gtk/gtkcheckbutton.c:
1488         * gtk/gtkeventbox.c:
1489         * gtk/gtkfixed.c:
1490         * gtk/gtkhandlebox.c:
1491         * gtk/gtklayout.c:
1492         * gtk/gtklistitem.c:
1493         * gtk/gtkmenu.c:
1494         * gtk/gtkmenubar.c:
1495         * gtk/gtkmenuitem.c:
1496         * gtk/gtknotebook.c:
1497         * gtk/gtkoptionmenu.c:
1498         * gtk/gtkpaned.c:
1499         * gtk/gtkscrolledwindow.c:
1500         * gtk/gtktogglebutton.c:
1501         * gtk/gtktoolbar.c:
1502         * gtk/gtktreeitem.c:
1503         * gtk/gtkviewport.c:
1504         Chain expose handler to parent class handler. Use
1505         gtk_container_propagate_expose() to propagate exposes.
1506
1507         * gtk/gtkclist.c (check_exposures):
1508         * gtk/gtktext.c (process_exposes):
1509         Use gtk_widget_send_expose instead of gtk_widget_event.
1510
1511 Thu Mar  8 19:40:28 2001  Jonathan Blandford  <jrb@redhat.com>
1512
1513         * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
1514
1515 Thu Mar  8 19:18:27 2001  Jonathan Blandford  <jrb@redhat.com>
1516
1517         * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
1518         unref the nodes.   Fixes bug #50058.
1519
1520         * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
1521         "::ref_iter" to "::ref_node".
1522         (gtk_tree_model_unref_node): change "::unref_iter" to
1523         "::unref_node". Fixes bug #50064.
1524
1525 Thu Mar  8 17:40:09 2001  Jonathan Blandford  <jrb@redhat.com>
1526
1527         * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
1528         support for invisible cells.
1529          (gtk_tree_view_bin_expose): ditto
1530
1531 Thu Mar  8 16:36:00 2001  Jonathan Blandford  <jrb@redhat.com>
1532
1533         * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
1534         on gobjects.
1535
1536         * tests/testtreefocus.c (main): New test file.
1537
1538         * tests/testtreeview.c: update to latest glib changes.
1539
1540         * tests/testtreecolumns.c: update to latest glib changes.
1541
1542 Thu Mar  8 18:13:20 2001  Tim Janik  <timj@gtk.org>
1543
1544         * gtk/testgtk.c: re-enabled event watcher emission hooks.
1545
1546 Thu Mar  8 16:51:21 2001  Tim Janik  <timj@gtk.org>
1547
1548         * *.c: added accumulator data argument to g_signal_newc()
1549         functions.
1550
1551         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): 
1552         * gtk/gtktreeview.c (gtk_tree_view_setup_model): 
1553         * gtk/treestoretest.c (make_window):
1554         s/g_signal_connect/g_signal_connectc/.
1555
1556         * gtk/gtktextbuffer.c: completed signal arg fixups,
1557         they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
1558
1559 Thu Mar  8 00:02:30 2001  Owen Taylor  <otaylor@redhat.com>
1560
1561         * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
1562         G_CONST_RETURN.
1563
1564         * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a 
1565         ::hierarchy-changed signal when a widget changes
1566         from anchored to unanchored or vice versa.
1567         (anchored means 
1568          gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
1569         Use a private flag to keep track of this efficiently.
1570
1571 2001-03-07  Havoc Pennington  <hp@redhat.com>
1572
1573         * gtk/testgtk.c (create_spins): uglify so that size request gets
1574         tested.
1575
1576         * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
1577         request on values for upper/lower, completes #6152
1578
1579 Wed Mar  7 20:07:22 2001  Owen Taylor  <otaylor@redhat.com>
1580
1581         * Makefile.am: Remove gtk-config-2.0 again.
1582         (Grrrr, pkg-config. And stops make loops.)
1583
1584 Thu Mar  8 00:18:29 2001  Tim Janik  <timj@gtk.org>
1585
1586         * gtk/gtksignal.[hc]: removed old emission hook API.
1587         
1588         * docs/Changes-2.0.txt: fixed sections.
1589         
1590         * gtk/gtktextbuffer.c: signal arg fixups.
1591
1592 2001-03-07  Havoc Pennington  <hp@redhat.com>
1593
1594         * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
1595
1596         * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
1597         here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
1598         of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
1599         validation and the redraw which is higher priority than the
1600         validation.
1601
1602 2001-03-07  Havoc Pennington  <hp@redhat.com>
1603
1604         * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
1605         (gtk_entry_set_property): remove trailer
1606
1607         * gtk/gtkentry.c (gtk_entry_set_width_chars): 
1608         (gtk_entry_get_width_chars): new functions, to set size request to 
1609         a given number of characters
1610
1611         * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
1612
1613         * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
1614         (gtk_dialog_get_has_separator): new function
1615         (run_delete_handler): fix to not emit "response" signal
1616         because we already did in the delete event handler installed
1617         at dialog creation time.
1618         
1619         * gtk/gtkdialog.h: add a has_separator property,
1620         add GTK_DIALOG_NO_SEPARATOR flag
1621
1622 2001-03-07  Havoc Pennington  <hp@redhat.com>
1623
1624         * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
1625         off decorations for a window.
1626
1627         * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
1628         changes
1629
1630         * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
1631         to get location of PangoLayout inside the label, closes #51198
1632
1633         * gtk/testgtk.c (create_bbox): fix up button box usage
1634
1635         * gtk/testcalendar.c (create_calendar): fix up button box usage
1636
1637         * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
1638
1639         * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
1640
1641         * gtk/gtkhbbox.h: deprecations
1642
1643         * gtk/gtkvbbox.h: deprecations
1644
1645         * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
1646         emulate deprecated gtk_button_box_get_spacing
1647
1648         * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
1649         the "set global default" functions
1650         (struct _GtkButtonBox): remove "spacing" field, use the one from 
1651         GtkBox base class
1652
1653         * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
1654
1655         * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
1656         render the icon, return the missing image icon.
1657
1658         * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
1659         image icon if the load fails.   
1660
1661         * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
1662         when no image is found; should be the Netscape "missing image"
1663         icon eventually but for now is a random image
1664
1665         * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
1666         role for the session manager
1667
1668         * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
1669
1670         * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
1671         GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
1672
1673         * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
1674
1675 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
1676
1677         * gtk/*.c: marshaller fixes.
1678         
1679         * gtk/gtkmarshal.list: extreme cleanup.
1680
1681         * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
1682         param spec for now.
1683
1684         * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
1685         where appliable.
1686
1687         * gtk/gtktypeutils.[hc]: updates to GLib API changes.
1688         special cased autogenerated boxed types from gtktypebuiltins_ids.c
1689         which are not reference counted:
1690         GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
1691         PangoFontDescription, GtkTreeIter and GtkTreePath.
1692
1693 Thu Mar  1 03:58:56 2001  Tim Janik  <timj@gtk.org>
1694
1695         * gtk/gtktreeselection.h: 
1696         * gtk/gtktreemodel.c:
1697         * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
1698         file should be included directly, and gobject/gmarshal.h
1699         as well as gtk/gtkmarshal.h even can't be included directly.
1700
1701         * Makefile.am: grr, install gtk-config-2.0.
1702
1703         * gtk/testgtk.c:
1704         * gtk/simple.c:
1705         * gtk/gtkmenu.c:
1706         * gtk/gtkitemfactory.c: use g_object_connect() instead of
1707         passing "*signal*::*" args to gtk_widget_set().
1708         
1709         * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
1710         
1711         * gtk/*.c: removed trailer arg from property setters and getters.
1712         macro fixups.
1713
1714 2001-03-07  Alexander Larsson  <alexl@redhat.com>
1715
1716         * gtk/gtklabel.c (set_markup): Removed warning
1717
1718 Tue Mar  6 19:59:12 2001  Jonathan Blandford  <jrb@redhat.com>
1719
1720         * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
1721         field to allow you to hide cell renderers.
1722
1723         * gtk/gtkcellrenderer.c: Add support for invisible cells.
1724
1725         * gtk/gtktreeview.c: Add support for invisible cells.
1726
1727 Tue Mar  6 17:25:07 2001  Jonathan Blandford  <jrb@redhat.com>
1728
1729         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
1730         Add "clicked" signal back to columns.
1731
1732         * ChangeLog: remove conflict markers.
1733
1734 Tue Mar  6 10:45:45 2001  Owen Taylor  <otaylor@redhat.com>
1735
1736         * gtk/gtkbutton.c: Add animation of activation by, on 
1737         activate, pressing the button, and adding a timeout that 
1738         releases the button after 250ms or on key release and
1739         emits ::clicked. (#51501)
1740
1741         * gtk/gtkdialog.c: Bit of a hack - for buttons in the
1742         action area, we connect to ::clicked instead of ::activate
1743         so the dialog stays up through the animation.
1744
1745 Mon Mar  5 16:38:15 2001  Owen Taylor  <otaylor@redhat.com>
1746
1747         * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
1748         check the ignore_enter flag for the menu shell that
1749         the item is actually a child of, not for attached
1750         submenus. (#51536)
1751
1752 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
1753
1754         * gtk/gtkmain.c (gtk_propagate_event): Only do special
1755         special key-press grab handling for widgets within
1756         GtkWindows. Otherwise, fall through to normal case.
1757
1758         This prevents key events being sent twice to GtkInvisible
1759         widgets, which can cause all sorts of mischief.
1760
1761 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
1762
1763         * gtk/gtkmain.c (gtk_propagate_event): When a grab
1764         widget is in effect, give the grab widget a first
1765         crack at KEY_PRESS/RELEASE events. (#424)
1766
1767 2001-03-06  James Henstridge  <james@daa.com.au>
1768
1769         * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
1770         offset for the window_state_event to point at window_state_event
1771         rather than no_expose_event.
1772
1773 Mon Mar  5 19:10:15 2001  Jonathan Blandford  <jrb@redhat.com>
1774
1775         * gtk/gtkimmodule.h: fix busted /* comment */
1776
1777 Mon Mar  5 15:07:05 2001  Jonathan Blandford  <jrb@redhat.com>
1778
1779         * gtk/gtktreeview.c: Apply patch from John Margaglione to add
1780         object properties.
1781
1782 Mon Mar  5 14:55:19 2001  Jonathan Blandford  <jrb@redhat.com>
1783
1784         * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
1785         add object properties.
1786
1787         * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
1788         to add object properties.
1789
1790         * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
1791         object properties.
1792
1793         * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
1794         add object properties.
1795
1796         * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
1797         object properties.
1798
1799 Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
1800
1801         * gtk/gtktreemodel.c: renamed "child_toggled" to
1802         "has_child_toggled".
1803
1804         * gtk/gtktreeview.c: Handle removing columns better.  Updated to
1805         handle new signal name.
1806
1807         * gtk/gtktreestore.c: Updated to handle new signal name.
1808         * gtk/gtklisttore.c: Updated to handle new signal name.
1809         * gtk/gtktreemodelsort.c: Updated to handle new signal name.
1810
1811 2001-03-05  Alexander Larsson  <alexl@redhat.com>
1812
1813         * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
1814         Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
1815
1816 2001-03-05  Michael Natterer  <mitch@gimp.org>
1817
1818         * gtk/gtklabel.c: Made the "parent_class" pointer static. The
1819         pixbuf-engine coincidentially also failed to make one of it's
1820         parent_class pointers static, causing overwriting of GtkLabel's
1821         parent_class pointer in pixbuf_style_class_init().
1822         (Will commit the fix to the pixbuf-engine too).
1823
1824 2001-03-05  Alexander Larsson  <alexl@redhat.com>
1825
1826         * gdk/gdkwindow.h:
1827         Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
1828         New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
1829         gdk_window_set_icon_list for net wmspec functionality.
1830
1831         * gdk/x11/gdkwindow-x11.c:
1832         Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
1833         Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
1834         gdk_window_set_icon_list.
1835         Added gdk_wmspec_change_state helper function and used it in the code.
1836         Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
1837
1838         * gtk/gtkdialog.c (gtk_dialog_init):
1839         Set GDK_WINDOW_TYPE_HINT_DIALOG.
1840
1841         * gtk/gtkhandlebox.c (gtk_handle_box_realize):
1842         Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
1843
1844         * gtk/gtkwindow.c:
1845         new function gtk_window_set_type_hint.
1846         On realize, set type hint and modal hint.
1847
1848         * gtk/gtkwindow.h:
1849         Added type_hint field and gtk_window_set_type_hint.
1850
1851 2001-03-05  Alexander Larsson  <alexl@redhat.com>
1852
1853         * gtk/gtklabel.[ch]:
1854         Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
1855         New function gtk_label_get_accel_keyval () to get the underline accelerator
1856         of the label. Setting the label pattern overrides other attributes.
1857
1858 Mon Mar  5 14:51:10 MET 2001  Sven Neumann  <sven@gimp.org>
1859
1860         * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
1861         Added missing initializers to gtk_rc_style_init().
1862
1863 Sun Mar 04  07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
1864
1865         * gtk/gtktextview.c: fixed bug #51097 about setting 
1866         gtk_text_view_set_border_window_size() if the widget is 
1867         already realized.
1868
1869 Sat Mar  3 16:59:16 2001  Owen Taylor  <otaylor@redhat.com>
1870
1871         * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
1872
1873         * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
1874         comment. Won't do to have duplicated doc comments between
1875         the platform subdirs.
1876
1877 Sat Mar  3 16:26:33 2001  Owen Taylor  <otaylor@redhat.com>
1878
1879         * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c 
1880           gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
1881
1882         Detectable auto-repeat - make a repeating key generate
1883         press/press/press/release instead of press/release pairs.
1884
1885         If we have Xkb and XkbSetDectableAutoRepeat supports
1886         that, we do it that way. Otherwise, when we get
1887         a release event, we check ahead with XPending to see
1888         if the next key is a KeyPress with the same keycode
1889         and timestamp. (Not 100% reliable, but pretty close.)
1890           
1891 Tue Feb 27 02:16:14 2001  Owen Taylor  <otaylor@redhat.com>
1892         
1893         * gtk/gtkmain.c (gtk_propagate_event): Only do special
1894         special key-press grab handling for widgets within
1895         GtkWindows. Otherwise, fall through to normal case.
1896  
1897         This prevents key events being sent twice to GtkInvisible
1898         widgets, which can cause all sorts of mischief.
1899  
1900 Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>
1901  
1902         * gtk/gtkmain.c (gtk_propagate_event): When a grab
1903         widget is in effect, give the grab widget a first
1904         crack at KEY_PRESS/RELEASE events. (#424)
1905  
1906 Sat Mar  3 15:39:49 2001  Owen Taylor  <otaylor@redhat.com>
1907
1908         * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
1909         to extend the selection. (Roughly based on patch
1910         from Jay Cox, #50939)
1911
1912         * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
1913         to properly handle previous GDK_BUTTON_PRESS. 
1914         (Patch from Jay Cox, #50938)
1915
1916         * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
1917         '\0' back along with the deleted text. (#51148)
1918
1919 Mon Jan 22 14:31:29 2001  Owen Taylor  <otaylor@redhat.com>
1920
1921         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
1922         the group when extracting it from the X keyboard event.
1923
1924         * modules/input/Makefile.am modules/input/imipa.c: 
1925         Simple module for entering IPA. (Do we need a 
1926         gtk-stupid-input-tricks CVS module?)
1927
1928 Sat Mar  3 13:32:47 2001  Owen Taylor  <otaylor@redhat.com>
1929
1930         * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
1931         const.
1932
1933         * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
1934
1935         * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
1936         is no focus widget for the dialog currently, grab the focus as well
1937         as the default.
1938
1939         * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
1940         the action area's children to iterate through, not the
1941         dialog's children.
1942
1943 Sat Mar  3 13:21:27 2001  Owen Taylor  <otaylor@redhat.com>
1944
1945         * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
1946         Add plug-socket tests. (Won't work worth a darn until I commit
1947         the rest of the plug-socket changes, but no reason these
1948         can't go into CVS now.)
1949
1950 2001-03-02  Havoc Pennington  <hp@redhat.com>
1951
1952         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
1953         _gdk_region_get_xrectangles()
1954
1955         * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
1956
1957         * gtk/testgtk.c (create_shapes): add test for shape_combine_region
1958
1959         * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
1960         function, contributed by Ron Steinke    
1961
1962         * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
1963         gdk_net_wm_supports
1964
1965         * gdk/gdkregion-generic.c (gdk_region_get_rectangles): 
1966         New function, contributed by Ron Steinke
1967
1968         * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function, 
1969         used to line up the text in the entry when using the entry for
1970         editable sheet cell hacks
1971
1972         * gtk/testgtk.c (create_entry): test the activate_default setting
1973         on GtkEntry
1974
1975         * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to 
1976         cause the entry to activate the default button for a dialog when 
1977         activated
1978         (gtk_entry_get_activates_default): new function
1979
1980 Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>
1981
1982         * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
1983         Hwang to move call to sync_selection() up a few lines
1984         to before the row list is modified, to fix crash when
1985         removing rows in the undo_selection list.
1986
1987         (Test case provided by Daniel Elstner:
1988
1989         http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
1990
1991 Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>
1992
1993         * gtk/gtktree.c (gtk_tree_class_init): Do the setting
1994         of tree->root_tree in parent_set rather than _map(), 
1995         fixing #50892 in a bit better manner.
1996
1997 Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>
1998
1999         * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
2000
2001 Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>
2002
2003         * gtk/gtkstyle.c : Remove duplicate fwd decl for
2004         gtk_default_draw_shadow.
2005
2006 ue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>
2007
2008         * gdk/gdkimage.c (gdk_image_new): Remove excess 
2009         warning, make warnings more verbose, treat a error
2010         in shmat as permanent, and don't try again.
2011         (#51163, Ed Randall.)
2012
2013 Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>
2014
2015         * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
2016         delay for the first click before starting to scroll.
2017         (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
2018
2019         * gtk/gtktext.c: GtkText should have I-beam cursor. 
2020         (based on gtk-enf-990513-1.patch, Eric Fisher.)
2021
2022 Mon Feb 19 16:42:19 2001  Owen Taylor  <otaylor@redhat.com>
2023
2024         * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
2025         cleanup to remove some references to unused
2026         ->xoffset, ->yoffset.
2027
2028 Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>
2029
2030         * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
2031         mask. (#51039, fix from Martin Maierhofer)
2032
2033 Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>
2034
2035         * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
2036         for unshifted + and shifted = for non-us keyboards.
2037         Make <Control>+ and <Control>- work as well as 
2038         <Control>KP_Plus, <Control>KP_Minus for recursive
2039         open/close.  (#2682, René Seindal)
2040
2041 Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>
2042
2043         * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
2044         the active menu item before deactivating the menu,
2045         so gtk_menu_popdown doesn't change the history. (#50964)
2046         
2047 Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>
2048
2049         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): 
2050         draw lines with text_gc rather than black_gc.
2051         (Patch from Vlad Harchev <hvv hippo ru>, #50926)
2052
2053 Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
2054
2055         * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2056         Move handling of buttons fully in gtktreeviewcolumn.  This code is
2057         less interrelated then it was, but it still requires the
2058         GtkTreeView to map it.
2059
2060         * test/testtreecolumn.c: Now I can add a column to one view,
2061         remove it, add it to the another view, remove it, then re-add it
2062         to the first.  Nifty.
2063
2064 Thu Mar  1 13:14:27 GMT 2001  Tony Gale <gale@gtk.org>
2065
2066         * docs/tutorial/gtk-tut.sgml: Minor corrections
2067
2068 Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
2069
2070         * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
2071         GtkRowReference.
2072
2073 2001-02-28  Havoc Pennington  <hp@redhat.com>
2074
2075         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
2076         draw_default
2077         (gtk_widget_draw_focus): remove this function; we could instead
2078         make it just gtk_widget_draw(), but in most cases I think the
2079         result would be broken user code, so think it's better to have
2080         that code not compile and get fixed
2081         (gtk_widget_draw_default): ditto
2082
2083         * gtk/gtkwidget.c: Add default handlers for focus_in_event and
2084         focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
2085         
2086         * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
2087         widgets lose/get the default, instead of calling draw_default
2088         
2089         * docs/Changes-2.0.txt: note about all this
2090
2091         Then fixed every widget in GTK, I won't list all the filenames.
2092
2093 Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
2094
2095         * gtk/gtktreemodel.c (deleted_callback): Proxy out to
2096         _gtk_tree_row_reference_deleted.
2097         (inserted_callback): Proxy out to
2098         _gtk_tree_row_reference_inserted.
2099         (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
2100         get around signal emission ordering problem.
2101
2102         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
2103         fix to work with SINGLE 
2104         (_gtk_tree_selection_internal_select_node): Major sanitization on
2105         selections.  SINGLE now seems to work.
2106
2107         * tests/Makefile.am: add testtreecolumn.c:
2108
2109         * tests/testtreecolumn.c: New test.  Mostly points out selection
2110         bugs currently, but will test columns later.
2111
2112         * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
2113         selection bug.  I hate touching this code -- it's scary.
2114
2115 2001-02-26  Havoc Pennington  <hp@redhat.com>
2116
2117         * gtk/testgtk.c: test the window state stuff
2118
2119         * gtk/gtkwindow.c (gtk_window_present): new function, makes a
2120         window come to the user's attention as if it were just created
2121         (gtk_window_iconify): new function
2122         (gtk_window_deiconify): new function
2123         (gtk_window_stick): new function
2124         (gtk_window_unstick): new function
2125         (gtk_window_maximize): new function
2126         (gtk_window_unmaximize): new function
2127
2128         * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
2129
2130         * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
2131
2132         * gdk/x11/gdkevents-x11.c: create window state events when
2133         appropriate
2134         (gdk_wmspec_supported): new function
2135
2136         * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
2137         iconification before showing the window
2138         (gdk_window_deiconify): new function
2139         (gdk_window_stick): new function
2140         (gdk_window_unstick): new function
2141         (gdk_window_maximize): new function
2142         (gdk_window_unmaximize): new function
2143
2144         * gdk/gdkwindow.c: store the window state in the window; 
2145         change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
2146         window->mapped.
2147         (gdk_window_get_state): return the current window state
2148
2149         * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
2150         (gdk_event_get_state): handle GDK_WINDOW_STATE
2151         (gdk_synthesize_window_state): function to create the window state
2152         events
2153
2154         * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
2155         event, for changes to "window state" such as maximized, sticky, 
2156         etc.
2157         
2158         * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
2159         focuses a window
2160
2161         * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function, 
2162         finds out if we support a given WM spec hint
2163
2164 Tue Feb 27 13:37:38 GMT 2001  Tony Gale <gale@gtk.org>
2165
2166         * docs/faq/gtk-faq.sgml: New question re memory leaks.
2167
2168 2001-02-25  Hans Breuer  <hans@breuer.org>
2169
2170         * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
2171         cause we want to loose those prototypes only in the latter case
2172
2173         * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
2174         GdkPixmapImplWin32 because it itsn't derived from it. Use the
2175         impl member variable instead
2176
2177         * gtk/gtk.def : updated
2178
2179         * gtk/gtklist.c : 
2180         * gtk/gtkmenus.c : include <string.h> for memset ()
2181
2182         * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
2183         for everthing built here, but for gtk-x.x.dll only. This solves
2184         problem of indifferent gtk type definitions
2185
2186 Sat Feb 24 20:11:39 2001  Jonathan Blandford  <jrb@redhat.com>
2187
2188         * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
2189
2190 Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
2191
2192         * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
2193         column that is exposed.
2194
2195         (_gtk_tree_view_update_size): Changed name from set_size, and
2196         changed function to do more work, and not force people calling it
2197         to figure out the size.  Simplifies a lot of code elsewhere.
2198
2199 2001-02-23  Alexander Larsson  <alexl@redhat.com>
2200
2201         * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
2202         return solid masks for xpms that have no transparent color.
2203         This makes the ..._create_from_xpm... API backwards
2204         compatible.
2205
2206 2001-02-23  Tor Lillqvist  <tml@iki.fi>
2207
2208         * README.win32: Update. Mention the gtk-1-3-win32-production
2209         branch.
2210
2211         * gdk/win32/bdfcursor.c: New file. A program that generates
2212         xcursors.h. Thanks to Stefan Ondrejicka.
2213
2214         * gdk/win32/xcursors.h: New file, contains the X cursor font in a
2215         compact format.
2216
2217         * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
2218
2219         * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
2220         function, uses xcursors.h.
2221         (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
2222         cursor from inline data instead of using LoadCursor() to generate
2223         it from a resource.
2224
2225         * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
2226         event, must check the Windows message for mouse button state, as
2227         the GDK event state might not have been built if it is
2228         undelivered. Remove one goto.
2229
2230         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
2231         SetCursor() if the current cursor as returned by GetCursor() is
2232         the window's previous cursor. The ChildWindowFromPoint() test
2233         apparently didn't work correctly.
2234
2235         * gdk/win32/rc/*.cur: Remove.
2236
2237         * gdk/win32/rc/gdk.rc.in: Remove cursors.
2238
2239         * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
2240
2241         * gtk/makefile.{mingw,msc}.in: Updates.
2242
2243 Wed Feb 21 20:56:50 2001  Jonathan Blandford  <jrb@redhat.com>
2244
2245         * gtk/gtktreemodel.h: add functions for signal emission.
2246
2247         * gtk/gtktreestore.c: move to use above functions instead of
2248         g_signal_emit.
2249
2250         * gtk/gtkliststore.c: ditto
2251
2252 Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
2253
2254         * gtk/gtktreestore.c: removed signals.  Moved to inherit from
2255         GObject instead of GtkObject.
2256
2257         * gtk/gtkliststore.c: ditto.
2258
2259         * gtk/gtktreemodelsort.c: ditto.
2260
2261         * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
2262         GtkTreeModelIface, instead of in each model.
2263
2264 2001-02-21  Havoc Pennington  <hp@redhat.com>
2265
2266         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
2267         unbreak this function
2268
2269         * gtk/gtkentry.c: apply patch from Lee Mallabone to add object 
2270         properties
2271
2272         * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
2273         properties
2274
2275         * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object 
2276         properties
2277
2278         * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
2279         mean unset the max length
2280
2281 Wed Feb 21 14:23:05 2001  Jonathan Blandford  <jrb@redhat.com>
2282
2283         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
2284         Changed name to be set_cell_data_func to make it clear what
2285         the functino does.  Close bug #51069.
2286
2287 Tue Feb 20 16:49:00 2001  Jonathan Blandford  <jrb@redhat.com>
2288
2289         * gtk/testgtk.c (main): Remove turning on of profiling malloc,
2290         have memory actually freed.  Keeps box running longer.
2291
2292 2001-02-21  Alexander Larsson  <alexl@redhat.com>
2293         
2294         * gtk/gtkseparatormenuitem.[ch]:
2295         Added new menu separator item. The drawing and size handling
2296         is still done in GtkMenuItem, but the API is a bit more sane.
2297         
2298         * gtk/Makefile.am:
2299         Add gtkseparatormenuitem.[ch].
2300
2301         * gtk/gtk.h:
2302         Add gtkseparatormenuitem.h.
2303         
2304         * gtk/gtkentry.c:
2305         * gtk/gtkmenufactory.c:
2306         * gtk/gtktextview.c:
2307         Use the new API for menu separators.
2308         
2309         * demos/gtk-demo/menus.c (create_menu):
2310         Add some GtkSeparatorMenuItem demo code.
2311
2312 2001-02-20  Havoc Pennington  <hp@redhat.com>
2313
2314         * gtk/gtkaspectframe.c: Convert to new property API, patch from 
2315         Lee Mallabone
2316
2317         * gtk/gtkarrow.c: Convert to new property API, patch from 
2318         Lee Mallabone
2319
2320 Tue Feb 20 14:26:41 2001  Jonathan Blandford  <jrb@redhat.com>
2321
2322         * tests/testtreeview.c (toggled_callback): fix to reflect change
2323         in GtkTreeModelStore.
2324
2325 Tue Feb 20 12:16:12 2001  Jonathan Blandford  <jrb@redhat.com>
2326
2327         * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
2328         function to create an icon set from a pixbuf.
2329
2330 2001-02-20  Alexander Larsson  <alexl@redhat.com>
2331
2332         * gtk/gtkcellrenderertext.[ch]:
2333         Add a "markup" property.
2334
2335         * gtk/treestoretest.c:
2336         Use the markup property, remove some leftover stuff from
2337         GtkTreeModelMapping.
2338
2339 2001-02-20  Alexander Larsson  <alexl@redhat.com>
2340
2341         * gtk/gtklabel.c (gtk_label_set_selectable):
2342         Queue a redraw if the selectable setting was changed.
2343
2344 2001-02-20  Alexander Larsson  <alexl@redhat.com>
2345
2346         * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
2347         Actually copy the whole gc, not just the public parts.
2348         
2349         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
2350         GDK_WINDOW_TEMP are not toplevel. Fixes selectable
2351         labels.
2352
2353 2001-02-19  Havoc Pennington  <hp@pobox.com>
2354
2355         * gdk/gdkwindow.c: docs
2356
2357         * gdk/gdkrgb.c: docs
2358
2359         * gdk/gdkregion-generic.c: docs
2360
2361         * gdk/gdkgc.c (gdk_gc_set_values): docs
2362
2363         * gdk/gdkdraw.c: docs
2364
2365         * gdk/gdkdrawable.h: deprecate drawable get/set data
2366
2367 Mon Feb 19 20:37:35 2001  Jonathan Blandford  <jrb@redhat.com>
2368
2369         * demos/gtk-demo/dialog.c: Add simple new demo.
2370
2371 2001-02-19  Havoc Pennington  <hp@redhat.com>
2372
2373         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
2374         insert_child_anchor signal, bug #50245
2375
2376         * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
2377         from create_child_anchor, so the anchor is passed in
2378
2379         * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
2380         (_gtk_widget_segment_new): have the child anchor object passed in, 
2381         instead of creating it.
2382
2383         * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
2384         to gtk_text_buffer_get_modified
2385
2386 2001-02-19  Havoc Pennington  <hp@redhat.com>
2387
2388         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
2389         changed GLib without fixing GTK
2390
2391         * gtk/gtkrange.h: Rename all the stupid implementation detail 
2392         functions to have an underscore in front. Most of them should 
2393         probably just go away, but for starters don't export them.
2394         Bug #50482
2395
2396 2001-02-19  Havoc Pennington  <hp@redhat.com>
2397
2398         * gdk/gdkcolor.h: test was backward, so deprecated functions were
2399         excluded by default
2400
2401         * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
2402         clean up the old code a bit
2403
2404         * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
2405         inconsistent state
2406
2407         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
2408         draw inconsistent state
2409
2410         * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
2411         (create_menu): add inconsistent test
2412
2413         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
2414         new function
2415         (gtk_check_menu_item_get_inconsistent): new function
2416         (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
2417         state (using etched in for now)
2418
2419         * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
2420         draw inconsistent state
2421
2422         * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
2423         function, used when the user has selected a range of stuff in
2424         different states
2425         (gtk_toggle_button_get_inconsistent): accessor for that
2426         (gtk_toggle_button_paint): draw inconsistent state (etched in?
2427         don't know what else to do)
2428
2429 2001-02-19  Hans Breuer <hans@breuer.org>
2430
2431         * gtk/gtk.def : updated exported symbols
2432
2433         * gtk/makefile.msc.in : updated
2434
2435         * gtk/gtkstyle.c (gtk_style_realize) : gets called without
2436         a colormap, when invoked from testgtk::entry. I'm not sure where
2437         the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
2438         avoids immediate crashing ...
2439
2440         * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
2441         any objections ?
2442
2443         * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
2444         0 parameter. At least msvc doesn't like macros with var args. 
2445         I simply removed the extra 0, was it a feature or a typo ?
2446
2447         * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
2448         removed the extra indirection from the GtkTreeViewColumnFunc parameter,
2449         because the value assignment to the internal struct wasn't working.
2450         I'm not absolutely sure. The problem could have been resolved by
2451         changing the "func" declartion in the struct, but was the pointer
2452         to the function pointer intended ?
2453
2454         * gtk+/gtk/gtktreedatalist.c : include gboxed.h
2455
2456         * gdk/gdk.def : updated exported symbols
2457
2458         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
2459         only use SetDIBitsToDevice if there is a palette at the drawable
2460         and the image is GDK_VISUAL_PSEUDO_COLOR
2461
2462         * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
2463
2464         * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
2465
2466         * gdk/*/makefile.msc : updated
2467
2468 2001-02-19  Havoc Pennington  <hp@redhat.com>
2469
2470         * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
2471         GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
2472
2473         * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
2474         (gdk_key_repeat_restore): nuke
2475
2476         * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
2477         (gdk_init_check): no atexit func
2478
2479         * gdk/gdkrgb.h: mark some stuff deprecated
2480
2481         * gdk/gdkcolor.h: mark some stuff deprecated
2482         
2483         * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
2484
2485         * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
2486
2487 2001-02-16  Havoc Pennington  <hp@redhat.com>
2488
2489         * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
2490         scroll steps.
2491
2492         * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
2493         steps, and add Ctrl-arrow shortcuts for paging visually as with
2494         HScale, since Page Up and Page Down move logically.
2495
2496         * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
2497         GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
2498         
2499         * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
2500         steps
2501         (gtk_range_scroll): handle the visual steps
2502
2503         * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
2504         scroll steps
2505
2506         * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
2507         steps, not the logical ones.
2508
2509         * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
2510         (scroll_vertical): handle up/down steps
2511
2512 2001-02-19 Alexander Larsson  <alexl@redhat.com>
2513
2514         * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
2515         Copy data and free data with free().
2516
2517         * gdk-pixbuf/gdk-pixbuf.c:
2518         * gdk-pixbuf/io-jpeg.c:
2519         * gdk-pixbuf/io-png.c:
2520         Use g_try_malloc/g_free instead malloc/free.
2521         
2522         * gdk-pixbuf/test-gdk-pixbuf.c:
2523         Must... initialize... gobject...
2524         
2525         * gdk-pixbuf/pixops/timescale.c:
2526         * gtk/gtkcalendar.c:
2527         Use g_malloc instead of malloc.
2528         
2529 2001-02-19 Alexander Larsson  <alla@lysator.liu.se>
2530
2531         * gtk/testgtkrc:
2532         Comment out property assignments, these don't work yet.
2533
2534 2001-02-17  Havoc Pennington  <hp@pobox.com>
2535
2536         * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
2537         bit.
2538
2539 2001-02-17  Havoc Pennington  <hp@pobox.com>
2540
2541         * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
2542         shadowed variables that had broken size request in some cases,
2543         leading to bogus tooltips (#50996)
2544
2545 2001-02-06  Jon K Hellan  <hellan@acm.org>
2546
2547         Implement fast browsing of tooltips, bug #50619
2548         
2549         * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
2550         and last_popdown
2551         
2552         * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
2553         use_sticky_delay and last_popdown.
2554         (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
2555         time of popdown.
2556         (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
2557         is NULL.
2558         (gtk_tooltips_recently_shown): New static function.  Return true
2559         if < sticky_delay has elapsed since last popdown.
2560         (gtk_tooltips_event_handler): Display window after sticky_delay
2561         (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
2562         since last popdown.
2563         
2564 2001-02-17  Havoc Pennington  <hp@pobox.com>
2565
2566         * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
2567         instead of (). #6394
2568
2569         * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
2570         G_CONST_RETURN, make it return by reference, #50473
2571         
2572 Sat Feb 17 06:47:27 2001  Tim Janik  <timj@gtk.org>
2573
2574         * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
2575         generated ENTER_NOTIFY event with 0, otherwise not explicitely
2576         setup fields contain garbage (e.g. subwindow, breaking
2577         gdk_drawable_ref() upon event copy).
2578         (gtk_menu_stop_navigating_submenu_cb): same here.
2579
2580         * gtk/gtklist.c (gtk_list_vertical_timeout): 
2581         * gtk/gtklist.c (gtk_list_horizontal_timeout): 
2582         * gtk/gtkclist.c (vertical_timeout): 
2583         * gtk/gtkclist.c (horizontal_timeout): change direct assignment
2584         default-zero-intialization for unions to memset(,0,), as unions are
2585         not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
2586         has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
2587
2588         * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
2589         g_closure_sink() warning.
2590
2591         * gtk/gtktreemodel.c (gtk_tree_model_get_valist): 
2592         * gtk/gtktreestore.c (gtk_tree_store_set_valist): 
2593         * gtk/gtkliststore.c (gtk_list_store_set_valist): 
2594         fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
2595         
2596 Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
2597
2598         * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
2599         gtk_*_store_get, and moved to GtkTreeModel.
2600
2601         * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
2602
2603         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
2604
2605         * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
2606
2607         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
2608         set the func.
2609
2610         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
2611         freeze/thaw notify between setting all the properties for a cell.
2612
2613         * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
2614
2615 2001-02-15  Havoc Pennington  <hp@redhat.com>
2616
2617         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
2618         the X coordinates so they're with respect to the line, rather than 
2619         with respect to the layout.
2620
2621         * gtk/gtkalignment.c: Convert to new property API, patch from Lee
2622         Mallabone
2623
2624         * gtk/testgtk.c (create_range_controls): add vscale tests, 
2625         and inverted test
2626
2627         * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix 
2628         #50806
2629
2630         * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
2631
2632         * gtk/gtktextiter.h (gtk_text_iter_is_last): rename 
2633         gtk_text_iter_is_end
2634
2635         * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
2636         rename gtk_text_buffer_get_end_iter
2637
2638         * gtk/testgtk.c (create_labels): Add test for selectable
2639
2640         * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
2641         the selection stuff. This code is kind of broken since it doesn't 
2642         use the theme engine.
2643
2644         * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): 
2645         fix infinite loop and y offset problem
2646         (gdk_draw_layout_line_with_colors): fix foreground color handling
2647
2648         * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag 
2649         that makes the label selectable.
2650         
2651         * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
2652         layout when the style is set, since fonts etc. could have changed.      
2653
2654 Fri Feb 16 14:22:05 2001  Jonathan Blandford  <jrb@redhat.com>
2655
2656         * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
2657
2658         * gtk/gtktreemodelsimple.[ch]: removed.
2659
2660 2001-02-16  Alexander Larsson  <alexl@redhat.com>
2661
2662         * gtk/gtktreemodelmapping.[ch]:
2663         New files. Implement GtkTreeModelMapping.
2664         
2665         * gtk/Makefile.am:
2666         Add gtktreemodelmapping.[ch].
2667         
2668         * gtk/gtk.h:
2669         Add gtktreemodelmapping.h
2670
2671         * gtk/treestoretest.c:
2672         Test the GtkTreeModelMapping
2673
2674 Tue Feb 13 13:16:09 2001  Jonathan Blandford  <jrb@redhat.com>
2675
2676         * demos/gtk-demo/panes.c (create_pane_options): If we're going to
2677         have a demo, we might as well pass in real values.  Thanks to
2678         clahey for pointing this out.
2679
2680 2001-02-14  Havoc Pennington  <hp@pobox.com>
2681
2682         * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
2683         "static" to a private function
2684         (gtk_image_menu_item_class_init): remove destroy handler,
2685         add "image" object property
2686
2687 2001-02-13  Alexander Larsson  <alla@lysator.liu.se>
2688
2689         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
2690         Add a shortcut if the window and the current clip_region doesn't
2691         overlap. This is needed when there are a lot of windows in a
2692         window. The layout test in testgtk is a good test.
2693
2694         * gdk/linux-fb/gdkwindow-fb.c:
2695         Whitespace fix.
2696
2697 2001-02-13  Sven Neumann  <sven@convergence.de>
2698
2699         * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
2700
2701 2001-02-13  Alexander Larsson  <alexl@redhat.com>
2702
2703         * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
2704         Don't reference last_cursor if it is null. Fixes crash when rotating
2705         the screen before having moved the mouse.
2706
2707         * gdk/linux-fb/gdkcc-fb.c: Zapp!
2708
2709         * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
2710
2711         * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw 
2712         when using 90 or 270 degrees rotation.
2713
2714 2001-02-12  Havoc Pennington  <hp@pobox.com>
2715
2716         * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where 
2717         it always set the foreground, even if we were only using
2718         a stipple.
2719         (gdk_draw_layout_line_with_colors): new function, allow
2720         override colors
2721         (gdk_draw_layout_with_colors): new function, allow override
2722         colors
2723         (gdk_pango_layout_line_get_clip_region): function to get the clip
2724         region for a logical text range
2725         (gdk_pango_layout_get_clip_region): get the clip region for a
2726         logical text range
2727
2728         * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
2729         (gdk_colormap_new): fix call to gdk_colormap_sync() so it has 
2730         the right number of arguments.
2731
2732         * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
2733         enhance the function to check that node data corresponds to a 
2734         view still belonging to the tree.
2735
2736         * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the 
2737         GtkTreePath
2738         (gtk_tree_view_inserted): ditto
2739         (gtk_tree_view_child_toggled): ditto
2740
2741         * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
2742         simplify this code.
2743
2744         * gtk/gtkcellrenderertext.c (get_layout): fix leak of 
2745         a PangoAttrList
2746
2747         * demos/gtk-demo/main.c (load_file): Fix leak of a GString
2748
2749         * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
2750
2751         * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
2752         size in the size request 
2753         (gtk_menu_bar_size_allocate): consider toggle size here
2754
2755         * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
2756         that displays a widget in the toggle slot
2757
2758         * gtk/testgtk.c: test GtkImageMenuItem
2759
2760         * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
2761         
2762         * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
2763         request and allocation
2764
2765         * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
2766
2767         * gtk/gtkcheckmenuitem.c
2768         (gtk_check_menu_item_toggle_size_request): ditto
2769         
2770 Mon Feb 12 23:43:30 2001  Owen Taylor  <otaylor@redhat.com>
2771
2772         * gtk/Makefile.am (gdk_headers): Remove gdkcc.h 
2773         reference.
2774
2775         * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
2776         and refuse to initialize GTK+ if they fail.
2777
2778 Mon Feb 12 15:02:07 2001  Owen Taylor  <otaylor@redhat.com>
2779
2780         * configure.in: Add check for gtk-doc version.
2781
2782 Thu Feb  8 17:18:26 2001  Owen Taylor  <otaylor@redhat.com>
2783
2784         * gtk/gtklabel.c (gtk_label_size_request): Fix bug
2785         where the xpad/ypad was only being used on one side!
2786
2787 2001-02-11  Tor Lillqvist  <tml@iki.fi>
2788
2789         * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
2790         function, copied from X11 version.
2791
2792         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
2793         DestroyCursor failures. The reason for the problem (despite the
2794         inconsistent messages from GetLastError()) was that
2795         DestroyCursor() cannot be called while a cursor is set in a
2796         window. Set the new cursor first and then destroy the old one.
2797         Thanks to jpe@archaeopteryx.com.
2798
2799         * gdk/win32/gdkcc-win32.c: Remove.
2800
2801         * gdk/win32/Makefile.am: Remove from here, too.
2802         
2803         * gdk/gdk.def
2804         * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
2805
2806         * gtk/gtk.def
2807         * gtk/makefile.mingw.in: Updates.
2808
2809 2001-02-08  Havoc Pennington  <hp@redhat.com>
2810
2811         * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
2812         add a widget to a bin that already has a child.
2813
2814         * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
2815
2816         * docs/Changes-2.0.txt: note that GdkColorContext is gone.
2817         
2818         * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
2819
2820         * gdk/gdk.h: remove gdkcc.h
2821
2822         * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
2823
2824         * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
2825         GdkPixbuf, since the previous implementation was GdkColorContext
2826         dependent.
2827
2828         * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
2829         
2830 Thu Feb  8 19:00:00 2001  Jonathan Blandford  <jrb@redhat.com>
2831
2832         * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
2833         a sane value!
2834
2835 2001-02-08  Havoc Pennington  <hp@redhat.com>
2836
2837         * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
2838         lighten them.
2839
2840 2001-02-08  Havoc Pennington  <hp@redhat.com>
2841
2842         * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
2843         validation idle
2844
2845         * demos/gtk-demo/main.c (create_tree): adjust to changes in text
2846         cell renderer
2847
2848         * demos/pixbuf-demo.c (timeout): remove deprecated
2849         gtk_widget_draw
2850
2851         * demos/testpixbuf-save.c (main): remove deprecated
2852         gtk_drawing_area_size
2853
2854         * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
2855         buttons even if the model isn't setup. gtk_tree_view_check_dirty()
2856         at the start of the allocation.
2857         (gtk_tree_view_check_dirty): handle column->button == NULL, handle
2858         unsetup or NULL model.
2859
2860         * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the 
2861         even/odd/sorted cells in the tree view.
2862
2863         * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
2864         bugfixes
2865
2866         * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
2867         backgrounds with draw_flat_box using different detail for even/odd
2868         rows.
2869
2870         * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
2871         row, so we can draw the alternating colors thing
2872
2873         * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
2874         property from a synonym property, notify for the synonym.
2875         Also, nuke the background_gdk_set and foreground_gdk_set synonyms
2876         (gtk_text_tag_get_property): Always return the font, even if
2877         all its fields aren't set
2878
2879         * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
2880         store the attr list; it leaves us with no way to change attributes
2881         in _render according to the render flags, and no way to implement
2882         get_property. Instead store all the specific text attributes. 
2883         Separate whether an attribute is enabled from its value. Sync all
2884         properties with GtkTextTag, make them all consistent, etc.
2885
2886         * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
2887         renderers can highlight the sort row/column     
2888
2889         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
2890         accessor functions to get values; this has the side effect of
2891         showing up which accessor functions were missing. Added those.
2892
2893         * gtk/gtktreeviewcolumn.h: Replace set_justification with
2894         set_alignment, to be consistent with GtkLabel, GtkMisc
2895
2896         * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
2897         arrow.
2898
2899         * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
2900
2901         * gtk/gtktreesortable.h: updates in here
2902
2903 2001-02-07  Sven Neumann  <sven@convergence.de>
2904
2905         * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to 
2906         pango dimensions after painting the background. We used to draw
2907         gigantic flat boxes here.
2908
2909 Mon Feb  5 22:05:57 2001  Owen Taylor  <otaylor@redhat.com>
2910
2911         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
2912         error introduced with earlier commit) (pointed out by
2913         Ollie Lho)
2914
2915 Mon Feb  5 12:25:06 2001  Owen Taylor  <otaylor@redhat.com>
2916
2917         * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
2918         which are no longer necessary.
2919
2920 Mon Feb  5 13:22:54 GMT 2001  Tony Gale <gale@gtk.org>
2921
2922         * docs/faq/gtk-faq.sgml: s/MISK/MISC/
2923
2924 2001-02-04  Tor Lillqvist  <tml@iki.fi>
2925
2926         * gdk/gdk.def
2927         * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
2928         Provide dummy implementations.
2929
2930 Sun Feb  4 07:55:17 2001  Tim Janik  <timj@gtk.org>
2931
2932         * gtk/gtksignal.h: removed gtk_signal_init() compat define.
2933
2934         * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
2935         GTypeDebugFlags debug_flags and pass it on to g_type_init ();
2936         deprecated this function.
2937
2938         * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
2939         argument.
2940
2941 Sun Feb  4 07:45:45 2001  Tim Janik  <timj@gtk.org>
2942
2943         * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
2944
2945 2001-02-03  Havoc Pennington  <hp@pobox.com>
2946
2947         * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
2948         Mikael Hermansson with patch from Mikael (if there was a toggle
2949         start one after the first character in the range, this function
2950         was broken). Bug #50380
2951
2952 Sat Feb  3 11:28:03 2001  Owen Taylor  <otaylor@redhat.com>
2953
2954         * configure.in: Remove confusing comment about X11.
2955
2956 Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>
2957
2958         * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
2959         regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
2960         
2961 Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>
2962
2963         * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
2964         it breaks things on BSD. If you want to compile GTK+ with
2965         -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE 
2966         when configuring, since GTK+ simply can't be "pure ANSI" 
2967         in the header files it uses. (#8170, Greg Hudson)
2968
2969 2001-02-02  Havoc Pennington  <hp@redhat.com>
2970
2971         * gtk/gtkwindow.c: docs
2972
2973         * gtk/gtkwidget.c: docs
2974         (gtk_widget_set_colormap): add a reference to the colormap
2975         (gtk_widget_get_default_colormap): add a reference to the colormap
2976
2977         * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
2978
2979         * gtk/gtktextiter.c: docs
2980
2981         * gtk/gtkmain.c (gtk_propagate_event): docs
2982
2983         * gtk/gtkpaned.c (gtk_paned_get_position): docs
2984         (gtk_paned_set_position): docs
2985
2986         * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
2987         sort interface, no implementation yet.
2988
2989         * demos/testpixbuf.c (new_testrgb_window): replace
2990         gtk_drawing_area_size() with gtk_widget_set_usize()
2991
2992         * demos/testpixbuf-drawable.c (main): ditto
2993         
2994         * gtk/testgtk.c: remove use of GtkStatusbarMsg
2995
2996         * gtk/gtktextbuffer.c: docs
2997
2998         * gtk/gtkstock.c: docs
2999
3000         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
3001
3002         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
3003
3004         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
3005         
3006         * gtk/gtkimage.c: add some docs in here
3007         (gtk_image_size_request): change name of
3008         gtk_widget_render_stock_icon
3009         (gtk_image_get_icon_set): don't dup returned string
3010         (gtk_image_get_icon_set): don't dup returned string
3011
3012         * gtk/gtkwidget.c (gtk_widget_render_icon): rename from 
3013         gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
3014         and gtkiconfactory.h functions
3015
3016         * gtk/gtkiconfactory.c: add some docs in here
3017
3018         * gtk/gtkmain.c (gtk_get_default_language): document
3019         (gtk_get_current_event): document
3020         (gtk_get_current_event_state): document
3021         (gtk_get_event_widget): document
3022
3023         * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
3024
3025         * gtk/gtkcontainer.c: Add some documentation
3026         (gtk_container_add): give a more explanatory warning on adding an
3027         already-parented widget, this is kind of a FAQ and also a common
3028         typo that's easier to debug with a nice warning 
3029
3030         * gtk/gtkcellrenderertoggle.c
3031         (gtk_cell_renderer_toggle_get_active): remove, I was on crack
3032         adding this, it's useless
3033         (gtk_cell_renderer_toggle_set_active): remove
3034         (gtk_cell_renderer_toggle_get_radio): add
3035
3036         * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
3037         the NULL cell renderer, that doesn't make any sense to me. 
3038
3039         * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
3040         demo code should never use deprecated features.
3041
3042         * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
3043         code should never use deprecated features.
3044
3045         * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
3046         gtk_widget_queue_clear_area deprecated
3047
3048         * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
3049         deprecated
3050
3051         * gtk/gtklabel.h: mark gtk_label_get() deprecated
3052
3053         * gtk/gtkimage.h: mark the legacy GtkImage functions that took 
3054         a GdkImage deprecated, replaced by new consistently-named
3055         functions       
3056
3057         * gtk/gtkmain.h: Mark gtk_exit() deprecated
3058
3059         * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
3060
3061         * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string 
3062         deprecated
3063
3064         * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file, 
3065         so it won't appear in docs and confuse people.
3066
3067         * gtk/gtkprogressbar.h: Mark all the old methods deprecated
3068
3069         * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
3070         macros deprecated. (can't mark the type itself deprecated, since
3071         GtkProgressBar is not deprecated and we need the type decl to use
3072         GtkProgressBar)
3073
3074         * gtk/gtkpixmap.h: Mark deprecated
3075
3076         * gtk/gtkoldeditable.h: Mark deprecated
3077
3078         * gtk/gtklist.h: Mark deprecated
3079
3080         * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used 
3081         for anything anymore.
3082
3083         * gtk/gtkctree.h: Mark deprecated
3084
3085         * gtk/gtkclist.h: Mark deprecated
3086
3087         * gtk/gtkpreview.h: Mark deprecated
3088
3089         * gtk/gtkpacker.h: Mark deprecated
3090
3091         * gtk/gtktipsquery.h: Mark deprecated
3092
3093         * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
3094
3095         * gtk/gtkvruler.h: Add comment that it will move out of GTK
3096
3097         * gtk/gtkhruler.h: Add comment that it will move out of GTK
3098
3099         * gtk/gtkruler.h: Add comment that it will move out of GTK
3100
3101         * gtk/gtkgamma.h: Add comment that it will move out of GTK
3102
3103         * gtk/gtkcurve.h: Add comment that it will move out of GTK
3104
3105 Fri Feb  2 17:16:09 2001  Owen Taylor  <otaylor@redhat.com>
3106
3107         * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
3108         gdk_colormap_sync private since it was never exported
3109         in a header file.
3110
3111         * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
3112         colormap->colors[] for StaticGray, StaticColor colormaps.
3113
3114         * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
3115         was being used as if it was image->bits_per_pixel.
3116
3117         * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
3118         for the image in the GdkImage structure since it isn't
3119         reconstructable, and we need it to handle packed types
3120
3121         * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
3122         the assumption that on Win32 image->bits_per_pixel == image->depth,
3123         always.
3124
3125         * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
3126
3127         * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
3128         warning message if no converter can be found. 
3129
3130 Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>
3131
3132         * gtk/fnmatch.c (FOLD): Fix problem with passing signed
3133         chars to isupper() / tolower(). (#567)
3134
3135         * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
3136         to clear up 64-bit warnings. (#567)
3137
3138 Fri Feb  2 12:26:50 2001  Owen Taylor  <otaylor@redhat.com>
3139
3140         * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
3141         a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
3142
3143         * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
3144         since some people set $(libdir) separately. (#1290, David Kaelbling)
3145
3146 Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>
3147
3148         * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
3149         defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
3150         MAXPATHLEN, but the code here depends on a fixed value.)
3151         (#4524)
3152
3153 Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>
3154
3155         * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
3156         where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
3157
3158 Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>
3159
3160         * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
3161         viewable there is no way that moving the node will cause the 
3162         focus row to become not viewable, so omit check on the visibility
3163         of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
3164
3165 Wed Jan 31 20:38:17 2001  Owen Taylor  <otaylor@redhat.com>
3166
3167         * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
3168         selection before inserting new text.
3169
3170 Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>
3171
3172         * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
3173         Make the sensitivity of the reparented child track that of
3174         the original parent menu item. (#34218, David Hodson)
3175
3176         * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
3177         the case where the current item is destroyed properly.
3178
3179         * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
3180         some edge cases with child-less menuitems.
3181         
3182 Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>
3183
3184         * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
3185         key pop down window. (#12074, Jon K Hellan)
3186
3187 Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>
3188
3189         * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
3190         toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan) 
3191         The solution here isn't perfect - you get an extraneous
3192         emission of "toggle", which could conceivably confuse an app,
3193         but better than the current situation. LXR search seems to
3194         indicate that no apps in GNOME CVS connect to "toggle".
3195
3196 Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>
3197
3198         * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
3199         gtk_public_h_sources to directly here to avoid warning when
3200         building srcdir != builddir. (#9656)
3201
3202 Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>
3203
3204         * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
3205         handlers in gtkrange.c return the proper values (TRUE == handled)
3206         (#10316).
3207
3208         This is just the tip of the iceberg, but gtkrange.c is the
3209         most common place where the propagation is problematical,
3210         and also a place where it is almost certainly safe to change
3211         this in the stable branch.
3212
3213         (You don't want right click popups on a range control or anything...)
3214
3215 Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>
3216
3217         * gtk/gtktext.c (clear_focus_area): We need to clear the focus
3218         area on focus out, even if a background pixmap isn't set.
3219         (#13941)
3220         
3221 Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>
3222
3223         * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
3224         to deal with setting the shape properly when scrolling arrows are
3225         turned on, but not visible because there is sufficient space.
3226         (#13432)
3227
3228 Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>
3229
3230         * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
3231         items with submenus, destroy the item along with the submenu.
3232         (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...' 
3233         properly.
3234
3235         * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
3236         later.
3237
3238 Tue Jan 30 15:51:25 2001  Owen Taylor  <otaylor@redhat.com>
3239
3240         * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
3241         the focus widget sometimes wasn't drawn with the default if there
3242         was no default widget.
3243
3244         * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
3245         unreference pixmaps. 
3246
3247         * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
3248         for some extra safety.
3249
3250 Mon Jan 29 19:00:01 2001  Owen Taylor  <otaylor@redhat.com>
3251
3252         * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
3253         the text of a cell to the old pointer value better, by
3254         copying the new text before freeing the old text. Some code
3255         cleanup. (#8079, Karl Nelson)
3256
3257 Mon Jan 29 16:50:19 2001  Owen Taylor  <otaylor@redhat.com>
3258
3259         * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
3260         gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
3261
3262 Mon Jan 29 15:22:51 2001  Owen Taylor  <otaylor@redhat.com>
3263
3264         * gtk/gtkmenu.c (gtk_menu_remove): When removing an
3265         item from a menu, check to see if it matches 
3266         menu->old_active_menu_item, and if so, unref and clear
3267         old_active_menu_item (Patch from Pavel Cisler)
3268
3269         * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset 
3270         menu_shell->active_menu_item, if it is the child being
3271         removed. (Patch based on that of Gene Ragan, #50337)
3272
3273 2001-01-31  Alexander Larsson  <alla@lysator.liu.se>
3274
3275         * gdk/linux-fb/gdkselection-fb.c: 
3276         * gdk/linux-fb/gdkcolor-fb.c: 
3277         * gdk/linux-fb/gdkdrawable-fb2.c: 
3278         * gdk/linux-fb/gdkfont-fb.c: 
3279         * gdk/linux-fb/gdkim-fb.c: 
3280         * gdk/linux-fb/gdkinput.c: 
3281         * gdk/linux-fb/gdkkeyboard-fb.c: 
3282         * gdk/linux-fb/gdkmain-fb.c: 
3283         * gdk/linux-fb/gdkrender-fb.c: 
3284         A bunch of whitespace cleanup.
3285         
3286 2001-01-30  Havoc Pennington  <hp@pobox.com>
3287
3288         * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in 
3289         #ifdef GTK_ENABLE_BROKEN.
3290
3291         * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
3292         GTK_ENABLE_BROKEN just before including the broken headers.
3293         
3294         * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
3295         deprecated types registered.
3296
3297         * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
3298         we have to test the broken stuff.
3299
3300         * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
3301         
3302 2001-01-30  Havoc Pennington  <hp@redhat.com>
3303
3304         * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
3305         here where prev pointer was set to the wrong thing
3306
3307         * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
3308         (gtk_tree_path_is_descendant): new function
3309
3310         * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
3311         cached length
3312         (gtk_list_store_get_iter): don't modify iter if we can't get the
3313         path.
3314
3315         * gtk/gtkliststore.h (struct _GtkListStore): cache the length
3316         
3317         * gtk/gtktreednd.h: add virtual function row_drop_possible() to
3318         GtkTreeDragDest
3319
3320         * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
3321         was causing segfault
3322
3323         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
3324         pointer to NULL
3325
3326         * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
3327
3328         * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
3329         on returning FALSE
3330         (gtk_list_store_iter_children): ditto
3331         (gtk_list_store_iter_nth_child): ditto
3332         (gtk_list_store_iter_nth_child): ditto
3333         (gtk_list_store_iter_parent): ditto
3334
3335         * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
3336         on iter->user_data != NULL instead of silently accepting it.
3337         (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
3338         we are returning TRUE.
3339         (gtk_tree_store_iter_children): ditto
3340         (gtk_tree_store_iter_nth_child): ditto
3341         (gtk_tree_store_iter_parent): ditto
3342         (gtk_tree_store_insert): remove handling of parent->user_data ==
3343         NULL, replace with parent == NULL       
3344
3345         * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
3346         and a comment explaining things
3347
3348         * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
3349         interface support to GtkTreeStore.
3350
3351         * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
3352         FALSE if no prev, fix
3353
3354         * gtk/gtktreeview.c (set_source_row): use a row reference
3355         (set_dest_row): use a row reference
3356
3357 Sat Jan 27 15:52:02 2001  Jonathan Blandford  <jrb@redhat.com>
3358
3359         * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
3360         stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
3361         (gtk_tree_selection_select_iter): The same as above.
3362
3363 2001-01-26  Havoc Pennington  <hp@redhat.com>
3364
3365         * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
3366         which holds a handle to a specific row (particular set of values
3367         in the model, i.e. pointer-identity row).
3368
3369         * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
3370         use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
3371         Still need to use it for the src/dest row saved on the drag context.
3372
3373 2001-01-26  Havoc Pennington  <hp@redhat.com>
3374
3375         * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
3376
3377         * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
3378         not offset by TREE_VIEW_HEADER_HEIGHT
3379         (gtk_tree_view_tree_to_widget_coords): fix to not offset by
3380         TREE_VIEW_HEADER_HEIGHT
3381
3382         * configure.in (included_loaders): for me, --with-included-loaders
3383         generates the error "the specified loader yes does not exist",
3384         i.e. the arg defaults to "yes", so change test for value ""
3385         to test for value "yes", and include all loaders in that case.
3386
3387         * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
3388
3389         * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
3390         handle TREE_VIEW_VERTICAL_SEPARATOR
3391         (gtk_tree_view_bin_expose): fix to consider the row offset as
3392         pointing halfway into vertical separator.       
3393         (gtk_tree_view_draw_node_focus_rect): ditto
3394
3395         * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
3396         --gtk-debug=updates, which causes gdk_window_set_debug_updates
3397         (TRUE) to be called.
3398
3399         * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
3400         debug mode where the invalid region is colored in on invalidate,
3401         so you can see the flicker and know whether your redraw code is 
3402         doing a good job.
3403
3404         * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in 
3405         tree window coordinates (clip rect is in tree window coords)
3406
3407         * gtk/Makefile.am: add gtktreednd.[hc]
3408
3409         * gtk/gtkliststore.c: implement gtktreednd interfaces.
3410
3411         * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
3412         drag-and-drop data operations on a model (so we can set up tree
3413         drag-and-drop automatically)
3414
3415         * gtk/testgtk.c: Add a window to change sensitivity in the
3416         GtkLabel test; add a way to change the entry frame in GtkEntry
3417         test
3418
3419         * gtk/gtkentry.c (gtk_entry_set_has_frame): 
3420         (gtk_entry_get_has_frame): new functions to remove the frame
3421         around an entry
3422         (gtk_entry_size_request): shrink requisition if no frame
3423         (gtk_entry_draw_focus): don't draw frame if no frame
3424
3425         * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
3426         checks inside a cell renderer
3427         (gtk_default_draw_option): ditto for options
3428
3429         * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
3430         children from the alignment, not the button
3431         (gtk_tree_view_column_init): ref/sink the column, to emulate
3432         GObject refcounting.
3433
3434         * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
3435         
3436         * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
3437         Use theme functions to draw the toggles 
3438
3439         * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
3440
3441         * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
3442         GdkPangoAttrEmbossed to use in rendering insensitive text
3443
3444         * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
3445
3446         * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
3447         using new GDK features
3448         
3449 2001-01-24  Alexander Larsson  <alexl@redhat.com>
3450
3451         * gtk/gtkimage.c:
3452         Splitted gtk_image_clear into gtk_image_clear() and
3453         gtk_image_reset(). Call gtk_image_clear() in ::destroy
3454         to avoid leaks.
3455
3456         * gtk/gtklabel.c (set_markup):
3457         Don't leak text.
3458
3459         * gtk/gtktextlayout.c:
3460         Always free display->shaped_objects.
3461
3462         * gtk/testgtk.c (create_clist):
3463         Don't leak custom style.
3464
3465 2001-01-23  Alexander Larsson  <alexl@redhat.com>
3466
3467         * gtk/gtkcolorsel.c (grab_color_at_mouse):
3468         Don't leak image. Simplify using gdk_colormap_query_color().
3469         (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
3470
3471         * linux-fb/gdkcolor-fb.c:
3472         Implemented gdk_colormap_query_color.
3473
3474 2001-01-23  Alexander Larsson  <alexl@redhat.com>
3475
3476         * linux-fb/gdkcursor-fb.c:
3477         Don't leak built-in cursors.
3478
3479         * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
3480         Don't leak tmp_points.
3481
3482         * linux-fb/gdkfont-fb.c (gdk_font_from_description):
3483         Don't modify desc. Don't leak font if the PangoFont
3484         isn't found.
3485         
3486         * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
3487         Free dash_list.
3488
3489         * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
3490         Don't leak string.
3491         
3492 2001-01-20  Havoc Pennington  <hp@pobox.com>
3493
3494         * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
3495         from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to 
3496         me, matches Pango
3497
3498 2001-01-22  Havoc Pennington  <hp@redhat.com>
3499
3500         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
3501
3502         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
3503
3504         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
3505         Remove, move back to gdk-pixbuf
3506
3507         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
3508         to all the word functions
3509
3510         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
3511         before doing anything on NULL layout or if we don't have the focus
3512
3513         * gtk/testtext.c (fill_example_buffer): "justification"
3514
3515         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
3516         to be called "justification" not "justify"
3517
3518         * demos/gtk-demo/textview.c (create_tags): "justification"
3519         
3520         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
3521
3522 2001-01-22  Alexander Larsson  <alexl@redhat.com>
3523
3524         * gdk/gdkwindow.c (gdk_window_invalidate_region):
3525         Don't leak visible_region. Use visible_region instead of region.
3526         
3527         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
3528         Don't do extra gdk_drawable_ref(). This is not X.
3529         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
3530         gdk_fb_focused_window is ref:ed.
3531         (gdk_fb_window_send_crossing_events): Watch out for destroyed
3532         windows.
3533
3534 2001-01-22  Alexander Larsson  <alexl@redhat.com>
3535
3536         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
3537         Don't leak the PangoFontDescriptor.
3538
3539 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
3540
3541         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
3542         when not realized.
3543         (gtk_tree_view_scroll_to_cell): Make work when not realized.
3544         (gtk_tree_view_realize): add scroll_to support
3545         (gtk_tree_view_finalize): add a finalize method.  Populate.
3546         (gtk_tree_view_insert_column): ref and sink the column.
3547         (gtk_tree_view_append_column): ref and sink the column.
3548         (gtk_tree_view_queue_draw_node): New function to handle redrawing
3549         individual nodes.  Should make the code much more efficient, if
3550         actually used.
3551
3552 2001-01-19  Havoc Pennington  <hp@redhat.com>
3553
3554         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
3555         byte_offset variable was being used to mean both "offset into
3556         layout" and "offset into buffer line" which was no longer true
3557         with addition of preedit string; fix
3558
3559 2001-01-19  Havoc Pennington  <hp@redhat.com>
3560
3561         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
3562
3563         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
3564         function
3565
3566         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
3567         implement
3568
3569         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
3570         scroll_to_cell, matches TextView scroll functions better
3571         (gtk_tree_view_tree_to_widget_coords): new function
3572         (gtk_tree_view_widget_to_tree_coords): new function
3573         (gtk_tree_view_get_visible_rect): new function
3574         (gtk_tree_view_get_path_at_pos): accept negative coordinates
3575         (gtk_tree_view_draw_node_focus_rect): new function moved from
3576         draw_focus, also, use width of bin_window as width of the focus
3577         rect
3578         (gtk_tree_view_expand_row): fix bug where it didn't recognize
3579         already-expanded rows
3580         (gtk_tree_view_get_cell_rect): new function
3581         (gtk_tree_view_get_path_at_pos): return the click position
3582         relative to the passed-in cell
3583         (gtk_tree_view_set_expander_column): new function
3584
3585         * configure.in: remove gtk-config-2.0 chmod
3586
3587         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
3588         and properly handle drags with targets we don't understand
3589         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
3590         scrolling anyway
3591         (gtk_text_view_drag_drop): stop scrolling here though, and set the
3592         mark invisible
3593
3594         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
3595         function
3596         (gtk_drag_dest_get_target_list): new function
3597         (gtk_drag_dest_set_target_list): new function
3598         
3599         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
3600
3601         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
3602         related to drag-and-drop
3603
3604 2001-01-19  Alexander Larsson  <alexl@redhat.com>
3605
3606         * gdk/linux-fb/gdkprivate-fb.h:
3607         Define EMULATE_GDKFONT.
3608         Add extra pango_font stuff to GfkFontPrivate.
3609         
3610         * gdk/linux-fb/gdkdrawable-fb2.c:
3611         * gdk/linux-fb/gdkfont-fb.c:
3612         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
3613         emulation using PangoFont.
3614
3615 2001-01-17  Havoc Pennington  <hp@pobox.com>
3616
3617         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
3618         all the non-deprecated set_foo functions. Added missing object
3619         properties, and added g_object_notify() to setters. 
3620         Wrote docs.
3621         
3622 2001-01-18  Tor Lillqvist  <tml@iki.fi>
3623
3624         * gtk/gtkmain.c
3625         * gtk/gtkrc.c: (Win32) Use the new
3626         g_win32_get_package_installation_(sub)directory() functions.
3627
3628         * config.h.win32.in: New file.
3629         
3630         * config.h.win32: Removed.
3631
3632         * configure.in: Output config.h.win32.
3633
3634         * Makefile.am: Add it to EXTRA_DIST.
3635
3636         * gtk/gtk.def: Update.
3637
3638 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
3639
3640         * gtk/gtklabel.c (gtk_label_size_request): Set the
3641         attributes onto the PangoLayout even if they are newly
3642         created from label->pattern.
3643
3644 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
3645
3646         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
3647
3648         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
3649         structures in functions. Fixes bug where gtk_dataset_*
3650         was accidentally still being used in one place, causing
3651         every dest side event to be treated independently.
3652
3653         * gtk/gtkdnd.c: Remove last vestages of handling
3654         ::draw (fixes warning)
3655         
3656         * gtk/gtkentry.[ch]: Add drag and drop support.
3657
3658         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
3659         new function gtk_check_drag_threshhold() for checking
3660         to check if (dx,dy) has exceeded the threshhold for starting
3661         a drag and use it everywhere.
3662
3663 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
3664
3665         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
3666         add -I{includedir}/gtk-2.0.
3667
3668         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
3669         gdk/gdk-pixbuf.h: Doc fixups.
3670         
3671         * gtk/gtkobject.h: Remove trailing , from enum
3672
3673 2001-01-17 Alexander Larsson <alexl@redhat.com> 
3674
3675         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
3676         Doh! Mixed up x and y.
3677
3678         * gdk/linux-fb/gdkglobals-fb.c:
3679         Removed gdk_fb_pointer_grab_window_events,
3680         added _gdk_fb_pointer_grab_owner_events and
3681         _gdk_fb_keyboard_grab_owner_events.
3682
3683         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
3684         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
3685         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
3686         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
3687         Send crossing events after ungrab finished.
3688         (gdk_keyboard_grab): Set ..._owner_events
3689         (type_masks): Move out of function.
3690         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
3691         gdk_fb_keyboard_event_window): New functions, return the
3692         window an event should be targeted at. Handles grabs and
3693         event propagation. Can return NULL.
3694         (gdk_event_make): Remove event_mask checking. Now always
3695         returns an event.
3696                 
3697         * gdk/linux-fb/gdkkeyboard-fb.c:
3698         * gdk/linux-fb/gdkproperty-fb.c:
3699         * gdk/linux-fb/gdkselection-fb.c:
3700         Use new event_window/gdk_event_make() behaviour.
3701         
3702         * gdk/linux-fb/gdkmouse-fb.c:
3703         Use new event_window/gdk_event_make() behaviour.
3704         Only send motion events if in the same window.
3705         If grabbed, use cursor from window if sibling of grabbed
3706         window, and cursor from grabbed window otherwise.
3707
3708         * gdk/linux-fb/gdkprivate-fb.h:
3709         Update gdk_fb_window_send_crossing_events, gdk_event_make
3710         and grab varaible declarations. Add gdk_fb_*_event_window().
3711
3712         * gdk/linux-fb/gdkwindow-fb.c:
3713         Use new event_window/gdk_event_make() behaviour.
3714         Keep correct track of focus window.
3715         (gdk_window_set_events): Set all specific button motion masks
3716         if GDK_BUTTON_MOTION_MASK set.
3717
3718         * gtk/gtkdnd.c (gtk_drag_update):
3719         Free info->last_event if gdk_drag_motion returned FALSE.
3720
3721 2001-01-16  Tor Lillqvist  <tml@iki.fi>
3722
3723         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
3724         Eliminate redraws when input-only windows are shown or
3725         hidden. Thanks to jpe@archaeopteryx.com.
3726
3727 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
3728
3729         * docs/faq/gtk-faq.sgml: FAQ update:
3730           - Update to bugzilla
3731           - Add GTK+ and security/SUID/SGID
3732           - Add DnD question
3733
3734 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
3735
3736         * gdk/linux-fb/gdkdnd-fb.c:
3737         Some cleanups.
3738         
3739 2001-01-15  Havoc Pennington  <hp@pobox.com>
3740
3741         * tests/testtreeview.c: add test stuff for CellRendererToggle
3742
3743         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
3744         accessor
3745
3746         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
3747         only toggle on button press (would do release like GtkButton, but
3748         we'd need implicit grab code for treeview cells)
3749
3750 2001-01-16  Tor Lillqvist  <tml@iki.fi>
3751
3752         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
3753
3754         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
3755         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
3756
3757         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
3758         to g_{locale,filename}_{to,from}_utf8 to match current API.
3759
3760         * gtk/makefile.msc.in (gtk_OBJECTS)
3761         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
3762
3763         * gtk/gtk.def: Update.
3764
3765 2001-01-15  Tor Lillqvist  <tml@iki.fi>
3766
3767         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
3768         implementaion that more closely mimics the events that an X server
3769         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
3770         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
3771         with nested preview widgets, for instance, more responsive when
3772         you move the mouse quickly into them.
3773         (find_window_for_pointer_event): Make it actually compile.
3774         (gdk_event_translate): Set send_event to the value of
3775         InSendMessage (). This doesn't really mean the same as X11's
3776         send_event flag, but is close enough, says jpe@archaeopteryx.com
3777
3778 2001-01-15  Alexander Larsson  <alexl@redhat.com>
3779
3780         * gdk/linux-fb/gdkdnd-fb.c:
3781         Implemented drag and drop.
3782         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
3783         when it tries to free and then copy the same event (info->last_event).
3784         I am not sure about why this happens, but will continue looking.
3785
3786 2001-01-15  Alexander Larsson  <alexl@redhat.com>
3787
3788         * gdk/linux-fb/gdkwindow-fb.c:
3789         Use gdk_window_invalidate_rect instead of
3790         gdk_window_invalidate_rect_clear to minimise flashing.
3791         When hiding windows you need to clear the root window though.
3792
3793 2001-01-15  Alexander Larsson  <alexl@redhat.com>
3794
3795         * gdk/linux-fb/gdkdrawable-fb2.c:
3796         For optization, add an full_shapes argument to gdk_fb_clip_region.
3797         If this is false, only the cliprects of the shapes are used.
3798
3799         * gdk/linux-fb/gdkprivate-fb.h:
3800         Export gdk_fb_window_peek_shape.
3801         Add full_shapes to gdk_fb_clip_region.
3802
3803         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
3804         When moving a window, don't clear everything under the it, just the
3805         root window. Makes stuff faster and flash less.
3806         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
3807         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
3808         offset of the shape.
3809         
3810
3811 2001-01-12  Havoc Pennington  <hp@redhat.com>
3812
3813         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
3814         current invalid region, fixes redraw bug while scrolling the 
3815         text widget
3816
3817         * gtk/gtktextview.c, gtk/gtktextview.h:
3818         Rearrange the scrolling/validation/etc. code in a major way, 
3819         so it seems to make sense to me. Probably isn't genuinely that
3820         much better, but...
3821
3822         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
3823         notifies
3824
3825         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
3826
3827 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
3828
3829         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
3830         Hide mouse pointer while rotation. Show it afterwards.
3831
3832 2001-01-12  Alexander Larsson  <alexl@redhat.com>
3833
3834         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
3835         windows in consideration when generating clip region.
3836
3837         * gdk/linux-fb/gdkfb.h:
3838         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
3839
3840         * gdk/linux-fb/gdkprivate-fb.h:
3841         Add shape to GdkWindowFBDatat.
3842         exported gdk_fb_window_get_abs_shape().
3843         removed gdk_fb_draw_lines declaration.
3844
3845         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
3846         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
3847         send focus changes when there is a grabbed window.
3848         (gdk_window_get_pointer): Handle shaped windows.
3849         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
3850         (gdk_fb_window_peek_shape): Returns the shape for a window,
3851         handles GDK_FB_USE_CHILD_SHAPE.
3852         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
3853         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
3854         (gdk_window_shape_combine_mask): Implement.
3855
3856         * gtk/gtkwindow-decorate.c:
3857         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
3858         setting the shape of a window makes the window transparent.
3859
3860 2001-01-11  Havoc Pennington  <hp@redhat.com>
3861
3862         * gtk/gtktreemodelsimple.h: Oops, broke some macros
3863
3864 2001-01-10  Havoc Pennington  <hp@redhat.com>
3865
3866         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
3867         add this function, bug 40251
3868
3869         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
3870         of type macro   
3871
3872 2001-01-11  Alexander Larsson  <alexl@redhat.com>
3873
3874         * acconfig.h:
3875         Added ENABLE_SHADOW_FB
3876
3877         * configure.in:
3878         Added --disable-shadowfb
3879
3880         * gdk/linux-fb/gdkcursor-fb.c:
3881         Update shadowfb when updating cursor
3882
3883         * gdk/linux-fb/gdkdrawable-fb2.c:
3884         Added wrappers for shadowfb that calls  the normal drawable
3885         methods, but calls gdk_shadow_fb_update(bounding box) when
3886         GdkWindows are drawed to.
3887         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
3888         which also returns the bounding box.
3889
3890         * gdk/linux-fb/gdkfb.h:
3891         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
3892
3893         * gdk/linux-fb/gdkgeometry-fb.c:
3894         Update shadowfb when scrolling window.
3895
3896         * gdk/linux-fb/gdkglobals-fb.c:
3897         Add _gdk_fb_screen_angle.
3898         
3899         * gdk/linux-fb/gdkkeyboard-fb.c:
3900         Test code for screen rotation. Shift-F2 in the xlate driver
3901         rotates the screen.
3902
3903         * gdk/linux-fb/gdkmain-fb.c:
3904         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
3905
3906         * gdk/linux-fb/gdkmouse-fb.c:
3907         Use fb_width/height instead of modeinfo.xres/yres.
3908
3909         * gdk/linux-fb/gdkprivate-fb.h:
3910         Added fb_men, fb_width, fb_height & fb_stride. When using
3911         shadow fb these can differ from the framebuffer stuff.
3912         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
3913         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
3914         _gdk_fb_screen_angle. Removed CM, RP.
3915
3916         * gdk/linux-fb/gdkrender-fb.c:
3917         Added code for shadowfb handling and screen rotation using
3918         shadowfb.
3919
3920         * gdk/linux-fb/gdkwindow-fb.c:
3921         Use fb_mem, fb_stride, fb_width, fb_height.
3922         Added recompute_rowstride to reset the rowstride of all windows.
3923         Added gdk_fb_recompute_all() which recomputes rootwindow size,
3924         window abs positions and window rowstrides. Usefull when the
3925         rotation has changed.
3926
3927 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
3928
3929         * docs/faq/gtk-faq.sgml: update to make web site updating easier
3930
3931 2001-01-10  Havoc Pennington  <hp@redhat.com>
3932
3933         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
3934         where sibling == iter
3935         (gtk_tree_store_insert_after): handle sibling == iter
3936         (gtk_tree_store_prepend): remove stamp checks
3937         (gtk_tree_store_insert_before): ditto
3938         (gtk_tree_store_append): ditto
3939         (gtk_tree_store_get_path): ditto
3940         (gtk_tree_store_get_value): ditto
3941         (gtk_tree_store_iter_has_child): ditto
3942         (gtk_tree_store_iter_n_children): ditto
3943         (gtk_tree_store_iter_nth_child): ditto
3944         (gtk_tree_store_insert_after): ditto
3945         (gtk_tree_store_is_ancestor): ditto
3946         (gtk_tree_store_iter_depth): ditto
3947         (gtk_tree_store_insert_before): assert that sibling's parent is
3948         the same as the passed-in parent
3949         (gtk_tree_store_insert_after): assert that sibling's parent is
3950         the same as the passed-in parent
3951
3952         
3953         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
3954         function to get the first iterator in a model
3955         
3956         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
3957         conventionally the "root" in this sense is just NULL afaict.
3958
3959         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
3960         where sibling == iter
3961         (gtk_list_store_insert_after): handle case where sibling == iter
3962
3963         * tests/testtreeview.c (run_automated_tests): fairly lame basic
3964         automated tests for ListStore, TreeStore
3965
3966         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
3967         (gtk_list_store_insert): update tail pointer, and fix it to work
3968         (gtk_list_store_insert_before): update tail pointer, and fix it to work
3969         (gtk_list_store_append): use tail to be faster
3970         (gtk_list_store_prepend): fix it, update tail pointer
3971         (gtk_list_store_insert_after): fix it, update tail pointer
3972
3973         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
3974         the list
3975
3976 2001-01-09  Havoc Pennington  <hp@redhat.com>
3977
3978         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
3979         is NULL due to a pending resize
3980
3981         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
3982         column width to values less than 1
3983
3984         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
3985         width to be between min/max width, and still set the width 
3986         even if autosize is turned on, so the tree view can use this 
3987         function in order to autosize.
3988         (gtk_tree_view_column_init): set initial width to 1 not 0
3989
3990         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
3991         setter function to modify column width, so we get notification
3992         (gtk_tree_view_insert_iter_height): ditto
3993         (gtk_tree_view_calc_size): ditto
3994         (gtk_tree_view_check_dirty): ditto
3995
3996         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
3997         properties to change all the interesting attributes of the tree
3998         view column.
3999         (gtk_tree_view_column_set_header_clickable): rename set_clickable
4000         (gtk_tree_view_column_get_clickable): add
4001         (gtk_tree_view_column_set_cell_renderer): don't unset the current
4002         attributes; assume a cell renderer with equivalent object
4003         properties has been swapped in. Do g_object_notify().
4004         (gtk_tree_view_column_set_visible): g_object_notify
4005         (gtk_tree_view_column_get_sizing): rename from get_col_type
4006         (gtk_tree_view_column_set_sizing): g_object_notify
4007         (gtk_tree_view_column_set_width): add g_object_notify
4008         (gtk_tree_view_column_set_min_width): ditto
4009         (gtk_tree_view_column_set_max_width): ditto
4010         (gtk_tree_view_column_set_title): ditto
4011         (gtk_tree_view_column_set_clickable): ditto
4012         (gtk_tree_view_column_set_widget): ditto
4013         (gtk_tree_view_column_set_justification): ditto
4014
4015 2001-01-09  Havoc Pennington  <hp@redhat.com>
4016
4017         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
4018         there are no rows in the model
4019
4020         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
4021         NULL, then return the start of the list
4022
4023         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
4024         if we can't get any rows from an empty model 
4025
4026         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
4027         extraneous * after function pointer typedef usage
4028
4029         * Makefile.am: don't specify full path to cp and rm
4030
4031         * gtk/gtkcellrenderertextpixbuf.c
4032         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
4033         NULL before dereferencing, fixes a segfault that happened from
4034         time to time
4035
4036         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
4037         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
4038         and reindent the function
4039         (gtk_cell_renderer_pixbuf_get_size): indentation
4040
4041         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
4042         we quit it
4043         (gtk_dialog_add_buttons_valist): add g_return_if_fail
4044         (gtk_dialog_set_default_response): New function, to set default
4045         button
4046         (gtk_dialog_set_response_sensitive): New function, to set 
4047         sensitivity of buttons
4048
4049         * gtk/gtkcellrendererpixbuf.c
4050         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
4051         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
4052
4053         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
4054         handle any G_TYPE_OBJECT subclass, not just the base class, and 
4055         also boxed types.
4056         (_gtk_tree_data_list_value_to_node): ditto
4057
4058         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
4059         --gtk-debug=tree
4060
4061         * gtk/gtkmain.c: add GTK_DEBUG_TREE
4062
4063         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
4064
4065 2001-01-09  Tor Lillqvist  <tml@iki.fi>
4066
4067         * gdk/win32/gdkevents-win32.c: Implement better mouse
4068         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
4069         (find_window_for_pointer_event): New function.
4070         (gdk_event_translate): Use it when handling mouse events.
4071
4072 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
4073
4074         * configure.in:
4075         Added --with-included-loaders option
4076
4077         * gdk-pixbuf/Makefile.am:
4078         * gdk-pixbuf/gdk-pixbuf-io.c:
4079         Add support for including selected gdk-pixbuf loaders only.
4080
4081         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
4082         gtk_window_set_has_frame):
4083         Added inline documentation.
4084
4085         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
4086         * docs/reference/gdk/tmpl/windows.sgml:
4087         Added inline documentation.
4088
4089 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
4090
4091         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
4092         realizing buttons that have already been realized.
4093
4094 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
4095
4096         * tests/testtreeview.c (main): Show menu items before adding to
4097         option menu.
4098
4099         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
4100         around if we kill them.
4101
4102         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
4103         Return if we pass in a NULL model.
4104
4105 2001-01-08  Havoc Pennington  <hp@redhat.com>
4106
4107         * tests/testtreeview.c: hack on this some
4108
4109         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
4110         gtk_tree_store_set_valist, v is for arrays, valist for varargs
4111         list
4112         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
4113
4114         * gtk/gtkliststore.h: Add varargs set() and get() convenience
4115         functions
4116
4117 2001-01-08  Alexander Larsson  <alexl@redhat.com>
4118
4119         * gtk/gtkwindow-decorate.[hc]:
4120         * gtk/Makefile.am:
4121         New files. Contains an implementation of a minimal WM for
4122         linux-fb.
4123
4124         * gtk/gtkwindow.h:
4125         Add the possibility for GtkWindows to specify a frame. This
4126         is used for the window decoration code, but could concievably
4127         be used for X programs too (xmms style windows).
4128         GtkWindow->frame is the toplevel window if the window is framed.
4129         The signal frame_event gets all events that are targeted to
4130         GtkWindow->frame.
4131         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
4132         
4133         * gtk/gtkwindow.c:
4134         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
4135         Call out to gtkwindow-decorate.c for WM support in linx-fb.
4136
4137 2001-01-08  Alexander Larsson  <alexl@redhat.com>
4138
4139         * docs/README.linux-fb:
4140         Correct filename ~/.pangoft2_aliases
4141
4142         * gdk/gdkwindow.h:
4143         Added new function gdk_window_get_decorations.
4144
4145         * gdk/linux-fb/gdkfb.h:
4146         Removed _gdk_window_get_decorations declaration.
4147         Renamed _gdk_window_set_child_handler to
4148         gdk_fb_window_set_child_handler.
4149
4150         * gdk/linux-fb/gdkwindow-fb.c:
4151         Renamed _gdk_window_set_child_handler to
4152         gdk_fb_window_set_child_handler.
4153
4154         * gdk/x11/gdkwindow-x11.c:
4155         New function gdk_window_get_mwm_hints().
4156         Implemented gdk_window_get_decorations.
4157
4158         * docs/reference/gdk/tmpl/windows.sgml:
4159         * docs/reference/gdk/gdk-sections.txt:
4160         Added gdk_window_get_decorations docs.
4161         
4162 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
4163
4164         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
4165         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
4166         gdk_fb_window_send_crossing_events):
4167         Possibly send focus events when the mouse moves from one
4168         window to another.
4169
4170 2001-01-07  Tor Lillqvist  <tml@iki.fi>
4171
4172         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
4173         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
4174         to match current API.
4175
4176         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
4177         environment variable is set, don't call g_error when on a
4178         palettized (PseudoColor) display. Some people want to use GTK+ 
4179         in 256-colour mode even though works only partially.
4180
4181         * gdk/gdk.def
4182         * gtk/gtk.def
4183         * gtk/makefile.mingw.in: Update.
4184
4185 2001-01-05  Havoc Pennington  <hp@redhat.com>
4186
4187         * tests/testtreeview.c: hack on this a bit
4188
4189         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
4190         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
4191
4192         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
4193         was spelled incorrectly
4194         (GTK_IS_TREE_MODEL_SIMPLE): ditto
4195
4196         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
4197         from gtk_tree_view_set_headers_active   
4198
4199         * gtk/gtktexttag.c:
4200         (gtk_text_tag_get_property): handle PROP_DIRECTION
4201         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
4202         properties, bug 40235
4203
4204         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
4205         forward_to_line_end
4206
4207 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
4208
4209         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
4210         modules/input/gtkimcontextxim.c: Adapt to new prototypes
4211         for unicode,locale,filename conversion functions.
4212
4213 2001-01-05  Havoc Pennington  <hp@redhat.com>
4214
4215         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
4216         broken if called on the first position in the buffer.
4217
4218         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
4219         forward_to_delimiters to be called only if we aren't already at
4220         the delimiters.
4221
4222 2001-01-05  Havoc Pennington  <hp@redhat.com>
4223
4224         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
4225
4226 2001-01-05  Alexander Larsson  <alexl@redhat.com>
4227
4228         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
4229         colormap in here. Sync from X port.
4230         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
4231         Sync from X port.
4232         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
4233         This happens now and then, and i don't think it is a bug.
4234         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
4235         != endpoint.
4236         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
4237         GDK_LINE_SOLID.
4238
4239         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
4240         some of the fields filled in at least.
4241
4242         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
4243         miLineArcD is no more, remove it from the function definition.
4244
4245 2001-01-04  Havoc Pennington  <hp@redhat.com>
4246
4247         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
4248         this
4249
4250         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
4251         user_data instead of tree_node
4252
4253         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
4254         TREE_VIEW_COLUMN_SIZE
4255
4256         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
4257         "size" field to "width" finishes bug 40061
4258
4259         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
4260         for bitfields, bug 40268
4261
4262 2001-01-04  Havoc Pennington  <hp@redhat.com>
4263
4264         Rename some stuff:
4265         
4266         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
4267
4268         s/GtkModelSimple/GtkTreeModelSimple/g;
4269         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
4270         s/gtk_model_simple/gtk_tree_model_simple/g;
4271         s/gtkmodelsimple/gtktreemodelsimple/g;
4272
4273         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
4274
4275         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
4276         s/column_set_col_type/column_set_sizing/g;
4277
4278         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
4279         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
4280
4281         s/GtkCellRendererType/GtkCellRendererState/g;
4282         
4283         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
4284         (gtk_cell_renderer_toggle_class_init): change "state" property to
4285         "active", to match GtkToggleButton
4286         (gtk_cell_renderer_toggle_get_active): new function, bug
4287         40269
4288         (gtk_cell_renderer_toggle_set_active): new function
4289         (gtk_cell_renderer_toggle_set_property): route changes to toggle
4290         state through gtk_cell_renderer_set_active
4291
4292 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
4293
4294         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
4295         temporarily until they work again.  Brought up to date with
4296         changes in the model.
4297         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
4298         model.
4299
4300 2001-01-04  Havoc Pennington  <hp@redhat.com>
4301
4302         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
4303         equal to the line length, then position iterator before paragraph 
4304         separators. Fixes crash reported by Mikael Hermansson when
4305         pressing left arrow from the start of a line.   
4306
4307         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
4308         about byte indexes off the end
4309         (iter_set_from_char_offset): add g_error about char offsets
4310         off the end
4311
4312 2001-01-03  Havoc Pennington  <hp@redhat.com>
4313
4314         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
4315
4316         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
4317         of private functions; remove inclusion of private headers.
4318
4319         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
4320         function, so we don't need private functions in gtktextdisplay.c
4321
4322         * gtk/gtktextiterprivate.h: underscore-ification
4323
4324         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
4325         to instead say "only useful to implement widgets"
4326
4327         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
4328         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
4329         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
4330
4331         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
4332         This function was completely broken
4333
4334         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
4335
4336         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
4337
4338         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
4339
4340         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
4341
4342         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
4343
4344         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
4345
4346         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
4347         gtk_paint_layout
4348
4349         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
4350         gtk_paint_layout
4351
4352         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
4353         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
4354         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
4355         which were not implemented.     
4356
4357         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
4358         insert_pixbuf signal. Rename delete_text to delete_range since it
4359         also deletes pixbufs and child anchors. This almost closes bug
4360         40245 (still need to deal with child anchors)
4361
4362         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
4363         insert_pixbuf, change signal names as appropriate, change types of
4364         signals taking marks/tags to have the specific type, not just
4365         G_TYPE_OBJECT
4366         
4367         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
4368         closes bug 40051
4369
4370         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
4371         unnecessary remove_contents() call
4372         (gtk_option_menu_class_init): add a "changed" signal, closes
4373         bug 40039
4374         (gtk_option_menu_update_contents): emit "changed" if the 
4375         active menu item changes
4376
4377         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
4378         cast to GtkObject, reported by Jonas Borgstrom
4379         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
4380         we can't do stuff with side effects in finalize. Instead, spew a
4381         warning if the loader isn't closed.
4382
4383         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
4384         colormap in here, non-X ports probably need to sync to this change
4385
4386         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
4387         assertion that colormap != NULL, you can set the colormap to NULL
4388         if you like.
4389         
4390         * Makefile.am: remove gtk-config-2.0
4391
4392         * configure.in: Use pkg-config to locate GLib. Remove
4393         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
4394         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
4395         Use pkg-config to locate Pango. Output correct Pango libs to
4396         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
4397
4398         * Makefile.am (pkgconfig_DATA): install only target-specific pc
4399         files
4400         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
4401         X11 pc files
4402
4403         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
4404         unref from here
4405
4406 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
4407
4408         * configure.in:
4409         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
4410
4411 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
4412
4413         * gtk/gtktextlayout.c
4414         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
4415         variable when moving back onto a single line.
4416
4417 2001-01-01  Havoc Pennington  <hp@redhat.com>
4418
4419         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
4420
4421         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
4422
4423         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
4424         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
4425
4426 2001-01-01  Havoc Pennington  <hp@redhat.com>
4427
4428         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
4429
4430         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
4431         GtkTextAttributes
4432
4433         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
4434         #40246
4435         (gtk_text_attributes_copy_values): rename from 
4436         gtk_text_attributes_copy
4437         (gtk_text_attributes_copy): a more standard GTK copy function, 
4438         which returns a new object
4439
4440 2001-01-01  Havoc Pennington  <hp@redhat.com>
4441
4442         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
4443         
4444         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
4445         don't fill in tree_view->priv->selection, kind of an unexpected
4446         side effect
4447
4448         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
4449         gtkintl.h
4450         
4451         * gtk/gtkcellrenderer.c: Remove definition of _ and include
4452         gtkintl.h
4453         (gtk_cell_renderer_get_property): remove calls to g_value_init
4454
4455         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
4456         gtkintl.h
4457
4458         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
4459         and include gtkintl.h
4460         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
4461         property names
4462
4463         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
4464         GtkTreeSelection
4465         (_gtk_tree_selection_new_from_with_view): rename, return
4466         GtkTreeSelection
4467         (_gtk_tree_selection_set_tree_view): rename with uscore
4468         (gtk_tree_selection_get_selected): fill in the "model" out param
4469         first, so it gets filled in even if we return at the top of the 
4470         function
4471         (gtk_tree_selection_real_select_all): add a comment and an else{}
4472         to clarify this a bit
4473         (gtk_tree_selection_real_unselect_all): add the same else{}
4474
4475         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
4476         set_tree_view to have underscore prefixes, move them to the
4477         private header, fix return type of new_with_tree_view
4478         (struct _GtkTreeSelection): mark struct
4479         fields private  
4480
4481         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
4482         GtkTreeModelFlags, not a guint
4483         (gtk_tree_path_prev): return gboolean not gint
4484         (gtk_tree_path_up): return gboolean not gint
4485
4486         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
4487         return GtkTreeModelFlags, not a guint
4488
4489         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
4490         that child model is non-null before unrefing it
4491         (g_value_int_compare_func): make this a qsort compare func, not 
4492         a boolean predicate
4493
4494         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
4495         (add -umn to the end), and mark it unimplemented
4496         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
4497         I don't see what it's for - doesn't the model always sort itself?
4498         (gtk_tree_model_sort_set_compare): this had the wrong signature
4499
4500         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
4501         Fix the docs to say that it destructively replaces existing
4502         attributes (previously said that it added attributes).
4503         (gtk_tree_view_column_set_visible): canonicalize bool before
4504         equality testing. Also, check for realization before
4505         hiding/showing the tree_column->window; if this window could exist
4506         before realization, then it's busted and needs fixing, we can't 
4507         create GDK resources pre-realization. Also, remove
4508         superfluous queue_resize(), since set_size() does that for us.
4509         (gtk_tree_view_column_set_col_type): check realization before 
4510         using tree_column->window
4511
4512         * gtk/gtktreedatalist.c: fix filename in copyright notice
4513
4514 2000-12-31  Havoc Pennington  <hp@pobox.com>
4515
4516         * gtk/gtktextview.c: Rearrange all the
4517         scroll-while-dragging-or-selecting code to be different, not
4518         necessarily better. ;-)
4519         (gtk_text_view_scroll_to_mark): Change this
4520         function to take within_margin as a fraction instead of a pixel
4521         value, and to take alignment arguments (indicating where to align 
4522         the mark inside the visible area)
4523         
4524         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
4525         to GtkObject
4526
4527         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
4528         behavior so that offsets past the end of the line are not 
4529         allowed, and an offset equal to the line length moves the iterator
4530         to the next line
4531         (gtk_text_iter_set_line_index): make parallel change
4532         (gtk_text_iter_get_bytes_in_line): add this function
4533         
4534         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
4535         of byte indexes off the end of the line; byte index at the end of
4536         the line now returns FALSE and doesn't fill in the requested
4537         values, byte index past the end of the line is an error.  Also,
4538         don't allow -1 offset anymore, since its meaning is unclear.
4539
4540         This change exposes some bug in visual cursor motion, where we
4541         end up with a huge invalid byte index; needs fixing. Symptom of 
4542         bug is a crash when you hit up arrow.
4543         
4544         (_gtk_text_line_char_locate): match the change to byte_locate
4545
4546         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
4547         from start of line properly. fixes bug reported by Mikael
4548         Hermansson where backspace would delete all text before the
4549         cursor.
4550
4551 2000-12-30  Tor Lillqvist  <tml@iki.fi>
4552
4553         * gdk/win32/gdkwindow-win32.c
4554         (gdk_window_impl_win32_get_visible_region): New function, as in
4555         the X11 backend.
4556         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
4557         instead of duplicating the same code here.
4558
4559         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
4560         GDK_COLORMAP macro.
4561
4562         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
4563         destroy function.
4564         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
4565         access that.
4566
4567         * gtk/gtk.def: Update.
4568
4569         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
4570
4571 2000-12-30  Havoc Pennington  <hp@pobox.com>
4572
4573         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
4574         colormap on input only windows, to avoid special cases all over
4575         the code for these windows.
4576
4577 2000-12-26  Tor Lillqvist  <tml@iki.fi>
4578
4579         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
4580         we are on a palettized display ("PseudoColor" in X11), as the code
4581         for that doesn't work anyway, and never has.
4582
4583 2000-12-22  Alexander Larsson  <alexl@redhat.com>
4584
4585         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
4586         Don't use isprint() for chars > 255.
4587
4588 2000-12-21  Havoc Pennington  <hp@redhat.com>
4589
4590         * tests/testtreeview.c: more work
4591
4592 2000-12-21  Alexander Larsson  <alexl@redhat.com>
4593
4594         * docs/README.linux-fb:
4595         Update the docs to the new pangoft2 way.
4596
4597 2000-12-21  Alexander Larsson  <alexl@redhat.com>
4598
4599         * configure.in:
4600         For linux-fb get the pangoft2 cflags and libs. This needs a recent
4601         pango version.
4602         Remove modules/linux-fb/Makefile.
4603
4604         * gdk/linux-fb/gdkdrawable-fb2.c:
4605         Render glyphs using freetype.
4606
4607         * gdk/linux-fb/gdkfb.h:
4608         Add new fb-specific functions needed for managing windows.
4609
4610         * gdk/linux-fb/gdkmain-fb.c:
4611         Remove gdk_font_init/fini() calls.
4612
4613         * gdk/linux-fb/gdkpango-fb.c:
4614         Remove old implementation. Use pangoft2 instead.
4615
4616         * gdk/linux-fb/gdkprivate-fb.h:
4617         Remove PangoFBFont and related stuff.
4618
4619         * gdk/linux-fb/gdkwindow-fb.c:
4620         Implement drawable->get_visible_region.
4621         Implement support for _gdk_window_set_child_handler () and
4622         _gdk_window_get_decorations().
4623
4624         * modules/Makefile.am:
4625         Remove linux-fb subdir.
4626
4627         * modules/linux-fb/*:
4628         Removed all.
4629         
4630 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
4631
4632         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
4633         calls, as they are no longer needed.
4634
4635         * gtk/gtktreemodelsort.c: Fix up the comparison code.
4636         
4637         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
4638         figure out how to emit a signal on an interface.
4639
4640 2000-12-20  Havoc Pennington  <hp@redhat.com>
4641
4642         * tests: new directory to contain tests, gtk/test* should move
4643         here sometime (with appropriate on-cvs-server hackery)
4644
4645         * tests/testtreeview.c, tests/Makefile.am: a test
4646         
4647         * configure.in (AC_OUTPUT): add tests/Makefile
4648
4649         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
4650         and "invisible_set" which were missing
4651
4652         * gtk/gtkrbtree.h: some cheesy indentation fix
4653         
4654 2000-12-20  Alexander Larsson  <alexl@redhat.com>
4655
4656         * gtk/gtkinvisible.c (gtk_invisible_realize):
4657         Attach the style to the window so that the style it is not
4658         leaked when unrealizing the window.
4659
4660 2000-12-18  Havoc Pennington  <hp@redhat.com>
4661
4662         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
4663         begin/end user action where appropriate
4664         (gtk_text_view_commit_handler): add begin/end user action
4665
4666         * gtk/gtktextbuffer.c: add begin/end user action signals, and
4667         bracket interactive operations with begin/end user action pair.
4668         
4669         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
4670         "interactive" arg from insert_text and delete_text signals.
4671         Add begin_user_action, end_user_action signals
4672         (gtk_text_buffer_begin_user_action): 
4673         (gtk_text_buffer_end_user_action): New functions to delimit 
4674         a user-visible action
4675
4676         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
4677         signals.
4678         
4679 2000-12-18  Havoc Pennington  <hp@redhat.com>
4680
4681         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
4682         was pretty non-working.
4683
4684         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
4685         by passing the length to g_utf8_validate().
4686
4687 2000-12-16  Havoc Pennington  <hp@pobox.com>
4688
4689         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
4690         Port to GObject, can go back in gdk-pixbuf after setting up 
4691         a gdk-pixbuf-marshal.h header over there.
4692
4693         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
4694         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
4695         args
4696         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
4697         set
4698         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
4699         here, do it when we create the buttons later
4700         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
4701         (gtk_tree_view_map): paranoia checks that column->button is shown 
4702         and unmapped
4703         (gtk_tree_view_size_request): only request visible children.
4704         Move header size calculation in here, for cleanliness, and 
4705         to maintain invariants for child widgets if we eventually 
4706         let users set different children inside the buttons
4707         (gtk_tree_view_map_buttons): factor out code to map buttons,
4708         since it was being called several times
4709         (gtk_tree_view_size_allocate_buttons): move_resize the drag
4710         windows instead of just moving them; their height may change 
4711         if we allow random widgets in there, or the theme changes.
4712         (gtk_tree_view_size_allocate): move button size allocation 
4713         above emitting the scroll signals, to ensure a sane state when we
4714         hit user code
4715         (gtk_tree_view_button_release): remove queue_resize after
4716         tree_view_set_size(), set_size() will handle any resize queuing
4717         that's needed
4718         (gtk_tree_view_focus_in): just queue a draw, don't fool with
4719         draw_focus goo
4720         (gtk_tree_view_focus): use gtk_get_current_event() and
4721         gdk_event_get_state()
4722         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
4723         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
4724         semicolon
4725         (gtk_tree_view_create_button): show the button here
4726         (gtk_tree_view_button_clicked): actually emit the clicked signal
4727         on the column
4728         (_gtk_tree_view_set_size): return right away if the size is
4729         unchanged, as a cheesy optimization
4730         (gtk_tree_view_setup_model): rename set_model_realized to 
4731         setup_model to match the flag that indicates whether we've 
4732         called it
4733         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
4734         exist, because set_scroll_adjustment does that and it shouldn't
4735         matter what order you call these in
4736         (gtk_tree_view_get_vadjustment): ditto
4737         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
4738         for paranoia
4739         (gtk_tree_view_set_headers_visible): call
4740         gtk_tree_view_map_buttons() instead of using cut-and-paste code
4741         (gtk_tree_view_append_column): clarify whether the return value
4742         is the count of columns before or after, and do the increment 
4743         separately from the return statement so you can tell from the code.
4744         (gtk_tree_view_remove_column): ditto
4745         (gtk_tree_view_insert_column): ditto
4746         (gtk_tree_view_get_column): remove g_return_if_fail for columns
4747         outside the existing range, the docs say that outside-range
4748         columns are allowed, so we handle them as documented. (Presumably
4749         this allows a nice loop with column != NULL as test.)
4750         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
4751         mean (left/right/center etc.).
4752         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
4753         (gtk_tree_view_expand_row): add docs
4754         (gtk_tree_view_collapse_row): add docs
4755
4756         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
4757         function to emit the clicked signal on a column
4758         
4759         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
4760         state of an event
4761         (gdk_event_get_time): don't treat GDK_SCROLL 
4762         as a button event, remove default case from switch so gcc 
4763         will whine if we don't explicitly handle all event types
4764
4765         * gtk/gtktreeselection.h: added some FIXME 
4766         
4767         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
4768         "columns" to "n_columns" and "column" to "columns" for clarity
4769
4770 2000-12-16  Havoc Pennington  <hp@pobox.com>
4771         
4772         * gtk/gtktextiter.c: General cleanup of the log attr iteration
4773         stuff. This should make e.g. the delete key work again in the
4774         text widget...
4775         (gtk_text_iter_forward_cursor_positions): handle negative count
4776         (gtk_text_iter_backward_cursor_positions): handle negative count
4777         (gtk_text_iter_forward_word_ends): handle negative count
4778         (gtk_text_iter_backward_word_starts): handle negative count
4779
4780         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
4781         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
4782         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
4783         GObject. No doubt will cause breakage.
4784
4785         * demos/gtk-demo/textview.c: remove hacks around
4786         non-GObject-ification of the text objects
4787
4788         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
4789         the text tag
4790         
4791 2000-12-14  Havoc Pennington  <hp@pobox.com>
4792
4793         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
4794         that we have Xrender
4795
4796 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
4797
4798         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
4799         Add two virtualized functions gdk_drawable_get_clip_region - to
4800         get the clip region when drawing.
4801         
4802         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
4803         use invalidate_region.
4804
4805         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
4806         region.
4807
4808         * acconfig.h configure.in: Check for Xft. For now, assume
4809         that if Xft is found, Pango was compiled with Xft support
4810         as well.
4811
4812         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
4813         gdk_colormap_query_color().
4814         
4815         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
4816         with Xft if appropriate.
4817
4818         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
4819         a pangoxft context if we have XFT and the environment
4820         variable GD_USE_XFT is set.
4821         
4822         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
4823         and also possibly an XftDraw structure.
4824
4825         * gtk/gtkfontsel.c: Handle the case where the font from the
4826         style doesn't match any of the fonts a bit better.
4827         
4828         * gtk/testgtk.c: Add tabs between directional segments for
4829         hebrew/arabic test. (Not really necessary, just a little
4830         prettier.)
4831
4832 2000-12-14  Havoc Pennington  <hp@redhat.com>
4833
4834         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
4835         reading a file
4836
4837 2000-12-14  Havoc Pennington  <hp@redhat.com>
4838
4839         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
4840         unused call to get_last_line()
4841
4842         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
4843         here until boxed is working (and maybe after that - we should
4844         really not gratuitously break old code)
4845
4846         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
4847         specific types for font_desc and tabs args, move them to
4848         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
4849         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
4850
4851         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
4852         use GTK_TYPE_POINTER for signal signatures as a hack-around
4853
4854         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
4855         PangoTabArray
4856
4857         * gtk/gtktextlayout.c (line_display_iter_to_index): 
4858         make static
4859         (line_display_index_to_iter): make static
4860
4861         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
4862         to marshal a string not a boxed
4863
4864         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
4865
4866         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
4867         since the UTF-8 isn't validated yet
4868
4869         * gtk/gtktextsegment.c (char_segment_check_func): don't require
4870         lines to end in '\n'
4871         
4872         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
4873         forward_to_delimiters, and grapheme boundaries
4874         (gtk_text_view_delete_from_cursor): properly handle non-newline
4875         delimiters, and grapheme boundaries
4876
4877         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
4878         to gtk_text_iter_forward_to_delimiters, and make it work properly
4879         if empty lines end with a character other than '\n'
4880
4881         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
4882         position
4883
4884 2000-12-15  Tor Lillqvist  <tml@iki.fi>
4885
4886         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
4887
4888         * gtk/gtk.def
4889         * gdk/gdk.def: Update.
4890
4891         * gdk/win32/gdkmain-win32.c
4892         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
4893         gdkmain-win32.c here.
4894
4895         * gdk/win32/makefile.mingw.in (all): No need to make
4896         gdk-win32res.o here, the makefile one step up will call us to make
4897         it.
4898
4899         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
4900         gdkkeys-win32.
4901
4902         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
4903
4904         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
4905         call to g_source_add().
4906
4907         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
4908         leak. Thanks to Andreas Kemnade.
4909
4910 2000-12-13  Havoc Pennington  <hp@pobox.com>
4911
4912         * gtk/gtktextbtree.h: Remove double _ in front of some functions
4913
4914         * gtk/gtktext*.[hc]: update accordingly
4915         
4916 2000-12-13  Havoc Pennington  <hp@pobox.com>
4917
4918         * gtk/gtktextbtree.h: Put _ in front of every function in this 
4919         header file
4920
4921         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
4922
4923 2000-12-13  Alex Larsson  <alexl@redhat.com>
4924
4925         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
4926         Add support for ps2 intellimouse.
4927
4928         * gdkkeyboard-fb.c:
4929         Move shift-F1 repaint handling to xlate handler only.
4930         
4931         * docs/README.linux-fb:
4932         Add imps2 to docs.
4933         Document the new refresh keys.
4934         
4935 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
4936
4937         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
4938
4939         * gtk/gtkbox.c: change property types from (u)long to (u)int for
4940         ::position and ::padding.
4941
4942         * gtk/gtkcontainer.c: make ::border_width an INT property.
4943
4944         * gtk/gtkpacker.c: make ::position an INT property.
4945
4946         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
4947         guard against NULL h/v scrollbars, since this is used at construction
4948         time.
4949
4950         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
4951         internal gtk_clist_constructor().
4952
4953         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
4954         gtk_ctree_constructor().
4955
4956         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
4957         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
4958
4959         * docs/reference/Makefile.am: fun stuff, disabled docs generation
4960         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
4961
4962         * gtk/gtkwidget.[hc]:
4963         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
4964         and gtk_widget_get().
4965         (gtk_widget_new): use g_object_new_valist().
4966         (gtk_widget_set): use g_object_set_valist().
4967
4968         * gtk/gtkobject.[hc]:
4969         removed gtk_object_arg_get_info(), gtk_object_getv(),
4970         gtk_object_query_args(), gtk_object_newv(),
4971         gtk_object_class_add_signals(),
4972         gtk_object_class_user_signal_new(),
4973         gtk_object_class_user_signal_newv(),
4974         gtk_object_arg_set(), gtk_object_arg_get(),
4975         gtk_object_args_collect(),
4976         gtk_object_default_construct(),
4977         gtk_object_constructed(),
4978         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
4979         removed nsignals, signals and n_args members from GtkObjectClass.
4980         (gtk_object_new): use g_object_new_valist().
4981         (gtk_object_set): use g_object_set_valist().
4982         (gtk_object_get): use g_object_get_valist().
4983         
4984         * gtk/gtkcompat.h: define gtk_object_default_construct().
4985         
4986         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
4987         g_object_new().
4988
4989         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
4990         fucntions, cleaned up method assignments (make sure your structures
4991         are setup properly before calling out). removed all GTK_CONSTRUCTED
4992         hacks ;)
4993
4994 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
4995
4996         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
4997         off-by-one error in checks. (Dave Lambert)
4998
4999 2000-12-12  Alexander Larsson  <alexl@redhat.com>
5000
5001         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
5002         Don't free gdk_fb_keyboard twice.
5003
5004 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
5005
5006         * gtk/testgtk.c:
5007         (create_tooltips): 
5008         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
5009         use GObject swapped_signal:: properties instead.
5010
5011         * gtk/gtkcellrenderertoggle.c: 
5012         * gtk/gtkcellrenderertextpixbuf.c: 
5013         * gtk/gtkcellrenderertext.c: 
5014         * gtk/gtkcellrendererpixbuf.c: 
5015         * gtk/gtkcellrenderer.c:
5016         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
5017         missing warnings for invalid property ids, install properties
5018         with g_object_class_install_property() now.
5019         
5020         * gtk/gtksignal.c:
5021         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
5022         
5023 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
5024         
5025         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
5026         to determine if a window is the focus widget within
5027         its toplevel.
5028
5029         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
5030         to be boolean.
5031
5032         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
5033         of the case where the container CAN_FOCUS to here instead
5034         of having it in each individual move-the-focus place.
5035
5036         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
5037         focusing to be geometric in a much more obvious sense. Arrowing
5038         around is still non-intuitive because it isn't perfect and
5039         because entries, etc, grab the arrow keys, but it at least
5040         usually will do what you expect now.
5041         
5042         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
5043         file.
5044
5045         * gtk/gtknotebook.c: Change tabs to be a single item in
5046         the focus chain. Make movement of focus on tabs with arrow
5047         keys wrap around.
5048         
5049         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
5050         CHECK_FIND_CHILD macro to give informative error messages
5051         instead of silent returns.
5052
5053         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
5054         flag since we handle GdkReturn on the tabs.
5055
5056         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
5057         windows rather than sending expose events directly.
5058
5059         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
5060         definition for GtkNotebookPage into .c file, since it is private.
5061
5062         * gtk/testgtk.c (create_notebook): Add option for 
5063         testing borderless notebook.
5064
5065         * gtk/testgtk.c (page_switch): Removed egregious poking
5066         around in GTK+ internals.
5067
5068         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
5069
5070         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
5071         properly through gtk_clist_focus. Make the title headers a
5072         single item in the tab-focus chain, and make left-right wrap
5073         around.
5074
5075         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
5076         focus method so that wrapping around works properly.
5077
5078         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
5079         that is handled for the widget now. 
5080
5081 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
5082
5083         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
5084         widgets as TOPLEVEL.
5085
5086         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
5087         TOPLEVEL widgets are containers.
5088
5089         * gtk/gtkinvisible.h: Remove useless include.
5090
5091 2000-12-11  Havoc Pennington  <hp@redhat.com>
5092
5093         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
5094         Handle chopping off \r\n and 0x2029 in addition to \n before
5095         passing to PangoLayout
5096
5097         * gtk/gtkimcontextsimple.c
5098         (gtk_im_context_simple_get_preedit_string): 
5099         return an empty string if no match is pending
5100
5101         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
5102         assertion that the returned preedit string was sane
5103
5104         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
5105         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
5106         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
5107
5108 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
5109
5110         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
5111         Fix up finalizer to chain to its parent.
5112
5113 2000-12-11  Alexander Larsson  <alexl@redhat.com>
5114
5115         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
5116         Clearified the difference between the keyboard types. Wrote a note
5117         about the magic sysrq key to get out of raw mode.
5118
5119 2000-12-09  James Henstridge  <james@daa.com.au>
5120
5121         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
5122         member to hold masks for detecting the start of a protocol packet.
5123         (mouse_devs): add packet start masks for ps2 and ms device types.
5124         Left the mask for fidmour blank, as I have no idea what it should
5125         be.
5126         (handle_mouse_io): skip bytes until we get to the start of a
5127         packet.  My Logitech mouse seems to be passing an extra NULL pad
5128         byte, and GPM does a similar thing here.
5129         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
5130         this is the ms mouse driver.
5131         (gdk_fb_mouse_ms_packet): fix up button handling, which was
5132         completely broken except for button1.  It was checking the wrong
5133         bit in the packet for the status of the right mouse button, and
5134         wrongly assuming right == button2 rather than 3.  I fixed that and
5135         also added support for middle button (button2).
5136
5137 2000-12-08  Havoc Pennington  <hp@redhat.com>
5138
5139         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
5140         that cause a segfault on text insertion
5141
5142         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
5143         warning
5144
5145         * gtk/gtktextiter.c (test_log_attrs): use
5146         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
5147
5148         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
5149         Get log attrs for a line, using a cache stored on the buffer
5150         
5151         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
5152         reported by Jeff Franks
5153
5154 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
5155
5156         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
5157         /dev/ttyS0 -> /dev/mouse
5158
5159 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
5160
5161         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
5162         Added dummy gdk_fontset_load.
5163
5164 2000-12-08  Alexander Larsson  <alexl@redhat.com>
5165
5166         * docs/README.linux-fb:
5167         * docs/Makefile.am:
5168         Initial GtkFB docs.
5169         
5170         * gdk/linux-fb/Makefile.am:
5171         Define GDK_DATA_PREFIX.
5172
5173         * gdk/linux-fb/gdkmain-fb.c:
5174         Fix typo.
5175         Change default display to /dev/fb0.
5176
5177         * gdk/linux-fb/gdkpango-fb.c:
5178         Add $(prefix)/share/fonts/ to font path.
5179         
5180 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
5181
5182         * gdk/linux-fb/gdkkeyboard-fb.c:
5183         New file containing the abstracted keyboard driver. Most code
5184         taken from gdkinput-ps2.c
5185
5186         * gdk/linux-fb/gdkinput-ps2.c:
5187         Removed file.
5188         
5189         * gdk/linux-fb/Makefile.am:
5190         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
5191
5192         * gdk/linux-fb/gdkcolor-fb.c:
5193         display->fb was renamed to display->fb_fd.
5194
5195         * gdk/linux-fb/gdkcursor-fb.c:
5196         gdk_mouse_get_info -> gdk_fb_mouse_get_info
5197
5198         * gdk/linux-fb/gdkinput.c:
5199         Moved gdk_input_init here from gdkinput-ps2.c
5200
5201         * gdk/linux-fb/gdkmain-fb.c:
5202         display->fb was renamed to display->fb_fd.
5203         Now the tty and the console is opened here instead
5204         of in the keyboard driver. Also check GDK_VT to see what
5205         tty to open.
5206         Move gdk_beep () here from gdkinput-ps2.c
5207         gdk_mouse_get_info -> gdk_fb_mouse_get_info
5208
5209         * gdk/linux-fb/gdkmouse-fb.c:
5210         Add header.
5211         gdk_mouse_get_info -> gdk_fb_mouse_get_info
5212         Return correct keyboard modifiers.
5213         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
5214
5215         * gdk/linux-fb/gdkprivate-fb.h:
5216         Add tty and vt info to display.
5217         Add orignal modeinfo storage to display
5218         Update global functions
5219
5220         * gdk/linux-fb/gdkwindow-fb.c:
5221         Added gdk_fb_window_find_focus().
5222         gdk_mouse_get_info -> gdk_fb_mouse_get_info
5223
5224 2000-12-07  Havoc Pennington  <hp@pobox.com>
5225
5226         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
5227         function, noticed by Alex
5228
5229 2000-12-06  Elliot Lee  <sopwith@redhat.com>
5230
5231         * configure.in: Detect freetype properly
5232
5233         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
5234         above.
5235
5236 2000-12-06  Alexander Larsson  <alexl@redhat.com>
5237
5238         * gdk/linux-fb/Makefile.am:
5239         Add gdkmouse-fb.c
5240         
5241         * gdk/linux-fb/gdkmouse-fb.c:
5242         New file. Abstracted the mouse drivers a bit.
5243
5244         * gdk/linux-fb/gdkcursor-fb.c:
5245         The cursor hide/show functions was moved here from gdkinput-ps2.c.
5246
5247         * gdk/linux-fb/gdkinput-ps2.c:
5248         Removed old mouse handling code. Moved cursor handling code
5249         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
5250         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
5251         gdk_mouse_get_info.
5252
5253         * gdk/linux-fb/gdkmain-fb.c:
5254         Pass NULL pointers for x,y in gdk_mouse_get_info call.
5255
5256         * gdk/linux-fb/gdkprivate-fb.h:
5257         Removed public gdk_fb_find_common_ancestor, added and renamed
5258         functions for the new mouse handling code.
5259
5260         * gdk/linux-fb/gdkwindow-fb.c:
5261         Moved gdk_fb_window_send_crossing_events here. added global
5262         variable gdk_fb_window_containing_pointer. made
5263         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
5264         renamed to gdk_mouse_get_info.
5265
5266 2000-12-06  Alexander Larsson  <alexl@redhat.com>
5267
5268         * gdk/linux-fb/gdkevents-fb.c:
5269         Update to match latest gmain/gsource changes.
5270
5271         * gdk/linux-fb/gdkinput-ps2.c:
5272         Bogus gdk_keymap_get_entries_for_keycode implementation so that
5273         it links. Will be implemented later.
5274
5275 2000-12-03  Havoc Pennington  <hp@pobox.com>
5276
5277         * gdk/Makefile.am: add gdkkeys.[hc]
5278
5279         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
5280         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
5281
5282         * acconfig.h, configure.in: add checks and command line options
5283         for XKB
5284
5285         * gdk/x11/gdkkeys-x11.c: Implement the above functions
5286         
5287         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
5288         and group in the key event
5289
5290         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
5291         field with the low-level hardware key code, and a group
5292         field with the keyboard group
5293
5294         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
5295         and declare a couple globals used for keymap handling
5296         
5297         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
5298         hold down Shift-Control and type a hex number to get a Unicode 
5299         character corresponding to the hex number
5300         (gtk_im_context_simple_get_preedit_string): Fix cursor position
5301         (return bytes not chars)
5302
5303 2000-12-05  Elliot Lee  <sopwith@redhat.com>
5304
5305         * gdk/gdkcolor.h: Make GdkColor specify element sizes
5306         to avoid waste on 64-bit platforms.
5307
5308 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
5309
5310         * INSTALL: Fix link to PNG home, remove reference
5311         to fribidi.
5312
5313         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
5314         
5315         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
5316         tested.)
5317
5318         * gtk/gtkcheckmenuitem.c: Permanently turn on
5319         always_show_toggle.
5320
5321         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
5322         be NULL. (Vladimir Klebanov, #26545)
5323
5324         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
5325         some signed/unsigned comparison problems. (#6510,
5326         David Kaelbling)
5327
5328         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
5329         return type to boolean (Oskar Liljeblad, #18648)
5330
5331 2000-12-05  Alexander Larsson  <alexl@redhat.com>
5332
5333         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
5334         Remove bogus colormap setting.
5335
5336 2000-12-05  Alexander Larsson  <alexl@redhat.com>
5337
5338         * gdk/linux-fb/gdkcolor-fb.c:
5339         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
5340
5341         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
5342         Must set colormap.
5343         
5344 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
5345
5346         * docs/tutorial/gtk-tut.sgml: DND updates
5347
5348 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
5349
5350         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
5351         Remove old debug g_warning().
5352         (gdk_fb_draw_drawable): The src argument can be either a wrapper
5353         or an implementation, just pass the implementation to draw_drawable_2.
5354         
5355         * gdk/linux-fb/gdkprivate-fb.h:
5356         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
5357
5358         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
5359         clear and invalidate area when window is destroyed.
5360         (send_map_events): Remove old commented out code.
5361
5362 2000-12-05  Alexander Larsson  <alexl@redhat.com>
5363
5364         * gdk/linux-fb/gdkpango-fb.c:
5365         Use italic instead of oblique in font aliases.
5366         
5367         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
5368         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
5369         other unsupported functions.
5370
5371 2000-12-04  Havoc Pennington  <hp@redhat.com>
5372
5373         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
5374
5375         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
5376
5377         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
5378
5379         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
5380         hack to avoid infinite loops (synthetic expose event) - 
5381         Owen has more appropriate fixes in a branch he'll check in later.
5382
5383         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
5384         separator, CR, and CRLF as line ends
5385
5386         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
5387         into lines using pango_find_paragraph_boundary(); other bits of
5388         the widget are still going to be broken if the boundary isn't '\n'
5389         though
5390
5391 2000-12-04  Alexander Larsson  <alexl@redhat.com>
5392
5393         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
5394         multiply.
5395
5396         * gdk/linux-fb/gdkpango-fb.c:
5397         Copied some 26.6 scaling macros from pango to clean up the rounding.
5398         (pango_fb_font_get_glyph_info): Correct sign on x value.
5399
5400         * gdk/linux-fb/gdkprivate-fb.h:
5401         Removed unreferenced external functions.
5402
5403         * modules/linux-fb/Makefile.am: Use ` instead of '.
5404
5405         * modules/linux-fb/basic.c:
5406         Remove dead code. In particular the dummy lang engine which broke all
5407         pango layouts in GtkFB. Don't include tables-big.i anymore.
5408
5409         * modules/linux-fb/tables-big.i:
5410         Upgrade to latest version from pango. Left for reference, basic_ranges
5411         moved to basic.c.
5412         
5413 2000-12-04  Havoc Pennington  <hp@redhat.com>
5414
5415         Fix bugs Alex found:
5416         
5417         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
5418         to "draw"
5419
5420         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
5421
5422         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
5423
5424         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
5425         implementation in here, apparently the expose() implementation was
5426         dead code.
5427
5428 2000-12-04  Alexander Larsson  <alexl@redhat.com>
5429
5430         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
5431         Return positive descent.
5432
5433 2000-12-02  Havoc Pennington  <hp@pobox.com>
5434
5435         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
5436         method and signal
5437         
5438         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
5439         calls gdk_window_process_updates() to push the exposes through
5440         (gtk_widget_class_init): No more draw signal, no
5441         gtk_widget_real_draw()  
5442         
5443         * gtk/gtkbin.c (gtk_bin_draw): remove
5444
5445         * gtk/gtkbox.c (gtk_box_draw): remove
5446
5447         * gtk/gtkbutton.c (gtk_button_draw): remove
5448
5449         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
5450
5451         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
5452
5453         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
5454
5455         * gtk/gtkclist.c (gtk_clist_draw): remove
5456
5457         * gtk/gtkentry.c (gtk_entry_draw): remove
5458
5459         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
5460
5461         * gtk/gtkfixed.c (gtk_fixed_draw): remove
5462
5463         * gtk/gtkframe.c (gtk_frame_draw): remove
5464
5465         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
5466
5467         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
5468
5469         * gtk/gtklayout.c (gtk_layout_draw): remove
5470
5471         * gtk/gtklist.c (gtk_list_draw): remove
5472
5473         * gtk/gtklistitem.c (gtk_list_item_draw): remove
5474
5475         * gtk/gtkmenu.c (gtk_menu_draw): remove
5476
5477         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
5478
5479         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
5480
5481         * gtk/gtknotebook.c (gtk_notebook_draw): remove
5482
5483         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
5484
5485         * gtk/gtkpacker.c (gtk_packer_draw): remove
5486
5487         * gtk/gtkrange.c (gtk_range_draw): remove
5488
5489         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
5490
5491         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
5492
5493         * gtk/gtktable.c (gtk_table_draw): remove
5494
5495         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
5496
5497         * gtk/gtktext.c (gtk_text_draw): remove
5498
5499         * gtk/gtktextview.c (gtk_text_view_draw): remove
5500
5501         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
5502
5503         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
5504
5505         * gtk/gtktree.c (gtk_tree_draw): remove
5506
5507         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
5508
5509         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
5510
5511         * gtk/gtkviewport.c (gtk_viewport_draw): remove
5512
5513         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
5514
5515         * gtk/gtkvscale.c (gtk_vscale_draw): remove
5516
5517         * gtk/gtkwindow.c (gtk_window_draw): remove
5518
5519 2000-20-01  Anders Carlsson  <andersca@gnu.org>
5520
5521         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
5522         a GtkToggleButton is both insensitive and active, it was being
5523         drawn by the GtkButton draw handler which doesn't check the
5524         state. Now it's calling gtk_toggle_button_paint instead.
5525         
5526 2000-12-01  Havoc Pennington  <hp@redhat.com>
5527
5528         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
5529         dangling pointers to the appearance attributes from the 
5530         line display
5531
5532         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
5533         width/height to mean "full width/height of drawable"
5534
5535         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
5536         click to select word/line
5537         
5538         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
5539         when getting log attrs. Get a slice, so that pixmaps and stuff
5540         are properly handled.
5541
5542         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
5543         paste into the selection (replaces selection now, previously
5544         crashed or added to selection). Reveals longstanding btree bug -
5545         select multiple lines, middle-click on the selection, boom. This
5546         isn't related to my changes though.
5547
5548         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
5549         PangoLogAttrs changes
5550         (gtk_entry_move_backward_word): ditto
5551
5552         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
5553         functions return bool whether the iter moved onto a
5554         dereferenceable position.
5555  
5556         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
5557         functions for motion in terms of display lines.
5558
5559         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
5560         get the buffer a mark is inside
5561         
5562 2000-12-01  Alexander Larsson  <alexl@redhat.com>
5563
5564         * gdk/linux-fb/Makefile.am:
5565         * modules/linux-fb/Makefile.am:
5566         Freetype 2 final uses freetype-config
5567
5568         * gdk/linux-fb/gdkpango-fb.c:
5569         Upgrade to use Freetype 2 final.
5570         More flexible support for font aliases, this also fixes a bug with
5571         GtkFontSelector, as the aliases must be visible in the font/family list,
5572         or GtkFontSelector reads uninitialized memory.
5573
5574 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
5575
5576         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
5577         XGetIMValues to properly terminate variable argument list, and do
5578         NULL return check for ic_values and xim_styles.
5579
5580         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
5581         Restore preedit state after XmbResetIC().
5582         
5583         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
5584         XvaCreateNestedList() should take XvaNestedList, but not
5585         XvaNestedList*.
5586
5587         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
5588         preedit_draw_callback, preedit_caret_callback): Match
5589         "preedit-changed" signal name to "preedit_changed" to be
5590         consistent to the spec.
5591
5592         * gtk/gtkimcontextsimple.c (check_table):
5593         Match "preedit-changed" to "preedit_changed" to be consistent
5594         to the spec.
5595
5596 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
5597
5598         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
5599         gc->clip_region == NULL>
5600
5601 2000-11-30  Tor Lillqvist  <tml@iki.fi>
5602
5603         Changes by Hans Breuer:
5604         
5605         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
5606         Dont't use negative width and height as max_hints. This fixes
5607         Owen's recent testgtk changes for win32.
5608
5609         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
5610         gdk_win32_hdc_release): These are exported and may be called with
5611         other drawable types than our GdkDrawableImplWin32 (?).
5612
5613         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
5614         so always #define USE_BACKING_STORE.
5615
5616         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
5617         of printf for debugging output.
5618
5619         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
5620         
5621         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
5622
5623         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
5624         declaration.
5625
5626         * gtk/gtktexttypes.h: Ditto.
5627
5628         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
5629         (GDK_VoidSymbol) also if in case of arg check failure.
5630
5631         * gtk/gtkimcontextsimple.c
5632         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
5633         position to the pointer, but to the variable it points to.
5634
5635         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
5636
5637         * gtk/gtk.def: Updates.
5638
5639 2000-11-29  Elliot Lee  <sopwith@redhat.com>
5640
5641         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
5642         GTK_TYPE_TREE_MODEL.
5643
5644 2000-11-29  Alexander Larsson  <alexl@redhat.com>
5645
5646         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
5647         Set the size of the font from the description.
5648         (gdk_text_width): Gross hack that calculates the width
5649         of text by text_length * size/2. This is necessary because
5650         GtkLabel does some ugly gtk_string_width call to calculate
5651         an good size.
5652         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
5653
5654 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
5655
5656         * docs/tutorial/gtk-tut.sgml: DND updates
5657
5658 2000-11-29  Alexander Larsson  <alexl@redhat.com>
5659
5660         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
5661         If you pass width or height == 0 to gdk_window_clear_area they
5662         should be calculated from the window size.
5663
5664 2000-11-29  Alexander Larsson  <alexl@redhat.com>
5665
5666         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
5667         a grab, but no grab-cursor, use the cursor from the grabbed
5668         window. (gdk_fb_window_send_crossing_events): Send normal
5669         enter/leave notifications if grab and owner_events == TRUE.
5670
5671 2000-11-29  Alexander Larsson  <alexl@redhat.com>
5672
5673         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
5674         Do implicit button grabs, even if the window doesn't
5675         want the event.
5676         (gdk_fb_window_send_crossing_events): If there is a
5677         grab, only the grabbed window gets normal enter/leave
5678         notifications. On ungrab go from grabbed window to current.
5679         Don't send any notification to b when propagating from c -> b.
5680         If setting a grab on window, don't set prev_window.
5681         (handle_mouse_input): Send enter/leave events to the window the
5682         mouse is over, not the grabbed one.
5683         
5684 2000-11-28  Elliot Lee  <sopwith@redhat.com>
5685
5686         * gdk/gdkregion-generic.c: Zap warning.
5687         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
5688         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
5689
5690 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
5691
5692         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
5693         The cursor should be hidden if it is part of either the
5694         source or destination region. Not only if it is in both.
5695         (gdk_window_set_transient_for): Silence warnings.
5696
5697 2000-11-28  Alexander Larsson  <alexl@redhat.com>
5698
5699         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
5700         The default mode in X is Pie Arcs, therefore that is
5701         what Gtk+ uses.
5702
5703 2000-11-28  Alexander Larsson  <alexl@redhat.com>
5704
5705         * gdk/linux-fb/gdkinput-ps2.c:
5706         Implement correct EnterNotify/LeaveNotify:
5707         (gdk_fb_window_send_crossing_events): New function that sends
5708         all GdkCrossingEvents from the last mouse-window to the specified
5709         destination.
5710         (gdk_fb_window_visibility_crossing): Removed function.
5711         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
5712         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
5713         instead of gdk_window_get_pointer() for better readability.
5714
5715         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
5716         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
5717
5718         * gdk/linux-fb/gdkprivate-fb.h:
5719         removed gdk_fb_window_visibility_crossing, added
5720         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
5721
5722         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
5723         New function that finds the least common ancestor of two windows.
5724         (gdk_window_show, gdk_window_hide):
5725         Use gdk_fb_window_send_crossing_events.
5726         (gdk_fb_window_move_resize): Send configure events to toplevel
5727         windows. Use gdk_fb_window_send_crossing_events.
5728
5729 2000-11-27  Havoc Pennington  <hp@redhat.com>
5730
5731         * gtk/gtkprivate.h (enum): Remove a trailing comma
5732
5733 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
5734
5735         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
5736         the "changed" callback of the adjustment.  We need to redraw the
5737         spin button's arrows when the adjustment's range changes.
5738         (adjustment_changed_cb): Draw the arrows.
5739         (gtk_spin_button_value_changed): Draw the arrows.
5740
5741 2000-11-23  Alexander Larsson  <alexl@redhat.com>
5742
5743         * gdk/linux-fb/gdkselection-fb.c:
5744         Initial selection implementation.
5745
5746         * gtk/gtkselection.c:
5747         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
5748         requestor in gtk_selection_request.
5749         
5750         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
5751         Added gdk_selection_property atom.
5752
5753         * gdk/linux-fb/gdkprivate-fb.h:
5754         Export _gdk_selection_window_destroyed.
5755         Removed mask_off_x/y from GdkCursorPrivateFB.
5756         Removed hbearing, added top, left to PangoFBGlyphInfo.
5757
5758         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
5759         Call _gdk_selection_window_destroyed
5760         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
5761         the root window has been created.
5762         (static_dx_hack, static_dy_hack, compare_draw_rects,
5763         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
5764         in region. They are already sorted. Instead just traverse them in
5765         reverse if draw_direction < 0.
5766         
5767         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
5768         Double-clicks must be sent after the normal button_press.
5769         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
5770         
5771         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
5772         Pass _gdk_fb_screen_gc instead of NULL.
5773
5774         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
5775         Initialize gdk_selection_property.
5776         (gdk_event_make): Remove unused code.
5777
5778         * gdk/linux-fb/gdkcursor-fb.c:
5779         Make the pixmap for the cursor the same size as the mask. Also remove
5780         the mask_off_x/y fields in GdkCursorPrivateFB and combine
5781         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
5782         Now the whole cursor is visible.
5783
5784         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
5785         Fix bug where xdest+height instead of ydest+height was used
5786         to calculate if the source and dest overlapped. This fixes the
5787         redraw bug when the main window in testgtk was scrolled when
5788         partially covered by a tall window.
5789         Copy rectangles in region in order depending on draw_direction.
5790         Also moved the draw_direction flipping of start_y and end_y into
5791         the gc functions, as this might not be what all of them want.
5792         (gdk_fb_draw_lines): Support dashed lines.
5793         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
5794         so that the text is positioned correctly (was 1 pixel high).
5795
5796         gdk/linux-fb/gdkgc-fb.c:
5797         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
5798         all lines were drawn a pixel to short. Also checked the default of
5799         the rest of the values, and they're the same as X now.
5800
5801         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
5802         Clean up pixel positioning of the glyphs. Just use bgy->top and
5803         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
5804         to all divisions to get correct rounding behaviour.
5805
5806         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
5807         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
5808         Moved start_y/end_y flip into draw_drawable implementations.
5809         Flip also x rendering when draw_direction < 0.
5810         Remove unneccesary multiply with draw_direction.
5811
5812 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
5813
5814         * docs/tutorial/gtk-tut.sgml:
5815           - get rid of gtk_toggle_button_toggled FUD
5816           - start DND section - needs work - based on:
5817                 http://wolfpack.twu.net/docs/gtkdnd/
5818
5819 2000-11-22  Alexander Larsson  <alexl@redhat.com>
5820
5821         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
5822         Correct calculation of font metrics. Now GtkEntrys have sane
5823         size.
5824
5825 2000-11-22  Alexander Larsson  <alexl@redhat.com>
5826
5827         * gdk/gdktypes.h:
5828         Add new type GdkSpan
5829         
5830         * docs/reference/gdk/gdk-sections.txt,
5831         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
5832         gdk/gdkregion.h:
5833         Implement and document gdk_region_spans_intersect_foreach.
5834
5835         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
5836         Add new file gdkrender-fb.c which contains all core
5837         rendering code.
5838         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
5839         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
5840         (optimized rectangle fillers).
5841
5842         * gdk/linux-fb/gdkdrawable-fb2.c:
5843         Move all rendering code to gdkrender-fb.c.
5844         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
5845         Use the new span intersection functions in gdk_fb_fill_spans.
5846         gdk_fb_draw_rectangle() clips filled rectangles and calls
5847         gc->fill_rectangle with the result.
5848         gdk_fb_fill_spans() gets extra argument "sorted".
5849
5850         * gdk/linux-fb/gdkevents-fb.c:
5851         Remove unused includes and defines.
5852         New function gdk_fb_get_time() to get correct time for events.
5853
5854         * gdk/linux-fb/gdkinput-ps2.c:
5855         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
5856         Make sure to set the time of all events.
5857
5858         * gdk/linux-fb/gdkmain-fb.c:
5859         Use gdk_fb_get_time ().
5860
5861         * gdk/linux-fb/gdkprivate-fb.h:
5862         New virtual GC calls: fill_span & fill_rectangle.
5863         Export gdk_fb_get_time().
5864         gdk_fb_fill_spans() gets extra argument "sorted".
5865
5866         * gdk/linux-fb/mi*.c:
5867         Use GdkSpan instead of GdkRectangle.
5868         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
5869         from XFree 4 source)
5870         
5871 2000-11-22    <jrb@redhat.com>
5872
5873         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
5874         reversing the order in an if statement will do.  Doing so managed
5875         to make the treemodelsort half work.  Other half will follow after
5876         I get the insert function fully fixed.
5877
5878 2000-11-21  Elliot Lee  <sopwith@redhat.com>
5879         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
5880         more than 2 bits. Besides, I need to implement an evil hack. :)
5881
5882 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
5883
5884         * docs/tutorial/gtk-tut.sgml: minor corrections
5885
5886 2000-11-20  Jonathan Blandford <jrb@redhat.com>
5887         * gtk/gtktreemodelsort.h: Add convertion functions to let you
5888           convert to and from relative path's and iters.
5889
5890         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
5891           testing sorting functions a bit better.  Currently broken -- will
5892           fix in morning.
5893
5894 2000-11-20  Havoc Pennington  <hp@redhat.com>
5895
5896         * gtk/gtkwidget.c: Documented a bunch of functions in here
5897         (gtk_widget_realize): Warn if you try to realize
5898         a widget with no parent that isn't a toplevel
5899         (gtk_widget_intersect): return a gboolean
5900
5901 2000-11-20  Havoc Pennington  <hp@redhat.com>
5902
5903         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
5904         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
5905         scrolling to be implemented in GDK to finish. Also, right now
5906         we just size_allocate all children on every layout change,
5907         which is pretty lame. Test commented out of testtext.c, 
5908         until it works better.
5909
5910 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
5911
5912         * gdk/linux-fb/gdkdrawable-fb2.c:
5913         Removed unused arguments from gdk_fb_drawable_get_pixel().
5914
5915         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
5916         Renamed fidur specific mouse packet data in MouseDevice to
5917         generic. Used it in ps2 mouse handling code to avoid blocking
5918         reads.
5919
5920 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
5921
5922         * demos/gtk-demo/main.c: Changed to have the list become
5923         non-italic when the demo window is destroyed through an external
5924         event (like a close button).  Doing so found three bugs in the
5925         widget.
5926
5927         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
5928
5929         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
5930         we actually set the cell.
5931
5932         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
5933
5934         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
5935         free a leaked path.  Thanks memprof.
5936
5937 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
5938
5939         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
5940         off-by-one error when destroying allocated segments
5941         on failure. (Elliot)
5942
5943 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
5944
5945         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
5946         memleaks found by Evan Martin.
5947
5948 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
5949
5950         * Released 1.3.2
5951         
5952         * NEWS: Updates for 1.3.2
5953
5954 2000-11-17  Tor Lillqvist  <tml@iki.fi>
5955
5956         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
5957         but in general for window system specific events.
5958
5959         * gtk/gtk.def
5960         * gtk/makefile.mingw.in
5961         * gtk/makefile.msc.in: Update.
5962         
5963         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
5964
5965 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
5966
5967         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
5968         distribute gtk.immodules.
5969
5970         * gtk/Makefile.am (install-data-local): Don't install the
5971         gtk.immodules file created for the uninstalled modules;
5972         instead run gtk-query-immodules after install
5973
5974 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
5975
5976         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
5977         -rpath to the right install location.
5978
5979         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
5980         -export-dynamic.
5981
5982         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
5983         properly.
5984
5985 2000-11-15  Havoc Pennington  <hp@pobox.com>
5986
5987         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
5988         patch from Mikael Hermansson to temporarily stop blinking while
5989         the user is using the keyboard to type or navigate. 
5990
5991         Also, when blinking, stay on for longer than we stay off. Also,
5992         return from start_cursor_blink if !cursor_visible, to save
5993         checking that flag all over the place before we call
5994         start_cursor_blink.
5995
5996 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
5997
5998         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
5999         only contain a "fontset" line, which is now ignored.
6000
6001         * gtk/gtkentry.c (gtk_entry_button_release): Make 
6002         double-click-to-select-word work.
6003         
6004 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
6005
6006         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
6007         Don't move back one char when we are actually at the end of the 
6008         paragraph.
6009
6010 2000-11-15  Robert Brady  <robert@suse.co.uk>
6011
6012         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
6013         'o' < 'p'.
6014         
6015         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
6016         bind_textdomain_codeset.
6017
6018         (gtk_init_check): Make the warning about translating default:LTR
6019         sterner.
6020         
6021 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
6022
6023         * **/Makefile.am : remove unecessary rules for win32-specific
6024         config-substituted targets. If you want these rules, use
6025         --enable-maintainer-mode (called automatically by autogen.sh).
6026         Stops a lot of unneccessary make-time warnings.
6027
6028         * gtk/gtktext{layout,display}.c: Factor in total width as
6029         well as screen when figuring alignment for word-wrap as well as
6030         no wrap; this is necessary to handle lines that cannot be wrapped
6031         at all.
6032
6033 2000-11-15  Havoc Pennington  <hp@redhat.com>
6034
6035         * gtk/testtext.c: Implement essential color cycling feature
6036
6037 2000-11-15  Havoc Pennington  <hp@redhat.com>
6038
6039         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
6040         when we invalidate the main window.
6041
6042         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
6043         GtkTextView will now invalidate the side windows for us when text
6044         changes.
6045
6046 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
6047
6048         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
6049         unconditionally, since we may need to update the horizontal
6050         scrollbars even if the height didn't change.
6051
6052         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
6053         the extra attrs, since some of them affect size.
6054
6055         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
6056         x_offset correctly.
6057
6058 2000-11-15  Havoc Pennington  <hp@redhat.com>
6059
6060         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
6061         don't move the first line out into the margin, instead move the
6062         whole paragraph in order to make space for the first line within 
6063         the margin
6064
6065 2000-11-15  Havoc Pennington  <hp@redhat.com>
6066
6067         * gtk/gtktextview.c (changed_handler): offset redraw rect by
6068         xoffset in addition to yoffset, so horizontal scrolling doesn't
6069         break redraws
6070
6071 2000-11-15  Havoc Pennington  <hp@redhat.com>
6072
6073         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
6074         from the cursor
6075         (render_layout_line): fix reversed test that caused weird
6076         underlines to get drawn
6077
6078 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
6079
6080         * gdk/linux-fb/gdkprivate-fb.h:
6081         Fix debug macros.
6082         
6083 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
6084
6085         * gdk/linux-fb/gdkprivate-fb.h:
6086         Added virtual functions set_pixel, get_color,
6087         fill_span and draw_drawable to the GC.
6088         Added global _gdk_fb_screen_gc to use instead of
6089         NULL when drawing to the screen.
6090         Added _gdk_fb_gc_calc_state() prototype.
6091
6092         * gdk/linux-fb/gdkgc-fb.c:
6093         Call _gdk_fb_gc_calc_state() on any gc state change.
6094
6095         * gdk/linux-fb/gdkglobals-fb.c:
6096         Add _gdk_fb_screen_gc
6097                 
6098         * gdk/linux-fb/gdkdrawable-fb2.c:
6099         _gdk_fb_gc_calc_state() calculates best functions
6100         for the GC state and depth.
6101         Moved bpp specialized code to separate functions.
6102         Added optimized 24 bpp AA draw_drawable.
6103
6104         * gdk/linux-fb/gdkevents-fb.c:
6105         Silence gcc warning.
6106
6107         * gdk/linux-fb/gdkimage-fb.c:
6108         Use _gdk_fb_screen_gc
6109
6110         * gdk/linux-fb/gdkwindow-fb.c:
6111         Init and use _gdk_fb_screen_gc
6112
6113         * gdk/linux-fb/mitypes.h:
6114         Remove unused types.
6115
6116 2000-11-14  Havoc Pennington  <hp@pobox.com>
6117
6118         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
6119         to pixels
6120
6121 2000-11-14  Havoc Pennington  <hp@pobox.com>
6122
6123         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
6124
6125         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
6126         unknown char, no real reason we were using a variable. 
6127         Remove gtk_text_unknown_char variable. Fix all the text widget
6128         files accordingly.
6129
6130         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
6131         since the Unicode spec seems to prefer that character for our
6132         purposes.
6133
6134 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
6135
6136         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
6137         value of g_getenv() isn't freeable, so g_strdup it.
6138
6139         * modules/input/inuktitut.c: Inuktitut input method.
6140
6141         * modules/input/Makefile.am: Build this.
6142         
6143 2000-11-14  Elliot Lee  <sopwith@redhat.com>
6144
6145         * gtk/Makefile.am: Install gtk.immodules, needed for operation
6146         of gtk programs.
6147
6148 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
6149
6150         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
6151         reversed > that was causing Home to go to end of previous line.
6152
6153         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
6154         modified-keypresses (leave for bindings.)
6155
6156         * modules/input/Makefile.am: Remove useless -export-dynamic
6157         from module LDFLAGS.
6158
6159 2000-11-14  Havoc Pennington  <hp@redhat.com>
6160
6161         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
6162         higher.
6163
6164         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
6165         account. Also, render rise, underline, background, etc. for
6166         pixbufs as well as text. Also, draw underlines one pixel higher.
6167
6168         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
6169         PangoAttribute for the rise, so it gets drawn properly. Also,
6170         add the GtkTextAppearance attribute for pixbuf/widget segments
6171         as well; we should go ahead and have rise, underline, background,
6172         stipple work for those
6173
6174         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
6175         Pango
6176
6177 2000-11-15  Tor Lillqvist  <tml@iki.fi>
6178
6179         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
6180
6181         * gtk/gtk.def: Update.
6182
6183         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
6184         included.
6185         (gtk_rc_get_im_module_file): Use run-time installation directory
6186         on Win32.
6187
6188         * gdk/win32/rc/gdk.rc: Remove.
6189         * gdk/win32/rc/gdk.rc.in: New file.
6190         * gdk/win32/rc/Makefile.am: New file
6191         * gdk/win32/Makefile.am: Corresponding changes.
6192
6193         * gtk/gtk.rc: Remove.
6194         * gtk/gtk-win32.rc.in: New file.
6195         * gtk/Makefile.am: Corresponding changes.
6196
6197         * configure.in: Corresponding changes.
6198
6199         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
6200         has a built gtkcompat.h. Developers using CVS code on Win32 can
6201         hand-edit it from gtkcompat.h.in.
6202
6203         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
6204         gtkcompat.h from gtkcompat.h.win32.
6205
6206 2000-11-14  Havoc Pennington  <hp@redhat.com>
6207
6208         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
6209         to default to GDK_ACTION_MOVE if the drag is within a single
6210         widget. Defaults to GDK_ACTION_COPY between widgets.
6211
6212 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
6213
6214         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
6215
6216         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
6217
6218         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
6219         srcdir != builddir
6220
6221         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
6222
6223         * configure.in (GTK_VERSION): Up to 1.3.2
6224
6225         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
6226         gtkimcontextxim.h
6227
6228         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
6229         missing doc comment.
6230
6231 2000-11-14  Alexander Larsson  <alexl@redhat.com>
6232
6233         * modules/linux-fb/basic.c:
6234         Use the glib iconv wrappers.
6235
6236 2000-11-13  Havoc Pennington  <hp@pobox.com>
6237
6238         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
6239         still more bugs.
6240
6241         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
6242         scroll the GdkWindows before realization.
6243
6244 2000-11-13  Havoc Pennington  <hp@redhat.com>
6245
6246         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
6247         where GC didn't always get updated properly
6248
6249         * demos/gtk-demo/textview.c (create_tags): Use subattributes
6250         of fonts instead of setting the entire font
6251
6252         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
6253         setting entire font
6254
6255         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
6256
6257         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
6258         a bunch of individually-settable font attributes. You can still 
6259         use the "font" and "font_desc" args, they just set all the font
6260         attributes at once.
6261
6262 2000-11-13 Elliot Lee <sopwith@redhat.com>
6263
6264         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
6265
6266 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
6267
6268         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
6269         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
6270
6271         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
6272         work better.
6273
6274 2000-11-13  Havoc Pennington  <hp@redhat.com>
6275
6276         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
6277         the module file.
6278
6279         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
6280         dest->language
6281
6282         * gtk/testtext.c: Test pixels above/below/inside paragraphs
6283         settings
6284
6285         * gtk/gtktextview.c: Implement object args and setters/getters for
6286         all the aspects of the GtkTextAttributes that are not set from
6287         GtkWidget attributes. This is spacing, justification, margins,
6288         etc.
6289
6290         (gtk_text_view_set_arg)
6291         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
6292         args
6293         (gtk_text_view_class_init): Add args for justify, left_margin,
6294         right_margin, indent, and tabs
6295         
6296
6297         * gtk/gtktextlayout.c (set_para_values): fix to display indent
6298         attribute properly
6299
6300         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
6301         replace with indent attribute
6302
6303         * gtk/gtktextlayout.c (set_para_values): multiply indent by
6304         PANGO_SCALE
6305
6306         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
6307         rearranging code to do that
6308         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
6309         i.e. don't subtract the top_margin first, just to keep
6310         all margin-futzing in one place.
6311
6312         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
6313
6314         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
6315         special case of last line, Pango now handles this itself.
6316         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
6317         Y coordinate
6318         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
6319         (find_display_line_above): wasn't moving the byte index as it
6320         iterated over lines, so always returned byte 0. Also, port to use
6321         PangoLayoutIter.
6322         (find_display_line_below): same problem as
6323         find_display_line_above. Also, port to use PangoLayoutIter.
6324
6325 2000-11-13  Alexander Larsson  <alexl@redhat.com>
6326
6327         * gdk/linux-fb/*.[ch]:
6328         Massive reindent to gtk+ standard. My hands hurt.
6329
6330         * gdk/linux-fb/gdkcolor-fb.c:
6331         Move GdkColorPrivateFB from inherited to windowing_data
6332
6333         * gdk/linux-fb/gdkcursor-fb.c:
6334         _gdk_cursor_new_from_pixmap made static
6335
6336         * gdk/linux-fb/gdkdnd-fb.c:
6337         GdkDragContextPrivate moved to windowing_data
6338
6339         * gdk/linux-fb/gdkdrawable-fb2.c:
6340         Removed endian.h, use glib endianness macros instead
6341         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
6342         and GDK_DRAWABLE_IMPL_FBDATA
6343
6344         * gdk/linux-fb/gdkfont-fb.c:
6345         Add empty gdk_font_load(). Needed for linking of Gtk+.
6346
6347         * gdk/linux-fb/gdkimage-fb.c:
6348         Removed endian.h, use glib endianness macros instead
6349         Moved GdkImagePrivateFB to windowing_data
6350         gdk_image_new_bitmap didn't always allocate enough
6351         memory.
6352
6353         * gdk/linux-fb/gdkinput-ps2.c:
6354         Added semi-working support for MS serial mice.
6355
6356         * gdk/linux-fb/gdkprivate-fb.h:
6357         s/GdkWindowPrivate/GdkWindowObject/
6358         Removed GdkWindowPrivate typedef
6359         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
6360         Removed GDK_DRAWABLE_P
6361         Move GdkColorPrivateFB from inherited to windowing_data
6362         Moved GdkImagePrivateFB to windowing_data
6363
6364         * gdk/linux-fb/gdkvisual-fb.c:
6365         Removed some unused debug code.
6366
6367         * gdk/linux-fb/gdkwindow-fb.c:
6368         Use stock cursors instead of including X headers.
6369         s/GdkWindowPrivate/GdkWindowObject/
6370
6371         * gdk/linux-fb/mitypes.h:
6372         Removed unused types.
6373
6374         * modules/linux-fb/basic.c:
6375         Use the pango fribidi wrappers.
6376
6377 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
6378
6379         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
6380         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
6381         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
6382         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
6383         GEqualFunc where applicable.
6384         
6385         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
6386         pango_font_description_equal as changed in pango.
6387         
6388         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
6389
6390         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
6391
6392         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
6393
6394         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
6395
6396         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
6397
6398         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
6399
6400         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
6401         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
6402
6403         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
6404         gtk_rc_styles_compare -> gtk_rc_styles_equal.
6405
6406 2000-11-12  Havoc Pennington  <hp@pobox.com>
6407
6408         * demos/gtk-demo/Makefile.am (democodedir): change demo install
6409         dir to datadir/gtk+-2.0/demo
6410
6411         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
6412         sorts of text widget and Pango font bugs. Urgh.
6413
6414         * demos/gtk-demo/Makefile.am (demos): Add textview.c
6415
6416         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
6417         tree that you should double click to see the demo. Fix 
6418         types of variables to reflect changed return values from 
6419         GtkTreeStore and GtkTreeViewColumn constructors.
6420
6421         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
6422         newly-created buffer to prepare for GObject semantics
6423
6424         * gtk/testtext.c: don't leak the buffer with GObject semantics
6425
6426         * gtk/testtextbuffer.c: ditto
6427         
6428 2000-11-12  Havoc Pennington  <hp@pobox.com>
6429
6430         Rename this testgtk to gtk-demo to avoid confusion, and 
6431         install it so people can use it as a supplement to 
6432         the documentation.
6433         
6434         * demos/gtk-demo: Moved from demos/testgtk
6435
6436         * demos/testgtk: Removed
6437
6438         * configure.in: make Makefile in gtk-demo
6439         
6440         * demos/gtk-demo/Makefile.am: Install sample source to 
6441         datadir/gtk-demo (maybe there's a better place?), and 
6442         rename the binary to gtk-demo
6443         
6444         * demos/gtk-demo/main.c (load_file): Load installed sample
6445         source if source isn't found in pwd.
6446
6447 2000-11-09  Havoc Pennington  <hp@pobox.com>
6448
6449         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
6450         argument to set the char displayed when visibility == FALSE
6451         (gtk_entry_create_layout): If !entry->visible, replace 
6452         all chars with the "invisible char"
6453
6454         * gtk/testgtk.c: Test the invisible_char deal
6455         
6456 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
6457
6458         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
6459         can't get a native font in the right encoding.
6460
6461 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
6462
6463         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
6464         respectively.
6465
6466 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
6467
6468         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
6469         Fix warning when moving between paragraphs.
6470
6471         * gtk/gtkentry.[ch]: Change move => move_cursor, 
6472         delete => delete_from_cursor, insert => insert_at_cursor
6473
6474 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
6475
6476         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
6477
6478         * modules/input/imthai-broken.c: A Thai input method for use if
6479         Thai keys are really generating Latin1 keysyms.
6480
6481         * modules/input/Makefile.am: Build these.
6482
6483 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
6484
6485         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
6486         g_filename_{to,from}_utf8 now takes an extra parameter.
6487
6488         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
6489         strftime into UTF-8.
6490
6491         (column_from_x, gtk_calendar_paint_day_names): Support RTL
6492         calendars.
6493
6494         (gtk_calendar_paint_day_names): Draw day names in the right 
6495         place.
6496         
6497 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
6498
6499         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
6500         problem with using result of g_get_charset() backwards -
6501         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
6502
6503         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
6504         negative min_width/height and max_width/height to
6505         mean "requisition"; this allows setting a window
6506         to be user-resizable in only one direction easily.
6507
6508         * gtk/testgtk.c (create_main_window): Remove hard-coded
6509         usize - set a default size in the vertical direction.
6510
6511 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
6512
6513         * gtk/gtkrange.c: Add some missing casts. Support 
6514         2 and 3 button clicks on the arrows to mean 
6515         "move by pages" and "jump to end". (Like gtkspinbutton)
6516
6517 2000-11-12 Hans Breuer <Hans@Breuer.Org>
6518
6519         * gdk/win32/makefile.msc : reflect build module changes
6520
6521         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
6522         from GdkPixmap*, cast implementation member instead.
6523
6524         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
6525         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
6526         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
6527         more Gdi functions return value checking. 
6528         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
6529         GdkImagePrivateWin32 *.
6530
6531         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
6532         menus useable again. Add #pragma message to keep reminded on this issue.
6533         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
6534         windows. This allows to enable backing store on Win32!
6535
6536         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
6537         in drawable is of impl type. Correct specific type checks appropriate.
6538  
6539         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
6540         GDK_WINDOW_DESTROYED before allocating new resources.
6541
6542         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
6543
6544         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
6545         (gdk_window_foreign_new) initialize parent handle.
6546         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
6547
6548         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
6549         Let the GDI invalidate the window on MoveWindow call to fix scrolling
6550         problems (e.g. main buttons in testgtk). 
6551
6552 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
6553
6554         * gtk/gtkentry.c (gtk_entry_key_press): Call 
6555         gtk_widget_activate for GDK_Return.
6556
6557         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
6558         of preedit cursor position.
6559
6560 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
6561
6562         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
6563         static.
6564
6565 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
6566
6567         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
6568         out support for multiple locales; that simple doesn't
6569         work reliably with current Xlib
6570
6571         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
6572         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
6573         Add support for positioning the cursor within the preedit string.
6574
6575 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
6576
6577         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
6578         at XIM input method module.
6579
6580         * gtk/gtktextview.c: Check for bindings after passing
6581         events to im context filter.
6582
6583 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
6584
6585         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
6586         empty attribute lists properly.
6587
6588 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
6589
6590         * gtk/queryimmodules.c (main): Return non-zero exit
6591         status if errors were encountered querying any
6592         modules.
6593
6594         * modules/input/Makefile.am (moduledir): remove
6595         leftover bin program target.
6596
6597         * docs/make-todo: Fix typo in error message.
6598
6599 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
6600
6601         * configure.in: Add modules/input/Makefile
6602
6603 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
6604
6605         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
6606         don't include gtkthemes.h.
6607
6608         * gtk/testgtk.c gtk/testtext.c: Set environment variables
6609         to point
6610
6611         * gtk/Makefile.am: Add new .c and .h files, build 
6612         gtk-query-immodules and use it to create a gtk.immodules
6613         file for use of test programs.
6614
6615         * gtk/gtkpreview.c: remove extra blank line.
6616
6617 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
6618
6619         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
6620         Add the ability to add extra tables beyond the default
6621         one, and also the ability to have compose sequences 
6622         that are prefixes of other compose sequences. 
6623
6624         * gtk/gtkimcontextsimple.c: Export a preedit string which
6625         consists of possible candidates for keystrokes that have
6626         been entered but not yet committed.
6627
6628         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
6629         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
6630
6631         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
6632         Add a function to add input-method switching menu items
6633         to a menu.
6634
6635         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
6636         when switching input methods.
6637
6638         * gtk/gtkimcontextsimple.[ch]: Change the format of
6639         the compose table to allow compose tables of different
6640         lengths / sequence.
6641
6642 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
6643
6644         * gtk/gtkimmodule.[ch]: Support routines for loading
6645         GtkIMContext implementations dynamically at runtime.
6646
6647         * modules/input/imcyrillic-translit.c: A sample input
6648         method (based on GtkIMContextSimple with an extra table),
6649         which demonstrates preedit strings and the module
6650         system for input modules
6651
6652         * gtk/queryimmodules.c: Program to query the available
6653         input modules and write the results into a file.
6654          
6655         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
6656         extra config options "im_module_file" (cache file for
6657         input method modules), and "im_module_path" - path
6658         to look for modules when generating cache file.
6659
6660         This doesn't scale.
6661
6662 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
6663
6664         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
6665         generic code from gtkthemes into a new abstraction
6666         GtkModule which has the logic for implementing
6667         a loadable module which implements a number of 
6668         GObject types.
6669
6670 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
6671
6672         * gtk/gtkeditable.[ch]: Convert GtkEditable from
6673         a class into an interface  
6674         
6675         * gtk/gtkoldeditable.[ch]: Move the old editable
6676         implementation into here, so legacy widgets can
6677         still rely on the implemenation. GtkOldEditable
6678         exports GtkEditable. Make selection handling
6679         code use new text conversion functions (and
6680         handle UTF-8 as a side-effect). Use GtkClipboard
6681         for CLIPBOARD.
6682
6683         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
6684         Adopt to match above changes.
6685
6686         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
6687         avoid GtkOldEditable implementation. Restructure
6688         to reduce number of places that modify state directly.
6689         Move to GtkBindingSet. Display the preedit string.
6690         Queue recomputation of PangoLayout and scroll position
6691         to improve effiency of doing complex changes naively.
6692         Add a menu with cut/copy/paste and input method selection.
6693
6694 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
6695
6696         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
6697         to set preedit string and attributes; display preedit string by
6698         inserting string and attributes at cursor when creating the
6699         GtkTextLineDisplay.
6700
6701         * gtk/gtktextlayout.c: Move all conversions between byte
6702         positions in PangoLayout and GtkTextIter into new functions
6703         line_display_iter_to_index/index_to_iter that properly
6704         handle the preedit string.
6705
6706         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
6707         it to return const char * (eventually will end up
6708         as GCONST char *, most likely.)
6709
6710         * gtk/gtktextview.[ch]: Handle the preedit string, call
6711         gtk_im_context_reset() as necessary, add a menu to switch
6712         input methods.
6713         
6714         * gtk/gtktextlayout.[ch]: Remove useless
6715         gtk_text_layout_get_log_attrs() function.
6716
6717 2000-11-11  Tor Lillqvist  <tml@iki.fi>
6718
6719         * gdk/gdk.def
6720         * gtk/gtk.def: Update.
6721
6722         * gdk/win32/*.c: Add last argument to g_type_register_static()
6723         calls.
6724
6725         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
6726
6727         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
6728         generated by older wheel mouse drivers. Get the correct y
6729         coordinate from WM_MOUSEWHEEL messages.
6730
6731         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
6732         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
6733         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
6734         Debugging functions.
6735
6736         * gdk/win32/gdkprivate-win32.h: Declare them.
6737
6738         * gdk/win32/gdkinput-win32.h: Add declaration for
6739         gdk_input_window_destroy().
6740
6741         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
6742
6743 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
6744
6745         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
6746         function to help handle keeping things in sync.
6747
6748 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
6749
6750         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
6751         BOXED marshallers.
6752
6753         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
6754         (gtk_list_store_class_init): use the new BOXED marshallers.
6755
6756         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
6757         new_with_values to new_with_types.
6758         (gtk_tree_store_get_column_type): add this.
6759         (gtk_tree_store_class_init): use the new BOXED marshallers.
6760
6761         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
6762         mirror some POINTER marshallers.
6763
6764 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
6765
6766         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
6767         allow more interesting iterators.  Also, made the lifecycle of
6768         iterators more explicit.
6769
6770         * gtk/gtktreemodelsort.[ch]: New model for sorting.
6771
6772         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
6773         types.
6774
6775 2000-11-09  Alexander Larsson  <alexl@redhat.com>
6776
6777         * demos/testgtk/menus.c:
6778         Changes to make the new testgtk compile after
6779         gtk_menu_append was removed.
6780
6781         * gdk/linux-fb/gdkdrawable-fb2.c
6782         (gdk_fb_get_depth, gdk_fb_get_visual,
6783         gdk_drawable_impl_fb_class_init): Implement
6784         these drawable functions. Now GtkImages work again.
6785
6786         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
6787
6788         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
6789         
6790         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
6791         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
6792         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
6793         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
6794
6795 2000-11-08  Havoc Pennington  <hp@pobox.com>
6796
6797         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
6798         visible_set args, don't know where these had gone, I thought they
6799         used to be there
6800
6801         * gtk/testtext.c: Add a menu item to apply invisibility tag;
6802         now we can test the feature and see that it's totally broken.
6803
6804 2000-11-08  Havoc Pennington  <hp@pobox.com>
6805
6806         Make DND copy pixbufs and tags when source and target share a 
6807         tag table.
6808         
6809         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
6810         in-process GTK_TEXT_BUFFER_CONTENTS target
6811         (gtk_text_view_drag_data_received): Paste from
6812         GTK_TEXT_BUFFER_CONTENTS if we receive it.
6813
6814 2000-11-08  Alexander Larsson  <alexl@redhat.com>
6815
6816         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
6817         API changes.
6818
6819         * gtk/gtkmenu.c: Add support for scrolling menus.
6820         Remove gtk_menu_append/prepend/insert, these have been moved to
6821         gtkcompat.h as #defines.
6822
6823         * gtk/gtkcompat.h.in:
6824         Add compatibility #defines for gtk_menu_append/prepend/insert
6825
6826         * gtk/gtkmenu.h: Add data needed for scrolling menus.
6827         GtkMenuPositionFunc gets an extra argument push_in.
6828         gtk_menu_append/prepend/insert removed.
6829         
6830         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
6831         positioning behaviour to fit to scrolling menus.
6832
6833         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
6834         into menuitem->submeny. That is wrong, and broke torn
6835         off submenus of torn off menus, since they were unrealized
6836         when the first menu was unrealized.
6837
6838         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
6839         gtk_menu_shell_select_item() since these need to be overridden in
6840         GtkMenu.
6841
6842         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
6843         positioning behaviour to fit to scrolling menus.
6844         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
6845         the current item so that it is prelighted when the menu pops up.
6846         This is a workaround to the fact that the menu doesn't get the
6847         initial enter event (due to grabs).
6848
6849         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
6850         s/gtk_menu_append/gtk_menu_shell_append/
6851
6852         * gtk/gtknotebook.c:
6853         s/gtk_menu_insert/gtk_menu_shell_insert/
6854
6855         * gtk/testgtk.c (create_menu, create_menus):
6856         Create the first menu with 50 items so that menu scrolling
6857         can be tested.
6858         
6859         
6860         Patch from Jonathan Blandford  <jrb@redhat.com>
6861
6862         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
6863         system to handle size requests.  First, we ask what the size of
6864         the toggle is.  Then, when allocating the size, we allocate the
6865         toggle_size first.  This way we can have multiple menu-item
6866         classes w/o needing a seperate class for each.
6867
6868         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
6869         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
6870
6871         * gtk/gtkcheckmenuitem.c
6872         (gtk_check_menu_item_toggle_size_request): New function to handle
6873         the toggle size-request.
6874
6875 2000-11-07  Havoc Pennington  <hp@redhat.com>
6876
6877         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
6878         Half-ass somewhat fix this function, so that scrolling to the
6879         insertion point works. Pango hacking is in the future to really
6880         fix it.
6881
6882         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
6883         length of data, no longer used.
6884
6885         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
6886         method contents in here, get rid of destroy method
6887         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
6888         that were backward. Remove debug spew.
6889         (cut_or_copy): Make the clipboard work with insert_range to
6890         preserve tags and pixbufs, not just the primary selection.
6891
6892 2000-11-07  Havoc Pennington  <hp@redhat.com>
6893
6894         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
6895         to gtk_text_mark_get_visible
6896
6897         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
6898         bug that was generating an invalid iterator
6899
6900         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
6901         ensure_char_offsets() in front of code placing the iter in an
6902         invalid state.
6903
6904         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
6905         make override_location arg const
6906         (paste): Replace the selection if we paste into the 
6907         current selection
6908
6909         * gtk/gtkselection.h: Remove "GtkSelectioData"
6910         (struct _GtkSelectionData): move the definition here.
6911
6912         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
6913         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
6914
6915         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
6916
6917         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
6918         (gtk_text_buffer_insert_range_interactive): implement
6919         (gtk_text_buffer_get_tags): Remove, replaced by
6920         gtk_text_iter_get_tags()
6921
6922         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
6923         limit parameter, to avoid infinite linear scan.
6924         (gtk_text_iter_backward_search): Add search limit
6925         (gtk_text_iter_forward_find_char): Add search limit
6926         (gtk_text_iter_backward_find_char): Add search limit
6927
6928 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
6929
6930         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
6931         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
6932         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
6933         gdk/linux-fb/gdkwindow-fb.c:
6934         use g_object_new() instead of g_type_create_instance() which
6935         is a private function for fundamental type implementations.
6936
6937         * gdk/linux-fb/gdkinput-ps2.c:
6938         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
6939         instead just store the current modifier state. Add a (somewhat broken)
6940         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
6941         Rename exported function gdk_input_ps2_get_mouseinfo to
6942         gdk_input_get_mouseinfo.
6943
6944         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
6945         gdk/linux-fb/gdkwindow-fb.c:
6946         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
6947         
6948
6949 2000-11-02  Havoc Pennington  <hp@redhat.com>
6950
6951         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
6952         use stock buttons. Should be 100% source compatible, appropriate
6953         filesel fields now point to dialog->vbox and dialog->action_area.
6954         On the bizarre side, dialog->action_area and filesel->action_area
6955         are not the same widget.
6956         (gtk_file_selection_init): Put some padding around the selection
6957         entry, so it isn't touching the GtkDialog separator.    
6958
6959         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
6960         use stock buttons, etc. Should also be source compatible.
6961         Set the dialog default title in _init not _new().
6962         
6963         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
6964         Use stock buttons; don't put a button box inside the existing
6965         dialog button box. Don't bother with push/pop colormap anymore.
6966
6967         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
6968         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
6969         for message dialog, and necessary for the font selection and color
6970         selection with help and apply buttons.
6971         
6972         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
6973         to the created button widget. Set GTK_CAN_DEFAULT on the button.
6974         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
6975         between buttons, put less padding around the action area.
6976         (gtk_dialog_run): Exit on unmap rather than on destroy. 
6977         This will also exit the loop if the widget is hidden.
6978         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
6979         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
6980         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
6981         special-case delete event.
6982
6983         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
6984         formatting
6985         
6986 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
6987
6988         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
6989         button to temporarily disable position recording in the
6990         "saved position" test.
6991
6992 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
6993
6994         * gtk/gtkthemes.c: added compat code that temporarily implements
6995         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
6996         going to be revamped by owen's upcoming GtkModule patches, but
6997         untill then people want gtk to build, right? ;)
6998
6999 2000-11-04  Havoc Pennington  <hp@pobox.com>
7000
7001         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
7002         list
7003
7004         * docs/Changes-2.0.txt: Add note about
7005         gtk_container_get_toplevels()
7006
7007         * gtk/gtktextview.h: formatting
7008         
7009         * gtk/gtktextview.c: don't start descriptions with "Returns",
7010         confuses gtk-doc
7011
7012 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
7013
7014         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
7015         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
7016
7017 2000-11-03  Havoc Pennington  <hp@redhat.com>
7018
7019         * gtk/gtktexttagtable.c: Docs
7020         (gtk_text_tag_table_size): return a signed int
7021
7022         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
7023         (gtk_text_tag_event): make the event_object a GObject
7024
7025         * gtk/gtktextview.c: Write API docs for all functions.
7026
7027         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
7028         for gtk_text_view_get_window_type() called on one of the private
7029         windows.
7030
7031         * gtk/gtktextview.c: Instead of accessing text_view->buffer
7032         directly, call get_buffer() which demand-creates a default
7033         buffer. So gtk_text_view_new() can be used to create a view with a
7034         default buffer in it, if you just want an empty text box users can
7035         put data in. Useful for GUI builders also.
7036
7037 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
7038
7039         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
7040         the charset encodign portion MUST be in lowercase.
7041         * gtk/gtkrc.az: added file for Azeri language
7042
7043 2000-11-03  Havoc Pennington  <hp@redhat.com>
7044
7045         Get widgets working on the btree/buffer side. Display of them 
7046         still doesn't work.
7047         
7048         * gtk/gtktextview.c: start implementing child widget stuff
7049
7050         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
7051
7052         * gtk/gtktextlayout.c: handle embedded widgets
7053
7054         * gtk/gtktextdisplay.c: handle embedded widgets
7055
7056         * gtk/gtktextchild.c: Implement all the child anchor goo
7057
7058         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
7059         function
7060
7061         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
7062         (insert_pixbuf_or_widget_segment): abstract out common portions of 
7063         creating a child anchor or a pixbuf segment.
7064         (gtk_text_btree_create_child_anchor): new function
7065         (gtk_text_btree_unregister_child_anchor): new function
7066
7067         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
7068         allocate_child signal on GtkTextLayout
7069
7070         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
7071         values
7072         (gtk_text_iter_get_child_anchor): new function
7073
7074         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
7075         default handler for the changed signal, which calls
7076         gtk_text_buffer_set_modified(), instead of just always emitting
7077         changed then calling set_modified() manually. I guess this is
7078         maybe more flexible. It seems logical.
7079
7080 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
7081
7082         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
7083         now.
7084
7085         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
7086
7087 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
7088
7089         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
7090         been marked static.
7091
7092 2000-11-02  Havoc Pennington  <hp@redhat.com>
7093
7094         * gtk/testgtk.c (create_labels): had a test backward
7095
7096         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
7097         fields, so the dest GC ends up with the correct clip origin, 
7098         etc. Fixes a bug where colored labels didn't redraw 
7099         properly.
7100
7101 2000-11-02  Alexander Larsson  <alexl@redhat.com>
7102
7103         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
7104         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
7105         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
7106         Add last argument to t_type_register_static call.
7107         
7108         * gdk/linux-fb/gdkdrawable-fb2.c:
7109         Add last argument to t_type_register_static call.
7110         export the get_image drawable virtual function.
7111
7112         * gdk/linux-fb/gdkimage-fb.c:
7113         Add last argument to t_type_register_static call.
7114         rename gtk_image_get to _gdk_fb_get_image and
7115         export it for use by gdkdrawable-fb2.
7116
7117         * gdk/linux-fb/gdkprivate-fb.h:
7118         export _gdk_fb_get_image.
7119
7120         * gdk/linux-fb/gdkselection-fb.c:
7121         Add new api call stubs.
7122
7123         * gtk/Makefile.am:
7124         Missing ( in linux-fb part.
7125
7126         * modules/linux-fb/Makefile.am:
7127         Must link with gdk_pixbuf or get unresolved symbol.
7128
7129 2000-11-01  Havoc Pennington  <hp@pobox.com>
7130
7131         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
7132         GTK_TYPE_TEXT_ITER and BOXED marshallers
7133
7134         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
7135
7136         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
7137         
7138         * gtk/gtk-boxed.defs: add GtkTextIter
7139
7140         * gtk/gtkmarshal.list: Add marshallers for text widget that 
7141         properly use OBJECT and BOXED
7142
7143 2000-11-01  Havoc Pennington  <hp@redhat.com>
7144
7145         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
7146
7147         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
7148         before returning it. 
7149         
7150 2000-11-01  Havoc Pennington  <hp@redhat.com>
7151
7152         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7153         Clip the rectangle to be rendered to the drawable, since
7154         get_from_drawable() requires a region within the drawable
7155
7156 2000-11-01  Havoc Pennington  <hp@redhat.com>
7157
7158         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
7159         from coordinates.
7160
7161 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
7162
7163         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
7164         it isn't NULL.
7165
7166 2000-11-01  Havoc Pennington  <hp@pobox.com>
7167
7168         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
7169         on a label
7170         (gtk_label_finalize): unref the attr list if any.
7171
7172         * gtk/testgtk.c (create_get_image): close test on second click
7173         (make_message_dialog): close dialog if it exists
7174
7175         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
7176
7177         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
7178         gdk-pixbuf
7179
7180         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
7181         from Pango markup format
7182         (gtk_label_set_markup_with_accel): ditto but with accelerator
7183         parsing
7184
7185         * gtk/gtkimage.c (gtk_image_expose): reformatting.
7186
7187         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
7188         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
7189         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
7190         call gdk_window_get_origin().
7191
7192         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7193         implement GDK_PIXBUF_ALPHA_FULL
7194         
7195 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
7196
7197         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
7198         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
7199         g_signal_handlers_disconnect_matched to block/unblock and disconnect
7200         multiple handlers respectively, instead of only treating the
7201         first handler found (bug reported by owen).
7202
7203 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
7204
7205         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
7206
7207         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
7208
7209         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
7210         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
7211         gtk/gtktreeviewcolumn.h: Fixed inline docs.
7212
7213         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
7214         widget.  Needs writing someday.
7215
7216         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
7217         the docs.
7218
7219 2000-10-30  Havoc Pennington  <hp@redhat.com>
7220
7221         * gtk/gtktextview.h, gtk/gtktextview.c:
7222         Rename delete_at_cursor delete_from_cursor, and 
7223         move to move_cursor.
7224
7225 2000-10-30  Havoc Pennington  <hp@redhat.com>
7226
7227         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
7228         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
7229         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
7230         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
7231         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
7232         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
7233         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
7234         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
7235         gtktexttypes.h, gtktextview.c, gtktextview.h:
7236
7237         Massive reindentation and reformatting. Arg alignment and comments
7238         still need fixing in various places.
7239
7240 2000-10-30  Havoc Pennington  <hp@redhat.com>
7241
7242         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
7243         to be named insert_at_cursor and delete_at_cursor so C++ can
7244         handle them.
7245
7246 2000-10-28  Tor Lillqvist  <tml@iki.fi>
7247
7248         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
7249         to get a double directory separator in case the home directory
7250         ends with one. This would cause trouble especially on Windows,
7251         where the path will be confused with the syntax for an an UNC
7252         (network share) path \\server\share\path.
7253         (gtk_rc_add_initial_default_files): Ditto.
7254
7255 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
7256
7257         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
7258
7259         * gtk/gtktextview.c: Use correct marshallers.
7260
7261 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
7262
7263         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
7264         use new iter stuff, and added all the appropriate signals et al.
7265
7266         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
7267         code is internal to gtk only.
7268
7269 2000-10-28  Tor Lillqvist  <tml@iki.fi>
7270
7271         * gtk/gtk.def
7272         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
7273         glib-genmarshal etc.
7274
7275 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
7276
7277         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
7278         parallel builds.
7279
7280 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
7281
7282         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
7283
7284 2000-10-27  Robert Brady  <robert@suse.co.uk>
7285
7286         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
7287         en_GB (British), ia (Interlingua).
7288
7289 2000-10-26  Havoc Pennington  <hp@redhat.com>
7290
7291         * gtk/gtktextiter.c (my_strrstr): fix constness warning
7292
7293         Fixed output of:
7294         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
7295         
7296         * gtk/gtktextsegment.c (char_segment_new): rename
7297         (_char_segment_new_from_two_strings): rename
7298         (_toggle_segment_new): rename
7299         
7300         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
7301         (make_clipboard_widget): make it static
7302         (text_get_func): static
7303         (text_clear_func): static
7304
7305         * gtk/gtkcolorsel.c (adjustment_changed): make this function
7306         static
7307         (hex_changed): make it static
7308         (hsv_changed): make it static
7309         (opacity_entry_changed): make it static
7310
7311         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
7312         (toggle_segment_check_func): rename with _gtk
7313
7314         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
7315         (_widget_segment_new): rename
7316         (_widget_segment_add): rename
7317         (_widget_segment_remove): rename
7318         (_widget_segment_ref): rename
7319         (_widget_segment_unref): rename
7320
7321         * gtk/gtktextmark.c (_mark_segment_new): Rename
7322         _gtk_mark_segment_new   
7323
7324 2000-10-26  Havoc Pennington  <hp@redhat.com>
7325
7326         * gtk/gtkmarshal.list: add new marshallers used by the text widget
7327         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
7328         types
7329
7330         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
7331         marshaller types
7332
7333         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
7334         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
7335         license on these files.
7336
7337         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
7338         work.
7339
7340         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
7341         runtime random number different for each tree, instead of 
7342         a constant I made up.
7343
7344 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
7345
7346         * gtk/Makefile.am: buncha cleanups, kludged build sources
7347         dependencies with a Makefile: oldest-source-stamp dependancy
7348         for the moment. automake is really fighting us here, with
7349         intentionally not allowing user-defined rules or dependancies
7350         prior to it's -include $(DEP_FILES) statement. sucks rocks!
7351
7352         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
7353         to public headers. tehy have a comment stating that they are
7354         "semi-public" aren't included by gtk.h and if enums popup there,
7355         they can be /*< skip >*/-ed.
7356
7357         * gtk/gtktextlayout.h: 
7358         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
7359         added LGPL... <SIGH>
7360
7361 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
7362
7363         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
7364         GtkTreeIter.  Added iterators everywhere.
7365
7366         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
7367
7368         * gtk/gtktreeviewselection.c: Changed to use the iterators.
7369
7370         * gtk/gtktreestore.c: Changed to use the iterators.
7371
7372         * gtk/gtkliststore.c: Commented out the code.  Will convert to
7373         iterators tomorrow.
7374
7375         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
7376         iterators tomorrow.
7377
7378         * gtk/treestoretest.c: Changed to use iterators.
7379
7380         * demos/testgtk/main.c: Moved to use the new iterator system.
7381
7382 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
7383
7384         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
7385         localization misbehaviour.
7386
7387         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
7388         a useless type without copy/free.
7389
7390         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
7391         of GTK_TYPE_CTREE_NODE.
7392
7393 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
7394
7395         * gtk/gtksignal.c:
7396         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
7397         applicable.
7398
7399         * gtk/gtk-boxed.defs (GtkSelectionData): specify
7400         gtk_selection_data_copy and gtk_selection_data_free
7401         do GtkSelectionData work as params in signals.
7402
7403 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
7404
7405         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
7406         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
7407         couldn't they at least give it a non-standard name?
7408         
7409         * gtk/gtktextlayout.c: arg! yet another implementation of
7410         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
7411
7412         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
7413         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
7414         home. now i know this _is_ a conspiracy.
7415
7416         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
7417         ::state-changed.
7418
7419         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
7420         (gtk_accel_group_create_add): marshaller signature fixups.
7421
7422         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
7423         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
7424
7425         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
7426         anymore.
7427
7428 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
7429
7430         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
7431         due to the signal system changes, it wouldn't build currently. to
7432         be fixed soon.
7433
7434         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
7435
7436         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
7437         so it needs gtk_marshal_VOID__ENUM() instead of
7438         gtk_marshal_NONE__UINT().
7439
7440         * gdk/gdk*.c: adapted type registration functions.
7441
7442         * gtk/gtkbindings.c:
7443         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
7444         gone.
7445
7446         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
7447
7448         * gtk/gtkobject.c:
7449         (gtk_object_destroy):
7450         (gtk_object_shutdown): fixed recursion guards. basically we have to
7451         catch the case where any of GObject.shutdown() or gtk_object_destroy()
7452         is called during ::destroy, and avoid recursion there.
7453
7454         * gtk/gtktypeutils.c:
7455         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
7456         boxed_copy/boxed_free. this needs a more general solution based on a
7457         publically installed code-generator utility.
7458
7459         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
7460         glib's gobject has support for that now.
7461         define GtkSignalMarshaller in terms of GSignalCMarshaller.
7462
7463 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
7464
7465         * gtk/gtksignal.[hc]:
7466         * gtk/gtkmarshal.[hc]:
7467         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
7468         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
7469         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
7470         care of that.
7471
7472         * *.c: marshaller name fixups.
7473
7474         * gtk/gtkmarshal.list: added a comment briefing the format.
7475
7476 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
7477
7478         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
7479         compatibility macros here now. more specifically, most of
7480         the API is preserved (yes, _most_, nonwithstanding the
7481         following exceptions listed, the API is stil lHUGE ;)
7482         things that got removed completely:
7483         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
7484         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
7485         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
7486         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
7487         gtk_signal_remove_emission_hook().
7488         non-functional functions variants:
7489         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
7490         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
7491         not supported anymore.
7492         (gtk_signal_compat_matched): new internal function to aid
7493         implementation of the compatibility macros, it  provides
7494         functionality to block/unblock/disconnect handlers based
7495         on func/data.
7496
7497         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
7498
7499         * *.c: adaptions to new type registration API signatures.
7500
7501 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
7502
7503         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
7504
7505 2000-10-25  Robert Brady  <robert@suse.co.uk>
7506
7507         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
7508         gdk_property_delete): If window == NULL, assume the root window.
7509         (restoring the behaviour that was in 1.2).
7510         
7511         * gtk/testtext.c (save_buffer): Allow creation of new files when
7512         saving.
7513
7514         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
7515         calls to read().
7516
7517 2000-10-25  Tor Lillqvist  <tml@iki.fi>
7518
7519         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
7520
7521         * gdk/win32/gdkdrawable-win32.c
7522         * gdk/win32/gdkimage-win32.c
7523         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
7524         X11 backend.
7525
7526         * gdk/win32/gdkcc-win32.c
7527         * gdk/win32/gdkcolor-win32.c
7528         * gdk/win32/gdkfont-win32.c
7529         * gdk/win32/gdkinput-win32.c
7530         * gdk/win32/gdkmain-win32.c
7531         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
7532
7533 2000-10-24  Havoc Pennington  <hp@redhat.com>
7534
7535         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
7536         it a static function
7537
7538         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
7539         redraw text when a tag is applied to it.
7540
7541         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
7542         (gtk_text_tag_affects_nonsize_appearance): private functions to
7543         see if a tag requires various kinds of redraw/layout to be queued
7544         up.
7545
7546         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
7547
7548         * gtk/testtext.c (fill_example_buffer): Put the cursor 
7549         at the start of the buffer, so search works by default
7550
7551         * gtk/gtktextiter.c (lines_match): init match_start always
7552
7553         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
7554         function, get iter at a line + a byte index
7555
7556         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
7557         to set byte position within a line
7558         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
7559
7560 2000-10-23  Havoc Pennington  <hp@redhat.com>
7561
7562         * gtk/testtext.c: Re-enable the "find" dialog
7563
7564         * gtk/testgtk.c: Add test for gdk_drawable_get_image
7565         
7566         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
7567         the arguments to gdk_draw_drawable were in the wrong order
7568         (gdk_window_paint_init_bg): This function was ignoring the
7569         init_region, instead of clipping to it, so the entire backing
7570         pixmap was cleared on every begin_paint()
7571         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
7572         was in here again, the loop kept using the same GtkWindowPaint
7573         over and over.
7574         (gdk_window_begin_paint_region): Fix a bug where we had two
7575         x_offset instead of x_offset and y_offset
7576
7577         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
7578         before we get the image.
7579         (gdk_draw_drawable): get the composite before we draw the drawable.
7580         (gdk_drawable_real_get_composite_drawable): default
7581         get_composite_drawable implementation that returns the drawable 
7582         itself
7583
7584         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
7585         get_composite_drawable virtual function
7586
7587         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
7588         list-walking bug
7589
7590         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
7591         make this work if the source drawable is a GdkDrawableImplX11
7592         instead of a public drawable type. This is really broken; the
7593         problem is that GdkDrawable needs a virtual method get_xid(), but
7594         of course that doesn't work in practice. Enter RTTI.
7595
7596         Also, improve mismatched depth message.
7597
7598         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
7599         GdkPixmap
7600
7601         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
7602         install _gdk_x11_get_image as our implementation of get_image
7603         
7604         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
7605         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
7606
7607         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
7608         gdk_drawable_get_image
7609
7610         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
7611
7612         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
7613         get_image
7614
7615         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
7616         trailing semicolon after for loop
7617
7618 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
7619
7620         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
7621         where font_desc for widget's context lagged widget's font_desc by
7622         one step.
7623
7624 2000-10-22  Tor Lillqvist  <tml@iki.fi>
7625
7626         * gdk/win32/gdkgc-win32.c
7627         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
7628
7629         * gtk/makefile.mingw.in
7630         * gtk/gtk.def: Updates.
7631
7632         * gtk/testgtk.c: sleep() is called _sleep in MS's C
7633         library.
7634
7635         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
7636
7637         * gtk/makefile.msc: Remove
7638
7639         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
7640
7641         * gtk/Makefile.am: Add it.
7642
7643         * configure.in: Generate it.
7644
7645         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
7646         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
7647         something even if not implemented, to satisfy picky MSVC.
7648
7649         Patches by Hans Breuer:
7650         
7651         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
7652         SetBkMode() and SetTextAlign() before calling
7653         pango_win32_render().
7654
7655         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
7656         Set hcliprgn to NULL after destroying it.
7657         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
7658
7659         * gdk/win32/gdkgeometry-win32.c
7660         (_gdk_windowing_window_queue_antiexpose): More effective
7661         implementation.
7662
7663         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
7664         depth as default, not the visual's.
7665
7666         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
7667         against empty title.
7668
7669         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
7670         IMAGE_PRIVATE_DATA.
7671
7672         * gdk/win32/gdkimage-win32.c: Use it.
7673
7674 2000-10-22  Robert Brady  <robert@suse.co.uk>
7675
7676         * configure.in: Check for bind_textdomain_codeset
7677
7678         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
7679         present, make use of it.
7680
7681         Add a translatable string "default:LTR" which, if translated
7682         to "default:RTL", will cause the default direction to be
7683         Right-to-Left.
7684
7685         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
7686         direction if marked as flippable.
7687
7688         * gtk/gtkhscale.c: Mark widget as flippable.
7689         
7690 2000-10-04  Havoc Pennington  <hp@redhat.com>
7691
7692         * gtk/testgtk.c (create_buttons): create some stock buttons
7693         with the default accel group
7694         (create_image): test some new GtkImage features
7695         (make_message_dialog): test GtkMessageDialog
7696         (create_modal_window): fix someone's bizzarro indentation
7697
7698         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
7699         GTK_WIN_POS_CENTER_ON_PARENT. 
7700         Add "destroy with parent" setting, which means the window goes
7701         away with its transient parent.
7702         (gtk_window_get_default_accel_group): get the default accel group
7703         for the window.
7704         (gtk_window_set_destroy_with_parent): set/unset destroy with
7705         parent flag
7706         (gtk_window_read_rcfiles): invalidate icon set caches
7707         after reloading rcfiles 
7708
7709         * gtk/gtkenums.h (GtkWindowPosition): add
7710         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
7711         on its parent window when the dialog is mapped for the first time.
7712
7713         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
7714         a simple message dialog class
7715         
7716         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
7717         handler to emit response signal, and maybe later it would
7718         honor a hide_on_delete flag - though that isn't there yet.
7719         Set border width on the vbox to 2, so we get some padding.      
7720         Use a button box for the action area.
7721         (gtk_dialog_key_press): synthesize a delete event if Esc
7722         is pressed and the GtkWidget key press handler didn't 
7723         handle the escape key.
7724         (gtk_dialog_new_with_buttons): new function creates a dialog
7725         with some default buttons in it.
7726         (gtk_dialog_add_action_widget): add an activatable widget
7727         as a button in the dialog - you can also add a non-activatable
7728         widget by accessing the action area directly.
7729         (gtk_dialog_add_button): add a simple button - stock ID or 
7730         label - to the action area
7731         (gtk_dialog_response): emit response signal
7732         (gtk_dialog_run): block waiting for the dialog, return 
7733         the response. Override normal delete_event behavior, so that 
7734         delete_event does nothing inside gtk_dialog_run().
7735
7736         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
7737         emitted when an action widget is clicked or the dialog gets
7738         delete_event
7739
7740         * gtk/gtk.h: add gtkmessagedialog.h
7741
7742         * gtk/Makefile.am: add gtkmessagedialog.[hc]
7743
7744 2000-10-18  Havoc Pennington  <hp@redhat.com>
7745
7746         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
7747         where any number of empty lines would get skipped
7748
7749         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
7750         edge.
7751
7752         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
7753         warning about invalid iterators (explain more thoroughly)
7754         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
7755
7756         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
7757         big
7758
7759         * demos/*.c: Add error handling
7760
7761         * gtk/gtktextbuffer.c: don't modify const iterators
7762
7763         * gtk/gdk-pixbuf-loader.c: Add full error handling here
7764
7765         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
7766         on file load
7767
7768         * gtk/gtkiconfactory.c: Update to reflect addition of error
7769         handling to gdk-pixbuf loaders
7770
7771 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
7772
7773         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
7774         move to new modularized testgtk.
7775
7776 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
7777
7778         * gtk/gtktreeview.c: Draw the arrows correctly.
7779
7780         * gtk/gtktreemodel.c: Added user docs.
7781
7782         * gtk/gtk.h: remove gtktreedatalist.h.
7783
7784         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
7785         parent when generating my type.
7786
7787         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
7788         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
7789
7790 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
7791
7792         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
7793         GtkTreeModel from object to interface.
7794
7795 2000-10-16  Havoc Pennington  <hp@redhat.com>
7796
7797         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
7798         compilation
7799
7800 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
7801
7802         * gtk/gtktreeselection.c: Add API documentation to all public
7803         functions.
7804
7805         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
7806         functions.
7807
7808 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
7809
7810         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
7811         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
7812         docs to all public functions.
7813
7814         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
7815         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
7816         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
7817         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
7818         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
7819         issue.
7820
7821 2000-10-14  Robert Brady  <robert@suse.co.uk>
7822
7823         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
7824
7825 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
7826
7827         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
7828         values other then G_TYPE_STRING.
7829         * gtk/gtktreeselection.c: Minor commenting updates.
7830         * gtk/gtktreeview.c: Format updates.
7831
7832 2000-10-09  Tor Lillqvist  <tml@iki.fi>
7833
7834         * README.win32: Update.
7835
7836         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
7837         lines that had been deleted by mistake (?).
7838
7839         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
7840         also the case fg==white and bg==black (but still not randomly
7841         coloured cursors). Thanks to Wolfgang Sourdeau.
7842
7843         * gdk/win32/*.c: Silence gcc -Wall.
7844
7845         * gtk/gtk.def: Add missing entry points.
7846
7847         Fixes by Hans Breuer:
7848
7849         * gdk/makefile.msc
7850         * gdk/win32/makefile.msc: Update.
7851
7852         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
7853         some MSVC thing, presumably), cause breakpoint on failures. Add
7854         GDK_NOR case. Call g_log_set_always_fatal.
7855
7856         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
7857         should be pased by reference.
7858         
7859         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
7860         
7861         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
7862
7863         * gdk/win32/gdkevents-win32.c
7864         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
7865
7866         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
7867         implementation object.
7868
7869         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
7870         not just windows.
7871         
7872         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
7873         Use the wrapper object.
7874         
7875 2000-10-06  Havoc Pennington  <hp@redhat.com>
7876
7877         * Makefile.am (SRC_SUBDIRS): contrib subdir
7878
7879         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
7880         so it can be used in Xlib version
7881
7882         * demos/testpixbuf.c (update_timeout): error checking from 1.0
7883         tree
7884
7885         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
7886         change from 1.0 tree that returns first frame of animation
7887         if the loaded file is an animation.
7888
7889         * contrib: add new directory to hold stuff that comes with GTK+
7890         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
7891         
7892         * configure.in: add contrib/*
7893
7894 2000-10-05  Havoc Pennington  <hp@redhat.com>
7895
7896         * demos/testpixbuf-save.c: add pixbuf save test
7897
7898         * demos/Makefile.am: add testpixbuf-save.c
7899
7900 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
7901
7902         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
7903         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
7904         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
7905         * gtk/gtktreeselection.[ch]: Replaced
7906         "node_selected"/"node_unselected" signal with "selection_changed"
7907         signal.
7908
7909 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
7910
7911         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
7912         tree widget.
7913
7914 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
7915
7916         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
7917         drawing.
7918
7919 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
7920
7921         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
7922         Move list pointer forwards before removing item from
7923         list. (Crash reported by Salmaso Raffaele)
7924
7925         * gdk/gdkwindow.h: Remove spurious trailing ,
7926
7927         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
7928         dependencies on uninstalled libraries, sorry folks.
7929
7930 2000-10-04  Havoc Pennington  <hp@redhat.com>
7931
7932         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
7933         gtk/gtkiconfactory.c: Fix copyrights    
7934
7935         * demos/testpixbuf.c: add inline pixbuf test
7936         
7937 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
7938
7939         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
7940         Add gdk_window_iconify.
7941
7942         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
7943         (gdk_window_set_geometry_hints): Add win_gravity
7944         to geometry structure.
7945
7946         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
7947         Implement _NET_WM_PING.
7948
7949         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
7950         Set _NET_WM_PID on the client leader.
7951
7952         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
7953         Handle UTF-8 better.
7954
7955         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
7956         UTF-8 better, set _NET_WM_NAME as well. Only set
7957         icon name if it hasn't previously been explicitely 
7958         set.
7959
7960 2000-10-03  Havoc Pennington  <hp@redhat.com>
7961
7962         * gtk/testtextbuffer.c: clean up trailing whitespace,
7963         add extensive tests for tag toggle iteration.
7964         
7965         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
7966         distance
7967
7968         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
7969         optimize case where the tag root is on level 1
7970         (gtk_text_line_previous_could_contain_tag): attempt to implement
7971         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
7972         functionality
7973
7974         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
7975         Implement this, though not very efficiently.
7976
7977         * gtk/gtktextiterprivate.h: reformat
7978
7979         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
7980         iterator
7981
7982         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
7983         this to properly revalidate the iterators.
7984
7985         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
7986         properly at the end of the line (and therefore on empty lines)
7987
7988         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
7989         maybe we should return a value...
7990
7991 2000-10-03  Tor Lillqvist  <tml@iki.fi>
7992
7993         * config.h.win32: Guard definition of alloca(). glib.h now handles
7994         that.
7995
7996         * gdk/gdk.def
7997         * gtk/gtk.def: Add new entry points.
7998
7999         Changes just to make GTK+ build without errors on Win32. No hope
8000         of it working in its current state, though...:
8001         
8002         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
8003         some functions from the X11 backend, just to make GTK+ build.
8004
8005         * gdk/makefile.mingw.in
8006         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
8007         number. Add new object files.
8008
8009         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
8010         GetMessageTime to get timestamp (where on X11 uses
8011         gdk_x11_get_server_time()).
8012
8013 2000-10-02  Havoc Pennington  <hp@pobox.com>
8014
8015         * gtk/gtktextview.c: text_window_* weren't static and should have
8016         been.
8017         Start work on child widgets; not yet complete, syncing to 
8018         office computer.
8019
8020         * gtk/gtktextchild.h: change this to contain a public interface,
8021         starting work on child interfaces.
8022         * gtk/gtktextchildprivate.h: move private interfaces here
8023
8024         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
8025
8026         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
8027         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
8028         gtk/gtktextmark.c: copyright notices
8029
8030         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
8031         internal functions      
8032
8033         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
8034         internal function
8035
8036         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
8037         Reformatting    
8038
8039 2000-09-30  Havoc Pennington  <hp@pobox.com>
8040
8041         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
8042         NULL start/end pointers
8043
8044         * gtk/gtktextbuffer.c: Write some docs
8045         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
8046         NULL, so you can just check whether there's a selection.        
8047
8048         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
8049         cleanup_line or segments_changed ourselves, it gets done 
8050         in unlink_segment
8051
8052         * gtk/gtktextmark.h:
8053         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
8054         
8055         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
8056
8057         * gtk/gtktextmark.c: delete some more old Tk cruft
8058
8059         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
8060         mark before removing it, so we can emit MARK_DELETED with a valid
8061         pointer.
8062         (gtk_text_buffer_mark_set): hold ref across signal emission
8063
8064         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
8065         whining about attempts to delete special marks
8066
8067         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
8068         underscore, since it's internal.
8069
8070         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
8071         now implemented in terms of iterators in gtktextiter.h
8072
8073         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
8074         New function, destructively sets contents of buffer. Also 
8075         a convenient way to clear the buffer by setting text to ""
8076
8077         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
8078         multiline string literal
8079
8080         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
8081         text changes.
8082
8083         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
8084         is not dereferenceable
8085         (gtk_text_iter_forward_lines): fix return value
8086
8087 2000-09-29  Havoc Pennington  <hp@redhat.com>
8088
8089         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
8090
8091         * gtk/gtktextview.c: Implement drag thresholding; change functions 
8092         that set border window size to have nicer name
8093         (gtk_text_view_mark_set_handler):  Fix this to have the 
8094         right signature.
8095
8096         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
8097
8098         * gtk/testtext.c: Update with API changes, put line numbers on 
8099         both sides.
8100         
8101         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
8102         with this
8103
8104         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
8105         pixbuf; delete a big block of #if 0 Tk code
8106
8107         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
8108         insert_pixmap with insert_pixbuf
8109
8110 2000-09-29  Martin Baulig  <baulig@suse.de>
8111
8112         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
8113         confusion with the GdkPixbuf of the GNOME 1.x platform.
8114
8115 2000-09-29  Havoc Pennington  <hp@pobox.com>
8116
8117         * gtk/gtktextview.c: Implement the side windows.
8118
8119         * gtk/testtext.c: Implement simple line numbering in the 
8120         left side window; seems to make scrolling sloooow. Oops.
8121         Also, cursor blink is for some reason causing redraws
8122         of the line numbers. Should investigate...
8123
8124 2000-09-28  Havoc Pennington  <hp@redhat.com>
8125
8126         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
8127         scrolling child windows, and draw focus rectangle properly.
8128         
8129         (gtk_text_view_buffer_to_window_coords):
8130         Coordinate transformation to deal with all these freaking windows
8131         and offsets
8132         (gtk_text_view_window_to_buffer_coords): transform the other way
8133
8134         * gtk/testtext.c (create_buffer): Update to match Pango API change
8135
8136         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
8137         anonymous tags
8138         (foreach_unref): don't emit remove signal from finalize, just
8139         set tag's parent to NULL
8140
8141 2000-09-26  Havoc Pennington  <hp@redhat.com>
8142
8143         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
8144         Fix some warnings       
8145
8146 2000-09-26  Havoc Pennington  <hp@redhat.com>
8147
8148         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
8149         headers into the private header list
8150
8151         * Makefile.am (pkgconfig_DATA): install pkg-config files
8152
8153         * configure.in: add pkg-config files
8154
8155         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
8156
8157         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
8158         outstanding icon caches on theme change.
8159
8160         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
8161         important types:
8162
8163         (GtkIconSource): Specification for creating a pixbuf 
8164         appropriate for a direction/state/size triplet from 
8165         a source pixbuf or filename
8166
8167         (GtkIconSet): List of GtkIconSource objects that are used to
8168         create the "same" icon (e.g. an OK button icon), and cache for
8169         rendered icons
8170
8171         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
8172         up the icon set for a given stock ID.  GTK maintains a stack of
8173         GtkIconFactory to search, and applications or libraries can add
8174         additional icon factories on top of the stack
8175         
8176         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
8177         the set of GtkIconSource specified for a given stock ID into 
8178         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
8179         RcStyle, under the specified stock ID.
8180
8181         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
8182         render_icon used to derive a GdkPixbuf from a GtkIconSource.
8183         This allows people to theme how prelight, insensitive, etc. are
8184         done.
8185
8186         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
8187         icon factories for a style, and return the resulting 
8188         icon set if any.
8189
8190         (gtk_style_render_icon): Render an icon using the render_icon 
8191         method in the GtkStyleClass.
8192
8193         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
8194         Use the style for a given widget to look up a stock ID, get the
8195         icon set, and render an icon using the render_icon method 
8196         of the style
8197
8198         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
8199         (contains information about a stock item), the built-in stock item
8200         IDs, and functions to add/lookup stock items.
8201
8202         * gtk/stock-icons/*: Stock icons that come with GTK
8203
8204         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
8205         a button based on a GtkStockItem
8206         (gtk_button_new_accel): Takes a uline string and accel group, and
8207         installs the accelerator.
8208
8209         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
8210         image-display widget.
8211
8212 2000-09-25  Havoc Pennington  <hp@redhat.com>
8213
8214         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
8215
8216         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
8217         Fix a bug when removing node data, we didn't properly 
8218         re-splice the linked list after removing the data.
8219
8220         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
8221         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
8222
8223         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
8224
8225         * gtk/gtktextlayout.c (set_para_values): Set tab array 
8226         for the layout from the GtkTextTag.
8227
8228         * gtk/gtktexttypes.h: delete tab and search cruft, 
8229         remove g_convert() in favor of GLib version
8230
8231         * gtk/gtktexttypes.c: remove tab implementation from here,
8232         move to Pango
8233
8234         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
8235         tab stuff using new PangoTabArray from Pango
8236
8237         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
8238         unused border_width stuff
8239
8240 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
8241
8242         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
8243         glib) and now useless utf_to_latin1() latin1_to_utf()
8244
8245         * gtk/gtktextview.[ch]: Change ::move_insert and
8246         ::delete_text action signals to ::move and ::delete;
8247         create the signals with the right enumeration type,
8248         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
8249         C-v bindings, change Home, End to move to beginning/end
8250         of line, Add C-Home C-End to move to beginning/end
8251         of buffer. Change ::cut_text to ::cut_clipboard, etc;
8252         combine ::scroll_text into ::move; use new GtkSelectionData
8253         functions to simplify DND text handling.
8254         
8255         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
8256         deletion enumerations here, rename enumeration values to 
8257         be consistently plural.
8258
8259         * gtk/gtktextbuffer.c: Use new clipboard interfaces
8260         for cut/copy/paste and primary selection.
8261
8262         * gtk/gtktextbuffer.[ch]: Remove excess time and
8263         'interactive' arguments from cut/copy/paste;
8264         rename cut to cut_clipboard, etc; remove
8265         gtk_text_buffer_get_clipboard_contents().
8266
8267         * gtk/gtktextlayout.[ch]: Add 
8268         gtk_text_layout_move_iter_to_line_end() to move the iter to 
8269         line ends.
8270
8271         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
8272         Functions to set or get a UTF-8 string on the selection
8273         data.
8274
8275         * gtk/gtkclipboard.[ch]: New, simplified selection handling
8276         interfaces.
8277
8278         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
8279         created widgets - one of these is useless if we don't.
8280
8281         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
8282         a public function clear all targets registered for the
8283         widget.
8284
8285         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
8286         Never call gtk_widget_realize() - that was just asking
8287         for bizarre side-effects.
8288
8289         * gtk/gtkselection.c (gtk_selection_owner_set): Call
8290         gdk_selection_owner_set even if the widget is the
8291         same so that we reliably update the timestamp on
8292         the server.
8293
8294         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
8295         gdk_x11_get_server_time() function.
8296         
8297         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
8298         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
8299         Add some tricky filtering on serial numbers for
8300         selection clear events to fix up long-standard
8301         race condition FIXME's in gtkselection.c.
8302
8303         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
8304         routines to convert from utf8 to compound text or
8305         STRING and from a text property to UTF-8.
8306
8307         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
8308         a convenience function gdk_get_current_event_time().
8309
8310         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
8311         and free selection_data->data properly
8312
8313 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
8314
8315         * gtk/gtkthemes.c: Remove some unecessary includes.
8316
8317 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
8318
8319         * gtk/gtktextdisplay.c
8320         * gtk/gtktextlayout.c
8321         * gtk/gtktexttag.c
8322         * gtk/gtktexttag.h
8323         * gtk/testtext.c: Change the overstrike property to strikethrough,
8324         to closer match pango.
8325
8326 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
8327
8328         * gtk/gtktextview.c: Fix up visibility so that focus,
8329         cursor_visible and blink interact properly.  Reenable cursor blink
8330         which had been roughly disabled. Make blink and focus
8331         properly per-view.
8332
8333         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
8334         Add a flag for whether to display insertion cursor and
8335         a function to set the flag.
8336
8337         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
8338         get_line_y() to get_line_yrange(), to be a bit more generally
8339         useful.
8340
8341 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
8342
8343         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
8344           do stop_navigating_submenu, to clear last timeout properly.
8345           Also in gtk_menu_motion_notify move ignore_enter above
8346           the conditional to make it always happen as suggested by Owen
8347
8348 2000-09-07  Tor Lillqvist  <tml@iki.fi>
8349
8350         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
8351
8352         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
8353         w32api headers.
8354
8355         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
8356         declarations.
8357
8358         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
8359         (gdk_win32_get_colormap): A line had been deleted by mistake.
8360
8361         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
8362         (gdk_event_translate): Handle more virtual keycodes to be able to
8363         generate GDK events for Control-comma, Control-period, etc.
8364
8365         * gtk/gtk.def: Add some missing entry points.
8366
8367 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
8368
8369         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
8370         Doc comment fixing. (Mostly non-matching parameter names.)
8371
8372         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
8373         comments a little to avoid looking like a doc comment.
8374
8375         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
8376         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
8377         conversions be changed to GError?)
8378
8379         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
8380         Move private #defines into .c file.
8381
8382         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
8383         order of argument addition, remove duplicates.
8384
8385         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
8386         parent class is FrameClass, not BinClass.
8387
8388         * gtk/gtk.h: Add gtkinvisible, which was missing.
8389         (It's occasionalyl useful for client apps, if seldom.)
8390
8391         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
8392         #define.
8393
8394 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
8395
8396         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
8397         coordinates when creating window, instead of GDK-space
8398         coordinates. (Avoid BadValue on too large windows.)
8399
8400 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
8401
8402         * configure.in (use_mmx_asm): Remove conftest* after use along the
8403         lines of AC_TRY_COMPILE.        
8404         
8405         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
8406         of g_dirname, which is deprecated.
8407         (gtk_rc_parse_any): Removed calls to
8408         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
8409
8410         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
8411         Removed calls to g_hash_table_{freeze,thaw}, as they are
8412         deprecated now.
8413
8414         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
8415         instead of g_basename.
8416         
8417 2000-09-04 Elliot Lee <sopwith@redhat.com>
8418         
8419         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
8420         ANSI warning.
8421
8422 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
8423
8424         * gtk/gtkwidget.h:  Add some documenting comments about 
8425           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
8426           just as owen said on irc.
8427
8428         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
8429           set HAS_DEFAULT.  Only set it if there isn't another window
8430           holding it (a focus window which RECEIVES_DEFAULT) and only unset
8431           it if the widget is not the focused window with RECEIVES_DEFAULT.
8432           This fixes weird double default bugs in dialogs which has things
8433           call gtk_window_set_default at times.
8434
8435 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
8436
8437         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
8438         Nils Barth and David Santiago to improve submenu
8439         navigation. The patch does this by creating a triangular
8440         region from the point where the pointer leaves the
8441         menu to the submenu.  While the pointer is in
8442         that region and a timeout has not expired, events 
8443         that would cause the active submenu to change are
8444         ignored.
8445
8446 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
8447
8448         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
8449         moving a toplevel window immediately after sizing it would
8450         result in it being sized back to the old size since 
8451         impl->width, impl->height aren't updated until we hear
8452         back from the server. There is still a (longstanding) bug
8453         here that gdk_window_get_size() will give the wrong size
8454         until we do hear back.
8455
8456 2000-08-31  Havoc Pennington  <hp@redhat.com>
8457
8458         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
8459         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
8460         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
8461         Rename GtkTextStyleValues to GtkTextAttributes
8462
8463 2000-08-31  Havoc Pennington  <hp@pobox.com>
8464
8465         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
8466         for rapid testing whether an iterator is the end iterator
8467         (gtk_text_btree_new): init end line cache
8468         (gtk_text_line_is_last): use fast cached line to 
8469         see if we're the last line.
8470         (get_last_line): use cached line here too, should 
8471         speed up some random unrelated code.
8472         
8473 2000-08-30  Havoc Pennington  <hp@pobox.com>
8474
8475         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
8476         signals.
8477
8478         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
8479         delete_text signals. This allows the signals to be used for
8480         implementing undo.
8481
8482         * gtk/gtktextbuffer.c: Change signal handler signatures; 
8483         provide "interactive" argument when emitting insert_text or
8484         delete_text signal.
8485         
8486 2000-08-30  Havoc Pennington  <hp@pobox.com>
8487
8488         * gtk/gtktextbuffer.c: Docs
8489
8490 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
8491
8492         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
8493         from switch statements, since Tor removed the enumeration
8494         value.
8495         
8496         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
8497         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
8498
8499 2000-08-29 Elliot Lee <sopwith@redhat.com>
8500         * */*.h: Use G_GNUC_CONST.
8501
8502 2000-08-27  Havoc Pennington  <hp@pobox.com>
8503
8504         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
8505         minor indentation fixes, inserted some FIXME about stuff I
8506         realized was broken while documenting it.
8507         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
8508         GTK convention  
8509
8510 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
8511
8512         * gtk/testgtk.c (create_styles): Fix double free of
8513         font desc.
8514
8515 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
8516
8517         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
8518         
8519         * gtk/testgtk.c (create_styles): Add a test for modifying
8520         the style through gtk_widget_modify_*.
8521
8522         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
8523         a function to get the current modifier style.
8524
8525         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
8526         of the passed in GtkRcStyle instead of ref'ing it.
8527
8528         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
8529
8530 2000-08-20  Tor Lillqvist  <tml@iki.fi>
8531
8532         * gdk/gdkimage.h
8533         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
8534         shared memory image+pixmap GdkImage type, or
8535         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
8536         I am dropping that.
8537
8538         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
8539         actually call gtk_init_abi_check(), passing also
8540         sizeof(GtkWindow). Ditto for gtk_init_check(). 
8541
8542         * gtk/gtk.def
8543         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
8544         New functions, used to check that the GTK+-using code has been
8545         compiled using the correct compiler and switches. In particular,
8546         with gcc one has to use the -fnative-struct switch as GTK+ is
8547         compiled with that.
8548
8549 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
8550
8551         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
8552         ->prev fields when merging lists. (Found simultaneously
8553         by Pawel Salek and Jakub Jelinek)
8554
8555 2000-08-12  Tor Lillqvist  <tml@iki.fi>
8556
8557         * gdk/gdk.def
8558         * gtk/gtk.def: Add missing entries.
8559
8560         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
8561         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
8562
8563         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
8564         function. Dummy implementation at this point.
8565
8566         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
8567         rules. Undefine GTK_COMPILATION when compiling the test programs.
8568         
8569         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
8570
8571 2000-08-11  Tor Lillqvist  <tml@iki.fi>
8572
8573         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
8574         to convert back and forth from UTF-8 and the "system" (or "current
8575         locale") charset when necessary. Indentation/spacing cleanup.
8576
8577 2000-08-10  Havoc Pennington  <hp@redhat.com>
8578
8579         * Makefile.am (snapshot): Change the format of the snapshot
8580         version to match glib
8581
8582         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
8583         from EXTRA_DIST since it doesn't seem to exist
8584
8585 2000-08-10  Tor Lillqvist  <tml@iki.fi>
8586
8587         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
8588         version of the directory name (not the UTF-8 one) when building
8589         the path name to stat().
8590
8591 2000-08-03  Elliot Lee  <sopwith@redhat.com>
8592
8593         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
8594         PANGO_ATTR_SHAPE set.
8595
8596 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
8597
8598         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
8599         Peter Osterlund to simplify the code while keeping the
8600         functionality the same.
8601
8602 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
8603
8604         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
8605         is_viewable() test further inside the function, since removing the 
8606         window from the redraw list without clearing ->update_area
8607         was also very broken.
8608
8609 2000-08-02  Tor Lillqvist  <tml@iki.fi>
8610
8611         * configure.in: Check for <unistd.h>.
8612
8613 2000-08-01  Martin Baulig  <baulig@suse.de>
8614
8615         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
8616         to display the message that this is a development version of GTK+.
8617
8618 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
8619
8620         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
8621         was depending on widget->allocation instead of the width of text_area,
8622         which was incorrect for subclasses like GtkSpinButton.
8623
8624         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
8625         with width == 1 tests that should be width == -1.
8626
8627 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
8628
8629         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
8630         (broken, Elliot, every single window blank on X) custom code with call
8631         to gdk_window_is_viewable() which a) prevents code duplicate and
8632         b) works. 
8633
8634 2000-07-31  Elliot Lee  <sopwith@redhat.com>
8635
8636         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
8637         to get the GDK_PARENT_ROOT() macro to work.
8638         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
8639         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
8640         of, windows that aren't shown.
8641         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
8642         pointer grab stuff.
8643
8644 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
8645
8646         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
8647           s/gtk_main_iteration/g_main_iteration/
8648
8649           Did this already in change:
8650                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
8651           don't know how it got reverted.
8652
8653 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
8654
8655         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
8656         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
8657
8658         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
8659         not gdk_pixbuf.
8660
8661 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
8662
8663         * configure.in,po/{sp,sr}.po: Added Serbian files
8664
8665 2000-07-30  Tor Lillqvist  <tml@iki.fi>
8666
8667         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
8668
8669         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
8670         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
8671         GIOChannel implementation.
8672
8673         * gdk/win32/gdkinput.c
8674         * gdk/win32/gdkpango-win32.c: Update license name here, too.
8675
8676         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
8677         definition to match prototype.
8678
8679         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
8680
8681 2000-07-27  Elliot Lee  <sopwith@redhat.com>
8682
8683         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
8684         function, to allow handling image formats that cannot be detected
8685         by looking at content alone.
8686
8687 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
8688
8689         * docs/tutorial/*.gif *.jpg *.eps
8690           Update these to the same look-n-feel.
8691           Why does including images in DocBook suck so badly?
8692
8693 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
8694
8695         * gtk/gtktable.c: applied patch from Phil Thompson
8696         <phil@river-bank.demon.co.uk> that enables space settings for
8697         the last row/columns as well.
8698
8699 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
8700
8701         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
8702         updates the license headers to the GNU Lesser General Public License,
8703         as well as updating the copyright year to 2000.
8704
8705 2000-07-26  Robert Brady  <rwb197@zepler.org>
8706
8707         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
8708           and po/Makefile, was installing and looking for them under gtk20
8709           and gtk2 respectively.
8710
8711 2000-07-25  Havoc Pennington  <hp@redhat.com>
8712
8713         * gtk/testtext.c: Comment out some stuff that depends on the rest
8714         of my patches.
8715
8716 2000-07-25  Havoc Pennington  <hp@redhat.com>
8717
8718         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
8719         buffer
8720
8721 2000-07-25  Havoc Pennington  <hp@redhat.com>
8722
8723         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
8724         widget changes.
8725
8726         * gtk/gtktextview.h: To be consistent with usage of "line"
8727         throughout the API to mean "newline-terminated thingy", change
8728         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
8729         to MOVEMENT_LINE.
8730
8731         (GtkTextView): Add flags for default editability, and whether to
8732         show the cursor. Add functions to get/set that. Add 
8733
8734         (gtk_text_view_get_iter_location): new function
8735
8736         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
8737         gtktextlayout.h
8738         (g_convert): Add g_convert temporarily, will go in glib in a bit
8739         
8740         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
8741         GtkTextTagTableForeach instead of brokenly using GHFunc.
8742         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
8743
8744         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
8745         moved to public header.
8746
8747         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
8748         "invisible", since "elide" was a bad name.
8749         (gtk_text_tag_get_priority): Added
8750
8751         (GtkTextStyleValues): put this in public header, along with
8752         functions to use it.
8753
8754         * gtk/gtktextmarkprivate.h: Include more headers, since we no
8755         longer include gtktextbtree.h.
8756
8757         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
8758         gtk_text_mark_deleted
8759
8760         * gtk/gtktextlayout.h: Don't include the "really private" headers,
8761         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
8762         to make this possible. Now we only need to install
8763         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
8764         (However the Makefile.am isn't changed yet because of the
8765         logistics of merging gtk-hp-patches piecemeal)
8766
8767         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
8768         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
8769         gtk_text_iter_get_line is now used in the public API for a
8770         different purpose.
8771
8772         * gtk/gtktextiter.h: Clean up function names to be more
8773         consistent. Always call char offset "offset" and byte index
8774         "index". A "line" is always a line number. 
8775
8776         (gtk_text_iter_is_last): new function, more efficient than 
8777         the existing way to check
8778         (gtk_text_iter_is_first): new function, also more efficient
8779
8780         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
8781
8782         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
8783         gtk_text_iter_forward_char, etc.
8784
8785         (gtk_text_iter_forward_to_tag_toggle): Renamed from
8786         forward_find_tag_toggle, since this isn't a linear search
8787
8788         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
8789
8790         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
8791         New functions, search for a buffer substring.
8792
8793         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
8794         interactive and default editable (since we need to store that info
8795         until we receive the selection data).
8796
8797         Remove all the _at_char and at_line etc. versions of functions;
8798         only have iterator versions.
8799
8800         Add _interactive() versions of functions, that consider the
8801         editability of text. (FIXME add interactive flag to the 
8802         insert/delete signals per Darin's suggestion)
8803
8804         (gtk_text_buffer_get_tag_table): new function, demand-creates the
8805         tag table if necessary
8806
8807         Remove declaration of gtk_text_buffer_get_iter_from_string
8808
8809         (_gtk_text_buffer_get_btree): private/internal function, added.
8810         
8811
8812         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
8813         (gtk_text_line_is_last): new function
8814
8815 2000-07-25  Havoc Pennington  <hp@redhat.com>
8816
8817         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
8818         using GtkProgressBar. See Changes-2.0.txt for details.
8819
8820         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
8821         "pulse_step" which are the equivalent of
8822         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
8823         Implement new API.
8824         
8825         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
8826         (use_text_format) to mark whether text set on the progress bar is
8827         a format string. Deprecate entire GtkProgress interface.
8828
8829         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
8830         (gtk_progress_build_string): make this a no-op if use_text_format
8831         is FALSE
8832
8833         * docs/Changes-2.0.txt: Describe progress bar changes.
8834
8835 2000-07-25  Tor Lillqvist  <tml@iki.fi>
8836
8837         * Makefile.am: Include the build directory.
8838
8839         * configure.in: Generate build/Makefile, build/win32/Makefile,
8840         gdk/, gdk/win32/, and gtk/makefile.mingw.
8841
8842         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
8843         Add GETTEXT_PACKAGE.
8844         
8845         * gdk/gdk.def
8846         * gtk/gtk.def: Updates.
8847
8848         * gdk/gdkfont.h
8849         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
8850         need them any longer.
8851
8852         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
8853
8854         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
8855         PANGOWIN32_LIBS and gdk_pixbuf.
8856
8857         * gdk/win32: Compiles, but no doubt doesn't work at all.
8858
8859         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
8860
8861         * gdk/win32/gdkinput.c: New file, temporarily.
8862         
8863         * gdk/win32/gdkinput-win32.h: New file
8864
8865         * gdk/win32/gdkinputprivate.h: Remove.
8866
8867         * gdk/win32/gdkpango-win32.c: New file.
8868
8869         * gtk/makefile.mingw.in: New file
8870
8871         * gtk/makefile.cygwin: Removed
8872         
8873         * gtk/Makefile.am: Update accordingly.
8874
8875         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
8876         made externally visible.
8877
8878         * gtk/gtkmain.c: Use it.
8879         
8880         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
8881         is enough.
8882
8883         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
8884
8885 2000-07-24 Elliot Lee <sopwith@redhat.com>
8886         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
8887         individual backends already.
8888         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
8889         again. Yes, there really is a good reason for this, if you are using the gdkregion
8890         internals, and if you're not, why do you care?
8891         * gdk/gdkwindow.c: Fix inverted condition
8892         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
8893         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
8894         * gtk/gtkrange.c: Redraw trough when moving.
8895         * gtk/gtktypeutils.c: Fix warning by adding const cast.
8896         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
8897
8898 2000-07-23  Tor Lillqvist  <tml@iki.fi>
8899
8900         * configure.in: Check for mkstemp and sigsetjmp. Output
8901         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
8902
8903         More work on GDK for Win32. Still in an intermediate state.
8904
8905         * gdk/makefile.cygwin
8906         * gdk/win32/makefile.cygwin: Removed.
8907         
8908         * gdk/makefile.mingw.in
8909         * gdk/win32/makefile.mingw.in: New files.
8910
8911         * gdk/Makefile.am
8912         * gdk/win32/Makefile.am: Generate and distribute them.
8913
8914         * gdk/win32/gdkwindow-win32.h
8915         * gdk/win32/gdkdrawable-win32.h
8916         * gdk/win32/gdkpixmap-win32.h: New files.
8917
8918         * gdk/win32/gdkcolor-win32.c
8919         * gdk/win32/gdkcursor-win32.c
8920         * gdk/win32/gdkdrawable-win32.c
8921         * gdk/win32/gdkgc-win32.c
8922         * gdk/win32/gdkimage-win32.c
8923         * gdk/win32/gdkprivate-win32.h
8924         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
8925         Rename fields and variables called xcursor, xid, etc (these names
8926         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
8927
8928 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
8929
8930         * gtk/gtkentry.[ch]: Fix some problems with vertical
8931         alignment.
8932
8933         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
8934         char/byte confusion.
8935
8936 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
8937
8938         * gtk/gtktextview.c (changed_handler): Fix bug where
8939         redraw wasn't being done properly when height of
8940         dirty region changed.
8941
8942         * demos/Makefile.am: Remove various references to
8943         -lgmodule
8944
8945 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
8946
8947         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
8948         PangoAttrShape to reserve space for pixmaps, add 
8949         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
8950         in the display functions.
8951         
8952         * gtk/testgtk.c (create_layout): Set some more exotic
8953         scrolled window options
8954
8955         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
8956         Add function to set the shadow type of a window, to allow
8957         putting a shadow around widgets such as GtkLayout or GnomeCanvas
8958         which don't draw their own frame.
8959
8960 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
8961
8962         * docs/tutorial/package-db-tutorial.sh: New file for
8963           packaging DocBook format tutorial
8964
8965 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
8966
8967         * docs/tutorial/gtk-tut.sgml: Minor updates
8968
8969         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
8970
8971 2000-07-19  Tor Lillqvist  <tml@iki.fi>
8972
8973         * gtk/gtksignal.c: Fix C++ comment.
8974
8975         * gtk/gtkimmulticontext.c
8976         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
8977         don't return value from void functions.
8978
8979         * gtk/gtk.def: Add gtk_rc_style_unref.
8980
8981 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
8982
8983         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
8984         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
8985         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
8986         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
8987         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
8988         gtk/gtktypeutils.h: Include files outside of the extern "C"
8989         block. Makes some C++ compiler happy. Reported by Denis Vakatov
8990         <vakatov@peony.nlm.nih.gov>.
8991
8992 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
8993
8994         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
8995           Completes first pass. Hurrah!
8996
8997 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
8998
8999         * docs/tutorial/gtk-tut.sgml: More clean ups.
9000
9001 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
9002
9003         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
9004         paint the background of the text area which was accidentally
9005         removed at some point.
9006
9007         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
9008           
9009          - Move most of the functionality from the theme vtable
9010            into GtkRcStyleClass and GtkStyleClass. The moved
9011            vtable functions were changed a bit in the move to
9012            work better in their new home.
9013
9014          - Get rid of the engine and engine_data fields from
9015            GtkRcStyle and GtkStyle; instead the theme
9016            engine derives theme-specific subclasses of GtkRcStyle
9017            and GtkStyle
9018
9019          - Add extra dlsym() found entry point to themes,
9020            theme_create_rc_style().
9021
9022         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
9023         in gtk_style_real_copy.
9024
9025         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
9026         to register a type associated with an engine. (The engine
9027         won't be unloaded as there is an instance of the type.)
9028
9029
9030 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
9031
9032         * docs/tutorial/gtk-tut.sgml: Clean ups.
9033
9034 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
9035
9036         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
9037           of cleaning up to do.
9038
9039 2000-07-15  Tor Lillqvist  <tml@iki.fi>
9040
9041         * gdk/testgdk.c: New file, quick hack to test backends for
9042         pixel-by-pixel correctness of the most simple graphic operations.
9043
9044 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
9045
9046         * Really release 1.3.1
9047         
9048         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
9049         include structure.
9050
9051 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
9052
9053         * Released 1.3.1
9054
9055 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
9056
9057         * gtk/gtktextlayout.c: use FALSE for size_only most
9058         of the time when calling gtk_text_layout_get_line_display()
9059         to avoid causing double reshapes when a redraw follows
9060         immediately after.
9061
9062 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
9063
9064         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
9065         appropriate region and gdk_window_process_updates() so trough
9066         updating doesn't lag behind the window being scrolled.
9067
9068         * gdk/gdkgc.c: Make parent_class pointer static.
9069          
9070 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
9071
9072         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
9073         include <string.h>.
9074          
9075         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
9076         cut-and-paste error in computing memory offset for 4 channels.
9077
9078 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
9079
9080         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
9081         gtk_rc_append_default_pixmap_path(), since it wasn't
9082         adding an interesting path and we don't have a meaningful
9083         default for this value.
9084
9085 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
9086
9087         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
9088         gtk-config to gtk-config-2.0 move gtk_.m4 to
9089         gtk-2.0.m4
9090
9091         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
9092         gdk/Makefile.am demos/Makefile.am: Change 
9093         library names to libgtk-1.3.la, etc, so that we
9094         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
9095
9096         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
9097         gdk/Makefile.am gdk/x11/Makfile.am
9098         Move include files into /usr/include/gtk-2.0, 
9099         /usr/lib/gtk-2.0/include/
9100          
9101         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
9102         gtk/gtkintl.h: Change package for gettext from 
9103         gtk+ to gtk20. Put hack in autogen.sh to modify
9104         po/Makefile.in.in after gettextize to make this
9105         possible.
9106
9107         * gtk+.spec: Some updates, not tested.
9108
9109         * gdk-pixbuf/Makefile.am: Move loaders into
9110         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
9111
9112         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
9113         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
9114         to THEMENAME/gtk-2.0/. Move engine directory  to
9115         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
9116         
9117 2000-07-12  Tor Lillqvist  <tml@iki.fi>
9118
9119         Win32 changes, still doesn't build though.
9120
9121         * gdk/makefile.cygwin
9122         * gdk/win32/makefile.cygwin
9123         * gtk/makefile.cygwin: Updates.
9124
9125         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
9126         default values for fg and bg pixel as X11 does (0 and 1), not
9127         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
9128         Use 0 for pen width by default (treated as 1 anyway later, but for
9129         apps that might check the value in the GdkGC).
9130         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
9131         interface to gdk_gc_predraw and _postdraw.
9132
9133         * gdk/win32/gdkwin32.h
9134         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
9135
9136         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
9137         extraneous semicolon.
9138
9139         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
9140
9141         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
9142         not the Win32 bitspixel value.
9143
9144         * gdk/win32/gdkcc-win32.c:
9145         * gdk/win32/gdkcolor-win32.c 
9146         * gdk/win32/gdkprivate-win32.h
9147         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
9148         GDK object structure.
9149
9150 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
9151
9152         * docs/tutorial/gtk_tut_12.es.sgml (name): 
9153         * docs/tutorial/gtk_tut_it.sgml (name): 
9154         * docs/tutorial/gtk_tut_fr.sgml (name): 
9155         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
9156         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
9157
9158 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
9159
9160         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
9161           small changes.
9162
9163 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
9164
9165         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
9166         a bug here, never been here and never fixed anything ;(
9167         (don't segfault if tree->root_tree is NULL, which happens prior
9168         to widget realization, but puke instead).
9169
9170 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
9171
9172         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
9173         add the necessary tokens.
9174
9175         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
9176         (gtk_rc_style_to_style): copy thicknesses.
9177         (gtk_rc_init_style): apply thicknesses.
9178         (gtk_rc_parse_style): parse xthickness and ythickness.
9179
9180         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
9181
9182         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
9183         (gdk_window_new): 
9184         (_gdk_windowing_window_init): 
9185         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
9186         (gdk_pixmap_create_from_data): 
9187         (gdk_bitmap_create_from_data): 
9188         (gdk_pixmap_new): 
9189         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
9190         (gdk_image_new): 
9191         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
9192         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
9193         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
9194         (gdk_colormap_get_system): 
9195         (gdk_colormap_new): 
9196         * gdk/gdkwindow.c (gdk_window_init): 
9197         * gtk/gtkstyle.c (gtk_style_new):
9198         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
9199         * gdk/gdkpixmap.c (gdk_pixmap_init): 
9200         * gtk/gtkrc.c (gtk_rc_style_new):
9201         use g_object_new() instead of g_type_create_instance() which
9202         is a private function for fundamental type implementations.
9203
9204 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
9205
9206         * configure.in: Add check for db2html
9207
9208 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
9209
9210         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
9211         hack to set glib_debug_objects based on gtk_debug_flags.
9212
9213 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
9214
9215         * INSTALL.in: Update the Prerequisites section.
9216
9217         * Makefile.am demos/Makefile.am docs/Makefile.am
9218         docs/tutorial/Makefile.am gdk/x11/Makefile.am
9219         gdk/linux-fb/Makefile.am: Dist fixes
9220
9221 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
9222
9223         * NEWS: 10,000 foot view of 1.3.1 changes.
9224
9225 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
9226
9227         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
9228         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
9229         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
9230         gdk/x11/gdkmain-x11.c: 
9231
9232         Patch from George Lebl to add a GdkGrabStatus enumeration to use
9233         as a return value of gdk_*_grab(). Previously, we just
9234         returned the X11 values directly.
9235
9236 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
9237
9238         * gdk/x11/Makefile.am: Patch from George Lebl to 
9239         install all the headers in the right place.
9240
9241 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
9242
9243         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
9244           initial conversion to DocBook.
9245
9246 2000-07-04  Tor Lillqvist  <tml@iki.fi>
9247
9248         * README.win32: Improve a bit.
9249
9250         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
9251         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
9252         Alt+0nnn on the numpad (used to enter characters by numeric code
9253         from current DOS or ANSI codepage) working correctly, as in other
9254         Windows apps.
9255
9256         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
9257         same argument validity tests as in X11 version.
9258         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
9259
9260         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
9261         definitions in case missing from headers.
9262
9263         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
9264         destroy the window-specific cursor.
9265         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
9266         calling GetModuleHandle(NULL).
9267         (gdk_window_set_cursor): Reworked to always copy the passed cursor
9268         with CopyCursor before setting it as the window-specific
9269         cursor. It is OK for the caller to destroy the GdkCursor (and thus
9270         also its Windows cursor) after calling this function. Destroy any
9271         previous window-specific cursor.
9272
9273 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
9274
9275         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
9276         font charset is iso8859-1, not iso-8859-1.
9277
9278 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
9279
9280         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
9281         Use g_get_charset() instead of g_get_codeset().
9282
9283         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
9284         Comment out some strdup'ing functions to keep timj
9285         happy until we finish fighting this out.
9286
9287 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
9288
9289         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
9290         <= width or height.
9291
9292         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
9293         from 1.2 for parent/child states.
9294
9295         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
9296         of typos.
9297
9298         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
9299         event structures, replace with a generic axes field. Replace 
9300         deviceid/sourec with GdkDevice *device.
9301
9302         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
9303         to extract particular axis use value from event. (Also
9304         can be used for normal X/Y.)
9305
9306         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
9307         allow for arbitrary number of axes, namespace everything
9308         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
9309         everywhere.
9310
9311         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
9312         Get rid of the gdk_input_vtable setup if favor of simply
9313         defining the functions in gdkinput-none/gxi/xfree.c in
9314         a similar fashion to the way that the port structure is 
9315         done.
9316
9317         * gtk/gtkdnd.c: Fix fields of synthesized button press event
9318         for new event structures. 
9319
9320         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
9321         new device interfaces.
9322
9323 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
9324
9325         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
9326         set the initial text.
9327
9328         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
9329         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
9330         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
9331         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
9332
9333         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
9334         pango_layout_set_font_description to simplify.
9335
9336 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
9337
9338         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
9339         pango_layout_set_font_description to simplify.
9340
9341 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
9342
9343         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
9344         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
9345         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
9346
9347         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
9348         PANGO_PIXELS() macro.
9349
9350 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
9351
9352         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
9353         that returns a PangoContext owned by the widget and updated to
9354         match future changes in the widget. Also, make 
9355         gtk_widget_create_pango_layout() use this context. If we ever
9356         add a ::changed signal to PangoContext, this will make things
9357         much more convenient. 
9358
9359         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
9360         in the appropriate places instead of destroying the layouts and
9361         creating new ones.
9362
9363         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
9364         in a few strategic places.
9365
9366 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
9367
9368         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
9369         gtk_widget_size_request() on reparented child, if one. Otherwise,
9370         queue_resize() on the child never results in it getting size-requested
9371         at all.
9372
9373         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
9374         in option menus, so that (with luck) people won't copy it into
9375         their apps in the future.
9376
9377         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
9378         to gtk_option_menu_calc_size. This isn't perfect, but should fix
9379         a lot of problems with changing the size of the menu's menu
9380         items after adding it to the option menu.
9381
9382         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
9383
9384         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
9385         the text direction for a widget changes.
9386
9387         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
9388         ::direction_changed to get rid of various hacks.
9389
9390 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
9391
9392         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
9393         name.
9394
9395 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
9396
9397         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
9398         flag to the structure. Do not call XFreePixmap on pixmaps created
9399         by gdk_pixmap_foreign_new().
9400
9401 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
9402
9403         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
9404         value using GdkRGB functionality given GdkColormap and GdkColor.
9405         (name not final, waiting for inspiration.)
9406         
9407         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
9408         set the foreground/background of a GC using the GC's colormap
9409         and GdkRGB. (name not final, waiting for inspiration.)
9410
9411         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
9412         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
9413
9414         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
9415         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
9416         purely a function of the corresponding colormap. Make
9417         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
9418
9419         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
9420         gdk_pixbuf_*create_from_xpm_* in terms of
9421         gdk_pixbuf_new_from_xpm_data(), move into platform independent
9422         code.
9423
9424         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
9425         advantage of the new draw_rgb_32_image_dithalign.
9426
9427         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
9428
9429         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
9430         on each created GC.
9431
9432         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
9433
9434         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
9435         which we initialize from the drawable when the GC is created,
9436         if the drawable has a colormap.
9437
9438         * gdk/x11/gdkgc-x11.c: include string.h for memset.
9439
9440         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
9441
9442         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
9443
9444 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
9445
9446         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
9447         actually returning expose events, make sure to set
9448         the count field properly.
9449
9450         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
9451         accidentally reintroced bug which always cleared
9452         the graphics_exposures value. 
9453
9454 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
9455
9456         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
9457
9458 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
9459
9460         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
9461
9462 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
9463
9464         * docs/faq/gtk-faq.sgml: Start of Section 6.
9465
9466 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
9467
9468         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
9469         
9470         (Fixes problem with drawing childless frames. Pointed out
9471         by and a first patch from Anders)
9472         
9473         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
9474         compute a child_allocation, even if we don't have a child.
9475
9476         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
9477         Always chain to the parent's impl, even if we don't have a child.
9478
9479 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
9480
9481         * gdk/gdkrgb.c: If possible, create only a single shm segment and
9482         use multiple parts of it instead of creating a bunch of separate
9483         segments, since the maximum number of segments per system is not
9484         large. (This might be worth backporting to GTK+-1.2.x if we make a
9485         new release )
9486
9487         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
9488         structure in preparation for per-colormap GdkRGB.
9489
9490         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
9491         to False when we get EINVAL from shmget so that the caller of
9492         gdk_image_new can retry with a smaller segment size.
9493
9494 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
9495
9496         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
9497
9498 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
9499
9500         * configure.in: make the current version number 1.3.1 (binary age 0,
9501         interface age 0).
9502         
9503         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
9504         gtkcompat.h is all we want.
9505
9506         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
9507         GLib primitive types. fixed g_type_register_fundamental() argument
9508         ordering.
9509
9510         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
9511         compiles.
9512
9513         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
9514         object code cleanup, comment trigraph fixes, etc...
9515
9516 2000-06-23  Havoc Pennington  <hp@redhat.com>
9517
9518         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
9519         instead of making up a bogus name for first_para_mark
9520
9521         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
9522         0 as a context ID
9523
9524 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
9525
9526         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
9527
9528 2000-06-21  Havoc Pennington  <hp@pobox.com>
9529
9530         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
9531         we didn't check window->bg_pixmap != GDK_NO_BG.
9532
9533         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
9534         gdk-pixbuf
9535
9536 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
9537
9538         * docs/faq/gtk-faq.sgm: Move file to here.
9539           TODO: Update Makfile.am 
9540
9541 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
9542
9543         * docs/gtk-faq.sgm: Add Section 2
9544
9545 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
9546
9547         * docs/gtk-faq.sgm: New file. Start of DocBook
9548           version of the FAQ.
9549
9550 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
9551
9552         * configure.in (GDK_PIXBUF_MAJOR): Define version
9553         numbers for GDK_PIXBUF_*, as they get substituted
9554         into a header file. Need to consider versioning
9555         for gdk-pixbuf more carefully later.
9556
9557 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
9558
9559         Work with srcdir != builddir.   
9560         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
9561         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
9562         * demos/testpixbuf.c: Likewise.
9563         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
9564         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
9565         <gdk/x11/gdkx.h>.
9566         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
9567         "gdk-pixbuf.h".
9568         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
9569
9570 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
9571
9572         * TODO.xml: Change 1.4 version numbers to 2.0.
9573
9574 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
9575
9576         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
9577         fixups to GTK+ standard.
9578
9579 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
9580
9581         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
9582         gdk-pixbuf.
9583
9584         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
9585         fixups for GObject.
9586
9587         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
9588         gdk-pixbuf with GDK dependencies moved into GDK.
9589         
9590         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
9591         move gdk-pixbuf-loader here until GObject has signals.
9592
9593         * demos/: New directory of demos. Move demos from
9594         gdk-pixbuf here.
9595
9596         * demos/pixbuf-init.c: Small bit of code to check for
9597         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
9598         set GDK_PIXBUF_MODULEDIR appropriately.
9599
9600         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
9601         define which no longer makes sense.
9602
9603 2000-06-21  Havoc Pennington  <hp@redhat.com>
9604
9605         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
9606         gtk_get_default_language
9607
9608         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
9609         new function to get the default language
9610
9611         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
9612         s/gtk_text_view_style_values/gtk_text_style_values/
9613
9614         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
9615         Add a "language" field to tags.
9616
9617         (gtk_text_tag_set_arg): Fix bug in setting
9618         "bg_full_height_set" tag.
9619
9620 2000-06-21  Havoc Pennington  <hp@redhat.com>
9621
9622         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
9623         in the interfaces
9624
9625         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
9626         stuff instead when possible.
9627
9628         * gtk/gtktexttypes.h: Delete some unused constants
9629
9630         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
9631         testtextbuffer.c: use glib instead of custom unicode routines
9632
9633 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
9634
9635         * docs/es/: Removed mistakenly added generated sgml
9636
9637         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
9638         Remove outdated info files.
9639
9640         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
9641         Moved tutorial files into subdir
9642
9643         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
9644         subdir.
9645
9646         * docs/man/gtk_button.pod: Remove. (contents will be
9647         integrated into gtk-reference button page.)
9648
9649         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
9650         docs/faq/Makefile.am: Adjust for new organization
9651
9652 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
9653
9654         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
9655         not $(MKINSTALLDIRS)
9656
9657 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
9658
9659         * gtk/testgtk.c (create_text): Finish the job Elliot started
9660         of removing font setting test for text widget. (Since text widget
9661         and GdkFont are not deprecated, and cause portability problems.)
9662
9663 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
9664
9665         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
9666         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
9667         Remove use of libunicode in favor of new GLib functions.
9668
9669         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
9670         nano-x, framebuffer. The X11 include is just a hack until we get
9671         the necessary functions in gdkcolor.h, so there is no reason to
9672         add other includes of platforms.
9673
9674         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
9675         window bigger than the screen change.
9676
9677         * gtk/testgtk.c: Revert some random changes from Elliot
9678         that had no particular point and were causing testgtkrc
9679         not to function correctly.
9680         
9681         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
9682         because GdkSegment and GdkRegionBox have the same fields,
9683         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
9684         results in clearer code.
9685
9686         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
9687         gdk_input_translate_coordinates): Fix missed GdkObjectification
9688
9689 2000-06-18  Elliot Lee  <sopwith@redhat.com>
9690
9691         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
9692         * gtk/gtk{plug,socket}.h: Missed commits from previous.
9693
9694 2000-06-20  Havoc Pennington  <hp@redhat.com>
9695
9696         * modules/linux-fb/Makefile.am: Make this compile
9697         without framebuffer enabled
9698
9699         * gdk/linux-fb/Makefile.am: Add conditional to not build
9700         framebuffer unless specified in configure
9701
9702         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
9703         the size of the target instead of source if -1 was passed for
9704         width/height
9705
9706         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
9707         width/height confusion.
9708
9709 2000-06-19  Havoc Pennington  <hp@redhat.com>
9710
9711         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
9712         GDK_DRAWABLE_XID. In the future, we probably want to make it
9713         faster with G_DISABLE_CHECKS turned on.
9714
9715 2000-06-14  Havoc Pennington  <hp@redhat.com>
9716
9717         * gdk/Makefile.am: add gdkpixmap.c
9718
9719         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
9720         s/gdk_image_init/_gdk_windowing_image_init
9721
9722         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
9723         ref/unref
9724
9725         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
9726
9727         * gdk/gdkcompat.h: remove GdkWindowType compat, since
9728         GdkWindowType is now non-deprecated; 
9729         change gdk_window_get_type() compat to be
9730         gdk_window_get_window_type().
9731
9732         * gdk/gdkdnd.h: make GdkDragContext a GObject.
9733
9734         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
9735         virtual GObject. Make all functions call into the vtable.
9736         Move gdk_image_put() guts in here. Remove GdkDrawableType
9737         and gdk_drawable_get_type(), these are now GdkWindow-specific.
9738         draw_image, get_depth, get_size, set_colormap, get_colormap,
9739         get_visual added to the vtable.
9740         
9741         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
9742         GObject. Virtualize everything. 
9743         (gdk_gc_new_with_values): remove check for destroyed window,
9744         because now GdkWindow::create_gc will check this.
9745         (gdk_gc_set_values): New function to set GC values, this 
9746         was already implemented but wasn't in the header
9747
9748         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
9749
9750         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
9751         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
9752         remove _gdk_window_class; add _gdk_window_impl_get_type() and
9753         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
9754         _gdk_windowing_window_init, rename gdk_image_init to
9755         _gdk_windowing_image_init.
9756         
9757         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
9758         (gdk_draw_layout): Remove check for destroyed window, 
9759         because all the drawable methods already check it.
9760         
9761         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
9762         Add gdkpixmap.c which contains implementation of GdkDrawable
9763         virtual table (by chaining to a platform-specific implementation
9764         object).
9765         
9766         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
9767         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
9768         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
9769         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
9770         GdkColormapPrivate. 
9771
9772         * gdk/gdktypes.h: #include <glib-object.h>
9773
9774         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
9775         Move most functionality to platform-specific implementation
9776         object. GdkWindow itself now handles the backing store, then
9777         chains to the platform-specific implementation.
9778         (gdk_window_get_window_type): return GdkWindowType of the window.
9779         (gdk_window_peek_children): New routine, returns the children of 
9780         a GdkWindow
9781         (gdk_window_get_children): Was in X11-specific code and did 
9782         XQueryTree. Changed to simply return a copy of window->children; 
9783         so it can go in cross-platform code.
9784         
9785         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
9786
9787         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
9788         GdkColormap; just changed to use the new private data instead
9789         of casting to GdkColormapPrivate.
9790
9791         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
9792         gdk_cursor_new().
9793
9794         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
9795         (private data member in the GObject). 
9796         (xdnd_manager_source_filter): Function had broken 
9797         error handling, fix it (use gdk_error_trap_push).
9798
9799         * gdk/x11/gdkdrawable-x11.c: This file now implements
9800         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
9801         base class is purely for the convenience of the X port,
9802         and not part of the interface to cross-platform GDK.
9803
9804         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
9805         
9806         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
9807         specific to X, and returned by the create_gc virtual method
9808         of GdkDrawableImplX11. 
9809         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
9810         rather than gchar, this was also changed in the GdkGC vtable.
9811         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
9812         mask is 0, return immediately, instead of checking every flag.
9813         This is faster, and keeps us from segfaulting if values is NULL
9814         and the mask contains some nonzero flags.
9815
9816         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
9817         GdkWindow.
9818
9819         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
9820         GdkWindowPrivate is gone.
9821
9822         * gdk/x11/gdkim-x11.c: rename things that got renamed.
9823
9824         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
9825         remove the image_put stuff that got transferred to GdkDrawable.
9826         
9827         * gdk/x11/gdkinput.c: renamings
9828
9829         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
9830
9831         * gdk/x11/gdkpixmap-x11.c: GObject conversion
9832
9833         * gdk/x11/gdkprivate-x11.h: indentation fixes
9834
9835         * gdk/x11/gdkproperty-x11.c: renamings
9836
9837         * gdk/x11/gdkselection-x11.c: renamings
9838
9839         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
9840         implements the platform-specific "impl" object.
9841         Moved gdk_window_get_children to gdk/gdkwindow.c
9842
9843         * gdk/x11/gdkx.h: Remove all the private structs and private datas
9844         that no longer exist. Add declaration of GdkGCX11 object here.
9845         Fix all the macros to still work. 
9846
9847         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
9848         GdkDragContext from the boxed types since they are now GObjects.
9849
9850         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
9851         moved xthickness/ythickness into the instance. GtkStyleClass
9852         functions are now in the standard vtable for GtkStyle, so you have
9853         to create a GObject subclass to write a theme engine.
9854         (gtk_style_copy): fixed a leaked PangoFontDescription
9855         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
9856         can be the standard GObject function.
9857         
9858         * Throughout GTK:
9859         s/style->klass->[xy]thickness/style->[xy]thickness
9860         s/pango_layout_unref/g_object_unref/
9861
9862         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
9863         
9864         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
9865         accessing GDK internals.
9866
9867         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
9868         accessing GDK internals.
9869
9870 2000-06-18  Elliot Lee  <sopwith@redhat.com>
9871
9872         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
9873
9874         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
9875         problem by calculating event position relative to the trough
9876         rather than the slider.
9877         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
9878
9879         * gdk/gdkgc.h: Add GDK_NOR.
9880
9881         * configure.in, Makefile.am: Add modules top level dir
9882         * configure.in: Only use pangox library if building x11 target.
9883         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
9884
9885 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
9886
9887         * gtk/gtkcolorsel.c: Change private class member to be named
9888         private_data throughout the file.
9889
9890         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
9891         private_data to avoid clashing with keyword.
9892
9893 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
9894
9895         * gdk/gdkdnd.h: Add comment to remove warning.
9896
9897 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
9898
9899         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
9900         Byelorussian language; changed the Makefile and file names 
9901         to reflect that.
9902
9903 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
9904
9905         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
9906         rather than gdk_window_hide; this makes things work
9907         correctly if the window is programmatically hidden while
9908         iconified.
9909
9910 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
9911
9912         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
9913         cut and paste typo where wrong pixmap was being
9914         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
9915
9916 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
9917
9918         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
9919         Add helper function to compute format / bytes 
9920         relationship. Use in a couple places to fix up
9921         errors which assume 8 * format.
9922
9923         * gtk/gtkselection.c (gtk_selection_request): Use 32
9924         rather than 8 * sizeof (GdkAtom), to work correctly
9925         on Alpha.
9926
9927 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
9928
9929         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
9930         libgtk.la
9931         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
9932         versions
9933
9934         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
9935         checking macros return NULL since the function has a return value.
9936
9937 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
9938
9939         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
9940         GTK+ from building at all.
9941
9942         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
9943
9944 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
9945
9946         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
9947         gtk/Makefile.am: make it possible to configure gtk for different
9948         targets on the same platform. The library name is now 
9949         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
9950         flag. Only the x11 target compiles right now.
9951         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
9952         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
9953         * gdk/nanox/gdk*generic*: delete generic region code.
9954         * gdk/linux-fb/gdk*generic*: delete generic region code.
9955         * README.nanox: update information.
9956         
9957 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
9958
9959         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
9960         prepend not append. (Pointed out by Brett Hall.)
9961
9962 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
9963
9964         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
9965
9966 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
9967
9968         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
9969         need this later, and this makes sure that the atexit for
9970         glib gets called after that for GDK, so atexits are
9971         properly ordered for object leak checking.
9972
9973         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
9974
9975         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
9976         pango_x_shutdown_display()
9977
9978         * gtk/simple.c (main): Close window on destroy.
9979
9980 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
9981
9982         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
9983         to treat initial creation different from setting with 
9984         regards to the graphics-exposures parameter, so add a parameter
9985         indicating whether this is initial or not.
9986
9987 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
9988
9989         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
9990         to sort of work by adding an extra return_exposes arg
9991         to gdk_event_translate() - it might be better to simply
9992         deprecate the function altogether and force people to rewrite
9993         without it. gdk_window_scroll() handles most of it, and where
9994         gdk_window_scroll() doesn't work, simply redrawing more does.
9995
9996         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
9997         assertion.
9998
9999         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
10000
10001         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
10002         bunch of pretty much useless /* Print debugging info */ comments 
10003         which had drifted away from the code they were commenting.
10004
10005 2000-06-02  Havoc Pennington  <hp@pobox.com>
10006
10007         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
10008         is in working order.
10009         
10010         * gtk/testtext.c: Change to reflect anonymous mark API
10011
10012         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
10013
10014         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
10015         field, which was unused.
10016
10017         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
10018         saves some typing.
10019
10020         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
10021
10022         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
10023         flag on the insertion point and selection bound
10024
10025         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
10026         make mark-manipulation functions take a GtkTextMark* instead of a
10027         mark name.
10028         
10029         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
10030         GtkTextMarkBody; will be used to detect attempts to delete
10031         the permanent marks (insert and selection bound)
10032
10033         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
10034
10035 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
10036
10037         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
10038         flag to on.
10039
10040         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
10041         Honor DOUBLE_BUFFRED_FLAG
10042
10043         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
10044         function to set the DOUBLE_BUFFERED flag.
10045
10046         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
10047         or not exposes done on the widget should be double-buffered.
10048
10049         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
10050         to be what would be expected. (Fixes problem with a
10051         g_return_if_fail() validating a TextDirection enumeration)
10052
10053 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
10054
10055         * gtk/gtkwidget.c: Remove all references to 
10056         offscreen flag which was no longer used.
10057
10058         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
10059
10060         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
10061         for non-null label_widget->parent.
10062
10063         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
10064         which no longer was used.
10065
10066         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
10067
10068         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
10069         for null arguments.
10070
10071         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
10072         check for destroyed windows.
10073
10074 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
10075
10076         * gtk/gtkimmulticontext.c: Add a finalize method and unref
10077         the slave context there.
10078
10079         * gtk/gtkinvisible.[ch]: Make reference counting behavior
10080         identical to GtkWindow.
10081
10082 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
10083
10084         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
10085         pangox to here, so we can write them independent of rendering
10086         system, using GDK primitives.
10087
10088         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
10089         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
10090         since we have a rendering-system independent implementation in
10091         terms of draw_glyphs().
10092         
10093         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
10094         function to render a single line.
10095
10096         * gdk/x11/gdkpango.c: Move the guts of this file mostly
10097         into ../gdkpango.c, which simplifies things, since we
10098         don't have to deal with raw X gc's.
10099
10100 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
10101
10102         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
10103         get the logical attributes for a given GtkTextLine.
10104
10105 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
10106
10107         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
10108         g_locale_get_codeset() to g_get_codeset() change.
10109
10110 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
10111
10112         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
10113         descriptions.
10114
10115         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
10116         the entry.
10117
10118         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
10119         redoing (vastly simplifying) for Pango. Still needs quite
10120         a bit of work. (Size selection is currently poor. List of 
10121         predefined sizes is not a good idea, since all of these
10122         sizes won't necessarily be distinct.)
10123
10124 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
10125
10126         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
10127         CODESET results for LANG=C.
10128
10129 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
10130
10131         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
10132         which takes a stringized pango font description;
10133         ignore the older 'font' and 'fontset' declarations.
10134
10135         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
10136         field with a GdkFont derived via gdk_font_from_description(),
10137         for compatibility. (Should we just remove it entirely?
10138         Probably too much compatibility breakage, but people
10139         should be migrating to the new Pango stuff as quickly
10140         as possible.)
10141
10142 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
10143
10144         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
10145
10146 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
10147
10148         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
10149         redoing; there are some bugs in size allocation right
10150         now, the semi-existant distinction between header / day
10151         fonts was removed, but, with Pango, could actually
10152         be made functional in a nice way.
10153         
10154         * gtk/testcalender: Move calender from examples into this
10155         directory as a test program. (We really need to restrcture
10156         testgtk into a whole directory full of tests for every
10157         widget or functionality group, separated into multiple .c
10158         files.)
10159
10160 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
10161
10162         * gtk/testgtk.c (file_exists): Fix stupid typo that
10163         was keeping RC file from being loaded.
10164
10165         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
10166         RC file font code.
10167
10168 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
10169
10170         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
10171         Add function to load a GdkFont from a PangoFontDescription.
10172
10173 2000-05-29  Tor Lillqvist  <tml@iki.fi>
10174
10175         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
10176         variable should be of type GdkEventPrivate.
10177
10178 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
10179
10180         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
10181         to have any widget for the label, use a GtkLabel widget
10182         to display the text. (Based partially on a patch from
10183         Anders Carlson.)
10184
10185         (Quite a bit of code reorganization - strip 90% of the
10186         guts out of gtkaspectframe and add a single virtual
10187         func to GtkFrameClass - compute_child_allocation.)
10188
10189 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
10190
10191         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
10192         (Removed clist->row_center_offset field because caching
10193         it wasn't saving time or code, added private function
10194         _gtk_clist_create_cell_layout()).
10195
10196 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
10197
10198         * gtk/gtkaccellabel.c: Pangoized.
10199
10200         * gtk/[hv]ruler.c: Pangoized
10201
10202 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
10203
10204         * gtk/gtkfilesel.c (gtk_file_selection_init):
10205         Use gtk_clist_set_column_auto_resize() to remove need
10206         need for manual column width computations.
10207
10208 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
10209
10210         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
10211         ensuring Pango correctness, and considerably simplifying the
10212         code.
10213         
10214         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
10215
10216         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
10217         getting of numbers of lines.
10218
10219         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
10220         to the actual requested width of the lable, not to the wrap
10221         width we set.
10222
10223         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
10224
10225         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
10226           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
10227
10228         * gtk/gtktextview.c: Fix structure inheritance.
10229
10230         * gtk/gtkprogressbar.c: Pangoize.
10231
10232 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
10233
10234         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
10235         in a function.
10236
10237         * gtk/gtktextlayout.c (find_display_line_above): Fixed
10238         bug with computing line tops.
10239
10240         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
10241
10242 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
10243
10244         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
10245         and y_offset coordinates to do what we need now. (The offset between
10246         buffer and layout coordinates has been reintroduced, but is a 
10247         bit different than before.)
10248
10249         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
10250         handle the adjustments ourselves, and scroll as necessary using
10251         the new gdk_window_scroll().
10252         
10253         The advantage of this is that when we are incrementally revalidating,
10254         we are essentially rearranging things around the visible portion
10255         of the screen. With the old setup, the visible portion of the
10256         screen was moved around in the layout, so scrolling and redrawing
10257         to track that caused jumping of the display. Since we now
10258         control the scrolling ourselves, we can suppress this and
10259         only redraw when things actually change.
10260
10261 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
10262
10263         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
10264         the region not just redisplay it after-all, since we store the
10265         cursors in the LineDisplay. (Ugly interactions here between
10266         GtkLayout and GtkTextBTree here.)
10267         
10268         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
10269
10270 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
10271
10272         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
10273         Added function to scroll contents of a window while keeping the
10274         window constant. Works by XCopyArea or guffaw-scrolling depending
10275         on the details of how the window is set up. (guffaw-scrolling
10276         still needs to be filled in.)
10277
10278 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
10279
10280         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
10281         move the debugging that was tied to a global variable
10282         to that.
10283
10284         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
10285
10286         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
10287         validated flag, in line data instead of setting height/width to
10288         -1. This allows us to perform operations with partially invalid
10289         buffer (using the old size for invalid lines) and thus to do
10290         incremental vaidation. Keep height/width aggregates up to date
10291         when deleting text and rebalancing the tree.
10292
10293         * gtk/gtktextbtree.[ch]: Add functions validate a line
10294         (gtk_text_btree_validate_line), and to validate up
10295         to a number of pixels (gtk_text_btree_validate).
10296
10297         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
10298         that indicates that something is changed and a revalidation
10299         pass is needed. Change ::need_repaint to ::changed, and
10300         make it take old and new yranges instead of a rectangle.
10301
10302         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
10303         the line_data_destroy() function from 
10304         gtk_text_btree_add_view() to a virtual function in 
10305         GtkTextLayout
10306
10307         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
10308         since we are handling partial repaints in a different fashion
10309         now.
10310
10311         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
10312         of the selection instead of queueing a repaint on the
10313         entire widget.
10314
10315         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
10316         get_selection_bounds() down to btree, make the function
10317         in buffer a wrapper around the btree function.
10318
10319         * gtk/gtktextlayout.[ch]: Add functions to check if the
10320         layout is valid and to recompute either a range of pixels
10321         aroudn a line or a certain total number of pixels.
10322
10323         * gtk/gtktextlayout.[ch]: Cache a single line display;
10324         now that we only redraw the needed portions, the hit rate
10325         for this cache is quite high.
10326         
10327         * gtk/gtktextview.[ch]: Keep track of the first paragraph
10328         on the screen so that when re-laying-out the buffer, we can
10329         keep the same place. This requires connecting to ::value_changed
10330         on the adjustments
10331
10332         * gtk/gtktextview.[ch]: Add idle functions to revalidate
10333         the buffer after we receive an ::invalidated signal.
10334         
10335 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
10336
10337         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
10338         to max of allocation and layout size, not just to the
10339         layout size.
10340
10341         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
10342         Invalidate window so it gets redrawn properly.
10343
10344         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
10345         to mean the entire window.
10346
10347         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
10348         into public header.
10349
10350 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
10351
10352         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
10353         to get the name of a mark.
10354
10355         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
10356         to find the paragraph from a y position.
10357
10358 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
10359
10360         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
10361         nodes have width/height >= 0, not > 0.
10362
10363 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
10364
10365         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
10366         Add a size_only flag, so when we only need the size, we don't create
10367         useless appearance attributes.
10368
10369         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
10370         duplicate setting of font description.
10371
10372         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
10373
10374 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
10375
10376         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
10377         EXTRA_DIST. It does not work well when the file that
10378         everything depends on is not in the tarball.
10379
10380 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
10381
10382         * gtk/testgtk.c: Some hacks and fixes so that it basically
10383         works when not sitting in the GTK+ build tree.
10384
10385 2000-05-03  Havoc Pennington  <hp@redhat.com>
10386
10387         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
10388         Properly determine the ordering of the tag root and the current
10389         line within the tree. Previous algorithm only worked if the tag
10390         root's immediate parent was the common root of both the current
10391         line and the tag root.
10392
10393 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
10394
10395         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
10396         alignment.
10397
10398         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
10399         the widget text directional dynamically.
10400
10401         * gtk/gtktextview.[ch]: Added functions to get and set default
10402         wrap mode.
10403
10404 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
10405
10406         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
10407         in cursor location computation.
10408
10409 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
10410
10411         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
10412         vadjusment values properly when layout gets smaller.
10413
10414         * gtk/gtktextview.c (need_repaint_handler): Areas being
10415         passed in are far completely inaccurate, and sometimes
10416         too small, so, for now, just queue a redraw on the
10417         whole visible region.
10418
10419 2000-04-25  Havoc Pennington  <hp@redhat.com>
10420
10421         * gtk/gtktextbtree.c (summary_destroy): new function to 
10422         destroy tag summary nodes
10423         (gtk_text_line_next_could_contain_tag): this function was 
10424         totally broken if the line passed in wasn't below the tag
10425         root. Fix it.
10426         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
10427         "wildcard" case, we have to do a linear scan. Blah.
10428         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
10429         we have to do the linear scan
10430         (tag_removed_cb): When a tag is removed from the tag table, 
10431         remove the GtkTextTagInfo node from the btree.
10432         (gtk_text_btree_spew): Implement the spew function, for 
10433         our debugging pleasure.
10434
10435 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
10436
10437         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
10438         a problem with referring to the wrong buffer.
10439
10440         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
10441
10442         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
10443         font description to gtk_style_new() - otherwise things
10444         don't work without a .gtkrc file.
10445
10446         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
10447         tags table if we create it ourself, too.
10448
10449         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
10450         it was conflicting with XKB modifiers.
10451
10452         * gtk/gtktextview.[ch]: Add simple support for 
10453         GtkIMContext.
10454
10455 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
10456
10457         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
10458         with deletion from last commit.
10459
10460 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
10461
10462         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
10463         in the context from the current locale.
10464         
10465         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
10466         context, not hardcoded value.
10467
10468         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
10469         not logical.
10470
10471 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
10472
10473         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
10474         attributes - that doesn't handle partial-glyph selection
10475         properly. Instead use new pango_layout_line_get_x_ranges()
10476         functionality to draw the selection.
10477
10478         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
10479         now properly handles out-of-range coordinates.
10480
10481         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
10482
10483         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
10484         public.
10485
10486         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
10487         for paragraphs opposite to the base direction of the widget.
10488
10489         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
10490
10491         * gtk/gtktextlayout.c: Don't split segments on marks, since that
10492         causes Arabic words to reshape as you cursor through.
10493
10494         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
10495         cursor position when moving vertically with the arrow keys and
10496         scrolling with page-up/page-down. (Arrow keys save only the X,
10497         scrolling saves both X and Y.)
10498
10499         This means you can line-up / line-down or page-up / page-down
10500         without losing your place, and also that moving vertically
10501         with the cursor keys keeps the same X position, not the same
10502         character count:
10503
10504         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
10505         arrow keys move by display lines, not paragraphs.
10506
10507 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
10508
10509         * gtk/gtklayout.c: Make sure that the bin window is at least
10510         as big as the allocation. (Should we also make sure that the
10511         bin window is big enough to completely cover widget->window?)
10512
10513         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
10514         function to get the onscreen rectangle.
10515
10516         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
10517         for offsets in window coordinates.
10518
10519 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
10520
10521         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
10522         confusion.
10523
10524         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
10525         from the widget direction.
10526
10527         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
10528         Add a "direction" attribute.
10529
10530         * gtk/gtktextview.c: global s/tkxt/text_view/.
10531
10532         * gtk/testtext.c: Added long block of text in Arabic, to test out
10533         the direction attributes. (Some problems with the shaping system
10534         for arabic become obvious - like the fact the cursor splits words
10535         into unjoined pieces.)
10536
10537 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
10538
10539         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
10540
10541         * gtk/gtktextlayout.c: Fix up alignment.
10542
10543         * gtk/testtext.c: Add some tests for centering, wrapping.
10544
10545 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
10546
10547         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
10548         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
10549         If we wrote GTK+-specific layout-render function this could just replace
10550         the draw_layout() operation in the vtable.
10551
10552         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
10553         pango_layout_get_cursor_pos() and use that function.
10554
10555         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
10556         is a non-static symbol.
10557
10558         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
10559         with gtk_text_btree_find_line_by_y()
10560
10561         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
10562         renderer that handles GtkTextAppearance attributes.
10563
10564         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
10565
10566           - Move the values in the style that don't affect geometry into a
10567             GtkTextAppearance structure.
10568           - Change underline to take a PangoUnderline and "font" a string
10569             representation of a font description
10570           - Add a "font_desc" attribute which takes a FontDescription structure.
10571
10572         * gtk/gtktextlayout.[ch]:
10573
10574           - Get rid of the display-line list per each line. Instead, we
10575             generate, on demand, a GtkTextLineDisplay structure which]
10576             contains a PangoLayout * and other necesary information
10577             (offsets, cursor locations) for displaying a paragraph.
10578           - Get rid of the code to wrap lines, create display chunks,
10579             etc. Instead, we just go through a paragraph and convert
10580             it into the necessary inputs to a PangoLayout.
10581           - Implement a new attribute type, GtkTextAttrAppearance. This
10582             holds a GtkTextAppearance, and is used to pass colors, 
10583             stipple, etc, through from the layout to the display without
10584             having to use lots and lots of individual attributes.
10585           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
10586             in terms of PangoLayout functions.
10587         
10588         * gtk/gtktextview.c: 
10589          
10590           - Handle passing the necessary PangoContext to the layout
10591           - Some fixups in painting to deal with the automatic backing store
10592             and offsetting of GTK+-1.4
10593           - Add a style_set handler so that the default style reacts
10594             properly to theme changes.
10595         
10596         * gtk/gtktext?*.[ch]: Random code-style fixes.
10597
10598         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
10599
10600 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
10601
10602         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
10603         in original form preparatory to Pango-ization and gdkimcontext-ization.
10604
10605 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
10606
10607         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
10608         so that we can derive from gtkimcontext in language bindings properly.
10609
10610 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
10611
10612         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
10613         Add a compose table including (almost) all the compose combinations
10614         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
10615         data in the XIM implementation.
10616
10617         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
10618         Moved functions to convert keyvalues from and to unicode here from
10619         the win32 port and made them public.
10620
10621 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
10622
10623         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
10624
10625 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
10626
10627         * gtk/gtkimcontext.[ch]: Base class for new input context system
10628
10629         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
10630         the real input context implementation to be loaded from modules
10631         and switched on the fly.
10632
10633         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
10634         context that just does direct keysymbol => unicode translation.
10635
10636         * gtk/gtkentry.[ch]: Start switching editing over to using
10637         GtkInputContext. (No handling of preedit yet.)
10638
10639 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
10640
10641         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
10642         many substitutions. (klass should not be subsituted.)
10643
10644 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
10645
10646         * configure.in: Add checks for Pango
10647
10648         * configure.in docs/Makefile.am: Add test for sgml2html
10649         and allow 'make dist' without building html, but print out
10650         warnings in that case. (For making snapshots)
10651
10652         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
10653         Add Pango libraries and C flags
10654
10655         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
10656         Add function (gdk_draw_layout) to draw a pango layout.
10657
10658         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
10659         for getting Pango contexts for GDK.
10660
10661         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
10662
10663         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
10664         editing.
10665
10666         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
10667         keysym => unicode translations. More languages can be added
10668         here, but real input-method support is needed.
10669
10670         * docs/Changes-1.4.txt: Added note about entry behavior.
10671         
10672         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
10673         to set the reading direction for a widget and the global direction.
10674         Add test which allows toggling the global direction. Two private
10675         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
10676
10677         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
10678           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
10679
10680         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
10681
10682         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
10683         underlining now handled by Pango.
10684
10685         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
10686         to RCStyle and Style. (Having both this and the old font name and GdkFont 
10687         is temporary.)
10688
10689         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
10690         convenience functions for creating contexts and layouts for widgets.
10691
10692         * gtk/testgtk.c: Enhance label tests with multilingual labels.
10693
10694 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
10695
10696         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
10697         titles to be active, even if they aren't visible.
10698         (gtk_clist_column_titles_passive):  Ditto.
10699
10700 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
10701
10702         * gtkmenu.c:
10703         * gtkmenu.h:
10704         * gtktypeutils.h: Spelling/grammar fixes in comments.
10705
10706 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
10707
10708         * gdk/nanox/*.h: add missing header files.
10709
10710 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
10711
10712         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
10713         send_event to TRUE.
10714         (gtk_drawing_area_size): queue a resize.
10715
10716 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
10717
10718         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
10719         the handlers, also invalidate them. bug nailed down by Karl Nelson
10720         <kenelson@ece.ucdavis.edu>.
10721
10722 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
10723
10724         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
10725         "(nil)" foundries, patch from Grigorios Magklis.
10726
10727         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
10728         on non-available fonts, based on a patch by Grigorios Magklis
10729         <maglis@cs.rochester.edu>.
10730
10731 2000-05-18  Elliot Lee  <sopwith@redhat.com>
10732
10733         * gdk/x11/gdkregion-generic.c: If a region does not have any
10734         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
10735         instead of GDK_OVERLAP_RECTANGLE_IN.
10736
10737 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
10738
10739         * gtk/gtklayout.c (gtk_layout_map): Remove references to
10740         OFFSCREEN, as it is no longer necessary.
10741
10742 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
10743
10744         * gtk/gtkcolorsel.c: Patch from David Santiago
10745         <mrcooger@cyberverse.com> to change things so that the 
10746         indicator of the active palette entry is done independently,
10747         not via the focus, since it should always be visible.
10748
10749 2000-05-17  Tor Lillqvist  <tml@iki.fi>
10750
10751         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
10752         refcount leaks as in the X11 backend.
10753
10754         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
10755         cosmetics.
10756
10757         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
10758         backend. Add _gdk_windowing_window_destroy().
10759
10760         * gtk/gtkcolorsel.c: Include correct backend-specific header.
10761         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
10762         either, but these probably do exist on nanox?)
10763         
10764         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
10765         which isn't necessarily defined by <math.h>.
10766
10767         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
10768         ancestry past GtkObject.
10769
10770         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
10771         from DLL on Win32.
10772
10773         * gtk/gtk.def: Update corresponding to recent changes.
10774
10775         * gtk/makefile.{cygwin,msc}: Updates.
10776
10777 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
10778
10779         * docs/Changes-1.4.txt: A bit of editing.
10780
10781         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
10782         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
10783         to clear the update area for the window, and clear it
10784         when hiding a window.
10785
10786         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
10787         if window destroyed.
10788
10789         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
10790
10791         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
10792         gdk_window_destroy() to the generic code, since there was a lot of 
10793         window-system-independent logic it in. Add a function:
10794         
10795          _gdk_window_destroy() 
10796
10797         to the internal API to destroy a window without unreferencing it.
10798         Add a function:
10799
10800          _gdk_windowing_window_destroy()
10801
10802         That does the windowing-system-dependent part of destroying 
10803         the window.
10804
10805 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
10806
10807         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
10808
10809 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
10810
10811         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
10812         Make gtk_widget_shape_combine_mask() keep a reference count on
10813         the pixmap since it keeps it around.
10814
10815 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
10816
10817         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
10818         leak.
10819
10820         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
10821         leak with event filters.
10822
10823 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
10824
10825         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
10826         signal handlers with the right data arguments. (Fixes
10827         some warnings when a widget was repeatedly set as a drag
10828         destination.)
10829
10830         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
10831         window so we can avoid avoid setting the DND properties on the
10832         toplevel window repeatedly.
10833
10834 2000-05-13  Tor Lillqvist  <tml@iki.fi>
10835
10836         * gdk/win32/gdkwin32.h: Define more message types missing from
10837         mingw headers.
10838
10839         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
10840         call gdk_window_destroy_notify(). It was never called. This
10841         probably meant that the GdkWindow was never freed. Thanks Owen for
10842         noticing (!).
10843
10844         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
10845         window as destroyed before calling DestroyWindow(). DestroyWindow()
10846         causes a call to the window procedure (gdk_WindowProc), which
10847         calls gdk_event_translate(), which calls
10848         gdk_window_destroy_notify(), which gets confused unless the window
10849         is set as destroyed.
10850
10851         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
10852         this function to indicate it's win32 only. Put inside #ifdef
10853         G_ENABLE_DEBUG.
10854
10855         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
10856         debugging function. (gdk_event_translate:) Add a default branch
10857         that uses the above function to print debug messages with all
10858         Windows messages symbolically.
10859
10860         * gdk/win32/gdkprivate-win32.h: Declare it, and
10861         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
10862
10863 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
10864
10865         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
10866         public header file.
10867
10868 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
10869
10870         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
10871
10872         * gtk/gtktext.c: made the adjustments no-construct args, simply
10873         provide default adjustments.
10874         (gtk_text_destroy): release adjustments.
10875
10876         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
10877         adjustment argument non-construct.
10878
10879         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
10880         instead of in finalize.
10881         (gtk_progress_get_text_from_value): 
10882         (gtk_progress_get_current_text): 
10883         (gtk_progress_set_value): 
10884         (gtk_progress_get_percentage_from_value): 
10885         (gtk_progress_get_current_percentage): 
10886         (gtk_progress_set_percentage): 
10887         (gtk_progress_configure): ensure an adjustment is present.
10888
10889 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
10890
10891         * gtk/gtkcolorsel.[hc]:
10892         * gtk/gtkcolorseldialog.[hc]:
10893         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
10894         their parent implementation, use bit fields for boolean values, don't
10895         create unused widgets, usage of glib types, braces go on their own
10896         lines, function argument alignment, #include directives etc. etc. etc..
10897
10898         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
10899
10900 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
10901
10902         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
10903
10904         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
10905         of NULL.
10906
10907         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
10908         to freed data.
10909         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
10910
10911         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
10912         to NULL when the toplevel is getting destroyed.
10913         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
10914         (gtk_menu_destroy): 
10915         (gtk_menu_init): store the information of whether we have to
10916         readd the initial child ref_count during destruction in a new
10917         GtkMenu field needs_destruction_ref_count.
10918
10919         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
10920         here, those reading: learn from my mistake! ;)
10921         in order for set_?adjustment to support a default adjustemnt if
10922         invoked with an adjustment pointer of NULL, the code read (pseudo):
10923         if (v->adjustment) unref (v->adjustment);
10924         if (!adjustment) adjustment = adjustment_new ();
10925         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
10926         now imagine the first unref to actually free the old adjustment and
10927         adjustment_new() creating a new adjustment from the very same memory
10928         portion. here, the latter comparision will unintendedly fail, and
10929         all hell breaks loose.
10930         (gtk_viewport_set_hadjustment):
10931         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
10932         after unreferencing it.
10933
10934         * gtk/gtkcontainer.[hc]: removed toplevel registration
10935         functions: gtk_container_register_toplevel(),
10936         gtk_container_unregister_toplevel() and
10937         gtk_container_get_toplevels() which had wrong semantics
10938         anyways: it didn't reference and copy the list.
10939
10940         * gtk/gtkwindow.c: we take over the container toplevel registration
10941         bussiness now. windows are registered across multiple destructions,
10942         untill they are finalized. the initial implicit reference count
10943         users are holding on windows is removed with the first destruction
10944         though.
10945         (gtk_window_init): ref & sink and set has_user_ref_count, got
10946         rid of gtk_container_register_toplevel() call. add window to
10947         toplevel_list.
10948         (gtk_window_destroy): unref the window if has_user_ref_count
10949         is still set, got rid of call to
10950         gtk_container_unregister_toplevel().
10951         (gtk_window_finalize): remove window from toplevel list.
10952         (gtk_window_list_toplevels): new function to return a newly
10953         created list with referenced toplevels.
10954         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
10955
10956         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
10957         adjustment a non-construct arg.
10958         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
10959         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
10960         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
10961
10962         * gtk/gtkrange.c: added some realized checks.
10963         (gtk_range_destroy): get rid of the h/v adjustments in the
10964         destroy handler instead of finalize. remove timer.
10965         (gtk_range_get_adjustment): demand create adjustment.
10966
10967         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
10968         we simply create them on demand now and get rid of them in
10969         the destroy handler.
10970         (gtk_viewport_destroy): get rid of the h/v adjustments in the
10971         destroy handler instead of finalize.
10972         (gtk_viewport_get_hadjustment): 
10973         (gtk_viewport_get_vadjustment): 
10974         (gtk_viewport_size_allocate): demand create h/v adjustment
10975         if required.
10976
10977         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
10978         gtk_widget_real_destroy () functionality.
10979         (gtk_widget_real_destroy): reinitialize with a new style, instead
10980         of setting widget->style to NULL.
10981
10982 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
10983
10984         * gtk/gtkcalendar.c:
10985         * gtk/gtkbutton.c: ported _get_type() implementation over to
10986         GType, either to preserve memchunks allocation facilities,
10987         or because Gtk+ 1.0 GtkTypeInfo was still being used.
10988
10989         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
10990         over. prepare for ::destroy to be emitted multiple times.
10991         removed reference tracer magic. chain into GObjectClass.shutdown()
10992         to emit ::destroy signal.
10993
10994         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
10995         fundamental.
10996
10997         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
10998         cludge.
10999
11000         * gtk/gtksocket.c:
11001         * gtk/gtkplug.c:
11002         * gtk/gtklayout.c:
11003         * gtk/gtklabel.c:
11004         * gtk/gtkargcollector.c:
11005         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
11006         not being a fundamental anymore, and to work with the new
11007         type system (nuked fundamental type varargs clutter).
11008
11009         * gtk/*.c: install finalize handlers in the GObjectClass
11010         part of the class structure.
11011         changed direct GTK_OBJECT()->klass accesses to
11012         GTK_*_GET_CLASS().
11013         changed direct object_class->type accesses to GTK_CLASS_TYPE().
11014
11015         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
11016         GType. made most of the GTK_*() type macros and Gtk* typedefs
11017         simple wrappers around macros and types provided by GType.
11018         most notably, a significant portion of the old API vanished:
11019         GTK_TYPE_MAKE(),
11020         GTK_TYPE_SEQNO(),
11021         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
11022         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
11023         GTK_TYPE_ARGS,
11024         GTK_TYPE_CALLBACK,
11025         GTK_TYPE_C_CALLBACK,
11026         GTK_TYPE_FOREIGN,
11027         GtkTypeQuery,
11028         gtk_type_query(),
11029         gtk_type_set_varargs_type(),
11030         gtk_type_get_varargs_type(),
11031         gtk_type_check_object_cast(),
11032         gtk_type_check_class_cast(),
11033         gtk_type_describe_tree(),
11034         gtk_type_describe_heritage(),
11035         gtk_type_free(),
11036         gtk_type_children_types(),
11037         gtk_type_set_chunk_alloc(),
11038         gtk_type_register_enum(),
11039         gtk_type_register_flags(),
11040         gtk_type_parent_class().
11041         replacements, where available are described in ../docs/Changes-1.4.txt.
11042         implemented compatibility functions for the remaining API.
11043
11044         * configure.in: depend on glib 1.3.1, use gobject module.
11045
11046 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
11047
11048         * TODO.xml: Various updates to current status.
11049
11050 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
11051
11052         * gtk.m4: Print out version when test succeeds.
11053
11054 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
11055
11056         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
11057         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
11058         
11059         (Original triangle color selector from Simon Budig
11060         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
11061         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
11062         Santiago <mrcooger@cyberverse.com>)
11063
11064         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
11065         out into a separate widget.
11066
11067         * gtk/testgtk.c: Add some checkbuttons for toggling palette
11068         and opacity controls.
11069
11070 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
11071
11072         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
11073         snuck in prematurely.
11074
11075 2000-05-07  Tor Lillqvist  <tml@iki.fi>
11076
11077         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
11078         had deleted a ! operator by mistake, which caused
11079         GDK_SELECTION_CLEAR events never to be generated, which caused
11080         only the first copy to the clipboard from an gtkeditable to
11081         actually cause a copy to the Windows clipboard.
11082
11083 2000-05-06  Tor Lillqvist  <tml@iki.fi>
11084
11085         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
11086         compilation, too. Current mingw gcc distributions include the
11087         necessary headers. Also the necessary IIDs are now in mingw
11088         headers/libraries, and own definitions unnecessary.
11089
11090         More hacking on OLE2 DND, still doesn't work though, and thus
11091         ifdeffed out.
11092
11093         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
11094         here, too.
11095
11096 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
11097
11098         * gdk/nanox/*: nano-X port work in progress.
11099         * gdk/simple.c: simple test for Gdk.
11100         * README.nanox: notes about the port: read this first!
11101         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
11102         with nano-X.
11103
11104 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
11105
11106         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
11107         gdk_window_clear() into common code, implement in terms of
11108         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
11109         not redirected to the backing rectangle.
11110
11111 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
11112
11113         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
11114         EXTRA_DIST. It does not work well when the file that
11115         everything depends on is not in the tarball.
11116
11117 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
11118
11119         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
11120         with recursion where process_updates() is called from
11121         an expose handler. (GtkTextView is highly broken in
11122         doing this, but it should work, so it is a nice test
11123         case.)
11124
11125 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
11126
11127         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
11128         handle the case where updates are queued during processing of
11129         updates.
11130
11131 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
11132
11133         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
11134         window is on gdk_display - use that instead of segfaulting.
11135
11136 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
11137
11138         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
11139         broken and require an empty arg, give it to them.
11140
11141 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
11142
11143         * gtk/gtklabel.h: indentation fixes.
11144
11145 2000-05-02  Tor Lillqvist  <tml@iki.fi>
11146
11147         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
11148         draw too narrow or too low arcs, they seem to fail, at least with
11149         some display drivers.
11150
11151         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
11152
11153         Large changes to the Win32 backend, partially made necessary by
11154         the changes to the backend-independent internal
11155         structures. Attempts to implement similar backing store stuff as
11156         on X11. The current (CVS) version of the Win32 backend is *not* as
11157         stable as it was before the no-flicker branch was merged. A
11158         zipfile with that version is available from
11159         http://www.gimp.org/win32/. That should be use by "production"
11160         code until this CVS version is usable. (But note, the Win32
11161         backend has never been claimed to be "production quality".)
11162
11163         * README.win32: Add the above comment about versions.
11164
11165         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
11166
11167         * gdk/gdk.def: Update.
11168
11169         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
11170         presumably be replaced by some more better mechanism as 1.4 gets
11171         closer to release shape.
11172
11173         * gdk/makefile.{cygwin,msc}: Update.
11174
11175         * gdk/win32/*.c: Correct inclusions of the backend-specific and
11176         internal headers. Change code according to changes in these. Use
11177         gdk_drawable_*, not gdk_window_* where necessary.
11178
11179         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
11180         our old DND.
11181
11182         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
11183         to interpret single characters as UTF-8. Thanks to Hans Breuer.
11184         Use correct function name in warning messages.
11185
11186         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
11187         GSourceFuncs gdk_event_prepare and gdk_event_check.
11188         (gdk_event_get_graphics_expose): Do implement, use
11189         PeekMessage. Thanks to Hans Breuer.
11190         (event_mask_string): Debugging function to print an GdkEventMask.
11191         (gdk_pointer_grab): Use it.
11192
11193         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
11194         (old) book I used claimed was Hangul actually is CJK Unified
11195         Ideographs Extension A. Also, Hangul Syllables were missing.
11196         Improve logging.
11197
11198         * gdk/win32/gdkgc-win32.c: Largish changes.
11199
11200         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
11201         g_win32_getlocale() from GLib, and not setlocale() to get current
11202         locale name.
11203
11204         * gdk/win32/gdkprivate-win32.h
11205         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
11206         gdkwin32.h, similarily as in the X11 backend.
11207
11208         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
11209         assignment was used instead of equals in if test. Thanks to Hans
11210         Breuer.
11211
11212         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
11213         the X11 version.
11214
11215         * gdk/win32/makefile.{cygwin,msc}
11216         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
11217         path to the Win32 headers that works also with the mingw compiler.
11218
11219         * gtk/gtkstyle.c: Include <string.h>.
11220
11221 2000-04-26  Havoc Pennington  <hp@redhat.com>
11222
11223         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
11224         replacing the broken gtk_label_get ()
11225
11226 2000-04-15  Havoc Pennington  <hp@pobox.com>
11227
11228         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
11229         this keeps scanner scripts from getting confused.
11230
11231         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
11232         data, rather than void
11233
11234 2000-04-15  Tor Lillqvist  <tml@iki.fi>
11235
11236         * gtk/gtkclist.c (gtk_clist_motion)
11237         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
11238         with is_hint FALSE, get x and y from the event. They used to be
11239         used uninitialised. The Win32 backend never sends motion events
11240         marked as hints. This for instance fixes the annoying file and
11241         font selector behaviour in the Win32 version.
11242
11243 2000-04-14  Tor Lillqvist  <tml@iki.fi>
11244
11245         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
11246         gtk_private_n_signals variables, they are used by some software,
11247         sigh.
11248
11249         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
11250         installation directory from the Registry, where the installer
11251         should have put it.
11252
11253 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
11254
11255         * gdk/x11/Makefile.am: Fix problem with installation directory for
11256         gdkx.h
11257
11258         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
11259         <mrcooger@cyberverse.com> so that when selecting menus with the
11260         mouse, the first item will not be selected, but when selecting
11261         with an accelerator, or navigating left-right on a menubar with
11262         the menus popped up, the first item will be selected.
11263
11264 2000-04-05  Dan Damian  <dand@dnttm.ro>
11265
11266         * configure.in: Added "ro" to ALL_LINGUAS.
11267
11268 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
11269
11270         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
11271         indentation.
11272
11273         * Makefile.am (EXTRA_DIST): Fix typo.
11274
11275         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
11276         to catch gdkconfig.h
11277
11278         * gtk/gtkitemfactory.c: Added FIXME.
11279
11280 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
11281
11282         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
11283         s/return_if_fail/return_val_if_fail/g and add a return value.
11284
11285 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
11286
11287         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
11288         merge slipup.
11289
11290         * gdk/gdkinput.h: Fix missing line from merge.
11291
11292 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
11293
11294         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
11295         instead of gdkprivate.h.
11296
11297 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
11298
11299         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
11300         parent class to correctly be GtkDialogClass.
11301
11302 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
11303
11304         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
11305         toplevel windows and their immediate children by their parents,
11306         since the size of toplevel windows is out of our immediate
11307         control and we don't get any real benefit from trying to track
11308         this size for clipping.
11309
11310         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
11311         for input_only windows.
11312
11313         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
11314         to fix some hacks and make sure that we don't try to set the
11315         background of input only windows.
11316
11317 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
11318
11319         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
11320         the _really_ internal stuff, and leave gdkprivate.h for the fake private
11321         stuff that we've traditionally exposed.
11322
11323         * gdk/**.c: Use gdkinternals.h where appropriate.
11324
11325         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
11326         not include gdkprivate-x11.h, move all stuff of conceivable public
11327         interest into gdkx.h; keep all really private stuff in
11328         uninstalled header gdkprivate-x11.h.
11329
11330         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
11331         image->image_put on windows through a new function _gdk_window_draw_image()
11332         to allow us to do backing store for images. (Sort of ugly)
11333
11334         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
11335         contexts locally so that we can offset them properly when drawing 
11336         onto backing pixmaps.
11337
11338         * gdk/gdkinput.h: Reindented
11339
11340         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
11341         pixmap or color for the window, so we can properly initialize
11342         our double-buffer pixmaps, and also so that we temporarily set
11343         a background of None while scrolling.
11344
11345         * gdk/gdkregion.h: Revise region boolean operators to have an
11346         interface that is actually convenient - switch from creating new
11347         regions on every op, to "methods" that modify existing regions
11348         (A = A OP B). 3 argument forms which allow dest == src, would also
11349         be possible, but the current interfaces seem to map nicely
11350         onto what needs to be done. (There is quite a lot of region
11351         code in GDK now.)
11352
11353         * gdk/gdkregion.h: Add constructor from rectangle and a copy
11354         operator.
11355
11356         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
11357         gdkpoly-generic.h: Copy region code from Xlib, switch it over
11358         to 32 bit coordinates, modify it to be mostly GTK+ style
11359         and to have interfaces that match gdkregion.h.
11360
11361         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
11362         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
11363         create a backing pixmap and redirect all drawing to
11364         that backing pixmap until a matching gdk_window_end_paint().
11365
11366         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
11367         Create a special drawable class for GtkWindow's that 
11368         redirects the drawing to the backing pixmap as necessary
11369         and then calls the real operations in _gdk_windowing_window_class.
11370
11371         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
11372         Store invalid region for each window. Generate expose events for invalid
11373         region in an idle. This replaces both the expose compression
11374         and the redrawing queuing in GTK+. It is both more efficient and
11375         simpler than either one individually and far more so then the
11376         combination.
11377
11378         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
11379         Emulate 32 bit coordinates for windows with 16 bit coordinates
11380         by offsetting drawing, guffaw scrolling techniques and
11381         mapping/unmapping child windows as necessary.
11382
11383         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
11384         where, when invalid regions are processed, the region is stored,
11385         and if expose events come in that are detectably duplicate
11386         the processed exposes (by comparison of event serial numbers),
11387         the stored region is subtracted out of those exposes.
11388
11389         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
11390         regions newly exposed when scrolling or resizing windows.
11391         This, combined with forcing processesing of queued invalidated
11392         regions, gives nice flicker-free scrolling.
11393
11394         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
11395         invalidated regions after every scroll.
11396
11397         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
11398         emulation in GDK. Its, for all practical purposes just a
11399         GtkViewport/GtkFixed hybrid now.
11400
11401         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
11402         (16-bit) structures as necessary instead of just casting.
11403
11404         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
11405         in terms of the structures from gdkregion-generic.c, using appropriate
11406         offsets from GDK to X11 coordinates. Cache clip mask and
11407         origin and ts origin locally and only flush to the server
11408         when drawing, to avoid constantly setting and resetting these
11409         values when offsetting GC's for scrolling and backing pixmaps.
11410
11411         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
11412
11413         * gtk/gtkcontainer.c: Call process_all_updates at end
11414         of resizing to reduce flicker. (Avoids having redraw
11415         lag arbitrarily behind resize under some circumstances)
11416
11417         * gtk/gtkentry.c: Remove old backing store code, and simply take
11418         advantage of the new backing store capabilities of GDK.
11419
11420         * gtk/gtkmain.c: Simple implementation of widget backing
11421         store - simply push a paint while handling each expose.
11422         (Should really be configurable widget for widget.)
11423         
11424         * gtk/gtkwidget.c: Remove all the old complicated redraw
11425         code, and simply invalidate the GDK windows from
11426         gdk_window_queue_clear(), etc. (Sigh, so much carefully
11427         debugged complexity ... gone to the winds.)
11428
11429         Remove all the code for suppressing expose events while
11430         resizes are pending; this isn't needed since the invalid
11431         areas won't be processed until after the resizes are
11432         processed, since they are in a lower priority idle.
11433
11434 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
11435
11436         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
11437         and height of dest rectangle for non-intersecting rectangles.
11438
11439 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
11440
11441         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
11442         for GdkRectangle.
11443
11444 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
11445
11446         * gdk/gdk{events,image,private,types,window}.h
11447          gdk/x11/gdkinputprivate.h: Change all coordinates
11448          from int16 to int. Also, Change width and height from
11449          unsigned to signed to avoid all the stupid C 
11450          signedness bugs.
11451
11452 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
11453
11454         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
11455         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
11456         Add some more detailed checking.
11457
11458         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
11459         New function to retrieve the depth of a drawable.
11460
11461         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
11462         field, reorder fields to save memory. 
11463
11464 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
11465
11466         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
11467         of the background image instead of scaling the background down to
11468         a line.
11469
11470         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
11471         which temporarily set slider to wrong size.
11472
11473         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
11474         queue_clear().
11475
11476 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
11477
11478 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
11479
11480         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
11481
11482 2000-03-17  Tor Lillqvist  <tml@iki.fi>
11483
11484         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
11485         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
11486
11487         * gdk/win32/gdkfont-win32.c
11488         * gdk/win32/gdkproperty-win32.c
11489         * gdk/win32/gdkselection-win32.c
11490         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
11491         now declared such.
11492
11493 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
11494
11495         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
11496
11497 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
11498
11499         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
11500         is called without trapping X errors.
11501
11502 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
11503
11504         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
11505         way into the fontset lists.
11506
11507 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
11508
11509         * gtk/gtkthemes.h: add extern "C" scope.
11510
11511 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
11512
11513         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
11514         to make appends to the list constant. (gtk-guy-990901-0.patch)
11515
11516 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
11517
11518         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
11519         for the typename hash table.
11520
11521 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
11522
11523         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
11524         to make sure we never divide by zero. 
11525         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
11526
11527 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
11528
11529         * gtk/gtkfontsel.c: Apply patch from
11530         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
11531         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
11532
11533         Also, some cleanups in atom handling.
11534
11535 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
11536
11537         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
11538         not GtkWidget.
11539
11540 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
11541
11542         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
11543         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
11544         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
11545         more guint wrap-around bugs before going to bed.
11546
11547 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
11548
11549         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
11550         guint wrap arounds in allocation.width.
11551
11552         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
11553         process untill we fit the allocation given.
11554
11555 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
11556
11557         * gtk/gtkwidget.c:
11558         (gtk_widget_unrealize): guard widget access with ref/unref
11559         around signal emission.
11560         (gtk_widget_hide): same here, but also check its destroyed
11561         state before queueing a resize.
11562
11563 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
11564
11565         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
11566         of gtk_default_insensitive_bg as insensitive base color.
11567
11568         * gtk/gtktext.c (gtk_text_style_set): set the background color according
11569         to the widget's state.
11570         (gtk_text_realize): same here.
11571         (gtk_text_state_changed): same here.
11572         (draw_bg_rect): compare background color against base[] from
11573         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
11574
11575 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
11576
11577         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
11578         grabs are active, unless a delete event is send to the toplevel
11579         of the currently grab holding widget.
11580
11581 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
11582
11583         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
11584         debugging g_print's.
11585
11586 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
11587
11588         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
11589         ever make the scrolled-window requisition ever depend on the 
11590         visibility state of the scrollbars for the AUTOMATIC policy. 
11591         This breaks the GTK+ requisition model, and causes loops.
11592
11593 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
11594
11595         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
11596         the default font to avoid problems with XFree86-4.0 where the
11597         default charset is iso10646-1, not iso8859-1.
11598
11599 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
11600
11601         * acinclude.m4
11602         * config.guess
11603         * config.sub
11604         * ltconfig
11605         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
11606
11607         * gtk/Makefile.am: minor cosmetic consistency tweak
11608
11609 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
11610
11611         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
11612         the activate_time to 0, so that we handle a quick
11613         press/release press/release properly and don't suppress
11614         the second release. (Red Hat bug #7545)
11615
11616 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
11617
11618         * gtk/gtkctree.c (row_delete):
11619         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
11620         bugs with destruction notifier, *always* update internal
11621         structures *before* calling user code.
11622
11623 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
11624
11625         A few more fixes for bug #5487, #2051, #2677.
11626         * gtk/gtkclist.c : 
11627         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
11628         not GDK_BUTTON_PRESS.
11629         (resync_selection): resync only if selection_mode is
11630         GTK_SELECTION_EXTENDED
11631         * gtk/gtkctree.c (resync_selection): same here
11632
11633 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
11634
11635         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
11636         gdk_drag_get_selection() and gtk_menu_detach().
11637
11638         [ From Jeroen Ruigrok/Asmodai ]
11639
11640 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
11641
11642         * gtk/gtknotebook.c (gtk_notebook_size_request): 
11643         page->tab_label can be NULL.
11644
11645 2000-01-25  Havoc Pennington  <hp@pobox.com>
11646         
11647         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
11648         arg is boolean
11649
11650         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
11651
11652         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
11653
11654         * gdk/gdkproperty.c (gdk_property_get): return boolean
11655
11656         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
11657
11658         * gdk/gdkim.c (gdk_im_ready): return boolean
11659
11660         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
11661
11662         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
11663         glib clash, should fix glib)
11664
11665         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
11666         (gdk_get_show_events): return gboolean, and canonicalize 
11667         to TRUE/FALSE
11668
11669         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
11670         colormap is private
11671         (gdk_colors_alloc): gboolean whether to be contiguous
11672         (gdk_color_equal): return gboolean since we are a predicate
11673         and not a qsort() (this looks semi-wrong due to glib breakage,
11674         IMO glib should be fixed)
11675         
11676         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
11677         (gdk_get_use_xshm): return gboolean
11678         (gdk_pointer_is_grabbed): return gboolean
11679
11680         * gdk/gdk.h: Change prototypes to match all the above changes,
11681         and re-run egtk-format-protos as required.
11682
11683 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
11684
11685         * gtk/gtkctree.c (resync_selection): 
11686         * gtk/gtkclist.c (resync_selection):
11687
11688         Return immediately if clist->drag_pos < 0. This is a workaround
11689         for the corrupt state that the clist gets into when a
11690         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
11691
11692         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
11693         
11694         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
11695         variable from recent commit.
11696
11697 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
11698
11699         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
11700
11701 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
11702
11703         * gtk/Makefile.am: prefix all autogenerated source that get build in
11704         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
11705         in builddir. since we subsequently cd into srcdir for autogeneration,
11706         the paths have to be stripped from the target file names, thusly we
11707         use $(@F) as target names now.
11708         put a comment about configure.in's --disable-rebuilds option,
11709         which can be used for non-writable source directories, for development
11710         setups though, srcdir has to be *writable*.
11711
11712 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
11713
11714         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
11715           Finish the job of allowing event to be NULL.
11716           (Fixes bug #4283, reported by Chris Blizzard)
11717
11718         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
11719           things so that the cursor appears on screen, properly
11720           take into account INNER_BORDER.
11721           (Fixes bug #4754, reported by Antonio Campos)
11722
11723 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
11724
11725         * gtk/gtknotebook.c (gtk_notebook_map): Don't
11726           show the tab_label unless it itself is visible.
11727
11728           gtk/gtknotebook.c (gtk_notebook_size_request):
11729           Do a better job of making sure that the visibility
11730           of the tab label corresponds to whether it should
11731           be mapped or not.
11732
11733 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
11734
11735         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
11736           Use the requisition, not the allocation, since the
11737           allocation has not necessarily been computed yet.
11738           (Pointed out by Eugene Osintsev)
11739
11740 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
11741
11742         * gtk/gtkstyle.c (gtk_style_new): Dont' set
11743           style/base[GTK_STATE_INSENSITIVE] both to
11744           gtk_default_insensitive_bg!
11745           (Bug #2187, reported by Jonathan Blandford)
11746
11747         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
11748           Add Alt_L, Alt_R to list of invalid accelerators.
11749           (Bug #3736, reported by Vlad Harchev)
11750
11751 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
11752
11753         * gtk/gtkfilesel.c (open_ref_dir): Fix several
11754         bugs which occured after an attempt to open 
11755         invalid home directory left cmpl_state->reference_dir == NULL.
11756
11757          - completion on files in home directory didn't work
11758          - completion on an empty string caused  segfault
11759
11760          (Bug #3678, reported by Steve Ratcliffe)
11761
11762         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
11763         cut and paste error that was causing scales to
11764         be incorrectly positioned.
11765         (Bug #2956,
11766          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
11767
11768 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
11769
11770         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
11771         when checking for dcgettext, if we've found we needed
11772         it for dgettext.
11773 +
11774 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
11775
11776         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
11777         queue_clear on NO_WINDOW widgets during a reparent,
11778         since at that point the window and widget heirarchies
11779         are out of sync. This stops crashing in some cases
11780         (the scrolled window reparent test, for instance), and
11781         _probably_ won't cause drawing errors.
11782
11783         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
11784         test do what it was supposed to do and be robust against
11785         window closings, etc. (Bug #2443)
11786
11787 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
11788
11789         * gtk/gtkentry.c: Fix return values on mouse events.
11790         (Bug #2686, Sky <seb_sky@yahoo.com>)
11791
11792         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
11793         (pointed out by George Lebl)
11794
11795         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
11796         (From Ettore Perazzoli  <ettore@helixcode.com>)
11797  
11798 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
11799
11800         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
11801         clicks between rows or outside calender area correctly.
11802         (Patch from Damon Chaplin)
11803
11804         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
11805         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
11806           Call destroy function when overwriting existing data. 
11807           (Pointed out by Damon Chaplin)
11808
11809 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
11810
11811         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
11812           which was causing problems on various systems with Xmu.
11813           This hasn't been needed for a very long time.
11814           (Fixes #1185 3167)
11815
11816 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
11817
11818         * gdk/gdki18n.h: Include <ctype.h> when defining
11819           gdk_isw* in terms of is* as a fallback.
11820           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
11821
11822 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
11823
11824         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
11825           realize the widget when it is size allocated!
11826           (old, old bug)
11827
11828         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
11829           Removed unused call to gdk_window_get_size() that
11830           showed up when the above was fixed.
11831
11832 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
11833
11834         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
11835           fix up widget->window when the widget is a
11836           NO_WINDOW container widget.
11837
11838 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
11839
11840         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
11841           to account for the fact that feof() does _not_ 
11842           return TRUE on errors, and thus avoid infinite loops
11843           when trying to use gdk_pixmap_create_from_xpm()
11844           on unreadable values.
11845
11846 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
11847
11848         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
11849
11850 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
11851
11852         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
11853           gdk_gc_set_dashes to take gint8 instead of gchar to
11854           make it clearer that it is _not_ a NULL terminated string.
11855
11856         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
11857           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
11858           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
11859           arguments.
11860
11861 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
11862
11863         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
11864         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
11865         background size relative to our allocation, guard against small
11866         allocations, we may have not yet been size allocated.
11867
11868 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
11869
11870         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
11871         not just version == 3. We implement all 3 + most of 4 - 
11872         (we don't support matching text/plain;charset=iso-8859-1
11873         to a dest that expects text/plain). We'll still advertise
11874         3 to be safe, but any client implementing version >= 3
11875         must interoperate with 3.
11876         
11877 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
11878
11879         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
11880         background and gc members, add a warning in gtk_tooltips_set_color()
11881         indicating that this function is deprecated.
11882
11883 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
11884
11885         * docs/gtkfaq.sgml: FAQ Update:
11886           - Minor cleanups (Emmanuel, me)
11887           - New questions:
11888                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
11889                 How can I retrieve the text from a GtkMenuItem? (timj)
11890                 How do I validate/limit/filter the input to a GtkEntry? (me)
11891                 Memory does not seem to be released when I free the list
11892                         nodes I've allocated (timj)
11893
11894 2000-03-07  Tor Lillqvist  <tml@iki.fi>
11895
11896         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
11897         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
11898         for which it is no use to call GetLastError onWin9x.
11899         (gdk_other_api_failed) New function, for general error
11900         reporting without calling GetLastError.
11901         (gdk_win32_api_failed) OTOH, this function always calls
11902         GetLastError. (gdk_win32_last_error_string) Remove this function,
11903         GLib has the equivalent now.
11904
11905         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
11906         call them with function name, file name and line number in the
11907         arguments.
11908
11909         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
11910         functions.
11911         
11912         * gtk/gtk.def: Add some missing entry points.
11913
11914         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
11915         gtk_paned_set_gutter_size, which don't exist any longer, as void.
11916         
11917         Fixes by Hans Breuer:
11918
11919         * gdk/makefile.msc: Update for debugging.
11920
11921         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
11922         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
11923         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
11924         in the dash_list.
11925
11926         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
11927         the x11 backend.
11928
11929         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
11930
11931         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
11932
11933 2000-03-04  Tor Lillqvist  <tml@iki.fi>
11934
11935         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
11936         just pixel value of background colour.
11937
11938         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
11939         containing code snippet previously duplicated in a couple of
11940         places.
11941         
11942         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
11943         gdk_colormap_color.
11944
11945         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
11946         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
11947         events for autorepeated Shift, Control and Alt keys. Use
11948         gdk_colormap_color.
11949
11950         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
11951         pointer is inside the window the cursor of which we are setting,
11952         call SetCursor immediately.
11953
11954         * gdk/win32/makefile.cygwin
11955         * gtk/makefile.cygwin: If we don't have the build number stamp
11956         file, use zero.
11957
11958         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
11959         gtk_paned_set_gutter_size as empty.
11960
11961         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
11962         
11963 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
11964
11965         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
11966           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
11967           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
11968           docs/gtk_tut.sgml docs/gtk.texi TODO:
11969
11970           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
11971
11972 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
11973
11974         * gtk/gtkcalendar.c: Implement num_marked_dates,
11975           and don't emit mutiple day_selected signals on
11976           month_prev.
11977
11978 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
11979
11980         * docs/make-todo (lineno): let title and logo be configurable so
11981         that GNOME can use this script too.
11982
11983         * TODO.xml: added logourl and a title
11984
11985 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
11986
11987         * TODO.xml: Added some UI items, and an explanatory
11988         comment at the top of the file.
11989
11990 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
11991
11992         * TODO.xml: some updates, added abunch of new entries.
11993         a note for those fiddeling with this file, when done
11994         with it, invoke:
11995         $ ./docs/make-todo TODO.xml >/dev/null
11996         and correct output errors before comitting changes.
11997
11998 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
11999
12000         * TODO.xml: Added XML-structured TODO file.
12001         * docs/make-todo: python script to turn TODO.xml into
12002           pretty XML output. 
12003
12004 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
12005
12006         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
12007         the function to let it draw the seven dots, instead of the old,
12008         much maligned, method.
12009         (draw_dot): New function to draw a dot.
12010
12011         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
12012         to draw the handle inside the border width as opposed to outside.
12013         Use paint function instead of gdk_draw_point.
12014
12015         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
12016         to draw the handle inside the border width as opposed to outside.
12017         Use paint function instead of gdk_draw_point.
12018
12019         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
12020         Change indenting to be more GTK like.
12021
12022 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
12023
12024         * docs/gtk_tut.sgml: New section on GtkCalendar
12025         * examples/calendar: Update example code
12026
12027 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
12028
12029         * docs/gtkfaq.sgml: FAQ Update
12030
12031 2000-02-19  Anders Carlsson  <andersca@gnu.org>
12032
12033         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
12034         to prevent the scroll event to be propagated upwards.
12035
12036 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
12037
12038         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
12039         OwnerGrabButtonMask from button entries for
12040         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
12041
12042         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
12043         to the event mask (which will result in button/press release
12044         being added to the event mask on Unix) so scrolling works
12045         for layouts in scroll windows.
12046
12047         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
12048
12049         Patch from Anders Carlsson  <andersca@gnu.org> to add
12050         a scroll event.
12051
12052         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
12053         scrolling to the "Test Scrolling" part of testgtk.
12054  
12055         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
12056  
12057         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
12058         it against GDK_SCROLL.
12059  
12060         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
12061         way of mouse wheel scrolling.
12062  
12063         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
12064  
12065         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
12066  
12067         * gtk/gtkmain.c: Removed previous mouse wheel hack.
12068  
12069         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
12070         gdk_event_mask_table.
12071  
12072         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
12073         GdkEventScroll handler.
12074  
12075         * gdk/gdkevents.h: Added GdkEventScroll structure.
12076  
12077 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
12078
12079         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
12080         and Anders Carlsson to change the Paned widgets so that they
12081         can be dragged from anywhere along the length. Also change
12082         the way that this is drawn to make this apparent.
12083
12084         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
12085         from George Lebl to check that option_menu->menu is present
12086         before getting history.
12087
12088 2000-02-14  Tor Lillqvist  <tml@iki.fi>
12089
12090         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
12091         before the assertion for non-NULL segment list.
12092
12093         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
12094         Seems that pattern brushes *must* be 8x8 pixels! At least on my
12095         machine, but it might be display driver dependent. Sigh, so make
12096         sure the stipple is that size. Does Windows suck or what?
12097
12098         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
12099         places.
12100
12101 2000-02-13  Havoc Pennington  <hp@pobox.com>
12102
12103         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
12104         refcount to 1
12105         (gdk_cursor_new): init refcount to 1
12106
12107         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
12108
12109 2000-02-13  Tor Lillqvist  <tml@iki.fi>
12110
12111         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
12112         so that we don't have to do unnecessary settings to the HDC.
12113
12114         * gdk/win32/gdkdrawable-win32.c
12115         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
12116         gdk_gc_predraw.
12117
12118         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
12119         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
12120         GDI paths, call WidenPath to get the outline of the stroken path,
12121         and then fill the outline (with the brush that was built from the
12122         stipple).
12123
12124         * gdk/win32/gdkgc-win32.c: Factor out common code from
12125         _gdk_win32_gc_new and gdk_win32_gc_set_values into
12126         gdk_win32_gc_values_to_win32values. Use correct colour for
12127         SetBkColor() (Until now the code actually used a random colour in
12128         the call to SetBkColor()... but that didn't show up as not many
12129         GDI APIs use the background colour. Pattern (opaque stippled)
12130         brushes do.)
12131
12132         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
12133         gdk_win32_api_failed): New functions for error logging.
12134
12135         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
12136         WIN32_API_FAILED to call them, passing function or file name and
12137         line number.
12138
12139         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
12140
12141         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
12142         GdkColor for foreground and background in GdkGCWin32Data.
12143
12144         * gdk/makefile.cygwin: Link in the resource object separately.
12145
12146         * gdk/win32/rc/gdk.rc
12147         * gtk/gtk.rc (New file)
12148         * gdk/win32/makefile.cygwin
12149         * gtk/makefile.cygwin: Update build number in DLLs automatically,
12150         as in GLib.
12151
12152 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
12153
12154         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
12155         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
12156         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
12157         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
12158         parameters given and cursor->ref_count. coding style fixups.
12159
12160         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
12161         not GtkWidget.
12162         
12163         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
12164         fix up widget macros and add _GET_CLASS() variant.
12165         
12166         * gtk/*.c: some GtkType fixups.
12167
12168 2000-02-09  Tor Lillqvist  <tml@iki.fi>
12169
12170         * gdk/win32/gdkproperty-win32.c
12171         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
12172         were reversed.
12173
12174 2000-02-04  Tor Lillqvist  <tml@iki.fi>
12175
12176         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
12177         g_filename_to_utf8 to convert the font names Windows gives us from
12178         whatever is the default codepage to UTF-8.
12179         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
12180         in the other direction.
12181
12182         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
12183         error in debugging output.
12184
12185 2000-02-02  Tor Lillqvist  <tml@iki.fi>
12186
12187         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
12188         and height parameters to gdk_window_clear_area(). Not minus one.
12189
12190 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
12191
12192         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
12193         checks if the widget passed to gtk_drag_get_data() was not the
12194         dest widget.
12195
12196 2000-02-01  Tor Lillqvist  <tml@iki.fi>
12197
12198         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
12199         g_filename_from_utf8 functions (which were added a moment ago to
12200         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
12201         size buffers.
12202
12203         gtk_file_selection_get_filename returns the filename in the C
12204         runtime encoding. It calls g_filename_from_utf8, but copies the
12205         returned string to a static buffer, which is returned. I think
12206         this is better than returning the result from g_filename_from_utf8
12207         directly, which would mean all apps that use it would have to free
12208         the return value. Or should this function care about this issue at
12209         all? Maybe a new function with clearly defined semantics.
12210
12211         * gtk/gtkfilesel.h: Add comment about
12212         gtk_file_selection_get_filename returning the filename in the C
12213         runtime's encoding.
12214
12215         * README.win32
12216         * gdk/gdk.def
12217         * gdk/makefile.{cygwin,msc}
12218         * gtk/gtk.def: Updates.
12219
12220         * gdk/gdkcursor-win32.c: Initialise refcount.
12221
12222 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
12223
12224         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
12225
12226 2000-01-30  Havoc Pennington  <hp@pobox.com>
12227
12228         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
12229         destroy
12230
12231         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
12232
12233         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
12234         implemented in platform-specific code
12235
12236         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
12237
12238         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
12239         underscore in front
12240
12241         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
12242         put an underscore in front
12243
12244         * gdk/gdkcursor.c: new file, implements
12245         gdk_cursor_ref/gdk_cursor_unref
12246
12247         * gdk/gdkcursor.h: Refcount GdkCursor
12248
12249         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
12250
12251 2000-01-29  Tor Lillqvist  <tml@iki.fi>
12252
12253         * gdk/gdkwindow.h
12254         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
12255
12256 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
12257
12258         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
12259         structures to properly inherit from GtkWidget not GtkBin.
12260
12261 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
12262
12263         * gtk+.spec.in: Added lib/gtk+/include/* to %files
12264         (bug #5178 - Peter Wainright)
12265         
12266         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
12267         so that it will be installed.
12268         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
12269
12270 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
12271
12272         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
12273         for the GtkStyleClass vtable const.
12274
12275         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
12276         take a const string argument like GtkTranslateFunc. This will
12277         require changes in use code.
12278
12279 2000-01-19  Tor Lillqvist  <tml@iki.fi>
12280
12281         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
12282         semantics (to mimic the X11 backend, which just calls XClearArea)
12283         is to check for zero width (and height), and in that case use the
12284         window's width minus x (height minus y). This fixes for instance
12285         some redraw problems with gtkclist, which were easily noticeable
12286         in the gtk file selection widget.
12287
12288         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
12289         windows.
12290
12291 2000-01-13  Tor Lillqvist  <tml@iki.fi>
12292
12293         * configure.in
12294         * gdk/Makefile.am
12295         * gdk/x11/Makefile.am
12296         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
12297         (bug #5177).
12298         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
12299         out later.
12300
12301 2000-01-09  Tor Lillqvist  <tml@iki.fi>
12302
12303         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
12304         WM_MOVE for iconified or invisible windows. This fixes various
12305         problems when minimising windows. Thanks to Bernd Herd.
12306
12307 2000-01-05  Tor Lillqvist  <tml@iki.fi>
12308
12309         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
12310         backend's draw_lines method, not draw_points.
12311
12312 2000-01-02  Tor Lillqvist  <tml@iki.fi>
12313
12314         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
12315         before Owen's reorganisation: Don't have queued_events and
12316         queued_tail statics in this file, but use gdk_queued_events and
12317         gdk_queued_tail. This makes exposure event compression work again.
12318
12319         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
12320         seem to be needed?
12321
12322 1999-12-30  Tor Lillqvist  <tml@iki.fi>
12323
12324         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
12325         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
12326         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
12327         doesn't do anything.
12328
12329         * gdk/gdk.def: Add gdk_xid_table_insert.
12330
12331         * gdk/win32/gdkprivate-win32.h
12332         * gdk/win32/gdkevents-win32.c
12333         * gdk/win32/gdkinput-win32.c
12334         
12335         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
12336         extension_events field in the GdkWindowWin32Data struct. Use only
12337         the extension_events field in GdkWindowPrivate. Previously one was
12338         set, and the other one tested, which broke tablet
12339         functionality. Thanks to Keishi Suenaga for pointing this out.
12340
12341 1999-12-18  Tor Lillqvist  <tml@iki.fi>
12342
12343         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
12344         When handling a single character (text length == 1), don't handle
12345         it as if it was UTF-8.
12346
12347 1999-12-11  Tor Lillqvist  <tml@iki.fi>
12348
12349         * Makefile.am: Distribute README.win32.
12350         
12351         * gdk/Makefile.am
12352         * gdk/win32/Makefile.am: Distribute Win32 files.
12353
12354         * gdk/makefile.msc: New file.
12355
12356         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
12357         after label).
12358
12359         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
12360         gdk_error_code as GDKVAR, as they are referred outside GDK.
12361
12362         * gdk/win32/makefile.msc: Update.
12363
12364         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
12365         tweaks. Check only if at least one of those Unicode subrange bits
12366         we care for is set. If no code page bits are set, guess (wildly)
12367         based on the charset.
12368
12369         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
12370
12371         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
12372         non-NULL.
12373
12374         * gtk/gtkdnd.c
12375         * gtk/gtklayout.c
12376         * gtk/gtkplug.c
12377         * gtk/gtkselection.c
12378         * gtk/gtksocket.c
12379         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
12380         appropriate. There must be a cleaner way to handle this?
12381
12382         * gtk/gtkrc.c: Must include windows.h on Win32.
12383
12384         * gtk/testgtk.c: No need to include gdkx.h.
12385
12386         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
12387
12388 1999-12-07  Tor Lillqvist  <tml@iki.fi>
12389
12390         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
12391         the rbearing is set to the same as the width, but this should be
12392         fixed.
12393
12394 1999-12-06  Tor Lillqvist  <tml@iki.fi>
12395
12396         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
12397         function. If Windows doesn't tell us what Unicode subranges a font
12398         covers, guesstimate based on the codepages it covers. This will
12399         hopefully help those Windows versions or fonts that don't give us
12400         any useful Unicode subrange information with GetTextCharsetInfo.
12401         Call this function in gdk_font_load_internal.
12402
12403         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
12404         minor changes.
12405
12406 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
12407
12408         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
12409         New function, long needed.
12410
12411 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
12412
12413         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
12414         only_if_exists argument of gdk_atom_intern to
12415         bool.
12416
12417 1999-11-25  Tor Lillqvist  <tml@iki.fi>
12418
12419         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
12420         Fix two copy&paste errors.
12421
12422         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
12423         win32 has changed.
12424
12425         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
12426         GdkWin32SingleFont struct.
12427
12428         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
12429         subranges of loaded fonts. Clear font signature first, in case
12430         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
12431         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
12432
12433         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
12434         Unoffset clip region.
12435
12436 1999-11-23  Tor Lillqvist  <tml@iki.fi>
12437
12438         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
12439         event->any.window before calling filter functions.
12440
12441 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
12442
12443         * gtk/gtkgamma.h: Adapt cast macros to standard.
12444
12445 [ Merges from 1.2 ]
12446
12447 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
12448
12449         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
12450         If translation does not include a '/', use entire
12451         translation instead of crashing.
12452
12453 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
12454
12455         * docs/gtk_tut.sgml:
12456         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
12457
12458 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
12459
12460         * gtk/gtkselection.c (gtk_target_list_remove): Use
12461         g_list_remove_link, not g_list_remove.
12462
12463         [ From Geert Bevin <gbevin@thunderstorms.org> ]
12464         
12465 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
12466
12467         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
12468         statement upon unselection (how the heck did that slip in?).
12469
12470 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
12471
12472         * gtk/gtktext.c (gtk_text_freeze): 
12473         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
12474         in frozen state (and aparently crashes). patch provided by Anders
12475         Melchiorsen <and@kampsax.dtu.dk>.
12476
12477 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
12478
12479         * fix insensitive default/focus widget activation,
12480         reported by Matt Goodall <mgg@isotek.co.uk>.
12481
12482         * gtk/gtkwindow.c (gtk_window_key_press_event): 
12483         (gtk_window_activate_default):
12484         (gtk_window_activate_focus):
12485         return handled=FALSE for actiavtion of insensitive default
12486         widgets. return handled=TRUE for activation of insensitive
12487         focus widgets. don't activate in either case.
12488
12489 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
12490
12491         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
12492         and $glib_cflags to match library order and in the
12493         theory that an old version of GLib is more likely to
12494         be in the include directory for X then vice-versa.
12495         (Bug #2776)
12496
12497 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
12498
12499         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
12500         to determine the locale for fontsets, not LC_MESSAGES;
12501         the user may want English messages with a handling
12502         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
12503         will still be broken) (Bug #2891)
12504
12505 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
12506
12507         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
12508
12509 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
12510
12511         * gtk/gtkrc.ko: Changed the Korean default fontset.
12512
12513 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
12514
12515         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
12516         where when scrolling to the left or top double exposes
12517         were done, causing major slowdowns.
12518
12519 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
12520
12521         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
12522         names to lowercase and alphanumeric, before looking
12523         them up.
12524
12525         * gtk/Makefile.am: Install codeset variant gtkrc files
12526         with normalized names.
12527
12528 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
12529
12530         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
12531         popup menus when the menu is already visible, but its parent
12532         is still hidden, (happens after tornoff window got hidden).
12533
12534 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
12535
12536         * gtk/Makefile.am (install-data-local): Fix
12537         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
12538         deleted, causing error messages on install.
12539
12540 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
12541
12542         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
12543         the handle as well, since we now sometimes ignore
12544         exposes on the handle while resizing.
12545
12546 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
12547
12548         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
12549         extra g_free introduced in one of the last one or two 
12550         commits.
12551
12552 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
12553
12554         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
12555         consistent, put each style that a gtkrc.* file creates
12556         in a unique namespace, remove old files before installing.
12557
12558 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
12559
12560         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
12561         gtk_rc_init is called multiple times. (Yes, people who
12562         do that have bugs in their code.)
12563
12564 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
12565
12566         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
12567         Remove it since it's generated by the Makefile anyway
12568
12569 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
12570
12571         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
12572         device->info.axes for core pointer.
12573
12574 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
12575
12576         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
12577         idle_id, to deal with obsolete, broken C libraries.
12578
12579 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
12580
12581         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
12582         allocation->x/y twice!
12583
12584         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
12585         consistent with gtk_vscale_pos_trough().
12586
12587 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
12588
12589         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
12590         be queueing a resize on a toplevel container between
12591         the time we show it and when we map it. So, we need
12592         to test GTK_WIDGET_VISIBLE() for toplevels, and only
12593         use GTK_WIDGET_DRAWABLE() for child windows.
12594
12595 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
12596
12597         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
12598         (fixes bug #2144)
12599
12600 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
12601
12602         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
12603         container DRAWABLE (instead of VISIBLE), so we don't queue
12604         resizes on non-toplevel containers.
12605
12606 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
12607
12608         * gtk/gtkselection.[ch]: Make the data argument
12609         const guchar *.
12610
12611 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
12612
12613         * gtk/gtkwindow.c: Try to behave sensibly if 
12614         the focus widget is the window itself. (Should
12615         we allow this at all?)
12616
12617 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
12618
12619         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
12620         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
12621         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
12622         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
12623         in prototypes and implementations consistent (Tomas Ogren).
12624
12625         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
12626         before the widget is unparented (reported by damon).
12627
12628         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
12629         since we provide unsigned data anyways.
12630
12631 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
12632
12633         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
12634         the call to gtk_tooltips_layout_text() until later.
12635
12636         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
12637         Call gtk_widget_ensure_style() before using the style.
12638
12639 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
12640
12641         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
12642         for old widgets that don't propagate draws to all
12643         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
12644
12645 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
12646
12647         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
12648         for a redraw but just the widget that requested the resize.
12649
12650 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
12651
12652         * gtk/gtkcontainer.c: added new widget level method
12653         gtk_container_set_reallocate_redraws() and a GtkContainer flag
12654         reallocate_redraws : 1 to reflect the setting, exported this through
12655         the argument system as a boolean ::reallocate_redraws.
12656
12657         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
12658         on the widget because the allocation changes, do so as well for
12659         widget->parent if the parent has reallocate_redraws set to TRUE.
12660         with that containers requesting reallocation redraws get automatically
12661         redrawn if their children changed allocation (this unfortunately
12662         affects also other children that didn't change allocation, but we
12663         cannot work around that before 1.3).
12664
12665 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
12666
12667         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
12668         _and_ height are >0 (not _or_).
12669
12670         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
12671         instead of gtk_container_queue_resize(), which is a core gtk internal
12672         function (must have been on crack when i queued that).
12673
12674         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
12675         we can check more reliably if we want to discard expose events.
12676         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
12677         flag.
12678         
12679         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
12680         we simply trust these events. for deciding whether to discard exposes,
12681         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
12682         
12683 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
12684
12685         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
12686         queues of areas that are completely off screen.
12687
12688         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
12689         logic for handleboxes.
12690
12691         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
12692         check on width/height.
12693
12694 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
12695
12696         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
12697         we are fine with using $@ the way we do (if we actually encounter
12698         brokeness with $@ in VPATH builds because of additional path prefixes,
12699         we need to use $(@F) actually).
12700
12701 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
12702
12703         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
12704         short lived bugs, that would allow language bindings to do surgeries
12705         to our guts.
12706
12707 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
12708
12709         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
12710         where comparison was being done against an uninitialized
12711         value causing intermittant results depending on
12712         compiler flags. Also make it clearer that we aren't
12713         ever initializing the child as 0x0 (though this will
12714         be caught in gtk_widget_size_allocate())
12715
12716 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
12717
12718         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
12719         gtk_window_unset_transient_for() call after we do checks
12720         involving the old transient parent.
12721         [ From Lance Capser <lmc@cyberhighway.net> ]
12722
12723 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
12724
12725         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
12726         an empty file.
12727
12728 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
12729
12730         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
12731         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
12732
12733 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
12734
12735         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
12736         `$@' is valid only in the build dir, not after we've done 
12737         `cd $srcdir'.  Also use `test -f' instead of less portable
12738         `test -e'.
12739
12740 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
12741
12742         * gtk/gtktext.c (correct_cache_insert): Rewrite
12743          for simplicity, and hopefully correctness.
12744          (Fixes bug #1322, which was a segfault when
12745           on some insertions with the properties around
12746           the insertion set up just wrong.)
12747
12748         * gtk/gtktext.c (gtk_text_adjustment): When we receive
12749          a "changed" signal, clamp the new value to the adjustment
12750          bounds to avoid segfaulting if someone tries to change
12751          the adjustment to a bogus value. (Bug #1795)
12752
12753 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
12754
12755         * gtk/gtkmain.c: Ignore unexpected destroy notifies
12756         for children, for toplevel windows handle them
12757         like delete_event.
12758
12759         * gtk/gtkplug.c: Add an unrealize handler so that
12760         we unref plug->socket_window when we are done
12761         with it.
12762
12763 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
12764
12765         * gtk/gtktext.c (clear_area): Fix stupid signedness
12766          problem that was causing background to sometimes
12767          be misaligned.
12768
12769 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
12770
12771         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
12772         
12773         * gtk/gtkmenu.c (gtk_menu_position): Make
12774          sure we never position menus with negative x, y,
12775          since gtk_widget_set_uposition() can't handle that.
12776
12777         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
12778          Modify the positioning code a bit so that we always
12779          put the top-left corner onscreen. (This is for
12780          UI reasons, gtk_menu_position() now takes care of
12781          gtk_widet_set_uposition() brokeness.)
12782
12783 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
12784
12785         * gtk/Makefile.am: fixed up things for -jx, x > 1.
12786
12787 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
12788
12789         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
12790           RC style that is passed in. The lack of the ref
12791           before was a bug. If people worked around this
12792           bug, this will introduce a slight memory leak
12793           in their code. The code should typically look like:
12794
12795             rc_style = gtk_rc_style_new ();
12796             [...]
12797             gtk_widget_modify_style (widget, rc_style);
12798             gtk_rc_style_unref (rc_style);
12799
12800         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
12801           the style if it was already set.
12802
12803         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
12804           style if it was set before.
12805
12806 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
12807
12808         * gtk/testgtk.c (main): Add a check to see if we
12809           are being run from the correct directory and
12810           to quit nicely if we are not.
12811
12812         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
12813           static.
12814
12815 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
12816
12817         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
12818
12819         * gtk/gtkwindow.c:
12820         queue resizes unconditionally (gtk_widget_queue_resize will figure
12821         what to do if the window is not realized).
12822         (gtk_window_move_resize): only recenter the window
12823         for GTK_WIN_POS_CENTER_ALWAYS.
12824         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
12825         the same way as GTK_WIN_POS_CENTER.
12826
12827 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
12828
12829         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
12830         with (!(info->last_flags & GDK_HINT_POS)) instead of
12831         (!info->last_flags & GDK_HINT_POS).
12832
12833         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
12834         new_height unconditionally, because we use these values even if
12835         !default_size_changed && !hints_changed.
12836         comented the (default_size_changed || hints_changed) case with
12837         respect to resize rejects from the window manager.
12838
12839         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
12840         in the zvt condition hack, since this includes the window hints, set
12841         the hints after the handling_resize case.
12842
12843         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
12844         window is initially shown with to the geometry.
12845
12846 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
12847
12848         * gtk/gtkwindow.c (gtk_window_move_resize):
12849         s/size_changed/default_size_changed/g so i know what's
12850         really going on (frying brain on smaller flame now).
12851
12852 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
12853
12854         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
12855         we have size_changed upon handling_resize. this is a gross
12856         workaround for the broken zvt widget and should be removed in
12857         1.3 again (search for FIXME).
12858         Owen provided an accurate comment for this:
12859
12860         /* We could be here for two reasons
12861          *  1) We coincidentally got a resize while handling
12862          *     another resize.
12863          *  2) Our computation of size_changed was completely
12864          *     screwed up, probably because one of our children
12865          *     is broken. It's probably a zvt widget.
12866          *
12867          * For 1), we could just go ahead and ask for the
12868          * new size right now, but doing that for 2)
12869          * might well be fighting the user (and can even
12870          * trigger a loop). Since we really don't want to
12871          * do that, we requeue a resize in hopes that
12872          * by the time it gets handled, the child has seen
12873          * the light and is willing to go along with the
12874          * new size. (this happens for the zvt widget, since
12875          * the size_allocate() above will have stored the
12876          * requisition corresponding to the new size in the
12877          * zvt widget)
12878          *
12879          * This doesn't buy us anything for 1), but it shouldn't
12880          * hurt us too badly, since it is what would have
12881          * happened if we had gotten the configure event before
12882          * the new size had been set.
12883          */
12884
12885 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
12886
12887         * gtk/gtkrc.c: deal properly with the fact that RC
12888           style lists may include rc styles more than once.
12889
12890         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
12891           unused static function.
12892
12893         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
12894           stack of directories of RC files currently being
12895           parsed and implicitely add them to pixmap path.
12896           
12897           This fixes a bug where the directory would get
12898           appended then overwritten by pixmap_path declarations.
12899
12900           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
12901
12902         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
12903           theme's exit function. (Patch from Peter Wainwright,
12904           bug #1454)
12905
12906         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
12907           Add a destroy() handler to take care of removing
12908           group for menu item. (Fixes bug #1197)
12909
12910         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
12911           in warning message.
12912
12913 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
12914
12915         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
12916         roundtrip to figure window's width and height, since we know that
12917         anyways from widget->allocation.
12918
12919 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
12920
12921         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
12922           the hints after we request the new size.
12923
12924 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
12925
12926         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
12927           GTK_WIDGET_REALIZED() assertion - we can compute the
12928           hints before we are realized.
12929
12930         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
12931           hint changing so that we have a value of hints_changed
12932           when we decide whether to constrain the window size.
12933
12934         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
12935
12936         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
12937         change back to G_MAXINT.
12938
12939 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
12940
12941         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
12942         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
12943         contain uncluttered values.
12944         (gtk_window_compute_hints): simply assert that window is realized
12945         and that geometry_info is valid, since we rely on this anyways.
12946         (gtk_window_constrain_size): major cleanups to the code.
12947         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
12948         for the base size, instead of the minimums. use 32767 as max width
12949         and height (like in gtkwindow.c) instead of G_MAXINT.
12950
12951 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
12952
12953         * cleaned up the GtkContainer.need_resize flag handling mess, we
12954         only need to force resize requests when we were prematurely
12955         realized, or our widget tree was modified when we were temporarily
12956         hidden. handling these cases directly upon showing the window (i.e.
12957         while the GdkWindow is still unmapped) avoids the need to wait for
12958         a configure event response and therefore makes the GUI more snappier
12959         and avoids blank windows during the roundtrip.
12960
12961         * gtk/gtkwidget.c:
12962         (gtk_widget_hide): 
12963         (gtk_widget_show): don't queue resizes on toplevels, they know how
12964         to deal with matters.
12965
12966         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
12967         flag directly for not visible resize containers and spare us unecessary
12968         signal emissions.
12969
12970         * gtk/gtkwindow.c:
12971         (gtk_window_realize): if we need to enforce premature size allocation,
12972         queue a container resize so we are correctly resized later on.
12973         (gtk_window_init):
12974         (gtk_window_size_request):
12975         don't freak around with the ->need_resize flag,
12976         gtk_container_queue_resize() will care about that.
12977         (gtk_window_show):
12978         handle initial resizing issues here, we can handle matters better in
12979         this place, especially since we know that our GdkWindow is still
12980         unmapped.
12981         (gtk_window_move_resize):
12982         don't care about ->need_resize at all.
12983         handle size changes properly that occoured while we waited for a
12984         configure event.
12985
12986 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
12987
12988         * gtk/gtkwidget.c (gtk_widget_set_uposition):
12989         * gtk/gtkwindow.[hc] (gtk_window_reposition):
12990         Move the hint setting code from gtk_widget_set_uposition
12991         to here; set the hints so that we respect any previously
12992         set geometry hints.
12993
12994         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
12995         change the window hints here or move the window here,
12996         let that happen in gtk_window_move_resize().
12997
12998 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
12999
13000         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
13001         to already queued resizes (and therefore redraws) on a widget, check
13002         its anchestry as well.
13003
13004         * gtk/gtkcontainer.c:
13005         (gtk_container_queue_resize): clear resize widgets for resize
13006         containers before aborting prematurely. this is especially important
13007         for toplevels which may need imemdiate processing or their resize
13008         handler to be queued.
13009         (gtk_container_dequeue_resize_handler): added new internal function for
13010         gtkwindow.c.
13011
13012         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
13013         configure event, take possible changes in window position into account
13014         as well.
13015         if we request a new window size, queue up a resize handler that will
13016         last until the configure event response arrives.
13017         combined the ->need_resize case (initial show) with the general size
13018         (hints) changed case and added even more comments.
13019         if !auto_shrink, only revert to the old allocation if the new size
13020         is smaller than the current allocation.
13021
13022 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
13023
13024         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
13025                            gtk_window_set_geometry_hints
13026                            gtk_window_set_default_size):
13027         When hints are set, queue a resize so that the hints will
13028         be eventually reset on the toplevel.
13029
13030         * gtk/gtkwindow.c (gtk_window_show): Use
13031         gtk_window_compute_default_size(). Clear the need_resize flag
13032         on the initail map so that we don't unnecessarily trigger the
13033         resize code.
13034
13035         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
13036         into separate functions. Compare the hints we are setting
13037         with what we set last time so that we can accurately
13038         tell when we need to reset the hints.
13039
13040         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
13041         function to figure out the size from requisition
13042         and default_size.
13043
13044         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
13045         from fvwm to constrain a size to the geometry hints.
13046
13047         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
13048         to compare two sets of geometry hints.
13049
13050         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
13051         from gtk_window_set_hints(), just compute the hints,
13052         don't set them.
13053
13054         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
13055         code from gtk_window_move_resize() to separate function,
13056         rationalize a bit.
13057
13058 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
13059
13060         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
13061         structure into a new private structure.
13062
13063         * gtkrc.c: Split GtkRcStyle into public/private.
13064         In the private part, add a list of pointers to the
13065         RcStyle lists this RcStyle participates in.
13066
13067         * gtkrc.c: When a RcStyle is free, remove all
13068         lists referencing it from the 
13069         realized_style_ht hash, and free those lists.
13070         
13071         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
13072         gtk_rc_init(), since that adds the default styles
13073         to the list of parsed RC files again.
13074
13075         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
13076         
13077 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
13078
13079         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
13080         checks that ensure that a widget's allocation is at least 1 in width
13081         and height. (GNOME note: this doesn't affect old panel code anymore,
13082         because GtkSocket will request width and height of at least 1 since
13083         Fri Jul 23).
13084
13085         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
13086         allocated yet (happens if the user realizes the window prematurely),
13087         size request and allocate it.
13088         (gtk_window_size_allocate): guard against guint underflows.
13089
13090 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
13091
13092         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
13093         in gtk_built_sources, so gtk.defs gets built prior to all other
13094         sources.
13095
13096 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
13097
13098         * gtk/Makefile.am:
13099         invoke indent on gtkmarshal.*. 
13100         rewrote source generation rules, use COPYING as oldest source tag for
13101         a piggyback rule to generate all sources from (don't touch it ;).
13102         major cleanups, strip spaces on build rules for GNU Make.
13103
13104         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
13105         source and target files from commandline arguments. don't invoke indent.
13106
13107 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
13108
13109         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
13110         notebook after switch to avoid drawing problems.
13111         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
13112         
13113         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
13114         show them instead. 
13115         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
13116
13117 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
13118
13119         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
13120         notebook after switch to avoid drawing problems.
13121         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
13122         
13123         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
13124         show them instead. 
13125         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
13126
13127 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
13128
13129         * gtk/gtkwindow.c:
13130         we use window->need_resize from configure_event now, to indicate that
13131         the gtkwindow should keep its allocation (e.g. because the user resized
13132         the window through window manager handles). resize_count is now reliably
13133         used to figure whether we got the allocation we requested from the
13134         window manager.
13135         configure events get queued as resizes now, the real stuff (size
13136         computation and allocation) now only goes on in gtk_window_move_resize().
13137         GtkWindow's requisition now contains its *real* requisition (like all
13138         other widgets), *not* taking usize into account.
13139         geometry_info->last_{width|height} is now updated from set_hints() only
13140         so it always contains the last hints we set for the window manager.
13141         made some event handlers return TRUE instead of FALSE.
13142         the overall code should be much more straight forward now, and the
13143         significant code portions are accompanied by comments now.
13144         (gtk_window_set_hints):
13145         removed requisition argument and made it
13146         fetch the requisition through gtk_widget_get_child_requisition.
13147         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
13148         does that now.
13149         (gtk_window_show):
13150         ensure that the widget is realized before calling 
13151         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
13152         ensure that we got properly size requested and allocated before
13153         realization.
13154         (gtk_window_configure_event):
13155         ignore plain window moves, or reallocate the widget tree through the
13156         resize queue otherwise.
13157         (gtk_window_move_resize):
13158         mostly rewrote this function to figure window manager hints more
13159         reliably, coalesce window moves and resizes to reduce configure events
13160         and do actuall size allocations.
13161
13162 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
13163
13164         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
13165         that have a resize pending, because a redraw is already queued for them.
13166
13167         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
13168         hack to clear resize_widgets.
13169
13170         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
13171         for resize containers prior to size allocation. (this is also a bit
13172         ugly, but avoids side effects for stopped emissions and is thus more
13173         reliable).
13174         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
13175
13176         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
13177         function from gtk_tooltips_expose, as we connect to ::expose_event
13178         *and* ::draw now.
13179
13180 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
13181
13182         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
13183         checks.
13184         (gtk_target_list_unref): Likewise.
13185
13186         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
13187
13188 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
13189
13190         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
13191         guard against division by zero. (Fixes bug #1339)
13192
13193 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
13194
13195         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
13196         Prevent the trivial leak of information of allowing
13197         word motion when the entry is not visible.
13198
13199 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
13200
13201         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
13202         modality to error dialog as well as confirmation dialogs.
13203         (Bug #1803, reported by Rosanna Wing Sze Yuen)
13204
13205 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
13206
13207         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
13208         tree->view_lines.
13209         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
13210
13211         * gtk/Makefile.am (install-data-local): Solaris apparently
13212         has various troubles with ln -f; use rm first instead.
13213         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
13214
13215 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
13216
13217         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
13218         use `cp' followed by `rm' (the `rm' was already there).
13219
13220 July 30, 1999 Elliot Lee <sopwith@redhat.com>
13221         
13222         * configure.in: Fix autoconf warnings about cross compilation by
13223         trying to provide sane defaults for AC_TRY_RUN.
13224         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
13225         put them into $(srcdir) when generated. Also add a dependency of
13226         gtksignal.h on gtkmarshal.h for -j builds. 
13227         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
13228
13229 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
13230
13231         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
13232         GDK_THREADS_{LEAVE,ENTER} pair.
13233         (From Paul Fisher <pnfisher@redhat.com>)
13234
13235 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
13236
13237         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
13238         width and height are always >0 (owen).
13239
13240 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
13241
13242         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
13243         change that assured that a widget's allocated with and height are
13244         always >1, since this breaks *buggy* panel code. unfortunately this
13245         back-breaks the gimp's color selector.
13246
13247         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
13248         allocation is always >0 in width and height, before sending the
13249         configure event; this is a *gross* hack to get the gimp back to work.
13250         
13251         * marked both cases with TODO-1.3
13252
13253 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
13254
13255         * gtk/gtktext.c: Don't display wrap indicators when
13256         text is not editable and word wrap is on.
13257
13258 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
13259
13260         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
13261         option menus here as they are not derived from menu shell, assure that
13262         the option menu has a menu we can add items to.
13263
13264 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
13265
13266         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
13267         width/height to (gint) before calculations and check against < 0 to
13268         avoid guint wraparounds.
13269
13270 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
13271
13272         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
13273         width and height is never zero. sanity check both dimensions against
13274         32767 and issue a warning if the allocation is greater than that.
13275
13276 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
13277
13278         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
13279         to g_main_pending() as well.
13280
13281 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
13282
13283         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
13284         call to g_main_iteration() - since that will regrab
13285         GTK+ lock to process events.
13286
13287 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
13288
13289         * gtk/gtkwindow.c
13290         - Regularize with the rest of GTK+ by making widget->requisition
13291           not reflect the set_usize()
13292         - Always recompute geometry hints, then check if they
13293           changed before sending them to the X server. The
13294           previous checks for changes would fail in a number
13295           of circumstances. 
13296
13297 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
13298
13299         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
13300
13301 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
13302
13303         * gtk/gtkdnd.c:
13304         - Code cleanups
13305         - Instantaneously update on modifier key presses
13306         - Allow cancellation of the drag with Escape.
13307
13308 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
13309
13310         * gtk/testgtk.c (create_handle_box): Set the policy
13311         to auto_shrink - otherwise the appearance is rather
13312         strange when flipping between horizontal and vertical.
13313
13314 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
13315
13316         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
13317         (gtk_window_set_default_size): don't change a value if it's < 0.
13318         queue a resize.
13319
13320 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
13321
13322         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
13323
13324 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
13325
13326         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
13327         add an extra "/" when concating "/" + filename.
13328         (From Matt Grossman <mattg@oz.net>)
13329
13330 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
13331
13332         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
13333         for fg_gc if we set it for drawing pixmap.
13334
13335 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
13336
13337         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
13338         
13339         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
13340         already set, call old engine's destroy function and
13341         unref the old engine.
13342
13343 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
13344
13345         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
13346
13347 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
13348
13349         * gtk/gtkaccelgroup.h: mark certain functions as internal.
13350
13351 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
13352
13353         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
13354         expand behaviour changed.
13355
13356         * gtk/gtklabel.c (gtk_label_set_pattern):
13357         (gtk_label_set_justify):
13358         (gtk_label_set_line_wrap):
13359         don't bother invoking queue_clear, the reallocation does
13360         that for us, always free_words so the upcoming resize will
13361         relayout the label's contents.
13362
13363 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
13364
13365         * applied argument implementation patches from Elena Devdariani
13366         <elena@cogent.ca>.
13367
13368         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
13369         ::space_style, ::relief
13370         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
13371         * gtk/gtkpreview.c: ::expand
13372         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
13373         * gtk/gtknotebook.c: ::homogeneous
13374         * gtk/gtklabel.c: ::wrap
13375         * gtk/gtklist.c: ::selection_mode
13376         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
13377         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
13378         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
13379         * gtk/gtkclist.c: ::sort_type
13380         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
13381         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
13382
13383 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
13384
13385         * gtk/gtkstyle.c: Removed ill-thought-out part of last
13386         comment.
13387
13388 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
13389
13390         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
13391         counting right when we have to attach a new style
13392         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
13393
13394         * gtk/gtkstyle.c: Documented the refcounting
13395         peculularities of gtk_style_attach.
13396
13397 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
13398
13399         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
13400         window types.
13401
13402         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
13403         of GTK_TOPLEVEL for creating the window.
13404
13405 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
13406
13407         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
13408         the last argument (reported by Per Winkvist).
13409         
13410 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
13411
13412         Fixes for invisible XOR lines (Frank Loemker
13413         <floemker@TechFak.Uni-Bielefeld.DE>)
13414         
13415         * gtk/gtkclist.c (gtk_clist_realize): Always use
13416         a non-zero pixel for GDK_XOR.
13417
13418         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
13419         Use GDK_INVERT instead of GDK_XOR.
13420
13421 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
13422
13423         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
13424         signals if h/voffsets differ from adjustment values.
13425         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
13426
13427 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
13428
13429         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
13430         ::selection-done emissions up to the topmost menu shell.
13431
13432 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
13433
13434         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
13435         the user data on the window before destroying it.
13436
13437         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
13438         unrealize handler to take care of destroying 
13439         notebook->panel properly. 
13440         (Bug #1198 - Morten Welinder <terra@diku.dk>)
13441
13442         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
13443         of g_new and g_realloc to stop memory leak. (Actually,
13444         we could just use g_realloc(), but I'm not 100% sure
13445         that is portable).
13446         (Bug #1196 - Morten Welinder <terra@diku.dk>)
13447
13448 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
13449
13450         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
13451
13452         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
13453         for fontsets.
13454
13455         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
13456         with bin/button confusion.
13457
13458 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
13459
13460         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
13461         and show how preselection of radio items is done.
13462
13463 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
13464
13465         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
13466         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
13467         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
13468         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
13469         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
13470         * gtk/gtktable.c (gtk_table_attach): 
13471         * gtk/gtklist.c (gtk_list_insert_items): 
13472         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
13473         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
13474         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
13475         * gtk/gtkbin.c (gtk_bin_add): 
13476         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
13477         * gtk/gtkfixed.c (gtk_fixed_put): 
13478         * gtk/gtklayout.c (gtk_layout_put):
13479         general fixups to container_add logic. always realize child if
13480         child->parent is realized, only map the child and queue a resize
13481         if child and child->parent are both visible.
13482
13483 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
13484
13485         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
13486         instead of gtk_container_foreach to walk and unrealize children, so
13487         composite children get also unrealized.
13488         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
13489         (gtk_widget_map): assert that the widget is visible (basic constrain).
13490         (gtk_widget_real_map): assert that the widget is realized (basic
13491         constrain).
13492
13493 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
13494
13495         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
13496
13497 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
13498
13499         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
13500         file for iso-8859-2 locales.
13501
13502         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
13503
13504 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
13505
13506         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
13507          (Pointed out by andy@rz.uni-karlsruhe.de and others).
13508          Remove some suspicious and useless lines. 
13509
13510 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
13511
13512         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
13513         width,height = 0, 0 to mean - here to edge of window,
13514         instead of -1, -1, since the former is all we support.
13515
13516 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
13517
13518         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
13519         when removing from quit_functions list.
13520
13521 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
13522
13523         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
13524
13525 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
13526
13527         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
13528          When redrawing characters on non-visible entry, use appropriate
13529          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
13530
13531 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
13532
13533         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
13534         from drag coordinates.
13535         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
13536         use drag_dest_cell.
13537
13538         * gtk/gtktree (drag_dest_cell)
13539         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
13540         (Bug #1129)
13541
13542 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
13543
13544         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
13545         translate_* fields.
13546         (gtk_item_factory_finalize): invoke translate_notify independant from
13547         translate_data.
13548         (gtk_item_factory_set_translate_func): likewise.
13549         (gtk_item_factory_destroy): only remove ifactory pointer from those
13550         widgets that belong to us (stupid me).
13551
13552 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
13553
13554         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
13555         rc_style list when lookup succeeeds.
13556
13557 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
13558
13559         * gtk/gtkctree.c (resync_selection): 
13560         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
13561         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
13562         bug.
13563
13564 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
13565
13566         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
13567         Add some missing GDK_THREADS_ENTER()/LEAVE around
13568         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
13569
13570 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
13571
13572         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
13573         rather than emit_by_name.
13574
13575         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
13576         on the widget across multiple signal emissions.
13577         (gtk_editable_delete_text): same here.
13578         (gtk_editable_class_init): set widget_class->activate_signal after
13579         editable_signals[ACTIVATE] has been created.
13580
13581 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
13582
13583         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
13584         position here prematurely -- we might not have the
13585         right ->min_position and ->max_position yet.
13586
13587 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
13588
13589         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
13590         Add error traps so if the other end of the connection
13591         dies, we survive.
13592
13593         * gtk/gtkselection.c (gtk_selection_notify): Clean
13594         up properly when selection property retrieval fails.
13595         
13596         * gtk/gtkselection.c (gtk_selection_request): Correctly
13597         reject SelectionRequest notifies where the handler
13598         returns no data.
13599
13600 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
13601
13602         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
13603         when we've previously highlighted.
13604
13605         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
13606         emit two "drag_leave" signals for Motif drops.
13607
13608         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
13609         back the correct status messages when dropping from
13610         Motif onto a proxy window that is rejecting the
13611         drop.
13612
13613 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
13614
13615         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
13616         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
13617         to compare two argument values. added gtk_arg_to_valueloc() to set a
13618         variable from an arg through its location (pointer).
13619
13620         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
13621         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
13622         as gfloat*, uchars are collected as guchar*, ints are collected as
13623         gint*, etc...
13624
13625 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
13626
13627         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
13628         Include <string.h> instead of <strings.h>.
13629
13630         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
13631         (actually, a lot more duplicate includes occur if
13632          you trace through the sequence of #include's)
13633         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
13634         
13635 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
13636
13637         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
13638         gtk-a-higuti-990322-[0-3]
13639
13640         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
13641         that was causing -DX_LOCALE not to work.
13642
13643         * gtk/gtkrc.c (gtk_rc_init):
13644         X_LOCALE will never have LC_MESSAGES defined
13645
13646 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
13647
13648         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
13649         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
13650
13651         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
13652         left/right as well (gtk-michael-980726-0.patch.gz).
13653
13654         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
13655         for pointer values, use gchar instead of char. fixed uline allocation
13656         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
13657         chunks instead of G_ALLOC_ONLY.
13658         (gtk_label_size_request): always alter requisition as passed and leave
13659         widget->requisition alone.
13660         (gtk_label_set_text): allow NULL strings.
13661         (gtk_label_new): likewise.
13662
13663 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
13664
13665         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
13666
13667 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
13668
13669         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
13670         *and* mapped (i.e. drawable).
13671         (gtk_bin_expose): only send exposes to drawable children.
13672
13673         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
13674         (gtk_box_expose): only send exposes to drawable children.
13675
13676         * gtk/gtkhscale.c (gtk_hscale_draw): 
13677         * gtk/gtkvscale.c (gtk_vscale_draw):
13678         hm, this is an ugly one. we first compute the size of our trough area
13679         here (window relative) and then check intersection with the draw_area
13680         which is parent relative because we're a NO_WINDOW widget, so we need
13681         to offset the trough area by allocation.x and allocation.y before the
13682         check. (this must not be done for the background area though, since
13683         that's already computed parent relative).
13684
13685 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
13686
13687         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
13688         unrealize title buttons.
13689
13690 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
13691
13692         * gtk/gtkclist.c (gtk_clist_column_title_passive)
13693         (gtk_clist_column_title_active): 
13694         only connect/disconnect to GtkWidgetClass::event to block mouse events.
13695
13696         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
13697         zero initialize event, removed superfluous gdk_window_get_pointer call
13698
13699         * gtk/gtklist.c (gtk_list_vertical_timeout)
13700         (gtk_list_horizontal_timeout): removed superfluous
13701         gdk_window_get_pointer call
13702
13703 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
13704
13705         * plugging problems reported by "Bruce Mitchener, Jr."
13706         <bruce@puremagic.com> due to a purify session.
13707
13708         * gtk/gtkstyle.c:
13709         (gtk_style_ref): 
13710         (gtk_style_unref): assert ref_count to be > 0.
13711
13712         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
13713         the requisition.
13714         (gtk_clist_set_shift): likewise.
13715
13716         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
13717         adjustments.
13718
13719         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
13720         event before sending it and set send_event to TRUE (which needs to
13721         be done for *all* synthesized events).
13722         (gtk_list_vertical_timeout): likewise.
13723
13724         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
13725         leaks.
13726
13727         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
13728         to TRUE when synthesizing events.
13729
13730 [ *** end of merges from 1.2 *** ]      
13731         
13732 1999-11-21  Tor Lillqvist  <tml@iki.fi>
13733
13734         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
13735         (or copied from gdkconfig.h.win32 on Win32, sigh).
13736
13737         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
13738
13739         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
13740
13741         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
13742
13743         * gdk/gdkconfig.h.win32: New file.
13744
13745         * gdk/win32/makefile.cygwin: Build just a static archive here.
13746
13747         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
13748         for the DLL from the static archive built above.
13749
13750         * gdk/gdk.def: Moved here from the win32 subdirectory.
13751
13752         * gdk/win32/*: Adapt for the changed private struct organisation.
13753
13754         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
13755
13756 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
13757
13758         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
13759         for wheel mice (buttons 4 and 5).
13760
13761 1999-11-18  Tor Lillqvist  <tml@iki.fi>
13762
13763         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
13764         drawables use just the pixel field in the foreground and
13765         background GdkColor of the GdkGC.
13766
13767         gdk_gc_set_{fore,back}ground() are called in the GIMP with
13768         GdkColors containing uninitialized (red,green,blue) fields, and
13769         just the pixel field filled in, and furthermore in the
13770         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
13771         It thus turns out that we really don't need to have the full
13772         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
13773         it later to have just the pixel values.
13774
13775 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
13776
13777         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
13778
13779 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
13780
13781         * docs/gtkfaq.sgml: threads example from Erik Mouw.
13782         New question on GtkLabel background colors.
13783
13784         * docs/gtk_tut.sgml:
13785           - Correct the example code callback
13786             function definitions.
13787           - Update the gtkdial example code, from Frans van Schaik.
13788           - Update setselection.c to current API.
13789
13790         * examples/Makefile examples/*/*.c: Update to code
13791         listed in tutorial.
13792
13793 1999-11-10  Tor Lillqvist  <tml@iki.fi>
13794
13795         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
13796         subrange table (from the "Developing International Software for
13797         WIndows 95 and Windows NT" book) was missing the Hangul syllable
13798         block... Get the loaded font's charset correctly.
13799
13800         (Note that this, and the other *-win32.c files, still really are
13801         the old ones, the win32 subdirectory is not ready for compilation
13802         yet after the reorg.)
13803
13804 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
13805
13806         * gtk/gtkclist.c: Fix off-by-one bug in parameter
13807         check.
13808
13809 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
13810
13811         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
13812         on results of XQueryDeviceState().
13813
13814 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
13815
13816         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
13817         we need to accesss only ->children. We need an accessor
13818         for the children.
13819
13820         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
13821         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
13822         to get rid of gdkx.h include.
13823         
13824         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
13825         and random references to 'None'.
13826
13827         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
13828         Get rid of unused #include <gdk/gdkx.h>
13829
13830         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
13831         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
13832         gdkconfig.h.
13833
13834 1999-11-08  Tor Lillqvist  <tml@iki.fi>
13835
13836         * gdk/win32/gdkdraw.c
13837         * gdk/win32/gdkfont.c
13838         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
13839         following yesterday's changes. (Unrelated to Owen's reorg.)
13840
13841 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
13842
13843         * gdk/x11/gdkinput-gxi.c: Add missing include,
13844           fix GdkWindowPrivate => GdkDrawablePrivate.
13845
13846         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
13847
13848         * gdk/x11/Makefile.am (xinput_sources): Add missing
13849         backslash to fix building with --with-xinput=none
13850
13851 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
13852
13853         Move all X specific code into the x11/ directory.
13854         Aside from shuffling things around, did the following:
13855
13856        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
13857          gdk_arg_context_* - a simple argument parsing system
13858          in the style of popt.
13859
13860        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
13861          gdk/x11/gdkprivate-x11.h:
13862          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
13863          add ->klass and ->klass_data fields. The klass_data
13864          field points to an auxilliary structure that is
13865          windowing system dependent.
13866
13867        * gdk/gdkfont.c: Make most of the measurement functions
13868          simply wrappers around gdk_text_extents().
13869
13870        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
13871          _gdk_font_strlen() function that hides the weird
13872          behavior in gtk+-1.[02] where a string is interpreted
13873          differently for 8-bit and 16-bit fonts.
13874
13875        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
13876          to store common code for synthesizing double/triple
13877          press events.
13878         
13879        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
13880          Make all the function that modify an existing GC
13881          simply wrappers around gdk_gc_set_values().
13882          
13883        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
13884          for throwing out later.
13885
13886        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
13887          GdkImagePrivate and GdkColormapPrivate to have a
13888          windowing system dependent part (GdkFontPrivateX etc.)
13889          that "derives" from the system-independent part.
13890
13891        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
13892          Got rid of the included-source-files for XInput in
13893          favor of automake conditionals. (Which didn't exist
13894          when XInput support was originally added.)
13895
13896        * gdk/gdkrgb.c: Remove the visual id from the debugging
13897          statements since that is X11 specific; print out
13898          type/depth info instead.
13899          
13900
13901 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
13902
13903         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
13904         loading duplicates of hashed fonts.
13905
13906         * gdk/gdk.c (gdk_keysym_convert_case): rename
13907         gdk_XConvertCase to gdk_keysym_convert_case, allow
13908         results to be NULL in the GTK+ style.
13909
13910         * gdk/gdkcompat.h: Started compatibility header
13911         for renames.
13912
13913 1999-11-07  Tor Lillqvist  <tml@iki.fi>
13914
13915         * gdk/win32/gdkprivate.h: New font private structures, related to
13916         fontsets.
13917
13918         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
13919         gdk_font_list_free(). On X11, will just be wrappers to
13920         XListFonts() and XFreeFontNames(). On Win32, the code previously
13921         in gtkfontsel.c is now here.
13922
13923         New function gdk_font_xlfd_create(). On X11 will get the FONT
13924         property of the font (for GDK_FONT_FONTs), or call
13925         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
13926         builds a XLFD style name from the font information in the LOGFONT
13927         struct(s).
13928
13929         New function gdk_font_xlfd_free(), which correspondingly frees the
13930         string returned by gdk_font_xlfd_create().
13931
13932         Implement fontsets on Win32. Add a function that iterates over a
13933         wide char string and calls a callback function for each substring
13934         of wide chars from the same Unicode subrange (and thus probably
13935         available in the same real font).
13936
13937         Improve the XLFD emulation a bit.
13938
13939         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
13940
13941         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
13942         Beta3, WM_IME_CHAR messages don't seem to contain the composed
13943         multi-byte char as with the Active IMM on Win9x. Oh well, handle
13944         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
13945         ImmGetCompositionStringW() to get the composed Unicode chars.
13946
13947         * gdk/win32/gdkgc.c
13948         * gdk/win32/gdkdraw.c: Changes needed because of the font private
13949         struct changes.
13950
13951         * gdk/win32/gdk.def: Add the new functions.
13952
13953 1999-11-04  Tor Lillqvist  <tml@iki.fi>
13954
13955         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
13956         get the Platform SDK to get <dimm.h>.
13957
13958         * gdk/win32/gdkevents.c: More event handling fixes and
13959         simplification. Never generate motion events with is_hint true. We
13960         used to do that on bogus grounds earlier. Windows sends
13961         WM_MOUSEMOVE messages on button events even if the mouse hasn't
13962         moved, ignore these.
13963
13964         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
13965
13966         * gdk/win32/gdkglobals.c
13967         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
13968         the TrackMouseEvent function, and use it.
13969
13970         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
13971         char before calling WideCharToMultiByte in order to get a string
13972         for the window title.
13973
13974         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
13975
13976         * gdk/win32/gdk.def: Remove obsolete functions.
13977
13978         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
13979         /nodefaultlib and /defaultlib switches.
13980
13981         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
13982
13983 1999-10-31  Tor Lillqvist  <tml@iki.fi>
13984
13985         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
13986         EuroSign).
13987
13988         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
13989         same type as GdkWChar, especially on Win32.
13990
13991         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
13992
13993         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
13994         before passing to Windows GDI for drawing etc. Convert to the
13995         system default codepage before passing to Windows as window
13996         titles.
13997
13998         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
13999         support changing input locale on the fly.
14000
14001         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
14002         on-the-fly changes. Convert incoming characters from the current
14003         codepage to Unicode (and then to a UTF-8 multi-byte string) based
14004         on the current input language. Use keysym<->Unicode mapping tables
14005         and functions borrowed from xterm sources.
14006
14007         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
14008         editions of Win9x, use the ActiveX-based Active IMM (Input Method
14009         Manager) if available. IMEs and the Active IMM are available under
14010         the disguise of Chinese, Korean and Japanese support for IE and
14011         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
14012         support is present in all editions (as long as you install it).
14013
14014         Call DispatchMessage from gdk_events_queue() (and thus
14015         gdk_WindowProc()), instead of duplicating the code in
14016         gdk_WindowProc().
14017
14018         Reworked the grab handling and propagation code, factored out
14019         duplicated code snippets into separate functions. Other cleanups,
14020         too.
14021
14022         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
14023         the <dimm.h> header describing the Active IMM.
14024
14025         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
14026         just do the same as for "single" fonts.
14027
14028         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
14029         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
14030         the new keysyms from gdkkeysyms.h.
14031
14032         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
14033         fontset, so that gtkentry uses wide characters.
14034
14035         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
14036         GTk+'s system directory "gtk+", not "gtk".
14037
14038 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
14039
14040         * docs/gtkfaq.sgml: FAQ update
14041
14042 1999-10-21  Tor Lillqvist  <tml@iki.fi>
14043
14044         * gdk/win32/gdkprivate.h: Add more font private data.
14045
14046         * gdk/win32/gdkfont.c
14047         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
14048         fonts and strings. Now works much better. You still have to
14049         have a correct font selected, though. No fontset emulation yet.
14050
14051 1999-10-19  Tor Lillqvist  <tml@iki.fi>
14052
14053         * gtk/maketypes.awk: Use G_OS_WIN32.
14054
14055         * gtk/gtk.def: Add some missing entry points. Also some non-public
14056         ones, but PyGTK porter claims to need them.
14057
14058         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
14059         built-in type generation.
14060
14061 1999-10-14  Tor Lillqvist  <tml@iki.fi>
14062
14063         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
14064         GDK_FONT_FONT fonts (which is all we have for now, we don't
14065         emulate fontsets). The X11 version uses plain XDrawString in that
14066         case, too. The string passed to gdk_draw_text_wc seems to be in
14067         fact (at least, when used by gtkentry and gtktext) either in a
14068         single-byte charset, or a DBCS. Not Unicode.
14069
14070         This fixes the problem in gtkfontsel, where even if you had
14071         selected a font with a non-Latin1 charset (windows-greek, for
14072         instance), the preview still used Latin-1 glyphs.
14073
14074         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
14075         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
14076         (gdk_font_load): Recognize the demibold etc weights, even if we
14077         don't have the corresponding constants in the headers.
14078         (gdk_font_hash_insert): Use same hash mechanism as in the X11
14079         version. Should save font resources a bit, when we don't have
14080         multiple HFONTs for the same font.
14081
14082         * gdk/win32/gdkprivate.h: Add the names field as in the X11
14083         version.
14084
14085 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
14086
14087         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
14088         X values
14089
14090 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
14091
14092         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
14093         layout support (as mentioned on
14094         http://www.jcinteractive.com/gnome-ui/software/widgets/)
14095
14096 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
14097
14098         * gtk/fnmatch.c
14099         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
14100
14101 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
14102
14103         * configure.in (ALL_LINGUAS): Added Galician (gl)
14104
14105 1999-10-05  Tor Lillqvist  <tml@iki.fi>
14106
14107         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
14108
14109         * gdk/win32/gdkcompat.c: New file, actually provide an
14110         implementation for the deprecated functions. (Just temporarily.)
14111
14112         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
14113
14114         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
14115
14116         * gdk/win32/gdk.def gtk/gtk.def: Updates.
14117
14118 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
14119
14120         * configure.in: Added "uk" to ALL_LINGUAS.
14121         
14122 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
14123
14124         * configure.in: correct checking for BeOS check
14125
14126         * gdk/gdktypes.h
14127         * gtk/fnmatch.c
14128         * gtk/gtkfilesel.c
14129         * gtk/gtkitemfactory.c
14130         * gtk/gtkmain.[ch]
14131         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
14132
14133 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
14134
14135         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
14136         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
14137         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
14138         by Bulgarian). 
14139
14140 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
14141
14142         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
14143         Fix a reference to window_private->destroyed.   
14144
14145         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
14146         (ugly) setting of an internal GdkWindow member to use
14147         a _slightly_ cleaner macro.
14148
14149         * gdk/gdkprivate.h: Split GdkWindowPrivate into
14150         GdkDrawablePrivate and GdkWindowPrivate.
14151         Add extra macros for accessing GDK_DRAWABLE_ components.
14152
14153         * *.[ch]: Massive adjustments for the above, use the
14154         new macros in a lot of places.
14155
14156 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
14157
14158         * gdk/gdktypes.h: Make GdkDrawable the base type,
14159         not GdkWindow.
14160
14161 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
14162
14163         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
14164
14165 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
14166
14167         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
14168
14169 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
14170
14171         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
14172         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
14173
14174         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
14175
14176         * docs/gtk-config.1: Now autogenerated.
14177         * docs/Changes-1.4.txt: started
14178         
14179 1999-10-03  Tor Lillqvist  <tml@iki.fi>
14180
14181         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
14182         to #ifdef also here.
14183
14184         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
14185         Owen did to the X11 backend.
14186
14187         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
14188         ScrollWindowEx when blitting inside a window, it can't be correct
14189         in the general case.
14190
14191         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
14192         WM_GETMINMAXINFO is easier.
14193
14194         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
14195         depth equal to the bitspixel value, not the visual's depth.
14196
14197         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
14198         to 24 even if the bitspixel value is 32.
14199
14200         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
14201         need to check for depth==32 when bpp==32, depth will always be 24.
14202
14203 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
14204
14205         * docs/Changes-1.4.txt: Started
14206         
14207         * gtk/Makefile.am (gdk_headers): Include all the new headers.
14208
14209         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
14210         
14211         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
14212         into C file.
14213         
14214         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
14215         header to gdkinputprivate.h.
14216
14217         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
14218         unused since before 1.2.
14219
14220 1999-09-30  Tor Lillqvist  <tml@iki.fi>
14221
14222         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
14223         expand possible hex escapes in the font family (put there by
14224         logfont_to_xlfd if the font name isn't a legal XLFD font family,
14225         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
14226         On Win32, add hex escapes here, too.
14227
14228 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
14229
14230         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
14231         to #ifdef GDK_WINDOWING_X11.
14232
14233 [ Merges from gtk-1-2 ]
14234
14235 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
14236
14237         * configure.in: fixed "GNU Make" check to pass with new make version
14238         3.77.95.
14239
14240 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
14241
14242         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
14243         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
14244         AM_PATH_GTK() macros don't get confused by the -pre1.
14245
14246 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
14247
14248         * configure.in (REBUILD): Change check for perl5
14249           to check explicitely for v >= 5.002. (5.001
14250           does not work with our scripts.)
14251
14252 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
14253
14254         * configure.in: evaluate $PERL for the perl version check. added
14255         --disable-rebuilds to give the user an option to completely disable
14256         any source autogeneration rules.
14257
14258 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
14259
14260         * configure.in: evaluate $ac_make when checking for GNU Make.
14261
14262 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
14263
14264         * docs/Makefile.am: added generation.txt.
14265
14266         * Makefile.am: require automake 1.4, build README from README.in and
14267         INSTALL from INSTALL.in in dist-hook.
14268         
14269         * README.in:
14270         * INSTALL.in: new files to autogenerate README and INSTALL from.
14271
14272         * configure.in: figure whether we have GNU Make
14273
14274         * docs/generation.txt: minor additions/corrections.
14275
14276 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
14277
14278         * docs/gtkfaq.sgml: FAQ Update
14279
14280 July 30, 1999 Elliot Lee <sopwith@redhat.com>
14281         
14282         * configure.in: Fix autoconf warnings about cross compilation by
14283         trying to provide sane defaults for AC_TRY_RUN.
14284
14285 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
14286
14287         * ltconfig
14288         * ltmain.sh: upgrade to libtool 1.3.3
14289
14290 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
14291
14292         * INSTALL: Indicate that the --with-glib= configure
14293         time flag is unsupported.
14294
14295 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
14296
14297         * docs/generation.txt: Added a file that gives
14298         documenation about the autogeneration process for
14299         various autogenerated files.
14300         
14301 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
14302
14303         * configure.in (LIBS): Look for libgmodule in the
14304         right location.
14305
14306 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
14307
14308         * docs/gtk_tut.sgml: Removed references to
14309         code examples in my directory on gtk.org as
14310         they should all be in the tutorial now.
14311
14312         * docs/gtk_tut.sgml: Added sources for dial-test
14313         and scribble-xinput programs that were previously
14314         missing.
14315
14316 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
14317
14318         * TODO: Added entry about menu keyboard navigation, removed
14319         some finished items.
14320
14321 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
14322
14323         * acinclude.m4: Standardize on func_dgettext
14324         not func_gettext, so that the checks for dgettext
14325         actually are paid attention to.
14326
14327 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
14328
14329         * configure.in (LIBS): Add $INTLLIBS into $LIBS
14330         directly, rather than repeating the checks for
14331         gettext.
14332
14333         * INSTALL: Added information about gettext and
14334         NLS support.
14335
14336         * acinclude.m4 (LIBM): Check for dgettext, not
14337         just gettext. This should hopefully fix things wrt
14338         systems with old versions of GNU gettext installed.
14339
14340 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
14341
14342         * configure.in (LIBS): Look for libgmodule in the
14343         right location.
14344
14345 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
14346
14347         * autogen.sh: add --enable-maintainer-mode
14348
14349         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
14350
14351 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
14352
14353         * docs/gtk-config.1.in:
14354           docs/Makefile.am:
14355           configure.in: gtk-config is now generated.
14356
14357         * docs/gtk-config.1: Removed, now generated.
14358
14359 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
14360
14361         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
14362         handle CreateNotify itself, still put out a debuging message for
14363         --gdk-debug=events. made the ReparentNotify debugging message more
14364         verbose.
14365         wrap xcoords translation for ConfigureEvents into an error trap,
14366         a destroy event may already be pending, and in that case, the
14367         actuall coordinate values are not at all critical.
14368
14369 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
14370
14371         * gdk/gdkcc.c: Stop leaking the color_hash all over
14372         the place. Simplify and improve the logic.
14373
14374 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
14375
14376         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
14377         for prototypes and function implementations consistent (reported
14378         by Tomas Ogren).
14379
14380 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
14381
14382         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
14383         send_event set in debugging output.
14384         (gdk_compress_exposures): default initialize the event so we don't
14385         operate on bogus values (namely send_event).
14386
14387 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
14388
14389         * gdk/gdkwindow.c: When we receive an unexpected
14390         destroy notify on one of our windows, don't just
14391         warn about it, also mark our windows as destroyed.
14392
14393 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
14394
14395         * gdk/gdkfont.c (gdk_font_hash_insert): Add
14396           name => font and name => fontset hashes. The 
14397           name => fontset hash is a _big_ win since we
14398           weren't previously caching fontsets at all and loading
14399           fontsets is expensive. The name => font hash
14400           is less of a win, but it does save us from doing
14401           repeated XQueryFont calls on the same font.
14402
14403         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
14404           list so we can remove font/fontset from hash.
14405
14406 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
14407
14408         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
14409           and slightly confusing test. [ XInternAtom (,,TRUE)
14410           will never return None ].
14411
14412 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
14413
14414         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
14415           gdk/gdkwindow.c (gdk_window_set_hints):
14416
14417         Don't omit setting the properties if flags == 0 -
14418         there may be an existing set of properties there
14419         already. (Very old bug. Would it be better to
14420         delete the property instead?)
14421
14422         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
14423           spelling error in comment.
14424
14425 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
14426
14427         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
14428           to avoid stomping over gdk_error_warnings.
14429
14430         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
14431           as (bits_per_pixel + 7) / 8. This gives the same
14432           result as before for multiples of 8, but actually
14433           a "reasonable" value for 1bit or 4bit displays.
14434
14435 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
14436
14437         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
14438         GNU Make.
14439
14440 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
14441
14442         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
14443         discarding configure events.
14444
14445 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
14446
14447         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
14448         refcount is greater than zero.
14449
14450         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
14451
14452         * gdk/gdkfont.c (gdk_font_unref): Likewise.
14453
14454         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
14455
14456         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
14457
14458 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
14459
14460         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
14461         that format 32 => sizeof(item) == 4. It really is
14462         sizeof(long).
14463
14464 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
14465
14466         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
14467         core dump at all on X IO errors, only core dump
14468         if --enable-debug for X errors.
14469
14470 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
14471
14472         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
14473         unknown window:" message. disabled ConfigureNotify discarding code,
14474         because it led to events being processed out of order.
14475
14476 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
14477
14478         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
14479
14480         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
14481         we export this function, supress error warnings and don't reset the
14482         error code in the first half of this function.
14483
14484         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
14485         code (instead of just -1) so gdk_error_trap_pop() reveals something
14486         actually informative about the error that happened.
14487
14488         * gdk/*.c:
14489         don't rely on gdk_error_code being -1 if an error occoured, but just
14490         gdk_error_code != 0.
14491
14492 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
14493
14494         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
14495         pointer *before* invoking the filter function, so we at least don't
14496         crash if a filter is removed that is currently executed. window filters
14497         *really* need to be made truely reentrant at some point.
14498
14499 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
14500
14501         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
14502         PropertyNotify debug messages.
14503
14504 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
14505         
14506         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
14507         
14508         * gdk/gdkim.c: Fix cut-and-paste errors for 
14509         x/y and PreeditAttributes/StatusAttributes.
14510
14511 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
14512
14513         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
14514         G_MAXINT to 2^16 to alleviate overflow problems in
14515         various window managers.
14516
14517 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
14518
14519         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
14520         for fontsets.
14521
14522 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
14523
14524         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
14525         Initialize size_hints.x and size_hints.y because kwm
14526         brokenly pays attention to them.
14527         (Bug #1181 -  Lars Heete <hel@admin.de>)
14528
14529 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
14530
14531         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
14532         return value of gdk_list_visuals(). 
14533         (Bug #1193 - Morten Welinder <terra@diku.dk>)
14534
14535 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
14536
14537         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
14538         XSetIMValues to (void *) when comparing to NULL, to workaround
14539         the problem of some compilers barfing since older X headers don't
14540         have the prototype for it.
14541
14542 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
14543
14544         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
14545         for pseudocolor where colormap->colors was double
14546         allocated.
14547
14548         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
14549         color value in the hash table with the pixel filled
14550         in so when we do later hash table lookups, the color
14551         value is correct.
14552         
14553 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
14554
14555         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
14556         making the call
14557
14558 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
14559
14560         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
14561         pointed out by Morten Welinder <terra@diku.dk>.
14562
14563 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
14564
14565         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
14566           default filter from the list
14567
14568 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
14569
14570         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
14571           default filter from the list
14572
14573 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
14574
14575         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
14576
14577         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
14578         g_strdup_printf instead of calcing the length separately
14579
14580 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
14581
14582         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
14583         that we don't do in many other places. (Fixing duplicate 
14584         #include of config.h)
14585
14586         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
14587         Otherwise, #ifndef XINPUT_NONE check in the latter
14588         doesn't work. (Bug #546)
14589
14590 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
14591
14592         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
14593         "None" case insensitive.
14594
14595 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
14596
14597         * gdk/gdkselection.c: 
14598         Add error traps so if the other end of the connection
14599         dies, we survive.
14600
14601 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
14602
14603         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
14604         dest_xid field into two fields - one for the window
14605         to send in messages, one to indicate the last looked
14606         up window for caching purposes. This is needed, so
14607         that Leave messages get the correct window.
14608
14609 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
14610
14611         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
14612         Fix warning created by people mucking around
14613         with the gsource API.
14614
14615         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
14616         Change mapping between GIOCondition and GdkInputCondition
14617         to match the way the Linux kernel does it. This should
14618         fix problems where closed pipes were no longer signalling
14619         GDK_INPUT_READ on systems with a native poll().
14620
14621 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
14622
14623         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
14624         explicitly for the string "None" - it is in the XPM
14625         spec and some servers treat unknown colors in odd ways
14626         (like asking the user!)
14627
14628 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
14629
14630         * gdk/gdkevents.c: made "->" into a "." of previous change so
14631         it compiles
14632
14633 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
14634
14635         * gdk/gdkevents.c (gdk_compress_exposures): Set the
14636         window field of the event structure before calling
14637         user filters.
14638
14639 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
14640
14641         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
14642         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
14643
14644 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
14645
14646         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
14647         intermediate text property - prevents major memory
14648         leak when gdk_use_mb.
14649         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
14650
14651 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
14652
14653         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
14654         gtk-a-higuti-990322-[0-3]
14655
14656         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
14657         sizeof(wchar_t) != sizeof (GdkWChar)
14658
14659         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
14660         that was causing -DX_LOCALE not to work.
14661
14662         * gtk/gtkrc.c (gtk_rc_init):
14663         X_LOCALE will never have LC_MESSAGES defined
14664
14665         * gdk/gdk.c (gdk_init_check):
14666         Remove --xim-preedit and --xim-status from argv properly.
14667
14668         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
14669         that the client window is present on the X server
14670         before we pass it to the input method.
14671
14672 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
14673
14674         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
14675         if --display is specified on the command line, than
14676         the drag window will not be created on that display.
14677         
14678 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
14679
14680         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
14681         lookups with only_if_exists == TRUE were inserting
14682         bogus values into the atom cache.
14683
14684 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
14685
14686         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
14687         then reset it to NULL.
14688
14689         * gdk/gdkcolor.c:
14690         (gdk_colors_free): 
14691         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
14692         key for g_hash_table_remove() in both functions, this prevents us
14693         from accessing possibly uninitialized portions of a GdkColor structure
14694         where we are only interested in its pixel value.
14695
14696 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
14697
14698         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
14699         font hash table, if we have a GdkFontPrivate entry for this font
14700         already, simply increment its reference count, provided by Olaf Dietsche
14701         <olaf.dietsche+list.gtk@netcologne.de>.
14702
14703 1999-09-21  Tor Lillqvist  <tml@iki.fi>
14704
14705         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
14706         just to be sure.
14707
14708         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
14709         unused variables, leftovers from the X11 version.
14710
14711         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
14712
14713         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
14714         downcase fields on X11.
14715
14716 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
14717         
14718         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
14719         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
14720
14721 1999-09-17  Tor Lillqvist  <tml@iki.fi>
14722
14723         * gdk/win32/gdk.def: Add gdk_threads_mutex.
14724
14725         * gtk/makefile.msc: Correct path to libintl.
14726
14727         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
14728         use of gint vs. int, and gint vs. gboolean in headers and
14729         definitions. Use GtkType for the *_get_type functions. Note that
14730         these changes preserve binary compatibility.
14731
14732         * gdk/gdk.c
14733         * gdk/win32/gdk.c
14734         * gdk/gdk.h: Fix inconsistencies: gint vs int.
14735
14736         * gtk/gtkmain.c
14737         * gtk/gtkclist.c
14738         * gtk/gtkmenufactory.c
14739         * gtk/gtknotebook.c
14740         * gtk/gtkwidget.c: Fix inconsistencies, also gint
14741         vs. gboolean.
14742
14743         * gtk/gtkcolorsel.[ch]
14744         * gtk/gtkcombo.[ch]
14745         * gtk/gtkdrawingarea.[ch]
14746         * gtk/gtkgamma.[ch]
14747         * gtk/gtkhandlebox.[ch]
14748         * gtk/gtkhpaned.[ch]
14749         * gtk/gtkhruler.[ch]
14750         * gtk/gtkplug.[ch]
14751         * gtk/gtkpreview.[ch]
14752         * gtk/gtkruler.[ch]
14753         * gtk/gtksocket.[ch]
14754         * gtk/gtkstatusbar.[ch]
14755         * gtk/gtktoolbar.[ch]
14756         * gtk/gtkvbbox.[ch]
14757         * gtk/gtkvpaned.[ch]
14758         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
14759         functions.
14760
14761         * gtk/gtkgamma.h: Fix bug, missing () in call of
14762         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
14763
14764 1999-09-14  Tor Lillqvist  <tml@iki.fi>
14765
14766         * gdk/gdkcolor.c (gdk_colormap_new)
14767         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
14768         colormap->colors was allocated twice.
14769
14770         * gdk/win32/gdk.c: Remove some unused stuff.
14771
14772         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
14773         colormap.
14774
14775         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
14776         * gtk/gtklabel.h (gtk_label_get_type)
14777         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
14778         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
14779         in a couple of places, not guint.
14780
14781 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
14782
14783         * configure.in,po/et.po: added Estonian language file
14784
14785 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
14786
14787         * configure.in,po/da.po: added Danish file
14788
14789 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
14790
14791         * docs/gtkfaq.sgml: Minor FAQ Update
14792
14793 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
14794
14795         * docs/gtkfaq.sgml: FAQ update
14796
14797 1999-08-27  Tor Lillqvist  <tml@iki.fi>
14798
14799         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
14800         way to get window contents continually refreshed while resizing. I
14801         didn't like the effects myself, so it's not on by default.
14802
14803         * gdk/win32/gdkprivate.h: New flag variable
14804         gdk_event_func_from_window_proc, FALSE by default.
14805
14806         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
14807         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
14808         are passed --gdk-event-func-from-window-proc.
14809
14810         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
14811         and we have am event_func, call it instead of enqueing the event.
14812
14813 1999-08-23  Tor Lillqvist  <tml@iki.fi>
14814
14815         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
14816         Kelley: Set expose_count in GdkEventExposes correctly.
14817
14818         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
14819         MULTIPLE_WINDOW_CLASSES).
14820
14821         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
14822         for bug in NT, apparently NT *does* draw the end pixel, too, in
14823         LineTo with a one-pixel pen, so we don't have to do it ourselves.
14824
14825 1999-08-21  Tor Lillqvist  <tml@iki.fi>
14826
14827         Improvements by Hans Breuer: 
14828
14829         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
14830
14831         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
14832         CS_?REDRAW flags as they cause lots of (late) redraws when "show
14833         window contents while dragging" is turned on. Allocate at least
14834         one unique class for every GdkWindowType. If support for single
14835         window-specific icons is ever needed (eg. Dialog specific), every
14836         such window should get its own class.
14837
14838 1999-08-19  Tor Lillqvist  <tml@iki.fi>
14839
14840         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
14841         error that caused crashes.
14842
14843 1999-08-17  Tor Lillqvist  <tml@iki.fi>
14844
14845         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
14846         window, use ScrollWindowEx, and call UpdateWindow. This prevents
14847         bugs when for instance part of the window was outside the
14848         display. Thanks to Philippe Colantoni for finding and fixing this.
14849
14850 1999-08-16  Tor Lillqvist  <tml@iki.fi>
14851
14852         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
14853         endpoint calculations which were totally wrong. (A little RTFMing
14854         helps a lot ;-)
14855
14856         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
14857         from a separate directory, not from gettext, because of licensing
14858         issues (we want to use the LGPL version).
14859
14860         * README.win32: Mention the intl from glibc vs from gettext issue.
14861
14862 1999-08-13  Tor Lillqvist  <tml@iki.fi>
14863
14864         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
14865         in the key event handling: Now AltGr chars work again. Also,
14866         now Alt-digits are passed up as well as Control-digits.
14867         Pass keypad plus and minus as normal plus and minus.
14868
14869 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
14870
14871         * docs/gtkfaq.sgml: FAQ Update
14872
14873 1999-07-25  Tor Lillqvist  <tml@iki.fi>
14874
14875         * README.win32
14876         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
14877         the Wintab SDK.
14878
14879         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
14880         OK, but getting closer. Guard against bogus tilt data from Wacom
14881         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
14882         enable easier building without Wintab.
14883
14884         * gdk/win32/gdkinput.h
14885         * gdk/win32/gdkevents.c 
14886         * gdk/win32/gdkwindow.c: Minor changes related related to above.
14887         
14888         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
14889         code. As we have just one visual on Win32, no sense to have it in a
14890         table, and no need for the hash table.
14891
14892         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
14893         better on white background.
14894
14895 1999-07-21  Tor Lillqvist  <tml@iki.fi>
14896
14897         * README.win32: Update gcc build instructions. Mention gettext is
14898         GPL.
14899
14900         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
14901         supported cursor size with GetSystemMetrics.
14902
14903         * gdk/win32/gdkfont.c
14904         * gtk/gtkfontsel.c: Guard against some font weight and charset
14905         symbols being undefined (in mingw32 headers).
14906
14907         * gdk/win32/makefile.cygwin
14908         * gtk/makefile.cygwin
14909         * gtk/gtkthemes.c: No longer need to have differently named
14910         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
14911
14912 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
14913
14914         * docs/gtkfaq.sgml: Long awaited FAQ update.
14915
14916 1999-07-15  Tor Lillqvist  <tml@iki.fi>
14917
14918         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
14919         it. Obscure bit manipulation needed.
14920
14921         * gdk/win32/gdkevents.c: Logging.
14922         
14923         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
14924         style (file name include compiler name) for theme engines.
14925
14926 1999-07-13  Tor Lillqvist  <tml@iki.fi>
14927
14928         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
14929
14930         * gdk/win32/gdkevents.c: Fix long-standing bug in key
14931         events. The key.string wasn't zero-terminated, still we strdup'ed
14932         it in gdk_event_copy(). Synthesize crossing events for button
14933         events before possible propagation.
14934
14935         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
14936
14937         * gdk/win32/makefile.cygwin
14938         * gtk/makefile.cygwin: Use new DLL naming style for the
14939         GCC-compiled ones.
14940
14941         * gdk/win32/makefile.msc
14942         * gtk/makefile.msc: Cosmetics mostly.
14943
14944         * gtk/gtk.def: Add missing entry points.
14945
14946         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
14947
14948 1999-07-09  Tor Lillqvist  <tml@iki.fi>
14949
14950         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
14951         or height is zero. Don't print a warning if Pie or Arc fails, they
14952         always fail (?) for very narrow ellipses.
14953
14954         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
14955         the part or the destination window corresponding to source area
14956         outside of the source drawable's boundary.
14957
14958         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
14959         anything if less than two points.
14960
14961         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
14962         return NULL. Gtk cut-and-paste inside a single program works
14963         better this way. (It always gets the clipboard contents from
14964         Windows, not from its own copy, which is cleared anyway. I can't
14965         say I fully understand what happens... Emulating the X selection
14966         and property stuff is a bit of a mess.)
14967
14968         * gdk/win32/gdkevents.c
14969         * gdk/win32/gdkproperty.c: A bit more verbose logging.
14970
14971         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
14972         that never got deleted). Revamp gdk_region_shrink.
14973
14974         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
14975         after use.
14976
14977         * gtk/gtk.def: Add some missing entry points.
14978
14979         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
14980         component.
14981
14982 1999-07-04  Tor Lillqvist  <tml@iki.fi>
14983
14984         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
14985         Control-digits specially.
14986
14987 1999-07-03  Tor Lillqvist  <tml@iki.fi>
14988
14989         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
14990
14991 1999-06-28  Tor Lillqvist  <tml@iki.fi>
14992
14993         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
14994         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
14995         finding this.)
14996
14997 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
14998
14999         * gtk+.spec.in: Corrected some typos in files section.
15000         
15001 1999-06-15  Tor Lillqvist  <tml@iki.fi>
15002
15003         * README.win32: Mention using GNU gettext.
15004         * config.h.win32: Enable NLS stuff.
15005         * gtk/makefile.msc: Use GNU gettext.
15006         * gdk/win32/gdkdnd.c: Minor header reorg.
15007         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
15008         cosmetics.
15009         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
15010         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
15011
15012 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
15013
15014         * acinclude.m4
15015         * config.guess
15016         * config.status
15017         * ltconfig
15018         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
15019
15020 1999-05-30  Tor Lillqvist  <tml@iki.fi>
15021
15022         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
15023         SafeAdjustWindowRectEx. Don't override all calls to
15024         AdjustWindowRectEx by it, but use it only in two places: When
15025         creating a new top-level window and when moving a top-level
15026         window.
15027
15028         Use screen coordinate rectangle, not client rectangle, in
15029         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
15030         when we try to place a window so that the decoration (mainly,
15031         title bar) isn't visible.
15032
15033         These changes fix the bug that showed up for instance as the
15034         GIMP's saved top-level windows moving right and down (by an amount
15035         equal to the window decoration) for each session. This bug showed
15036         up also in testgtk's "Saved Position".
15037
15038         gdk_window_resize also redone a bit.
15039
15040 1999-05-25  Tor Lillqvist  <tml@iki.fi>
15041
15042         * gtk/testgtkrc: Add (commented out) Windows-style theme
15043         include line.
15044
15045         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
15046
15047 1999-05-18  Tor Lillqvist  <tml@iki.fi>
15048
15049         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
15050         gdkx.h to a gdk subdirectory, so that applications can include
15051         these with <gdk/*.h> without trouble.
15052
15053         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
15054         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
15055         have their bitmap destroyed.
15056
15057         * gdk/win32/gdk.def: Add gdk_root_parent.
15058
15059 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
15060
15061         * configure.in
15062           gtk-config.in
15063           ltconfig
15064           ltmain.sh     
15065           gtk/Makefile.am: changes to compile nicely (with xlib) 
15066           on BeOS
15067
15068 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
15069
15070         * acinclude.m4
15071         * config.guess
15072         * config.sub
15073         * ltconfig
15074         * ltmain.sh: upgrade to libtool 1.3
15075
15076 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
15077
15078         * gtk/gtkclist.c:
15079         * gtk/gtkctree.c: merges from gtk-1-2
15080
15081 1999-04-25  Tor Lillqvist  <tml@iki.fi>
15082
15083         Support added for building using a GNU toolchain on Win32,
15084         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
15085
15086         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
15087         * config.h.win32: Changes for gcc.
15088         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
15089         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
15090         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
15091         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
15092         Protect shl stuff unavaiilable with mingw32 headers.
15093         * gdk/win32/gdkevents.c: Fix typo.
15094         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
15095         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
15096         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
15097         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
15098         the mingw32 headers.
15099         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
15100         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
15101         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
15102         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
15103         Test for NATIVE_WIN32, not _MSC_VER.
15104         * gtk/gtkmain.c: No use warning about developer version on Win32,
15105         there aren't any non-developer versions anyhow.
15106         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
15107         * gtk/makefile.msc: Use pthread from another directory. Minor other
15108         changes. 
15109
15110 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
15111
15112         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
15113           default filter from the list
15114
15115 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
15116
15117         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
15118          when gtk_widget_grab_default() is called for a widget that
15119          is not within a GtkWindow.
15120
15121 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
15122
15123         * docs/gtk_tut.sgml, examples/clist.c: use a
15124           scrolled window in the clist example. Minor
15125           tutorial fixes.
15126
15127 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
15128
15129         * docs/gtk_tut.sgml: Style check from David King
15130           <dking@youvegotmail.net>
15131
15132 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
15133
15134         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
15135         compile with unknown value of GDK_WINDOWING
15136
15137 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
15138
15139         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
15140         after the rule is fired.
15141         (install-exec-local): Install gdkconfig.h only if the contents are
15142         different from the currently installed gdkconfig.h.
15143
15144 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
15145
15146         * gdk/Makefile.am (configexecincludedir): Rename from 
15147         configincludedir so that gdkconfig.h will be installed 
15148         as part of `make install-exec'. 
15149
15150 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
15151
15152         * acinclude.m4
15153         * config.guess
15154         * config.sub
15155         * ltconfig
15156         * ltmain.sh: upgrade to libtool 1.2f
15157
15158         * autogen.sh: libtool is not required to autogen gtk+
15159
15160         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
15161         needed)
15162
15163 1999-03-18  Tor Lillqvist  <tml@iki.fi>
15164
15165         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
15166         declaring gdk variables exported/imported from the DLL. New image
15167         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
15168         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
15169         GDK_DRAG_PROTO_OLE2.
15170
15171         * gdk/gdk.h: Merge in Win32 version: Two new functions,
15172         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
15173         declared only for the Win32 version, but could be in the X11
15174         version as well. (Needed for a Xlib-less gdk_imlib.)
15175         gdk_color_hash should have only one parameter. Declare
15176         gdk_threads_mutex with GDKVAR.
15177         
15178         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
15179         just one parameter.
15180
15181         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
15182         per pixel, not bits.
15183
15184         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
15185         Fetch bpp (which means bits-per-pixel here) from another place on
15186         Win32. Accept also depth==32 (which we might get on Win32) with
15187         bpp==32.
15188
15189         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
15190         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
15191         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
15192         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
15193         in the backend-dependent directory, not in the common gdk
15194         directory.
15195
15196         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
15197         headers.
15198
15199 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
15200
15201         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
15202         want to use the Gtk+ devel version (which is true, and yes - even i am
15203         currently working with the 1.2.x branch). so everyone reading this, you
15204         probably want to issue
15205         cvs checkout -r glib-1-2 glib
15206         and
15207         cvs checkout -r gtk-1-2 gtk+
15208         as your next two comands.
15209
15210 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
15211
15212         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
15213         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
15214
15215         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
15216         file. strongly deprecated the GTK_HAVE_* macros, we provide
15217         GTK_CHECK_VERSION() for people that need to check for certain
15218         Gtk+ versions.
15219
15220         * gtk/gtkcompat.h: removed this from CVS.
15221         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
15222         idea right from the start, it just didn't seem like that back then.
15223
15224 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
15225
15226         * merges from gtk-1-2:
15227
15228 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
15229
15230         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
15231         item factory class has been created.
15232         (gtk_item_factory_parse_rc): likewise.
15233
15234         * gtk/gtkmenu.c:
15235         keep proper references for old_active_menu_item.
15236         (gtk_menu_reparent): unset the usize of the new parent,
15237         so the menu can sanely be size requested and we don't get nasty screen
15238         artefacts upon next reparentation.
15239         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
15240         enter notify. only synthesize enter notifies if the pointer really is
15241         inside the event window.
15242         (gtk_menu_popdown): use gtk_menu_shell_deselect().
15243         (gtk_menu_popup): move the background setting stuff into
15244         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
15245
15246         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
15247         gtk_menu_shell_select_item() to select the new item.
15248         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
15249         do the right thing for deselection as well.
15250
15251 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
15252
15253         * gtk/gtkwidget.[hc]:
15254         (gtk_widget_accelerators_locked): return whether a widget's accelerators
15255         are locked.
15256
15257         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
15258         existing accelerators if the widget's accelerators are locked.
15259
15260 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
15261
15262         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
15263
15264         * gtk/gtkmenu.c: truely forward key press and key release events to
15265         the menu widget from the toplevel or tearoff window. we can't simply
15266         connect to that, we need to stop further processing of the events as
15267         well.
15268
15269 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
15270
15271         * gtk/gtkmenu.c:
15272         (gtk_menu_key_press): pass event->keyval, event->state to
15273         gtk_accelerator_valid, instead of event->keyval twice.
15274         refuse to install single letter accelerators for menus that use
15275         single letter shortcuts.
15276
15277         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
15278         gtk_menu_ensure_uline_accel_group().
15279
15280         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
15281         which will always return an uline accel group, made
15282         gtk_menu_get_uline_accel_group() return NULL if the group isn't
15283         yet created.
15284
15285 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
15286
15287         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
15288
15289         * gtk/gtkclist.c (gtk_clist_column_title_passive):
15290         Leave button sensitive, trap  button_press, button_release,
15291         motion_notify, enter_notify and leave_notify events instead.
15292         (gtk_clist_column_title_active): disconnect event handler.
15293         (gtk_clist_drag_data_get): fixed memory leak. Reported by
15294         Guillaume Laurent <glaurent@worldnet.fr>
15295
15296 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
15297
15298         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
15299         width/height mixups.
15300
15301         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
15302         if needed.
15303
15304 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
15305
15306         * gtk/testgtk.c (create_item_factory): unref the item factory after
15307         window's destruction.
15308
15309         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
15310         count on the menu shell around the menu item's activation, since the
15311         signal emission may cause menu shell destruction.
15312
15313         * gtk/gtkitemfactory.c:
15314         the previous code leaked one accel group per menu. we use
15315         gtk_menu_get_uline_accel_group() now to fix that, and with that
15316         also create the underline accelerator group of the menus only if
15317         required (i.e. an underline accelerator has been specified).
15318         (gtk_item_factory_construct):
15319         (gtk_item_factory_create_item): removed code that would create an
15320         extra accel group for the menu (and leak references).
15321         (gtk_item_factory_create_item): adapted the underline accelerator
15322         installation code to properly feature gtk_menu_get_uline_accel_group().
15323
15324         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
15325         menu->accel_group, this may return NULL if the accelerator group
15326         hasn't been set yet.
15327         added gtk_menu_get_uline_accel_group() to retrive the underline
15328         accelerator group of the menu, this will be created on demand
15329         and proper care is taken about its reference count.
15330
15331         * gtk/gtkitemfactory.h:
15332         * gtk/gtkitemfactory.c:
15333         dumped the approach of keeping a widgets by action list on the
15334         factory since the factory<->widget destroy negotiation didn't work
15335         and would be hard to get going at all. instead we keep a list of
15336         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
15337         persistant throughout a program's life time).
15338         also, i removed the static const gchar *key_* variables, and made
15339         them inline strings (they weren't actually used anyways).
15340         (gtk_item_factory_add_item): update ifactory->items.
15341         (gtk_item_factory_destroy): destroy ifactory->items (and remove
15342         the item factory pointer from the remaining ifactory widgets).
15343         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
15344         list to find the widget.
15345         (gtk_item_factory_get_item): new function that works around
15346         gtk_item_factory_get_widget() limitations, this function will only
15347         return menu items, even for <Branch> entries.
15348
15349 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
15350
15351         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
15352         font hash table, if we have a GdkFontPrivate entry for this font
15353         already, simply increment its reference count, provided by Olaf Dietsche
15354         <olaf.dietsche+list.gtk@netcologne.de>.
15355
15356         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
15357         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
15358
15359 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
15360
15361         * gtk/gtkcontainer.c:
15362         (gtk_container_add_with_args):
15363         (gtk_container_addv):
15364         (gtk_container_add): before adding a child to a conatiner, make sure
15365         it is (default) constructed, this is neccessary because under certain
15366         circumstances the child will get relized and mapped immediatedly, in
15367         which case it has to be constructed already.
15368
15369 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
15370
15371         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
15372         values > 1 as TRUE also.
15373
15374 1999-03-16  Tor Lillqvist  <tml@iki.fi>
15375
15376         * README.win32: New file.
15377                 
15378         * configure.in: Check for lstat.
15379
15380         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
15381         completeness.
15382
15383         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
15384
15385         * gtk/gtk.def: Removed CRs.
15386
15387         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
15388         ..\gdk\win32).
15389
15390         * gdk/win32/makefile.msc: Correct upwards relative paths.
15391         
15392 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
15393
15394         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
15395           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
15396           it was connecting a void function to expose_event and the int
15397           returning function to the draw signal
15398
15399 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
15400
15401         * configure.in:
15402         Use correct path to libgmodule.la when ref'ing uninstalled copy
15403         of glib.  (Already in stable branch, Bug #417)
15404
15405 1999-03-15  Tor Lillqvist  <tml@iki.fi>
15406
15407         Win32 merge and general portability stuff:
15408                 
15409         * acconfig.h,configure.in: Check for <sys/time.h>.
15410
15411         * gdk/win32: New directory (actually, been there for a while).
15412         
15413         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
15414         NATIVE_WIN32, and use these. Always case fold on Win32. No
15415         backslashed escapes on native Win32.
15416
15417         * gtk/{gtk.def,makefile.msc}: New files.
15418
15419         * gtk/Makefile.am: Add above new files.
15420         
15421         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
15422         instead of <strings.h>.
15423
15424         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
15425         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
15426         <unistd.h> appropriately.
15427
15428         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
15429         Use ABS() (from <glib.h>) instead of abs().
15430         
15431         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
15432         of gtk (and thus glib) headers, so that WIN32 will be
15433         defined. With MS C, include <direct.h> for mkdir prototype.
15434
15435         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
15436         some casts, needed by MS C.
15437
15438         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
15439         implemented).
15440
15441         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
15442         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
15443         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
15444
15445         * gtk/gtkmain.h: Mark variables for export/import on Win32.
15446                 
15447         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
15448         the event is not a hint, or its window is not the slider. Needed
15449         on Win32, at least.
15450
15451         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
15452         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
15453         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
15454         a subdirectory of the Windows directory as gtk system
15455         configuration directory.
15456
15457         * gtk/gtkselection.c: No chunks on Win32.
15458
15459         * gtk/gtksocket.c: Not implemented on Win32.
15460
15461         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
15462
15463         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
15464
15465         * gtk/maketypes.awk: Declare variables with a macro that expands to
15466         necessary export/import magic in the case of Win32.
15467                 
15468         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
15469
15470 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
15471
15472         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
15473         since those were meant only for gdki18n.h.  
15474         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
15475         for widechar tests.
15476         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
15477
15478 1999-03-13  Tor Lillqvist  <tml@iki.fi>
15479
15480         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
15481         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
15482
15483         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
15484         installed) to CFLAGS.
15485
15486         * gdk/Makefile.am: Add rules for gdkconfig.h.
15487
15488         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
15489         APIs.
15490
15491         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
15492         gdkx.h anyway when compiling for X11.
15493         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
15494         general): Merge in Win32 version.
15495         
15496         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
15497         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
15498         expansion (if we don't have HAVE_PWD_H), allow for drive
15499         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
15500         included code from Craig Setera's port to Win32 (the one that uses
15501         X11, and the cygwin dll), even if it probably will be abandoned.
15502
15503         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
15504         the user entered one herself.  This way one can complete *.h and
15505         don't get matches on any .help files, for instance.
15506         
15507 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
15508
15509         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
15510         font hash table, if we have a GdkFontPrivate entry for this font
15511         already, simply increment its reference count, provided by Olaf Dietsche
15512         <olaf.dietsche+list.gtk@netcologne.de>.
15513
15514         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
15515         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
15516
15517 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
15518
15519         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
15520         the number of calls to gdk_draw_point() (and thus to X) by
15521         clipping the points by hand.
15522
15523         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
15524         the clip parameter.
15525         (gtk_handle_box_paint): Only paint the handle if the expose area
15526         intersects it.
15527
15528 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
15529
15530         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
15531
15532 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
15533
15534         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
15535         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
15536
15537 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
15538
15539         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
15540          textmode (O_TEXT) for OS/2 version.
15541
15542 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
15543
15544         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
15545         GtkSpinButton, "input" and "output", to make the output more flexible.
15546         The user has to provide a mapping between adjustment->value and the
15547         output string (and vice versa, if the spin button is editable). 
15548         See testgtk for examples.
15549
15550 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
15551
15552         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
15553         new one.
15554         
15555         * configure.in: set gtk+ version to 1.3.0.