]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
Add built marshaller files to support GdkPixbufLoader signals
[~andy/gtk] / ChangeLog.pre-2-10
1 2001-01-22  Havoc Pennington  <hp@redhat.com>
2
3         * demos/testanimation.c: fix to reflect gdk-pixbuf changes
4
5         * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
6
7         * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h: 
8         Remove, move back to gdk-pixbuf
9
10         * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
11         to all the word functions
12
13         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
14         before doing anything on NULL layout or if we don't have the focus
15
16         * gtk/testtext.c (fill_example_buffer): "justification"
17
18         * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
19         to be called "justification" not "justify"
20
21         * demos/gtk-demo/textview.c (create_tags): "justification"
22         
23         * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
24
25 2001-01-22    <alexl@redhat.com>
26
27         * gdk/gdkwindow.c (gdk_window_invalidate_region):
28         Don't leak visible_region. Use visible_region instead of region.
29         
30         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
31         Don't do extra gdk_drawable_ref(). This is not X.
32         (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
33         gdk_fb_focused_window is ref:ed.
34         (gdk_fb_window_send_crossing_events): Watch out for destroyed
35         windows.
36
37 2001-01-22    <alexl@redhat.com>
38
39         * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
40         Don't leak the PangoFontDescriptor.
41
42 Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
43
44         * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
45         when not realized.
46         (gtk_tree_view_scroll_to_cell): Make work when not realized.
47         (gtk_tree_view_realize): add scroll_to support
48         (gtk_tree_view_finalize): add a finalize method.  Populate.
49         (gtk_tree_view_insert_column): ref and sink the column.
50         (gtk_tree_view_append_column): ref and sink the column.
51         (gtk_tree_view_queue_draw_node): New function to handle redrawing
52         individual nodes.  Should make the code much more efficient, if
53         actually used.
54
55 2001-01-19  Havoc Pennington  <hp@redhat.com>
56
57         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
58         byte_offset variable was being used to mean both "offset into
59         layout" and "offset into buffer line" which was no longer true
60         with addition of preedit string; fix
61
62 2001-01-19  Havoc Pennington  <hp@redhat.com>
63
64         * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
65
66         * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
67         function
68
69         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
70         implement
71
72         * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
73         scroll_to_cell, matches TextView scroll functions better
74         (gtk_tree_view_tree_to_widget_coords): new function
75         (gtk_tree_view_widget_to_tree_coords): new function
76         (gtk_tree_view_get_visible_rect): new function
77         (gtk_tree_view_get_path_at_pos): accept negative coordinates
78         (gtk_tree_view_draw_node_focus_rect): new function moved from
79         draw_focus, also, use width of bin_window as width of the focus
80         rect
81         (gtk_tree_view_expand_row): fix bug where it didn't recognize
82         already-expanded rows
83         (gtk_tree_view_get_cell_rect): new function
84         (gtk_tree_view_get_path_at_pos): return the click position
85         relative to the passed-in cell
86         (gtk_tree_view_set_expander_column): new function
87
88         * configure.in: remove gtk-config-2.0 chmod
89
90         * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
91         and properly handle drags with targets we don't understand
92         (gtk_text_view_drag_end): don't stop scrolling, the source isn't
93         scrolling anyway
94         (gtk_text_view_drag_drop): stop scrolling here though, and set the
95         mark invisible
96
97         * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
98         function
99         (gtk_drag_dest_get_target_list): new function
100         (gtk_drag_dest_set_target_list): new function
101         
102         * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
103
104         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
105         related to drag-and-drop
106
107 2001-01-19  Alexander Larsson  <alexl@redhat.com>
108
109         * gdk/linux-fb/gdkprivate-fb.h:
110         Define EMULATE_GDKFONT.
111         Add extra pango_font stuff to GfkFontPrivate.
112         
113         * gdk/linux-fb/gdkdrawable-fb2.c:
114         * gdk/linux-fb/gdkfont-fb.c:
115         If EMULATE_GDKFONT defined, implement a slow lame GdkFont
116         emulation using PangoFont.
117
118 2001-01-17  Havoc Pennington  <hp@pobox.com>
119
120         * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
121         all the non-deprecated set_foo functions. Added missing object
122         properties, and added g_object_notify() to setters. 
123         Wrote docs.
124         
125 2001-01-18  Tor Lillqvist  <tml@iki.fi>
126
127         * gtk/gtkmain.c
128         * gtk/gtkrc.c: (Win32) Use the new
129         g_win32_get_package_installation_(sub)directory() functions.
130
131         * config.h.win32.in: New file.
132         
133         * config.h.win32: Removed.
134
135         * configure.in: Output config.h.win32.
136
137         * Makefile.am: Add it to EXTRA_DIST.
138
139         * gtk/gtk.def: Update.
140
141 Wed Jan 17 16:22:54 2001  Owen Taylor  <otaylor@redhat.com>
142
143         * gtk/gtklabel.c (gtk_label_size_request): Set the
144         attributes onto the PangoLayout even if they are newly
145         created from label->pattern.
146
147 Tue Jan  9 11:20:48 2001  Owen Taylor  <otaylor@redhat.com>
148
149         * gdk/x11/gdkdnd-x11.c: Remove unused variable.
150
151         * gtk/gtkdnd.c: Encapsulate storing and retrieving info
152         structures in functions. Fixes bug where gtk_dataset_*
153         was accidentally still being used in one place, causing
154         every dest side event to be treated independently.
155
156         * gtk/gtkdnd.c: Remove last vestages of handling
157         ::draw (fixes warning)
158         
159         * gtk/gtkentry.[ch]: Add drag and drop support.
160
161         * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
162         new function gtk_check_drag_threshhold() for checking
163         to check if (dx,dy) has exceeded the threshhold for starting
164         a drag and use it everywhere.
165
166 Mon Jan  8 11:58:05 2001  Owen Taylor  <otaylor@redhat.com>
167
168         * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
169         add -I{includedir}/gtk-2.0.
170
171         * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
172         gdk/gdk-pixbuf.h: Doc fixups.
173         
174         * gtk/gtkobject.h: Remove trailing , from enum
175
176 2001-01-17 Alexander Larsson <alexl@redhat.com> 
177
178         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
179         Doh! Mixed up x and y.
180
181         * gdk/linux-fb/gdkglobals-fb.c:
182         Removed gdk_fb_pointer_grab_window_events,
183         added _gdk_fb_pointer_grab_owner_events and
184         _gdk_fb_keyboard_grab_owner_events.
185
186         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
187         Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
188         crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
189         (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
190         Send crossing events after ungrab finished.
191         (gdk_keyboard_grab): Set ..._owner_events
192         (type_masks): Move out of function.
193         (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
194         gdk_fb_keyboard_event_window): New functions, return the
195         window an event should be targeted at. Handles grabs and
196         event propagation. Can return NULL.
197         (gdk_event_make): Remove event_mask checking. Now always
198         returns an event.
199                 
200         * gdk/linux-fb/gdkkeyboard-fb.c:
201         * gdk/linux-fb/gdkproperty-fb.c:
202         * gdk/linux-fb/gdkselection-fb.c:
203         Use new event_window/gdk_event_make() behaviour.
204         
205         * gdk/linux-fb/gdkmouse-fb.c:
206         Use new event_window/gdk_event_make() behaviour.
207         Only send motion events if in the same window.
208         If grabbed, use cursor from window if sibling of grabbed
209         window, and cursor from grabbed window otherwise.
210
211         * gdk/linux-fb/gdkprivate-fb.h:
212         Update gdk_fb_window_send_crossing_events, gdk_event_make
213         and grab varaible declarations. Add gdk_fb_*_event_window().
214
215         * gdk/linux-fb/gdkwindow-fb.c:
216         Use new event_window/gdk_event_make() behaviour.
217         Keep correct track of focus window.
218         (gdk_window_set_events): Set all specific button motion masks
219         if GDK_BUTTON_MOTION_MASK set.
220
221         * gtk/gtkdnd.c (gtk_drag_update):
222         Free info->last_event if gdk_drag_motion returned FALSE.
223
224 2001-01-16  Tor Lillqvist  <tml@iki.fi>
225
226         * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
227         Eliminate redraws when input-only windows are shown or
228         hidden. Thanks to jpe@archaeopteryx.com.
229
230 Tue Jan 16 13:13:13 GMT 2001  Tony Gale <gale@gtk.org>
231
232         * docs/faq/gtk-faq.sgml: FAQ update:
233           - Update to bugzilla
234           - Add GTK+ and security/SUID/SGID
235           - Add DnD question
236
237 2001-01-16  Alexander Larsson  <alla@lysator.liu.se>
238
239         * gdk/linux-fb/gdkdnd-fb.c:
240         Some cleanups.
241         
242 2001-01-15  Havoc Pennington  <hp@pobox.com>
243
244         * tests/testtreeview.c: add test stuff for CellRendererToggle
245
246         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
247         accessor
248
249         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
250         only toggle on button press (would do release like GtkButton, but
251         we'd need implicit grab code for treeview cells)
252
253 2001-01-16  Tor Lillqvist  <tml@iki.fi>
254
255         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
256
257         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
258         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
259
260         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
261         to g_{locale,filename}_{to,from}_utf8 to match current API.
262
263         * gtk/makefile.msc.in (gtk_OBJECTS)
264         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
265
266         * gtk/gtk.def: Update.
267
268 2001-01-15  Tor Lillqvist  <tml@iki.fi>
269
270         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
271         implementaion that more closely mimics the events that an X server
272         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
273         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
274         with nested preview widgets, for instance, more responsive when
275         you move the mouse quickly into them.
276         (find_window_for_pointer_event): Make it actually compile.
277         (gdk_event_translate): Set send_event to the value of
278         InSendMessage (). This doesn't really mean the same as X11's
279         send_event flag, but is close enough, says jpe@archaeopteryx.com
280
281 2001-01-15  Alexander Larsson  <alexl@redhat.com>
282
283         * gdk/linux-fb/gdkdnd-fb.c:
284         Implemented drag and drop.
285         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
286         when it tries to free and then copy the same event (info->last_event).
287         I am not sure about why this happens, but will continue looking.
288
289 2001-01-15  Alexander Larsson  <alexl@redhat.com>
290
291         * gdk/linux-fb/gdkwindow-fb.c:
292         Use gdk_window_invalidate_rect instead of
293         gdk_window_invalidate_rect_clear to minimise flashing.
294         When hiding windows you need to clear the root window though.
295
296 2001-01-15  Alexander Larsson  <alexl@redhat.com>
297
298         * gdk/linux-fb/gdkdrawable-fb2.c:
299         For optization, add an full_shapes argument to gdk_fb_clip_region.
300         If this is false, only the cliprects of the shapes are used.
301
302         * gdk/linux-fb/gdkprivate-fb.h:
303         Export gdk_fb_window_peek_shape.
304         Add full_shapes to gdk_fb_clip_region.
305
306         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
307         When moving a window, don't clear everything under the it, just the
308         root window. Makes stuff faster and flash less.
309         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
310         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
311         offset of the shape.
312         
313
314 2001-01-12  Havoc Pennington  <hp@redhat.com>
315
316         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
317         current invalid region, fixes redraw bug while scrolling the 
318         text widget
319
320         * gtk/gtktextview.c, gtk/gtktextview.h:
321         Rearrange the scrolling/validation/etc. code in a major way, 
322         so it seems to make sense to me. Probably isn't genuinely that
323         much better, but...
324
325         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
326         notifies
327
328         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
329
330 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
331
332         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
333         Hide mouse pointer while rotation. Show it afterwards.
334
335 2001-01-12  Alexander Larsson  <alexl@redhat.com>
336
337         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
338         windows in consideration when generating clip region.
339
340         * gdk/linux-fb/gdkfb.h:
341         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
342
343         * gdk/linux-fb/gdkprivate-fb.h:
344         Add shape to GdkWindowFBDatat.
345         exported gdk_fb_window_get_abs_shape().
346         removed gdk_fb_draw_lines declaration.
347
348         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
349         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
350         send focus changes when there is a grabbed window.
351         (gdk_window_get_pointer): Handle shaped windows.
352         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
353         (gdk_fb_window_peek_shape): Returns the shape for a window,
354         handles GDK_FB_USE_CHILD_SHAPE.
355         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
356         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
357         (gdk_window_shape_combine_mask): Implement.
358
359         * gtk/gtkwindow-decorate.c:
360         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
361         setting the shape of a window makes the window transparent.
362
363 2001-01-11  Havoc Pennington  <hp@redhat.com>
364
365         * gtk/gtktreemodelsimple.h: Oops, broke some macros
366
367 2001-01-10  Havoc Pennington  <hp@redhat.com>
368
369         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
370         add this function, bug 40251
371
372         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
373         of type macro   
374
375 2001-01-11  Alexander Larsson  <alexl@redhat.com>
376
377         * acconfig.h:
378         Added ENABLE_SHADOW_FB
379
380         * configure.in:
381         Added --disable-shadowfb
382
383         * gdk/linux-fb/gdkcursor-fb.c:
384         Update shadowfb when updating cursor
385
386         * gdk/linux-fb/gdkdrawable-fb2.c:
387         Added wrappers for shadowfb that calls  the normal drawable
388         methods, but calls gdk_shadow_fb_update(bounding box) when
389         GdkWindows are drawed to.
390         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
391         which also returns the bounding box.
392
393         * gdk/linux-fb/gdkfb.h:
394         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
395
396         * gdk/linux-fb/gdkgeometry-fb.c:
397         Update shadowfb when scrolling window.
398
399         * gdk/linux-fb/gdkglobals-fb.c:
400         Add _gdk_fb_screen_angle.
401         
402         * gdk/linux-fb/gdkkeyboard-fb.c:
403         Test code for screen rotation. Shift-F2 in the xlate driver
404         rotates the screen.
405
406         * gdk/linux-fb/gdkmain-fb.c:
407         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
408
409         * gdk/linux-fb/gdkmouse-fb.c:
410         Use fb_width/height instead of modeinfo.xres/yres.
411
412         * gdk/linux-fb/gdkprivate-fb.h:
413         Added fb_men, fb_width, fb_height & fb_stride. When using
414         shadow fb these can differ from the framebuffer stuff.
415         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
416         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
417         _gdk_fb_screen_angle. Removed CM, RP.
418
419         * gdk/linux-fb/gdkrender-fb.c:
420         Added code for shadowfb handling and screen rotation using
421         shadowfb.
422
423         * gdk/linux-fb/gdkwindow-fb.c:
424         Use fb_mem, fb_stride, fb_width, fb_height.
425         Added recompute_rowstride to reset the rowstride of all windows.
426         Added gdk_fb_recompute_all() which recomputes rootwindow size,
427         window abs positions and window rowstrides. Usefull when the
428         rotation has changed.
429
430 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
431
432         * docs/faq/gtk-faq.sgml: update to make web site updating easier
433
434 2001-01-10  Havoc Pennington  <hp@redhat.com>
435
436         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
437         where sibling == iter
438         (gtk_tree_store_insert_after): handle sibling == iter
439         (gtk_tree_store_prepend): remove stamp checks
440         (gtk_tree_store_insert_before): ditto
441         (gtk_tree_store_append): ditto
442         (gtk_tree_store_get_path): ditto
443         (gtk_tree_store_get_value): ditto
444         (gtk_tree_store_iter_has_child): ditto
445         (gtk_tree_store_iter_n_children): ditto
446         (gtk_tree_store_iter_nth_child): ditto
447         (gtk_tree_store_insert_after): ditto
448         (gtk_tree_store_is_ancestor): ditto
449         (gtk_tree_store_iter_depth): ditto
450         (gtk_tree_store_insert_before): assert that sibling's parent is
451         the same as the passed-in parent
452         (gtk_tree_store_insert_after): assert that sibling's parent is
453         the same as the passed-in parent
454
455         
456         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
457         function to get the first iterator in a model
458         
459         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
460         conventionally the "root" in this sense is just NULL afaict.
461
462         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
463         where sibling == iter
464         (gtk_list_store_insert_after): handle case where sibling == iter
465
466         * tests/testtreeview.c (run_automated_tests): fairly lame basic
467         automated tests for ListStore, TreeStore
468
469         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
470         (gtk_list_store_insert): update tail pointer, and fix it to work
471         (gtk_list_store_insert_before): update tail pointer, and fix it to work
472         (gtk_list_store_append): use tail to be faster
473         (gtk_list_store_prepend): fix it, update tail pointer
474         (gtk_list_store_insert_after): fix it, update tail pointer
475
476         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
477         the list
478
479 2001-01-09  Havoc Pennington  <hp@redhat.com>
480
481         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
482         is NULL due to a pending resize
483
484         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
485         column width to values less than 1
486
487         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
488         width to be between min/max width, and still set the width 
489         even if autosize is turned on, so the tree view can use this 
490         function in order to autosize.
491         (gtk_tree_view_column_init): set initial width to 1 not 0
492
493         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
494         setter function to modify column width, so we get notification
495         (gtk_tree_view_insert_iter_height): ditto
496         (gtk_tree_view_calc_size): ditto
497         (gtk_tree_view_check_dirty): ditto
498
499         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
500         properties to change all the interesting attributes of the tree
501         view column.
502         (gtk_tree_view_column_set_header_clickable): rename set_clickable
503         (gtk_tree_view_column_get_clickable): add
504         (gtk_tree_view_column_set_cell_renderer): don't unset the current
505         attributes; assume a cell renderer with equivalent object
506         properties has been swapped in. Do g_object_notify().
507         (gtk_tree_view_column_set_visible): g_object_notify
508         (gtk_tree_view_column_get_sizing): rename from get_col_type
509         (gtk_tree_view_column_set_sizing): g_object_notify
510         (gtk_tree_view_column_set_width): add g_object_notify
511         (gtk_tree_view_column_set_min_width): ditto
512         (gtk_tree_view_column_set_max_width): ditto
513         (gtk_tree_view_column_set_title): ditto
514         (gtk_tree_view_column_set_clickable): ditto
515         (gtk_tree_view_column_set_widget): ditto
516         (gtk_tree_view_column_set_justification): ditto
517
518 2001-01-09  Havoc Pennington  <hp@redhat.com>
519
520         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
521         there are no rows in the model
522
523         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
524         NULL, then return the start of the list
525
526         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
527         if we can't get any rows from an empty model 
528
529         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
530         extraneous * after function pointer typedef usage
531
532         * Makefile.am: don't specify full path to cp and rm
533
534         * gtk/gtkcellrenderertextpixbuf.c
535         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
536         NULL before dereferencing, fixes a segfault that happened from
537         time to time
538
539         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
540         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
541         and reindent the function
542         (gtk_cell_renderer_pixbuf_get_size): indentation
543
544         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
545         we quit it
546         (gtk_dialog_add_buttons_valist): add g_return_if_fail
547         (gtk_dialog_set_default_response): New function, to set default
548         button
549         (gtk_dialog_set_response_sensitive): New function, to set 
550         sensitivity of buttons
551
552         * gtk/gtkcellrendererpixbuf.c
553         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
554         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
555
556         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
557         handle any G_TYPE_OBJECT subclass, not just the base class, and 
558         also boxed types.
559         (_gtk_tree_data_list_value_to_node): ditto
560
561         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
562         --gtk-debug=tree
563
564         * gtk/gtkmain.c: add GTK_DEBUG_TREE
565
566         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
567
568 2001-01-09  Tor Lillqvist  <tml@iki.fi>
569
570         * gdk/win32/gdkevents-win32.c: Implement better mouse
571         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
572         (find_window_for_pointer_event): New function.
573         (gdk_event_translate): Use it when handling mouse events.
574
575 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
576
577         * configure.in:
578         Added --with-included-loaders option
579
580         * gdk-pixbuf/Makefile.am:
581         * gdk-pixbuf/gdk-pixbuf-io.c:
582         Add support for including selected gdk-pixbuf loaders only.
583
584         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
585         gtk_window_set_has_frame):
586         Added inline documentation.
587
588         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
589         * docs/reference/gdk/tmpl/windows.sgml:
590         Added inline documentation.
591
592 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
593
594         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
595         realizing buttons that have already been realized.
596
597 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
598
599         * tests/testtreeview.c (main): Show menu items before adding to
600         option menu.
601
602         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
603         around if we kill them.
604
605         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
606         Return if we pass in a NULL model.
607
608 2001-01-08  Havoc Pennington  <hp@redhat.com>
609
610         * tests/testtreeview.c: hack on this some
611
612         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
613         gtk_tree_store_set_valist, v is for arrays, valist for varargs
614         list
615         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
616
617         * gtk/gtkliststore.h: Add varargs set() and get() convenience
618         functions
619
620 2001-01-08  Alexander Larsson  <alexl@redhat.com>
621
622         * gtk/gtkwindow-decorate.[hc]:
623         * gtk/Makefile.am:
624         New files. Contains an implementation of a minimal WM for
625         linux-fb.
626
627         * gtk/gtkwindow.h:
628         Add the possibility for GtkWindows to specify a frame. This
629         is used for the window decoration code, but could concievably
630         be used for X programs too (xmms style windows).
631         GtkWindow->frame is the toplevel window if the window is framed.
632         The signal frame_event gets all events that are targeted to
633         GtkWindow->frame.
634         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
635         
636         * gtk/gtkwindow.c:
637         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
638         Call out to gtkwindow-decorate.c for WM support in linx-fb.
639
640 2001-01-08  Alexander Larsson  <alexl@redhat.com>
641
642         * docs/README.linux-fb:
643         Correct filename ~/.pangoft2_aliases
644
645         * gdk/gdkwindow.h:
646         Added new function gdk_window_get_decorations.
647
648         * gdk/linux-fb/gdkfb.h:
649         Removed _gdk_window_get_decorations declaration.
650         Renamed _gdk_window_set_child_handler to
651         gdk_fb_window_set_child_handler.
652
653         * gdk/linux-fb/gdkwindow-fb.c:
654         Renamed _gdk_window_set_child_handler to
655         gdk_fb_window_set_child_handler.
656
657         * gdk/x11/gdkwindow-x11.c:
658         New function gdk_window_get_mwm_hints().
659         Implemented gdk_window_get_decorations.
660
661         * docs/reference/gdk/tmpl/windows.sgml:
662         * docs/reference/gdk/gdk-sections.txt:
663         Added gdk_window_get_decorations docs.
664         
665 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
666
667         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
668         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
669         gdk_fb_window_send_crossing_events):
670         Possibly send focus events when the mouse moves from one
671         window to another.
672
673 2001-01-07  Tor Lillqvist  <tml@iki.fi>
674
675         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
676         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
677         to match current API.
678
679         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
680         environment variable is set, don't call g_error when on a
681         palettized (PseudoColor) display. Some people want to use GTK+ 
682         in 256-colour mode even though works only partially.
683
684         * gdk/gdk.def
685         * gtk/gtk.def
686         * gtk/makefile.mingw.in: Update.
687
688 2001-01-05  Havoc Pennington  <hp@redhat.com>
689
690         * tests/testtreeview.c: hack on this a bit
691
692         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
693         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
694
695         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
696         was spelled incorrectly
697         (GTK_IS_TREE_MODEL_SIMPLE): ditto
698
699         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
700         from gtk_tree_view_set_headers_active   
701
702         * gtk/gtktexttag.c:
703         (gtk_text_tag_get_property): handle PROP_DIRECTION
704         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
705         properties, bug 40235
706
707         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
708         forward_to_line_end
709
710 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
711
712         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
713         modules/input/gtkimcontextxim.c: Adapt to new prototypes
714         for unicode,locale,filename conversion functions.
715
716 2001-01-05  Havoc Pennington  <hp@redhat.com>
717
718         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
719         broken if called on the first position in the buffer.
720
721         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
722         forward_to_delimiters to be called only if we aren't already at
723         the delimiters.
724
725 2001-01-05  Havoc Pennington  <hp@redhat.com>
726
727         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
728
729 2001-01-05  Alexander Larsson  <alexl@redhat.com>
730
731         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
732         colormap in here. Sync from X port.
733         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
734         Sync from X port.
735         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
736         This happens now and then, and i don't think it is a bug.
737         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
738         != endpoint.
739         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
740         GDK_LINE_SOLID.
741
742         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
743         some of the fields filled in at least.
744
745         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
746         miLineArcD is no more, remove it from the function definition.
747
748 2001-01-04  Havoc Pennington  <hp@redhat.com>
749
750         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
751         this
752
753         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
754         user_data instead of tree_node
755
756         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
757         TREE_VIEW_COLUMN_SIZE
758
759         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
760         "size" field to "width" finishes bug 40061
761
762         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
763         for bitfields, bug 40268
764
765 2001-01-04  Havoc Pennington  <hp@redhat.com>
766
767         Rename some stuff:
768         
769         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
770
771         s/GtkModelSimple/GtkTreeModelSimple/g;
772         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
773         s/gtk_model_simple/gtk_tree_model_simple/g;
774         s/gtkmodelsimple/gtktreemodelsimple/g;
775
776         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
777
778         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
779         s/column_set_col_type/column_set_sizing/g;
780
781         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
782         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
783
784         s/GtkCellRendererType/GtkCellRendererState/g;
785         
786         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
787         (gtk_cell_renderer_toggle_class_init): change "state" property to
788         "active", to match GtkToggleButton
789         (gtk_cell_renderer_toggle_get_active): new function, bug
790         40269
791         (gtk_cell_renderer_toggle_set_active): new function
792         (gtk_cell_renderer_toggle_set_property): route changes to toggle
793         state through gtk_cell_renderer_set_active
794
795 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
796
797         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
798         temporarily until they work again.  Brought up to date with
799         changes in the model.
800         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
801         model.
802
803 2001-01-04  Havoc Pennington  <hp@redhat.com>
804
805         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
806         equal to the line length, then position iterator before paragraph 
807         separators. Fixes crash reported by Mikael Hermansson when
808         pressing left arrow from the start of a line.   
809
810         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
811         about byte indexes off the end
812         (iter_set_from_char_offset): add g_error about char offsets
813         off the end
814
815 2001-01-03  Havoc Pennington  <hp@redhat.com>
816
817         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
818
819         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
820         of private functions; remove inclusion of private headers.
821
822         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
823         function, so we don't need private functions in gtktextdisplay.c
824
825         * gtk/gtktextiterprivate.h: underscore-ification
826
827         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
828         to instead say "only useful to implement widgets"
829
830         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
831         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
832         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
833
834         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
835         This function was completely broken
836
837         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
838
839         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
840
841         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
842
843         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
844
845         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
846
847         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
848
849         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
850         gtk_paint_layout
851
852         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
853         gtk_paint_layout
854
855         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
856         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
857         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
858         which were not implemented.     
859
860         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
861         insert_pixbuf signal. Rename delete_text to delete_range since it
862         also deletes pixbufs and child anchors. This almost closes bug
863         40245 (still need to deal with child anchors)
864
865         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
866         insert_pixbuf, change signal names as appropriate, change types of
867         signals taking marks/tags to have the specific type, not just
868         G_TYPE_OBJECT
869         
870         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
871         closes bug 40051
872
873         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
874         unnecessary remove_contents() call
875         (gtk_option_menu_class_init): add a "changed" signal, closes
876         bug 40039
877         (gtk_option_menu_update_contents): emit "changed" if the 
878         active menu item changes
879
880         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
881         cast to GtkObject, reported by Jonas Borgstrom
882         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
883         we can't do stuff with side effects in finalize. Instead, spew a
884         warning if the loader isn't closed.
885
886         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
887         colormap in here, non-X ports probably need to sync to this change
888
889         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
890         assertion that colormap != NULL, you can set the colormap to NULL
891         if you like.
892         
893         * Makefile.am: remove gtk-config-2.0
894
895         * configure.in: Use pkg-config to locate GLib. Remove
896         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
897         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
898         Use pkg-config to locate Pango. Output correct Pango libs to
899         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
900
901         * Makefile.am (pkgconfig_DATA): install only target-specific pc
902         files
903         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
904         X11 pc files
905
906         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
907         unref from here
908
909 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
910
911         * configure.in:
912         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
913
914 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
915
916         * gtk/gtktextlayout.c
917         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
918         variable when moving back onto a single line.
919
920 2001-01-01  Havoc Pennington  <hp@redhat.com>
921
922         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
923
924         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
925
926         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
927         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
928
929 2001-01-01  Havoc Pennington  <hp@redhat.com>
930
931         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
932
933         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
934         GtkTextAttributes
935
936         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
937         #40246
938         (gtk_text_attributes_copy_values): rename from 
939         gtk_text_attributes_copy
940         (gtk_text_attributes_copy): a more standard GTK copy function, 
941         which returns a new object
942
943 2001-01-01  Havoc Pennington  <hp@redhat.com>
944
945         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
946         
947         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
948         don't fill in tree_view->priv->selection, kind of an unexpected
949         side effect
950
951         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
952         gtkintl.h
953         
954         * gtk/gtkcellrenderer.c: Remove definition of _ and include
955         gtkintl.h
956         (gtk_cell_renderer_get_property): remove calls to g_value_init
957
958         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
959         gtkintl.h
960
961         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
962         and include gtkintl.h
963         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
964         property names
965
966         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
967         GtkTreeSelection
968         (_gtk_tree_selection_new_from_with_view): rename, return
969         GtkTreeSelection
970         (_gtk_tree_selection_set_tree_view): rename with uscore
971         (gtk_tree_selection_get_selected): fill in the "model" out param
972         first, so it gets filled in even if we return at the top of the 
973         function
974         (gtk_tree_selection_real_select_all): add a comment and an else{}
975         to clarify this a bit
976         (gtk_tree_selection_real_unselect_all): add the same else{}
977
978         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
979         set_tree_view to have underscore prefixes, move them to the
980         private header, fix return type of new_with_tree_view
981         (struct _GtkTreeSelection): mark struct
982         fields private  
983
984         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
985         GtkTreeModelFlags, not a guint
986         (gtk_tree_path_prev): return gboolean not gint
987         (gtk_tree_path_up): return gboolean not gint
988
989         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
990         return GtkTreeModelFlags, not a guint
991
992         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
993         that child model is non-null before unrefing it
994         (g_value_int_compare_func): make this a qsort compare func, not 
995         a boolean predicate
996
997         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
998         (add -umn to the end), and mark it unimplemented
999         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
1000         I don't see what it's for - doesn't the model always sort itself?
1001         (gtk_tree_model_sort_set_compare): this had the wrong signature
1002
1003         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
1004         Fix the docs to say that it destructively replaces existing
1005         attributes (previously said that it added attributes).
1006         (gtk_tree_view_column_set_visible): canonicalize bool before
1007         equality testing. Also, check for realization before
1008         hiding/showing the tree_column->window; if this window could exist
1009         before realization, then it's busted and needs fixing, we can't 
1010         create GDK resources pre-realization. Also, remove
1011         superfluous queue_resize(), since set_size() does that for us.
1012         (gtk_tree_view_column_set_col_type): check realization before 
1013         using tree_column->window
1014
1015         * gtk/gtktreedatalist.c: fix filename in copyright notice
1016
1017 2000-12-31  Havoc Pennington  <hp@pobox.com>
1018
1019         * gtk/gtktextview.c: Rearrange all the
1020         scroll-while-dragging-or-selecting code to be different, not
1021         necessarily better. ;-)
1022         (gtk_text_view_scroll_to_mark): Change this
1023         function to take within_margin as a fraction instead of a pixel
1024         value, and to take alignment arguments (indicating where to align 
1025         the mark inside the visible area)
1026         
1027         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
1028         to GtkObject
1029
1030         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
1031         behavior so that offsets past the end of the line are not 
1032         allowed, and an offset equal to the line length moves the iterator
1033         to the next line
1034         (gtk_text_iter_set_line_index): make parallel change
1035         (gtk_text_iter_get_bytes_in_line): add this function
1036         
1037         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
1038         of byte indexes off the end of the line; byte index at the end of
1039         the line now returns FALSE and doesn't fill in the requested
1040         values, byte index past the end of the line is an error.  Also,
1041         don't allow -1 offset anymore, since its meaning is unclear.
1042
1043         This change exposes some bug in visual cursor motion, where we
1044         end up with a huge invalid byte index; needs fixing. Symptom of 
1045         bug is a crash when you hit up arrow.
1046         
1047         (_gtk_text_line_char_locate): match the change to byte_locate
1048
1049         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
1050         from start of line properly. fixes bug reported by Mikael
1051         Hermansson where backspace would delete all text before the
1052         cursor.
1053
1054 2000-12-30  Tor Lillqvist  <tml@iki.fi>
1055
1056         * gdk/win32/gdkwindow-win32.c
1057         (gdk_window_impl_win32_get_visible_region): New function, as in
1058         the X11 backend.
1059         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
1060         instead of duplicating the same code here.
1061
1062         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
1063         GDK_COLORMAP macro.
1064
1065         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
1066         destroy function.
1067         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
1068         access that.
1069
1070         * gtk/gtk.def: Update.
1071
1072         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
1073
1074 2000-12-30  Havoc Pennington  <hp@pobox.com>
1075
1076         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
1077         colormap on input only windows, to avoid special cases all over
1078         the code for these windows.
1079
1080 2000-12-26  Tor Lillqvist  <tml@iki.fi>
1081
1082         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
1083         we are on a palettized display ("PseudoColor" in X11), as the code
1084         for that doesn't work anyway, and never has.
1085
1086 2000-12-22  Alexander Larsson  <alexl@redhat.com>
1087
1088         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
1089         Don't use isprint() for chars > 255.
1090
1091 2000-12-21  Havoc Pennington  <hp@redhat.com>
1092
1093         * tests/testtreeview.c: more work
1094
1095 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1096
1097         * docs/README.linux-fb:
1098         Update the docs to the new pangoft2 way.
1099
1100 2000-12-21  Alexander Larsson  <alexl@redhat.com>
1101
1102         * configure.in:
1103         For linux-fb get the pangoft2 cflags and libs. This needs a recent
1104         pango version.
1105         Remove modules/linux-fb/Makefile.
1106
1107         * gdk/linux-fb/gdkdrawable-fb2.c:
1108         Render glyphs using freetype.
1109
1110         * gdk/linux-fb/gdkfb.h:
1111         Add new fb-specific functions needed for managing windows.
1112
1113         * gdk/linux-fb/gdkmain-fb.c:
1114         Remove gdk_font_init/fini() calls.
1115
1116         * gdk/linux-fb/gdkpango-fb.c:
1117         Remove old implementation. Use pangoft2 instead.
1118
1119         * gdk/linux-fb/gdkprivate-fb.h:
1120         Remove PangoFBFont and related stuff.
1121
1122         * gdk/linux-fb/gdkwindow-fb.c:
1123         Implement drawable->get_visible_region.
1124         Implement support for _gdk_window_set_child_handler () and
1125         _gdk_window_get_decorations().
1126
1127         * modules/Makefile.am:
1128         Remove linux-fb subdir.
1129
1130         * modules/linux-fb/*:
1131         Removed all.
1132         
1133 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
1134
1135         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
1136         calls, as they are no longer needed.
1137
1138         * gtk/gtktreemodelsort.c: Fix up the comparison code.
1139         
1140         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
1141         figure out how to emit a signal on an interface.
1142
1143 2000-12-20  Havoc Pennington  <hp@redhat.com>
1144
1145         * tests: new directory to contain tests, gtk/test* should move
1146         here sometime (with appropriate on-cvs-server hackery)
1147
1148         * tests/testtreeview.c, tests/Makefile.am: a test
1149         
1150         * configure.in (AC_OUTPUT): add tests/Makefile
1151
1152         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
1153         and "invisible_set" which were missing
1154
1155         * gtk/gtkrbtree.h: some cheesy indentation fix
1156         
1157 2000-12-20  Alexander Larsson  <alexl@redhat.com>
1158
1159         * gtk/gtkinvisible.c (gtk_invisible_realize):
1160         Attach the style to the window so that the style it is not
1161         leaked when unrealizing the window.
1162
1163 >>>>>>> 1.1626
1164 2000-12-18  Havoc Pennington  <hp@redhat.com>
1165
1166         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
1167         begin/end user action where appropriate
1168         (gtk_text_view_commit_handler): add begin/end user action
1169
1170         * gtk/gtktextbuffer.c: add begin/end user action signals, and
1171         bracket interactive operations with begin/end user action pair.
1172         
1173         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
1174         "interactive" arg from insert_text and delete_text signals.
1175         Add begin_user_action, end_user_action signals
1176         (gtk_text_buffer_begin_user_action): 
1177         (gtk_text_buffer_end_user_action): New functions to delimit 
1178         a user-visible action
1179
1180         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
1181         signals.
1182         
1183 2000-12-18  Havoc Pennington  <hp@redhat.com>
1184
1185         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
1186         was pretty non-working.
1187
1188         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
1189         by passing the length to g_utf8_validate().
1190
1191 2000-12-16  Havoc Pennington  <hp@pobox.com>
1192
1193         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
1194         Port to GObject, can go back in gdk-pixbuf after setting up 
1195         a gdk-pixbuf-marshal.h header over there.
1196
1197         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
1198         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
1199         args
1200         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
1201         set
1202         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
1203         here, do it when we create the buttons later
1204         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
1205         (gtk_tree_view_map): paranoia checks that column->button is shown 
1206         and unmapped
1207         (gtk_tree_view_size_request): only request visible children.
1208         Move header size calculation in here, for cleanliness, and 
1209         to maintain invariants for child widgets if we eventually 
1210         let users set different children inside the buttons
1211         (gtk_tree_view_map_buttons): factor out code to map buttons,
1212         since it was being called several times
1213         (gtk_tree_view_size_allocate_buttons): move_resize the drag
1214         windows instead of just moving them; their height may change 
1215         if we allow random widgets in there, or the theme changes.
1216         (gtk_tree_view_size_allocate): move button size allocation 
1217         above emitting the scroll signals, to ensure a sane state when we
1218         hit user code
1219         (gtk_tree_view_button_release): remove queue_resize after
1220         tree_view_set_size(), set_size() will handle any resize queuing
1221         that's needed
1222         (gtk_tree_view_focus_in): just queue a draw, don't fool with
1223         draw_focus goo
1224         (gtk_tree_view_focus): use gtk_get_current_event() and
1225         gdk_event_get_state()
1226         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
1227         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
1228         semicolon
1229         (gtk_tree_view_create_button): show the button here
1230         (gtk_tree_view_button_clicked): actually emit the clicked signal
1231         on the column
1232         (_gtk_tree_view_set_size): return right away if the size is
1233         unchanged, as a cheesy optimization
1234         (gtk_tree_view_setup_model): rename set_model_realized to 
1235         setup_model to match the flag that indicates whether we've 
1236         called it
1237         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
1238         exist, because set_scroll_adjustment does that and it shouldn't
1239         matter what order you call these in
1240         (gtk_tree_view_get_vadjustment): ditto
1241         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
1242         for paranoia
1243         (gtk_tree_view_set_headers_visible): call
1244         gtk_tree_view_map_buttons() instead of using cut-and-paste code
1245         (gtk_tree_view_append_column): clarify whether the return value
1246         is the count of columns before or after, and do the increment 
1247         separately from the return statement so you can tell from the code.
1248         (gtk_tree_view_remove_column): ditto
1249         (gtk_tree_view_insert_column): ditto
1250         (gtk_tree_view_get_column): remove g_return_if_fail for columns
1251         outside the existing range, the docs say that outside-range
1252         columns are allowed, so we handle them as documented. (Presumably
1253         this allows a nice loop with column != NULL as test.)
1254         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
1255         mean (left/right/center etc.).
1256         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
1257         (gtk_tree_view_expand_row): add docs
1258         (gtk_tree_view_collapse_row): add docs
1259
1260         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
1261         function to emit the clicked signal on a column
1262         
1263         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
1264         state of an event
1265         (gdk_event_get_time): don't treat GDK_SCROLL 
1266         as a button event, remove default case from switch so gcc 
1267         will whine if we don't explicitly handle all event types
1268
1269         * gtk/gtktreeselection.h: added some FIXME 
1270         
1271         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
1272         "columns" to "n_columns" and "column" to "columns" for clarity
1273
1274 2000-12-16  Havoc Pennington  <hp@pobox.com>
1275         
1276         * gtk/gtktextiter.c: General cleanup of the log attr iteration
1277         stuff. This should make e.g. the delete key work again in the
1278         text widget...
1279         (gtk_text_iter_forward_cursor_positions): handle negative count
1280         (gtk_text_iter_backward_cursor_positions): handle negative count
1281         (gtk_text_iter_forward_word_ends): handle negative count
1282         (gtk_text_iter_backward_word_starts): handle negative count
1283
1284         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
1285         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
1286         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
1287         GObject. No doubt will cause breakage.
1288
1289         * demos/gtk-demo/textview.c: remove hacks around
1290         non-GObject-ification of the text objects
1291
1292         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
1293         the text tag
1294         
1295 2000-12-14  Havoc Pennington  <hp@pobox.com>
1296
1297         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
1298         that we have Xrender
1299
1300 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
1301
1302         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
1303         Add two virtualized functions gdk_drawable_get_clip_region - to
1304         get the clip region when drawing.
1305         
1306         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
1307         use invalidate_region.
1308
1309         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
1310         region.
1311
1312         * acconfig.h configure.in: Check for Xft. For now, assume
1313         that if Xft is found, Pango was compiled with Xft support
1314         as well.
1315
1316         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
1317         gdk_colormap_query_color().
1318         
1319         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
1320         with Xft if appropriate.
1321
1322         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
1323         a pangoxft context if we have XFT and the environment
1324         variable GD_USE_XFT is set.
1325         
1326         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
1327         and also possibly an XftDraw structure.
1328
1329         * gtk/gtkfontsel.c: Handle the case where the font from the
1330         style doesn't match any of the fonts a bit better.
1331         
1332         * gtk/testgtk.c: Add tabs between directional segments for
1333         hebrew/arabic test. (Not really necessary, just a little
1334         prettier.)
1335
1336 2000-12-14  Havoc Pennington  <hp@redhat.com>
1337
1338         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
1339         reading a file
1340
1341 2000-12-14  Havoc Pennington  <hp@redhat.com>
1342
1343         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
1344         unused call to get_last_line()
1345
1346         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
1347         here until boxed is working (and maybe after that - we should
1348         really not gratuitously break old code)
1349
1350         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
1351         specific types for font_desc and tabs args, move them to
1352         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
1353         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
1354
1355         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
1356         use GTK_TYPE_POINTER for signal signatures as a hack-around
1357
1358         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
1359         PangoTabArray
1360
1361         * gtk/gtktextlayout.c (line_display_iter_to_index): 
1362         make static
1363         (line_display_index_to_iter): make static
1364
1365         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
1366         to marshal a string not a boxed
1367
1368         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
1369
1370         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
1371         since the UTF-8 isn't validated yet
1372
1373         * gtk/gtktextsegment.c (char_segment_check_func): don't require
1374         lines to end in '\n'
1375         
1376         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
1377         forward_to_delimiters, and grapheme boundaries
1378         (gtk_text_view_delete_from_cursor): properly handle non-newline
1379         delimiters, and grapheme boundaries
1380
1381         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
1382         to gtk_text_iter_forward_to_delimiters, and make it work properly
1383         if empty lines end with a character other than '\n'
1384
1385         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
1386         position
1387
1388 2000-12-15  Tor Lillqvist  <tml@iki.fi>
1389
1390         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
1391
1392         * gtk/gtk.def
1393         * gdk/gdk.def: Update.
1394
1395         * gdk/win32/gdkmain-win32.c
1396         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
1397         gdkmain-win32.c here.
1398
1399         * gdk/win32/makefile.mingw.in (all): No need to make
1400         gdk-win32res.o here, the makefile one step up will call us to make
1401         it.
1402
1403         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
1404         gdkkeys-win32.
1405
1406         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
1407
1408         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
1409         call to g_source_add().
1410
1411         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
1412         leak. Thanks to Andreas Kemnade.
1413
1414 2000-12-13  Havoc Pennington  <hp@pobox.com>
1415
1416         * gtk/gtktextbtree.h: Remove double _ in front of some functions
1417
1418         * gtk/gtktext*.[hc]: update accordingly
1419         
1420 2000-12-13  Havoc Pennington  <hp@pobox.com>
1421
1422         * gtk/gtktextbtree.h: Put _ in front of every function in this 
1423         header file
1424
1425         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
1426
1427 2000-12-13  Alex Larsson  <alexl@redhat.com>
1428
1429         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
1430         Add support for ps2 intellimouse.
1431
1432         * gdkkeyboard-fb.c:
1433         Move shift-F1 repaint handling to xlate handler only.
1434         
1435         * docs/README.linux-fb:
1436         Add imps2 to docs.
1437         Document the new refresh keys.
1438         
1439 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
1440
1441         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
1442
1443         * gtk/gtkbox.c: change property types from (u)long to (u)int for
1444         ::position and ::padding.
1445
1446         * gtk/gtkcontainer.c: make ::border_width an INT property.
1447
1448         * gtk/gtkpacker.c: make ::position an INT property.
1449
1450         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
1451         guard against NULL h/v scrollbars, since this is used at construction
1452         time.
1453
1454         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
1455         internal gtk_clist_constructor().
1456
1457         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
1458         gtk_ctree_constructor().
1459
1460         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
1461         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
1462
1463         * docs/reference/Makefile.am: fun stuff, disabled docs generation
1464         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
1465
1466         * gtk/gtkwidget.[hc]:
1467         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
1468         and gtk_widget_get().
1469         (gtk_widget_new): use g_object_new_valist().
1470         (gtk_widget_set): use g_object_set_valist().
1471
1472         * gtk/gtkobject.[hc]:
1473         removed gtk_object_arg_get_info(), gtk_object_getv(),
1474         gtk_object_query_args(), gtk_object_newv(),
1475         gtk_object_class_add_signals(),
1476         gtk_object_class_user_signal_new(),
1477         gtk_object_class_user_signal_newv(),
1478         gtk_object_arg_set(), gtk_object_arg_get(),
1479         gtk_object_args_collect(),
1480         gtk_object_default_construct(),
1481         gtk_object_constructed(),
1482         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
1483         removed nsignals, signals and n_args members from GtkObjectClass.
1484         (gtk_object_new): use g_object_new_valist().
1485         (gtk_object_set): use g_object_set_valist().
1486         (gtk_object_get): use g_object_get_valist().
1487         
1488         * gtk/gtkcompat.h: define gtk_object_default_construct().
1489         
1490         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
1491         g_object_new().
1492
1493         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
1494         fucntions, cleaned up method assignments (make sure your structures
1495         are setup properly before calling out). removed all GTK_CONSTRUCTED
1496         hacks ;)
1497
1498 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
1499
1500         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
1501         off-by-one error in checks. (Dave Lambert)
1502
1503 2000-12-12  Alexander Larsson  <alexl@redhat.com>
1504
1505         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
1506         Don't free gdk_fb_keyboard twice.
1507
1508 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
1509
1510         * gtk/testgtk.c:
1511         (create_tooltips): 
1512         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
1513         use GObject swapped_signal:: properties instead.
1514
1515         * gtk/gtkcellrenderertoggle.c: 
1516         * gtk/gtkcellrenderertextpixbuf.c: 
1517         * gtk/gtkcellrenderertext.c: 
1518         * gtk/gtkcellrendererpixbuf.c: 
1519         * gtk/gtkcellrenderer.c:
1520         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
1521         missing warnings for invalid property ids, install properties
1522         with g_object_class_install_property() now.
1523         
1524         * gtk/gtksignal.c:
1525         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
1526         
1527 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
1528         
1529         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
1530         to determine if a window is the focus widget within
1531         its toplevel.
1532
1533         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
1534         to be boolean.
1535
1536         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
1537         of the case where the container CAN_FOCUS to here instead
1538         of having it in each individual move-the-focus place.
1539
1540         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
1541         focusing to be geometric in a much more obvious sense. Arrowing
1542         around is still non-intuitive because it isn't perfect and
1543         because entries, etc, grab the arrow keys, but it at least
1544         usually will do what you expect now.
1545         
1546         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
1547         file.
1548
1549         * gtk/gtknotebook.c: Change tabs to be a single item in
1550         the focus chain. Make movement of focus on tabs with arrow
1551         keys wrap around.
1552         
1553         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
1554         CHECK_FIND_CHILD macro to give informative error messages
1555         instead of silent returns.
1556
1557         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
1558         flag since we handle GdkReturn on the tabs.
1559
1560         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
1561         windows rather than sending expose events directly.
1562
1563         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
1564         definition for GtkNotebookPage into .c file, since it is private.
1565
1566         * gtk/testgtk.c (create_notebook): Add option for 
1567         testing borderless notebook.
1568
1569         * gtk/testgtk.c (page_switch): Removed egregious poking
1570         around in GTK+ internals.
1571
1572         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
1573
1574         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
1575         properly through gtk_clist_focus. Make the title headers a
1576         single item in the tab-focus chain, and make left-right wrap
1577         around.
1578
1579         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
1580         focus method so that wrapping around works properly.
1581
1582         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
1583         that is handled for the widget now. 
1584
1585 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
1586
1587         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
1588         widgets as TOPLEVEL.
1589
1590         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
1591         TOPLEVEL widgets are containers.
1592
1593         * gtk/gtkinvisible.h: Remove useless include.
1594
1595 2000-12-11  Havoc Pennington  <hp@redhat.com>
1596
1597         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
1598         Handle chopping off \r\n and 0x2029 in addition to \n before
1599         passing to PangoLayout
1600
1601         * gtk/gtkimcontextsimple.c
1602         (gtk_im_context_simple_get_preedit_string): 
1603         return an empty string if no match is pending
1604
1605         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
1606         assertion that the returned preedit string was sane
1607
1608         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
1609         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
1610         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
1611
1612 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
1613
1614         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
1615         Fix up finalizer to chain to its parent.
1616
1617 2000-12-11  Alexander Larsson  <alexl@redhat.com>
1618
1619         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
1620         Clearified the difference between the keyboard types. Wrote a note
1621         about the magic sysrq key to get out of raw mode.
1622
1623 2000-12-09  James Henstridge  <james@daa.com.au>
1624
1625         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
1626         member to hold masks for detecting the start of a protocol packet.
1627         (mouse_devs): add packet start masks for ps2 and ms device types.
1628         Left the mask for fidmour blank, as I have no idea what it should
1629         be.
1630         (handle_mouse_io): skip bytes until we get to the start of a
1631         packet.  My Logitech mouse seems to be passing an extra NULL pad
1632         byte, and GPM does a similar thing here.
1633         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
1634         this is the ms mouse driver.
1635         (gdk_fb_mouse_ms_packet): fix up button handling, which was
1636         completely broken except for button1.  It was checking the wrong
1637         bit in the packet for the status of the right mouse button, and
1638         wrongly assuming right == button2 rather than 3.  I fixed that and
1639         also added support for middle button (button2).
1640
1641 2000-12-08  Havoc Pennington  <hp@redhat.com>
1642
1643         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
1644         that cause a segfault on text insertion
1645
1646         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
1647         warning
1648
1649         * gtk/gtktextiter.c (test_log_attrs): use
1650         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
1651
1652         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
1653         Get log attrs for a line, using a cache stored on the buffer
1654         
1655         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
1656         reported by Jeff Franks
1657
1658 >>>>>>> 1.1623
1659 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1660
1661         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
1662         /dev/ttyS0 -> /dev/mouse
1663
1664 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1665
1666         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
1667         Added dummy gdk_fontset_load.
1668
1669 2000-12-08  Alexander Larsson  <alexl@redhat.com>
1670
1671         * docs/README.linux-fb:
1672         * docs/Makefile.am:
1673         Initial GtkFB docs.
1674         
1675         * gdk/linux-fb/Makefile.am:
1676         Define GDK_DATA_PREFIX.
1677
1678         * gdk/linux-fb/gdkmain-fb.c:
1679         Fix typo.
1680         Change default display to /dev/fb0.
1681
1682         * gdk/linux-fb/gdkpango-fb.c:
1683         Add $(prefix)/share/fonts/ to font path.
1684         
1685 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1686
1687         * gdk/linux-fb/gdkkeyboard-fb.c:
1688         New file containing the abstracted keyboard driver. Most code
1689         taken from gdkinput-ps2.c
1690
1691         * gdk/linux-fb/gdkinput-ps2.c:
1692         Removed file.
1693         
1694         * gdk/linux-fb/Makefile.am:
1695         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
1696
1697         * gdk/linux-fb/gdkcolor-fb.c:
1698         display->fb was renamed to display->fb_fd.
1699
1700         * gdk/linux-fb/gdkcursor-fb.c:
1701         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1702
1703         * gdk/linux-fb/gdkinput.c:
1704         Moved gdk_input_init here from gdkinput-ps2.c
1705
1706         * gdk/linux-fb/gdkmain-fb.c:
1707         display->fb was renamed to display->fb_fd.
1708         Now the tty and the console is opened here instead
1709         of in the keyboard driver. Also check GDK_VT to see what
1710         tty to open.
1711         Move gdk_beep () here from gdkinput-ps2.c
1712         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1713
1714         * gdk/linux-fb/gdkmouse-fb.c:
1715         Add header.
1716         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1717         Return correct keyboard modifiers.
1718         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
1719
1720         * gdk/linux-fb/gdkprivate-fb.h:
1721         Add tty and vt info to display.
1722         Add orignal modeinfo storage to display
1723         Update global functions
1724
1725         * gdk/linux-fb/gdkwindow-fb.c:
1726         Added gdk_fb_window_find_focus().
1727         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1728
1729 2000-12-07  Havoc Pennington  <hp@pobox.com>
1730
1731         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
1732         function, noticed by Alex
1733
1734 2000-12-06  Elliot Lee  <sopwith@redhat.com>
1735
1736         * configure.in: Detect freetype properly
1737
1738         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
1739         above.
1740
1741 2000-12-06  Alexander Larsson  <alexl@redhat.com>
1742
1743         * gdk/linux-fb/Makefile.am:
1744         Add gdkmouse-fb.c
1745         
1746         * gdk/linux-fb/gdkmouse-fb.c:
1747         New file. Abstracted the mouse drivers a bit.
1748
1749         * gdk/linux-fb/gdkcursor-fb.c:
1750         The cursor hide/show functions was moved here from gdkinput-ps2.c.
1751
1752         * gdk/linux-fb/gdkinput-ps2.c:
1753         Removed old mouse handling code. Moved cursor handling code
1754         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
1755         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
1756         gdk_mouse_get_info.
1757
1758         * gdk/linux-fb/gdkmain-fb.c:
1759         Pass NULL pointers for x,y in gdk_mouse_get_info call.
1760
1761         * gdk/linux-fb/gdkprivate-fb.h:
1762         Removed public gdk_fb_find_common_ancestor, added and renamed
1763         functions for the new mouse handling code.
1764
1765         * gdk/linux-fb/gdkwindow-fb.c:
1766         Moved gdk_fb_window_send_crossing_events here. added global
1767         variable gdk_fb_window_containing_pointer. made
1768         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
1769         renamed to gdk_mouse_get_info.
1770
1771 2000-12-06  Alexander Larsson  <alexl@redhat.com>
1772
1773         * gdk/linux-fb/gdkevents-fb.c:
1774         Update to match latest gmain/gsource changes.
1775
1776         * gdk/linux-fb/gdkinput-ps2.c:
1777         Bogus gdk_keymap_get_entries_for_keycode implementation so that
1778         it links. Will be implemented later.
1779
1780 2000-12-03  Havoc Pennington  <hp@pobox.com>
1781
1782         * gdk/Makefile.am: add gdkkeys.[hc]
1783
1784         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
1785         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
1786
1787         * acconfig.h, configure.in: add checks and command line options
1788         for XKB
1789
1790         * gdk/x11/gdkkeys-x11.c: Implement the above functions
1791         
1792         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
1793         and group in the key event
1794
1795         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
1796         field with the low-level hardware key code, and a group
1797         field with the keyboard group
1798
1799         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
1800         and declare a couple globals used for keymap handling
1801         
1802         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
1803         hold down Shift-Control and type a hex number to get a Unicode 
1804         character corresponding to the hex number
1805         (gtk_im_context_simple_get_preedit_string): Fix cursor position
1806         (return bytes not chars)
1807
1808 2000-12-05  Elliot Lee  <sopwith@redhat.com>
1809
1810         * gdk/gdkcolor.h: Make GdkColor specify element sizes
1811         to avoid waste on 64-bit platforms.
1812
1813 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
1814
1815         * INSTALL: Fix link to PNG home, remove reference
1816         to fribidi.
1817
1818         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
1819         
1820         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
1821         tested.)
1822
1823         * gtk/gtkcheckmenuitem.c: Permanently turn on
1824         always_show_toggle.
1825
1826         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
1827         be NULL. (Vladimir Klebanov, #26545)
1828
1829         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
1830         some signed/unsigned comparison problems. (#6510,
1831         David Kaelbling)
1832
1833         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
1834         return type to boolean (Oskar Liljeblad, #18648)
1835
1836 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1837
1838         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
1839         Remove bogus colormap setting.
1840
1841 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1842
1843         * gdk/linux-fb/gdkcolor-fb.c:
1844         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
1845
1846         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
1847         Must set colormap.
1848         
1849 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
1850
1851         * docs/tutorial/gtk-tut.sgml: DND updates
1852
1853 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
1854
1855         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
1856         Remove old debug g_warning().
1857         (gdk_fb_draw_drawable): The src argument can be either a wrapper
1858         or an implementation, just pass the implementation to draw_drawable_2.
1859         
1860         * gdk/linux-fb/gdkprivate-fb.h:
1861         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
1862
1863         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
1864         clear and invalidate area when window is destroyed.
1865         (send_map_events): Remove old commented out code.
1866
1867 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1868
1869         * gdk/linux-fb/gdkpango-fb.c:
1870         Use italic instead of oblique in font aliases.
1871         
1872         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
1873         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
1874         other unsupported functions.
1875
1876 2000-12-04  Havoc Pennington  <hp@redhat.com>
1877
1878         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
1879
1880         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
1881
1882         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
1883
1884         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
1885         hack to avoid infinite loops (synthetic expose event) - 
1886         Owen has more appropriate fixes in a branch he'll check in later.
1887
1888         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
1889         separator, CR, and CRLF as line ends
1890
1891         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
1892         into lines using pango_find_paragraph_boundary(); other bits of
1893         the widget are still going to be broken if the boundary isn't '\n'
1894         though
1895
1896 2000-12-04  Alexander Larsson  <alexl@redhat.com>
1897
1898         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
1899         multiply.
1900
1901         * gdk/linux-fb/gdkpango-fb.c:
1902         Copied some 26.6 scaling macros from pango to clean up the rounding.
1903         (pango_fb_font_get_glyph_info): Correct sign on x value.
1904
1905         * gdk/linux-fb/gdkprivate-fb.h:
1906         Removed unreferenced external functions.
1907
1908         * modules/linux-fb/Makefile.am: Use ` instead of '.
1909
1910         * modules/linux-fb/basic.c:
1911         Remove dead code. In particular the dummy lang engine which broke all
1912         pango layouts in GtkFB. Don't include tables-big.i anymore.
1913
1914         * modules/linux-fb/tables-big.i:
1915         Upgrade to latest version from pango. Left for reference, basic_ranges
1916         moved to basic.c.
1917         
1918 2000-12-04  Havoc Pennington  <hp@redhat.com>
1919
1920         Fix bugs Alex found:
1921         
1922         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
1923         to "draw"
1924
1925         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
1926
1927         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
1928
1929         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
1930         implementation in here, apparently the expose() implementation was
1931         dead code.
1932
1933 2000-12-04  Alexander Larsson  <alexl@redhat.com>
1934
1935         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
1936         Return positive descent.
1937
1938 2000-12-02  Havoc Pennington  <hp@pobox.com>
1939
1940         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
1941         method and signal
1942         
1943         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
1944         calls gdk_window_process_updates() to push the exposes through
1945         (gtk_widget_class_init): No more draw signal, no
1946         gtk_widget_real_draw()  
1947         
1948         * gtk/gtkbin.c (gtk_bin_draw): remove
1949
1950         * gtk/gtkbox.c (gtk_box_draw): remove
1951
1952         * gtk/gtkbutton.c (gtk_button_draw): remove
1953
1954         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
1955
1956         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
1957
1958         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
1959
1960         * gtk/gtkclist.c (gtk_clist_draw): remove
1961
1962         * gtk/gtkentry.c (gtk_entry_draw): remove
1963
1964         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
1965
1966         * gtk/gtkfixed.c (gtk_fixed_draw): remove
1967
1968         * gtk/gtkframe.c (gtk_frame_draw): remove
1969
1970         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
1971
1972         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
1973
1974         * gtk/gtklayout.c (gtk_layout_draw): remove
1975
1976         * gtk/gtklist.c (gtk_list_draw): remove
1977
1978         * gtk/gtklistitem.c (gtk_list_item_draw): remove
1979
1980         * gtk/gtkmenu.c (gtk_menu_draw): remove
1981
1982         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
1983
1984         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
1985
1986         * gtk/gtknotebook.c (gtk_notebook_draw): remove
1987
1988         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
1989
1990         * gtk/gtkpacker.c (gtk_packer_draw): remove
1991
1992         * gtk/gtkrange.c (gtk_range_draw): remove
1993
1994         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
1995
1996         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
1997
1998         * gtk/gtktable.c (gtk_table_draw): remove
1999
2000         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
2001
2002         * gtk/gtktext.c (gtk_text_draw): remove
2003
2004         * gtk/gtktextview.c (gtk_text_view_draw): remove
2005
2006         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
2007
2008         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
2009
2010         * gtk/gtktree.c (gtk_tree_draw): remove
2011
2012         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
2013
2014         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
2015
2016         * gtk/gtkviewport.c (gtk_viewport_draw): remove
2017
2018         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
2019
2020         * gtk/gtkvscale.c (gtk_vscale_draw): remove
2021
2022         * gtk/gtkwindow.c (gtk_window_draw): remove
2023
2024 2000-20-01  Anders Carlsson  <andersca@gnu.org>
2025
2026         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
2027         a GtkToggleButton is both insensitive and active, it was being
2028         drawn by the GtkButton draw handler which doesn't check the
2029         state. Now it's calling gtk_toggle_button_paint instead.
2030         
2031 2000-12-01  Havoc Pennington  <hp@redhat.com>
2032
2033         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
2034         dangling pointers to the appearance attributes from the 
2035         line display
2036
2037         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
2038         width/height to mean "full width/height of drawable"
2039
2040         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
2041         click to select word/line
2042         
2043         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
2044         when getting log attrs. Get a slice, so that pixmaps and stuff
2045         are properly handled.
2046
2047         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
2048         paste into the selection (replaces selection now, previously
2049         crashed or added to selection). Reveals longstanding btree bug -
2050         select multiple lines, middle-click on the selection, boom. This
2051         isn't related to my changes though.
2052
2053         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
2054         PangoLogAttrs changes
2055         (gtk_entry_move_backward_word): ditto
2056
2057         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
2058         functions return bool whether the iter moved onto a
2059         dereferenceable position.
2060  
2061         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
2062         functions for motion in terms of display lines.
2063
2064         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
2065         get the buffer a mark is inside
2066         
2067 2000-12-01  Alexander Larsson  <alexl@redhat.com>
2068
2069         * gdk/linux-fb/Makefile.am:
2070         * modules/linux-fb/Makefile.am:
2071         Freetype 2 final uses freetype-config
2072
2073         * gdk/linux-fb/gdkpango-fb.c:
2074         Upgrade to use Freetype 2 final.
2075         More flexible support for font aliases, this also fixes a bug with
2076         GtkFontSelector, as the aliases must be visible in the font/family list,
2077         or GtkFontSelector reads uninitialized memory.
2078
2079 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
2080
2081         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
2082         XGetIMValues to properly terminate variable argument list, and do
2083         NULL return check for ic_values and xim_styles.
2084
2085         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
2086         Restore preedit state after XmbResetIC().
2087         
2088         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
2089         XvaCreateNestedList() should take XvaNestedList, but not
2090         XvaNestedList*.
2091
2092         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
2093         preedit_draw_callback, preedit_caret_callback): Match
2094         "preedit-changed" signal name to "preedit_changed" to be
2095         consistent to the spec.
2096
2097         * gtk/gtkimcontextsimple.c (check_table):
2098         Match "preedit-changed" to "preedit_changed" to be consistent
2099         to the spec.
2100
2101 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
2102
2103         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
2104         gc->clip_region == NULL>
2105
2106 2000-11-30  Tor Lillqvist  <tml@iki.fi>
2107
2108         Changes by Hans Breuer:
2109         
2110         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
2111         Dont't use negative width and height as max_hints. This fixes
2112         Owen's recent testgtk changes for win32.
2113
2114         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
2115         gdk_win32_hdc_release): These are exported and may be called with
2116         other drawable types than our GdkDrawableImplWin32 (?).
2117
2118         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
2119         so always #define USE_BACKING_STORE.
2120
2121         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
2122         of printf for debugging output.
2123
2124         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
2125         
2126         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
2127
2128         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
2129         declaration.
2130
2131         * gtk/gtktexttypes.h: Ditto.
2132
2133         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
2134         (GDK_VoidSymbol) also if in case of arg check failure.
2135
2136         * gtk/gtkimcontextsimple.c
2137         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
2138         position to the pointer, but to the variable it points to.
2139
2140         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
2141
2142         * gtk/gtk.def: Updates.
2143
2144 2000-11-29  Elliot Lee  <sopwith@redhat.com>
2145
2146         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
2147         GTK_TYPE_TREE_MODEL.
2148
2149 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2150
2151         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
2152         Set the size of the font from the description.
2153         (gdk_text_width): Gross hack that calculates the width
2154         of text by text_length * size/2. This is necessary because
2155         GtkLabel does some ugly gtk_string_width call to calculate
2156         an good size.
2157         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
2158
2159 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
2160
2161         * docs/tutorial/gtk-tut.sgml: DND updates
2162
2163 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2164
2165         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
2166         If you pass width or height == 0 to gdk_window_clear_area they
2167         should be calculated from the window size.
2168
2169 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2170
2171         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
2172         a grab, but no grab-cursor, use the cursor from the grabbed
2173         window. (gdk_fb_window_send_crossing_events): Send normal
2174         enter/leave notifications if grab and owner_events == TRUE.
2175
2176 2000-11-29  Alexander Larsson  <alexl@redhat.com>
2177
2178         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
2179         Do implicit button grabs, even if the window doesn't
2180         want the event.
2181         (gdk_fb_window_send_crossing_events): If there is a
2182         grab, only the grabbed window gets normal enter/leave
2183         notifications. On ungrab go from grabbed window to current.
2184         Don't send any notification to b when propagating from c -> b.
2185         If setting a grab on window, don't set prev_window.
2186         (handle_mouse_input): Send enter/leave events to the window the
2187         mouse is over, not the grabbed one.
2188         
2189 2000-11-28  Elliot Lee  <sopwith@redhat.com>
2190
2191         * gdk/gdkregion-generic.c: Zap warning.
2192         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
2193         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
2194
2195 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
2196
2197         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
2198         The cursor should be hidden if it is part of either the
2199         source or destination region. Not only if it is in both.
2200         (gdk_window_set_transient_for): Silence warnings.
2201
2202 2000-11-28  Alexander Larsson  <alexl@redhat.com>
2203
2204         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
2205         The default mode in X is Pie Arcs, therefore that is
2206         what Gtk+ uses.
2207
2208 2000-11-28  Alexander Larsson  <alexl@redhat.com>
2209
2210         * gdk/linux-fb/gdkinput-ps2.c:
2211         Implement correct EnterNotify/LeaveNotify:
2212         (gdk_fb_window_send_crossing_events): New function that sends
2213         all GdkCrossingEvents from the last mouse-window to the specified
2214         destination.
2215         (gdk_fb_window_visibility_crossing): Removed function.
2216         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
2217         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
2218         instead of gdk_window_get_pointer() for better readability.
2219
2220         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
2221         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
2222
2223         * gdk/linux-fb/gdkprivate-fb.h:
2224         removed gdk_fb_window_visibility_crossing, added
2225         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
2226
2227         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
2228         New function that finds the least common ancestor of two windows.
2229         (gdk_window_show, gdk_window_hide):
2230         Use gdk_fb_window_send_crossing_events.
2231         (gdk_fb_window_move_resize): Send configure events to toplevel
2232         windows. Use gdk_fb_window_send_crossing_events.
2233
2234 2000-11-27  Havoc Pennington  <hp@redhat.com>
2235
2236         * gtk/gtkprivate.h (enum): Remove a trailing comma
2237
2238 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
2239
2240         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
2241         the "changed" callback of the adjustment.  We need to redraw the
2242         spin button's arrows when the adjustment's range changes.
2243         (adjustment_changed_cb): Draw the arrows.
2244         (gtk_spin_button_value_changed): Draw the arrows.
2245
2246 2000-11-23  Alexander Larsson  <alexl@redhat.com>
2247
2248         * gdk/linux-fb/gdkselection-fb.c:
2249         Initial selection implementation.
2250
2251         * gtk/gtkselection.c:
2252         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
2253         requestor in gtk_selection_request.
2254         
2255         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
2256         Added gdk_selection_property atom.
2257
2258         * gdk/linux-fb/gdkprivate-fb.h:
2259         Export _gdk_selection_window_destroyed.
2260         Removed mask_off_x/y from GdkCursorPrivateFB.
2261         Removed hbearing, added top, left to PangoFBGlyphInfo.
2262
2263         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
2264         Call _gdk_selection_window_destroyed
2265         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
2266         the root window has been created.
2267         (static_dx_hack, static_dy_hack, compare_draw_rects,
2268         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
2269         in region. They are already sorted. Instead just traverse them in
2270         reverse if draw_direction < 0.
2271         
2272         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
2273         Double-clicks must be sent after the normal button_press.
2274         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
2275         
2276         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
2277         Pass _gdk_fb_screen_gc instead of NULL.
2278
2279         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
2280         Initialize gdk_selection_property.
2281         (gdk_event_make): Remove unused code.
2282
2283         * gdk/linux-fb/gdkcursor-fb.c:
2284         Make the pixmap for the cursor the same size as the mask. Also remove
2285         the mask_off_x/y fields in GdkCursorPrivateFB and combine
2286         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
2287         Now the whole cursor is visible.
2288
2289         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
2290         Fix bug where xdest+height instead of ydest+height was used
2291         to calculate if the source and dest overlapped. This fixes the
2292         redraw bug when the main window in testgtk was scrolled when
2293         partially covered by a tall window.
2294         Copy rectangles in region in order depending on draw_direction.
2295         Also moved the draw_direction flipping of start_y and end_y into
2296         the gc functions, as this might not be what all of them want.
2297         (gdk_fb_draw_lines): Support dashed lines.
2298         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
2299         so that the text is positioned correctly (was 1 pixel high).
2300
2301         gdk/linux-fb/gdkgc-fb.c:
2302         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
2303         all lines were drawn a pixel to short. Also checked the default of
2304         the rest of the values, and they're the same as X now.
2305
2306         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
2307         Clean up pixel positioning of the glyphs. Just use bgy->top and
2308         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
2309         to all divisions to get correct rounding behaviour.
2310
2311         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
2312         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
2313         Moved start_y/end_y flip into draw_drawable implementations.
2314         Flip also x rendering when draw_direction < 0.
2315         Remove unneccesary multiply with draw_direction.
2316
2317 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
2318
2319         * docs/tutorial/gtk-tut.sgml:
2320           - get rid of gtk_toggle_button_toggled FUD
2321           - start DND section - needs work - based on:
2322                 http://wolfpack.twu.net/docs/gtkdnd/
2323
2324 2000-11-22  Alexander Larsson  <alexl@redhat.com>
2325
2326         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
2327         Correct calculation of font metrics. Now GtkEntrys have sane
2328         size.
2329
2330 2000-11-22  Alexander Larsson  <alexl@redhat.com>
2331
2332         * gdk/gdktypes.h:
2333         Add new type GdkSpan
2334         
2335         * docs/reference/gdk/gdk-sections.txt,
2336         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
2337         gdk/gdkregion.h:
2338         Implement and document gdk_region_spans_intersect_foreach.
2339
2340         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
2341         Add new file gdkrender-fb.c which contains all core
2342         rendering code.
2343         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
2344         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
2345         (optimized rectangle fillers).
2346
2347         * gdk/linux-fb/gdkdrawable-fb2.c:
2348         Move all rendering code to gdkrender-fb.c.
2349         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
2350         Use the new span intersection functions in gdk_fb_fill_spans.
2351         gdk_fb_draw_rectangle() clips filled rectangles and calls
2352         gc->fill_rectangle with the result.
2353         gdk_fb_fill_spans() gets extra argument "sorted".
2354
2355         * gdk/linux-fb/gdkevents-fb.c:
2356         Remove unused includes and defines.
2357         New function gdk_fb_get_time() to get correct time for events.
2358
2359         * gdk/linux-fb/gdkinput-ps2.c:
2360         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
2361         Make sure to set the time of all events.
2362
2363         * gdk/linux-fb/gdkmain-fb.c:
2364         Use gdk_fb_get_time ().
2365
2366         * gdk/linux-fb/gdkprivate-fb.h:
2367         New virtual GC calls: fill_span & fill_rectangle.
2368         Export gdk_fb_get_time().
2369         gdk_fb_fill_spans() gets extra argument "sorted".
2370
2371         * gdk/linux-fb/mi*.c:
2372         Use GdkSpan instead of GdkRectangle.
2373         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
2374         from XFree 4 source)
2375         
2376 2000-11-22    <jrb@redhat.com>
2377
2378         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
2379         reversing the order in an if statement will do.  Doing so managed
2380         to make the treemodelsort half work.  Other half will follow after
2381         I get the insert function fully fixed.
2382
2383 2000-11-21  Elliot Lee  <sopwith@redhat.com>
2384         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
2385         more than 2 bits. Besides, I need to implement an evil hack. :)
2386
2387 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
2388
2389         * docs/tutorial/gtk-tut.sgml: minor corrections
2390
2391 2000-11-20  Jonathan Blandford <jrb@redhat.com>
2392         * gtk/gtktreemodelsort.h: Add convertion functions to let you
2393           convert to and from relative path's and iters.
2394
2395         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
2396           testing sorting functions a bit better.  Currently broken -- will
2397           fix in morning.
2398
2399 2000-11-20  Havoc Pennington  <hp@redhat.com>
2400
2401         * gtk/gtkwidget.c: Documented a bunch of functions in here
2402         (gtk_widget_realize): Warn if you try to realize
2403         a widget with no parent that isn't a toplevel
2404         (gtk_widget_intersect): return a gboolean
2405
2406 2000-11-20  Havoc Pennington  <hp@redhat.com>
2407
2408         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
2409         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
2410         scrolling to be implemented in GDK to finish. Also, right now
2411         we just size_allocate all children on every layout change,
2412         which is pretty lame. Test commented out of testtext.c, 
2413         until it works better.
2414
2415 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
2416
2417         * gdk/linux-fb/gdkdrawable-fb2.c:
2418         Removed unused arguments from gdk_fb_drawable_get_pixel().
2419
2420         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
2421         Renamed fidur specific mouse packet data in MouseDevice to
2422         generic. Used it in ps2 mouse handling code to avoid blocking
2423         reads.
2424
2425 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
2426
2427         * demos/gtk-demo/main.c: Changed to have the list become
2428         non-italic when the demo window is destroyed through an external
2429         event (like a close button).  Doing so found three bugs in the
2430         widget.
2431
2432         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
2433
2434         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
2435         we actually set the cell.
2436
2437         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
2438
2439         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2440         free a leaked path.  Thanks memprof.
2441
2442 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
2443
2444         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
2445         off-by-one error when destroying allocated segments
2446         on failure. (Elliot)
2447
2448 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
2449
2450         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
2451         memleaks found by Evan Martin.
2452
2453 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
2454
2455         * Released 1.3.2
2456         
2457         * NEWS: Updates for 1.3.2
2458
2459 2000-11-17  Tor Lillqvist  <tml@iki.fi>
2460
2461         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
2462         but in general for window system specific events.
2463
2464         * gtk/gtk.def
2465         * gtk/makefile.mingw.in
2466         * gtk/makefile.msc.in: Update.
2467         
2468         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
2469
2470 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
2471
2472         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
2473         distribute gtk.immodules.
2474
2475         * gtk/Makefile.am (install-data-local): Don't install the
2476         gtk.immodules file created for the uninstalled modules;
2477         instead run gtk-query-immodules after install
2478
2479 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
2480
2481         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
2482         -rpath to the right install location.
2483
2484         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
2485         -export-dynamic.
2486
2487         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
2488         properly.
2489
2490 2000-11-15  Havoc Pennington  <hp@pobox.com>
2491
2492         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
2493         patch from Mikael Hermansson to temporarily stop blinking while
2494         the user is using the keyboard to type or navigate. 
2495
2496         Also, when blinking, stay on for longer than we stay off. Also,
2497         return from start_cursor_blink if !cursor_visible, to save
2498         checking that flag all over the place before we call
2499         start_cursor_blink.
2500
2501 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
2502
2503         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
2504         only contain a "fontset" line, which is now ignored.
2505
2506         * gtk/gtkentry.c (gtk_entry_button_release): Make 
2507         double-click-to-select-word work.
2508         
2509 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
2510
2511         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
2512         Don't move back one char when we are actually at the end of the 
2513         paragraph.
2514
2515 2000-11-15  Robert Brady  <robert@suse.co.uk>
2516
2517         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
2518         'o' < 'p'.
2519         
2520         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
2521         bind_textdomain_codeset.
2522
2523         (gtk_init_check): Make the warning about translating default:LTR
2524         sterner.
2525         
2526 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
2527
2528         * **/Makefile.am : remove unecessary rules for win32-specific
2529         config-substituted targets. If you want these rules, use
2530         --enable-maintainer-mode (called automatically by autogen.sh).
2531         Stops a lot of unneccessary make-time warnings.
2532
2533         * gtk/gtktext{layout,display}.c: Factor in total width as
2534         well as screen when figuring alignment for word-wrap as well as
2535         no wrap; this is necessary to handle lines that cannot be wrapped
2536         at all.
2537
2538 2000-11-15  Havoc Pennington  <hp@redhat.com>
2539
2540         * gtk/testtext.c: Implement essential color cycling feature
2541
2542 2000-11-15  Havoc Pennington  <hp@redhat.com>
2543
2544         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
2545         when we invalidate the main window.
2546
2547         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
2548         GtkTextView will now invalidate the side windows for us when text
2549         changes.
2550
2551 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
2552
2553         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
2554         unconditionally, since we may need to update the horizontal
2555         scrollbars even if the height didn't change.
2556
2557         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
2558         the extra attrs, since some of them affect size.
2559
2560         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
2561         x_offset correctly.
2562
2563 2000-11-15  Havoc Pennington  <hp@redhat.com>
2564
2565         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
2566         don't move the first line out into the margin, instead move the
2567         whole paragraph in order to make space for the first line within 
2568         the margin
2569
2570 2000-11-15  Havoc Pennington  <hp@redhat.com>
2571
2572         * gtk/gtktextview.c (changed_handler): offset redraw rect by
2573         xoffset in addition to yoffset, so horizontal scrolling doesn't
2574         break redraws
2575
2576 2000-11-15  Havoc Pennington  <hp@redhat.com>
2577
2578         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
2579         from the cursor
2580         (render_layout_line): fix reversed test that caused weird
2581         underlines to get drawn
2582
2583 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
2584
2585         * gdk/linux-fb/gdkprivate-fb.h:
2586         Fix debug macros.
2587         
2588 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
2589
2590         * gdk/linux-fb/gdkprivate-fb.h:
2591         Added virtual functions set_pixel, get_color,
2592         fill_span and draw_drawable to the GC.
2593         Added global _gdk_fb_screen_gc to use instead of
2594         NULL when drawing to the screen.
2595         Added _gdk_fb_gc_calc_state() prototype.
2596
2597         * gdk/linux-fb/gdkgc-fb.c:
2598         Call _gdk_fb_gc_calc_state() on any gc state change.
2599
2600         * gdk/linux-fb/gdkglobals-fb.c:
2601         Add _gdk_fb_screen_gc
2602                 
2603         * gdk/linux-fb/gdkdrawable-fb2.c:
2604         _gdk_fb_gc_calc_state() calculates best functions
2605         for the GC state and depth.
2606         Moved bpp specialized code to separate functions.
2607         Added optimized 24 bpp AA draw_drawable.
2608
2609         * gdk/linux-fb/gdkevents-fb.c:
2610         Silence gcc warning.
2611
2612         * gdk/linux-fb/gdkimage-fb.c:
2613         Use _gdk_fb_screen_gc
2614
2615         * gdk/linux-fb/gdkwindow-fb.c:
2616         Init and use _gdk_fb_screen_gc
2617
2618         * gdk/linux-fb/mitypes.h:
2619         Remove unused types.
2620
2621 2000-11-14  Havoc Pennington  <hp@pobox.com>
2622
2623         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
2624         to pixels
2625
2626 2000-11-14  Havoc Pennington  <hp@pobox.com>
2627
2628         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
2629
2630         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
2631         unknown char, no real reason we were using a variable. 
2632         Remove gtk_text_unknown_char variable. Fix all the text widget
2633         files accordingly.
2634
2635         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
2636         since the Unicode spec seems to prefer that character for our
2637         purposes.
2638
2639 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
2640
2641         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
2642         value of g_getenv() isn't freeable, so g_strdup it.
2643
2644         * modules/input/inuktitut.c: Inuktitut input method.
2645
2646         * modules/input/Makefile.am: Build this.
2647         
2648 2000-11-14  Elliot Lee  <sopwith@redhat.com>
2649
2650         * gtk/Makefile.am: Install gtk.immodules, needed for operation
2651         of gtk programs.
2652
2653 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
2654
2655         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
2656         reversed > that was causing Home to go to end of previous line.
2657
2658         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
2659         modified-keypresses (leave for bindings.)
2660
2661         * modules/input/Makefile.am: Remove useless -export-dynamic
2662         from module LDFLAGS.
2663
2664 2000-11-14  Havoc Pennington  <hp@redhat.com>
2665
2666         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
2667         higher.
2668
2669         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
2670         account. Also, render rise, underline, background, etc. for
2671         pixbufs as well as text. Also, draw underlines one pixel higher.
2672
2673         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
2674         PangoAttribute for the rise, so it gets drawn properly. Also,
2675         add the GtkTextAppearance attribute for pixbuf/widget segments
2676         as well; we should go ahead and have rise, underline, background,
2677         stipple work for those
2678
2679         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
2680         Pango
2681
2682 2000-11-15  Tor Lillqvist  <tml@iki.fi>
2683
2684         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
2685
2686         * gtk/gtk.def: Update.
2687
2688         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
2689         included.
2690         (gtk_rc_get_im_module_file): Use run-time installation directory
2691         on Win32.
2692
2693         * gdk/win32/rc/gdk.rc: Remove.
2694         * gdk/win32/rc/gdk.rc.in: New file.
2695         * gdk/win32/rc/Makefile.am: New file
2696         * gdk/win32/Makefile.am: Corresponding changes.
2697
2698         * gtk/gtk.rc: Remove.
2699         * gtk/gtk-win32.rc.in: New file.
2700         * gtk/Makefile.am: Corresponding changes.
2701
2702         * configure.in: Corresponding changes.
2703
2704         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
2705         has a built gtkcompat.h. Developers using CVS code on Win32 can
2706         hand-edit it from gtkcompat.h.in.
2707
2708         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
2709         gtkcompat.h from gtkcompat.h.win32.
2710
2711 2000-11-14  Havoc Pennington  <hp@redhat.com>
2712
2713         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
2714         to default to GDK_ACTION_MOVE if the drag is within a single
2715         widget. Defaults to GDK_ACTION_COPY between widgets.
2716
2717 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
2718
2719         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
2720
2721         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
2722
2723         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
2724         srcdir != builddir
2725
2726         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
2727
2728         * configure.in (GTK_VERSION): Up to 1.3.2
2729
2730         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
2731         gtkimcontextxim.h
2732
2733         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
2734         missing doc comment.
2735
2736 2000-11-14  Alexander Larsson  <alexl@redhat.com>
2737
2738         * modules/linux-fb/basic.c:
2739         Use the glib iconv wrappers.
2740
2741 2000-11-13  Havoc Pennington  <hp@pobox.com>
2742
2743         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
2744         still more bugs.
2745
2746         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
2747         scroll the GdkWindows before realization.
2748
2749 2000-11-13  Havoc Pennington  <hp@redhat.com>
2750
2751         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
2752         where GC didn't always get updated properly
2753
2754         * demos/gtk-demo/textview.c (create_tags): Use subattributes
2755         of fonts instead of setting the entire font
2756
2757         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
2758         setting entire font
2759
2760         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
2761
2762         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
2763         a bunch of individually-settable font attributes. You can still 
2764         use the "font" and "font_desc" args, they just set all the font
2765         attributes at once.
2766
2767 2000-11-13 Elliot Lee <sopwith@redhat.com>
2768
2769         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
2770
2771 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
2772
2773         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
2774         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
2775
2776         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
2777         work better.
2778
2779 2000-11-13  Havoc Pennington  <hp@redhat.com>
2780
2781         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
2782         the module file.
2783
2784         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
2785         dest->language
2786
2787         * gtk/testtext.c: Test pixels above/below/inside paragraphs
2788         settings
2789
2790         * gtk/gtktextview.c: Implement object args and setters/getters for
2791         all the aspects of the GtkTextAttributes that are not set from
2792         GtkWidget attributes. This is spacing, justification, margins,
2793         etc.
2794
2795         (gtk_text_view_set_arg)
2796         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
2797         args
2798         (gtk_text_view_class_init): Add args for justify, left_margin,
2799         right_margin, indent, and tabs
2800         
2801
2802         * gtk/gtktextlayout.c (set_para_values): fix to display indent
2803         attribute properly
2804
2805         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
2806         replace with indent attribute
2807
2808         * gtk/gtktextlayout.c (set_para_values): multiply indent by
2809         PANGO_SCALE
2810
2811         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
2812         rearranging code to do that
2813         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
2814         i.e. don't subtract the top_margin first, just to keep
2815         all margin-futzing in one place.
2816
2817         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
2818
2819         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
2820         special case of last line, Pango now handles this itself.
2821         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
2822         Y coordinate
2823         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
2824         (find_display_line_above): wasn't moving the byte index as it
2825         iterated over lines, so always returned byte 0. Also, port to use
2826         PangoLayoutIter.
2827         (find_display_line_below): same problem as
2828         find_display_line_above. Also, port to use PangoLayoutIter.
2829
2830 2000-11-13  Alexander Larsson  <alexl@redhat.com>
2831
2832         * gdk/linux-fb/*.[ch]:
2833         Massive reindent to gtk+ standard. My hands hurt.
2834
2835         * gdk/linux-fb/gdkcolor-fb.c:
2836         Move GdkColorPrivateFB from inherited to windowing_data
2837
2838         * gdk/linux-fb/gdkcursor-fb.c:
2839         _gdk_cursor_new_from_pixmap made static
2840
2841         * gdk/linux-fb/gdkdnd-fb.c:
2842         GdkDragContextPrivate moved to windowing_data
2843
2844         * gdk/linux-fb/gdkdrawable-fb2.c:
2845         Removed endian.h, use glib endianness macros instead
2846         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
2847         and GDK_DRAWABLE_IMPL_FBDATA
2848
2849         * gdk/linux-fb/gdkfont-fb.c:
2850         Add empty gdk_font_load(). Needed for linking of Gtk+.
2851
2852         * gdk/linux-fb/gdkimage-fb.c:
2853         Removed endian.h, use glib endianness macros instead
2854         Moved GdkImagePrivateFB to windowing_data
2855         gdk_image_new_bitmap didn't always allocate enough
2856         memory.
2857
2858         * gdk/linux-fb/gdkinput-ps2.c:
2859         Added semi-working support for MS serial mice.
2860
2861         * gdk/linux-fb/gdkprivate-fb.h:
2862         s/GdkWindowPrivate/GdkWindowObject/
2863         Removed GdkWindowPrivate typedef
2864         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
2865         Removed GDK_DRAWABLE_P
2866         Move GdkColorPrivateFB from inherited to windowing_data
2867         Moved GdkImagePrivateFB to windowing_data
2868
2869         * gdk/linux-fb/gdkvisual-fb.c:
2870         Removed some unused debug code.
2871
2872         * gdk/linux-fb/gdkwindow-fb.c:
2873         Use stock cursors instead of including X headers.
2874         s/GdkWindowPrivate/GdkWindowObject/
2875
2876         * gdk/linux-fb/mitypes.h:
2877         Removed unused types.
2878
2879         * modules/linux-fb/basic.c:
2880         Use the pango fribidi wrappers.
2881
2882 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2883
2884         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
2885         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
2886         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
2887         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
2888         GEqualFunc where applicable.
2889         
2890         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
2891         pango_font_description_equal as changed in pango.
2892         
2893         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
2894
2895         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
2896
2897         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
2898
2899         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
2900
2901         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
2902
2903         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
2904
2905         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
2906         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
2907
2908         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
2909         gtk_rc_styles_compare -> gtk_rc_styles_equal.
2910
2911 2000-11-12  Havoc Pennington  <hp@pobox.com>
2912
2913         * demos/gtk-demo/Makefile.am (democodedir): change demo install
2914         dir to datadir/gtk+-2.0/demo
2915
2916         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
2917         sorts of text widget and Pango font bugs. Urgh.
2918
2919         * demos/gtk-demo/Makefile.am (demos): Add textview.c
2920
2921         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
2922         tree that you should double click to see the demo. Fix 
2923         types of variables to reflect changed return values from 
2924         GtkTreeStore and GtkTreeViewColumn constructors.
2925
2926         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
2927         newly-created buffer to prepare for GObject semantics
2928
2929         * gtk/testtext.c: don't leak the buffer with GObject semantics
2930
2931         * gtk/testtextbuffer.c: ditto
2932         
2933 2000-11-12  Havoc Pennington  <hp@pobox.com>
2934
2935         Rename this testgtk to gtk-demo to avoid confusion, and 
2936         install it so people can use it as a supplement to 
2937         the documentation.
2938         
2939         * demos/gtk-demo: Moved from demos/testgtk
2940
2941         * demos/testgtk: Removed
2942
2943         * configure.in: make Makefile in gtk-demo
2944         
2945         * demos/gtk-demo/Makefile.am: Install sample source to 
2946         datadir/gtk-demo (maybe there's a better place?), and 
2947         rename the binary to gtk-demo
2948         
2949         * demos/gtk-demo/main.c (load_file): Load installed sample
2950         source if source isn't found in pwd.
2951
2952 2000-11-09  Havoc Pennington  <hp@pobox.com>
2953
2954         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
2955         argument to set the char displayed when visibility == FALSE
2956         (gtk_entry_create_layout): If !entry->visible, replace 
2957         all chars with the "invisible char"
2958
2959         * gtk/testgtk.c: Test the invisible_char deal
2960         
2961 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
2962
2963         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
2964         can't get a native font in the right encoding.
2965
2966 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
2967
2968         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
2969         respectively.
2970
2971 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
2972
2973         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
2974         Fix warning when moving between paragraphs.
2975
2976         * gtk/gtkentry.[ch]: Change move => move_cursor, 
2977         delete => delete_from_cursor, insert => insert_at_cursor
2978
2979 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
2980
2981         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
2982
2983         * modules/input/imthai-broken.c: A Thai input method for use if
2984         Thai keys are really generating Latin1 keysyms.
2985
2986         * modules/input/Makefile.am: Build these.
2987
2988 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
2989
2990         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
2991         g_filename_{to,from}_utf8 now takes an extra parameter.
2992
2993         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
2994         strftime into UTF-8.
2995
2996         (column_from_x, gtk_calendar_paint_day_names): Support RTL
2997         calendars.
2998
2999         (gtk_calendar_paint_day_names): Draw day names in the right 
3000         place.
3001         
3002 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
3003
3004         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
3005         problem with using result of g_get_charset() backwards -
3006         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
3007
3008         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
3009         negative min_width/height and max_width/height to
3010         mean "requisition"; this allows setting a window
3011         to be user-resizable in only one direction easily.
3012
3013         * gtk/testgtk.c (create_main_window): Remove hard-coded
3014         usize - set a default size in the vertical direction.
3015
3016 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
3017
3018         * gtk/gtkrange.c: Add some missing casts. Support 
3019         2 and 3 button clicks on the arrows to mean 
3020         "move by pages" and "jump to end". (Like gtkspinbutton)
3021
3022 2000-11-12 Hans Breuer <Hans@Breuer.Org>
3023
3024         * gdk/win32/makefile.msc : reflect build module changes
3025
3026         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
3027         from GdkPixmap*, cast implementation member instead.
3028
3029         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
3030         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
3031         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
3032         more Gdi functions return value checking. 
3033         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
3034         GdkImagePrivateWin32 *.
3035
3036         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
3037         menus useable again. Add #pragma message to keep reminded on this issue.
3038         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
3039         windows. This allows to enable backing store on Win32!
3040
3041         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
3042         in drawable is of impl type. Correct specific type checks appropriate.
3043  
3044         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
3045         GDK_WINDOW_DESTROYED before allocating new resources.
3046
3047         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
3048
3049         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
3050         (gdk_window_foreign_new) initialize parent handle.
3051         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
3052
3053         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
3054         Let the GDI invalidate the window on MoveWindow call to fix scrolling
3055         problems (e.g. main buttons in testgtk). 
3056
3057 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
3058
3059         * gtk/gtkentry.c (gtk_entry_key_press): Call 
3060         gtk_widget_activate for GDK_Return.
3061
3062         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
3063         of preedit cursor position.
3064
3065 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
3066
3067         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
3068         static.
3069
3070 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
3071
3072         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
3073         out support for multiple locales; that simple doesn't
3074         work reliably with current Xlib
3075
3076         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
3077         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
3078         Add support for positioning the cursor within the preedit string.
3079
3080 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
3081
3082         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
3083         at XIM input method module.
3084
3085         * gtk/gtktextview.c: Check for bindings after passing
3086         events to im context filter.
3087
3088 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
3089
3090         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
3091         empty attribute lists properly.
3092
3093 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
3094
3095         * gtk/queryimmodules.c (main): Return non-zero exit
3096         status if errors were encountered querying any
3097         modules.
3098
3099         * modules/input/Makefile.am (moduledir): remove
3100         leftover bin program target.
3101
3102         * docs/make-todo: Fix typo in error message.
3103
3104 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
3105
3106         * configure.in: Add modules/input/Makefile
3107
3108 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
3109
3110         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
3111         don't include gtkthemes.h.
3112
3113         * gtk/testgtk.c gtk/testtext.c: Set environment variables
3114         to point
3115
3116         * gtk/Makefile.am: Add new .c and .h files, build 
3117         gtk-query-immodules and use it to create a gtk.immodules
3118         file for use of test programs.
3119
3120         * gtk/gtkpreview.c: remove extra blank line.
3121
3122 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
3123
3124         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
3125         Add the ability to add extra tables beyond the default
3126         one, and also the ability to have compose sequences 
3127         that are prefixes of other compose sequences. 
3128
3129         * gtk/gtkimcontextsimple.c: Export a preedit string which
3130         consists of possible candidates for keystrokes that have
3131         been entered but not yet committed.
3132
3133         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
3134         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
3135
3136         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
3137         Add a function to add input-method switching menu items
3138         to a menu.
3139
3140         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
3141         when switching input methods.
3142
3143         * gtk/gtkimcontextsimple.[ch]: Change the format of
3144         the compose table to allow compose tables of different
3145         lengths / sequence.
3146
3147 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
3148
3149         * gtk/gtkimmodule.[ch]: Support routines for loading
3150         GtkIMContext implementations dynamically at runtime.
3151
3152         * modules/input/imcyrillic-translit.c: A sample input
3153         method (based on GtkIMContextSimple with an extra table),
3154         which demonstrates preedit strings and the module
3155         system for input modules
3156
3157         * gtk/queryimmodules.c: Program to query the available
3158         input modules and write the results into a file.
3159          
3160         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
3161         extra config options "im_module_file" (cache file for
3162         input method modules), and "im_module_path" - path
3163         to look for modules when generating cache file.
3164
3165         This doesn't scale.
3166
3167 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
3168
3169         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
3170         generic code from gtkthemes into a new abstraction
3171         GtkModule which has the logic for implementing
3172         a loadable module which implements a number of 
3173         GObject types.
3174
3175 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
3176
3177         * gtk/gtkeditable.[ch]: Convert GtkEditable from
3178         a class into an interface  
3179         
3180         * gtk/gtkoldeditable.[ch]: Move the old editable
3181         implementation into here, so legacy widgets can
3182         still rely on the implemenation. GtkOldEditable
3183         exports GtkEditable. Make selection handling
3184         code use new text conversion functions (and
3185         handle UTF-8 as a side-effect). Use GtkClipboard
3186         for CLIPBOARD.
3187
3188         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
3189         Adopt to match above changes.
3190
3191         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
3192         avoid GtkOldEditable implementation. Restructure
3193         to reduce number of places that modify state directly.
3194         Move to GtkBindingSet. Display the preedit string.
3195         Queue recomputation of PangoLayout and scroll position
3196         to improve effiency of doing complex changes naively.
3197         Add a menu with cut/copy/paste and input method selection.
3198
3199 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
3200
3201         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
3202         to set preedit string and attributes; display preedit string by
3203         inserting string and attributes at cursor when creating the
3204         GtkTextLineDisplay.
3205
3206         * gtk/gtktextlayout.c: Move all conversions between byte
3207         positions in PangoLayout and GtkTextIter into new functions
3208         line_display_iter_to_index/index_to_iter that properly
3209         handle the preedit string.
3210
3211         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
3212         it to return const char * (eventually will end up
3213         as GCONST char *, most likely.)
3214
3215         * gtk/gtktextview.[ch]: Handle the preedit string, call
3216         gtk_im_context_reset() as necessary, add a menu to switch
3217         input methods.
3218         
3219         * gtk/gtktextlayout.[ch]: Remove useless
3220         gtk_text_layout_get_log_attrs() function.
3221
3222 2000-11-11  Tor Lillqvist  <tml@iki.fi>
3223
3224         * gdk/gdk.def
3225         * gtk/gtk.def: Update.
3226
3227         * gdk/win32/*.c: Add last argument to g_type_register_static()
3228         calls.
3229
3230         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
3231
3232         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
3233         generated by older wheel mouse drivers. Get the correct y
3234         coordinate from WM_MOUSEWHEEL messages.
3235
3236         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
3237         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
3238         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
3239         Debugging functions.
3240
3241         * gdk/win32/gdkprivate-win32.h: Declare them.
3242
3243         * gdk/win32/gdkinput-win32.h: Add declaration for
3244         gdk_input_window_destroy().
3245
3246         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
3247
3248 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
3249
3250         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
3251         function to help handle keeping things in sync.
3252
3253 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
3254
3255         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
3256         BOXED marshallers.
3257
3258         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
3259         (gtk_list_store_class_init): use the new BOXED marshallers.
3260
3261         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
3262         new_with_values to new_with_types.
3263         (gtk_tree_store_get_column_type): add this.
3264         (gtk_tree_store_class_init): use the new BOXED marshallers.
3265
3266         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
3267         mirror some POINTER marshallers.
3268
3269 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
3270
3271         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
3272         allow more interesting iterators.  Also, made the lifecycle of
3273         iterators more explicit.
3274
3275         * gtk/gtktreemodelsort.[ch]: New model for sorting.
3276
3277         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
3278         types.
3279
3280 2000-11-09  Alexander Larsson  <alexl@redhat.com>
3281
3282         * demos/testgtk/menus.c:
3283         Changes to make the new testgtk compile after
3284         gtk_menu_append was removed.
3285
3286         * gdk/linux-fb/gdkdrawable-fb2.c
3287         (gdk_fb_get_depth, gdk_fb_get_visual,
3288         gdk_drawable_impl_fb_class_init): Implement
3289         these drawable functions. Now GtkImages work again.
3290
3291         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
3292
3293         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
3294         
3295         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
3296         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
3297         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
3298         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
3299
3300 2000-11-08  Havoc Pennington  <hp@pobox.com>
3301
3302         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
3303         visible_set args, don't know where these had gone, I thought they
3304         used to be there
3305
3306         * gtk/testtext.c: Add a menu item to apply invisibility tag;
3307         now we can test the feature and see that it's totally broken.
3308
3309 2000-11-08  Havoc Pennington  <hp@pobox.com>
3310
3311         Make DND copy pixbufs and tags when source and target share a 
3312         tag table.
3313         
3314         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
3315         in-process GTK_TEXT_BUFFER_CONTENTS target
3316         (gtk_text_view_drag_data_received): Paste from
3317         GTK_TEXT_BUFFER_CONTENTS if we receive it.
3318
3319 2000-11-08  Alexander Larsson  <alexl@redhat.com>
3320
3321         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
3322         API changes.
3323
3324         * gtk/gtkmenu.c: Add support for scrolling menus.
3325         Remove gtk_menu_append/prepend/insert, these have been moved to
3326         gtkcompat.h as #defines.
3327
3328         * gtk/gtkcompat.h.in:
3329         Add compatibility #defines for gtk_menu_append/prepend/insert
3330
3331         * gtk/gtkmenu.h: Add data needed for scrolling menus.
3332         GtkMenuPositionFunc gets an extra argument push_in.
3333         gtk_menu_append/prepend/insert removed.
3334         
3335         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
3336         positioning behaviour to fit to scrolling menus.
3337
3338         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
3339         into menuitem->submeny. That is wrong, and broke torn
3340         off submenus of torn off menus, since they were unrealized
3341         when the first menu was unrealized.
3342
3343         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
3344         gtk_menu_shell_select_item() since these need to be overridden in
3345         GtkMenu.
3346
3347         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
3348         positioning behaviour to fit to scrolling menus.
3349         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
3350         the current item so that it is prelighted when the menu pops up.
3351         This is a workaround to the fact that the menu doesn't get the
3352         initial enter event (due to grabs).
3353
3354         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
3355         s/gtk_menu_append/gtk_menu_shell_append/
3356
3357         * gtk/gtknotebook.c:
3358         s/gtk_menu_insert/gtk_menu_shell_insert/
3359
3360         * gtk/testgtk.c (create_menu, create_menus):
3361         Create the first menu with 50 items so that menu scrolling
3362         can be tested.
3363         
3364         
3365         Patch from Jonathan Blandford  <jrb@redhat.com>
3366
3367         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
3368         system to handle size requests.  First, we ask what the size of
3369         the toggle is.  Then, when allocating the size, we allocate the
3370         toggle_size first.  This way we can have multiple menu-item
3371         classes w/o needing a seperate class for each.
3372
3373         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
3374         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
3375
3376         * gtk/gtkcheckmenuitem.c
3377         (gtk_check_menu_item_toggle_size_request): New function to handle
3378         the toggle size-request.
3379
3380 2000-11-07  Havoc Pennington  <hp@redhat.com>
3381
3382         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
3383         Half-ass somewhat fix this function, so that scrolling to the
3384         insertion point works. Pango hacking is in the future to really
3385         fix it.
3386
3387         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
3388         length of data, no longer used.
3389
3390         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
3391         method contents in here, get rid of destroy method
3392         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
3393         that were backward. Remove debug spew.
3394         (cut_or_copy): Make the clipboard work with insert_range to
3395         preserve tags and pixbufs, not just the primary selection.
3396
3397 2000-11-07  Havoc Pennington  <hp@redhat.com>
3398
3399         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
3400         to gtk_text_mark_get_visible
3401
3402         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
3403         bug that was generating an invalid iterator
3404
3405         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
3406         ensure_char_offsets() in front of code placing the iter in an
3407         invalid state.
3408
3409         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
3410         make override_location arg const
3411         (paste): Replace the selection if we paste into the 
3412         current selection
3413
3414         * gtk/gtkselection.h: Remove "GtkSelectioData"
3415         (struct _GtkSelectionData): move the definition here.
3416
3417         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
3418         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
3419
3420         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
3421
3422         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
3423         (gtk_text_buffer_insert_range_interactive): implement
3424         (gtk_text_buffer_get_tags): Remove, replaced by
3425         gtk_text_iter_get_tags()
3426
3427         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
3428         limit parameter, to avoid infinite linear scan.
3429         (gtk_text_iter_backward_search): Add search limit
3430         (gtk_text_iter_forward_find_char): Add search limit
3431         (gtk_text_iter_backward_find_char): Add search limit
3432
3433 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
3434
3435         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
3436         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
3437         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
3438         gdk/linux-fb/gdkwindow-fb.c:
3439         use g_object_new() instead of g_type_create_instance() which
3440         is a private function for fundamental type implementations.
3441
3442         * gdk/linux-fb/gdkinput-ps2.c:
3443         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
3444         instead just store the current modifier state. Add a (somewhat broken)
3445         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
3446         Rename exported function gdk_input_ps2_get_mouseinfo to
3447         gdk_input_get_mouseinfo.
3448
3449         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
3450         gdk/linux-fb/gdkwindow-fb.c:
3451         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
3452         
3453
3454 2000-11-02  Havoc Pennington  <hp@redhat.com>
3455
3456         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
3457         use stock buttons. Should be 100% source compatible, appropriate
3458         filesel fields now point to dialog->vbox and dialog->action_area.
3459         On the bizarre side, dialog->action_area and filesel->action_area
3460         are not the same widget.
3461         (gtk_file_selection_init): Put some padding around the selection
3462         entry, so it isn't touching the GtkDialog separator.    
3463
3464         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
3465         use stock buttons, etc. Should also be source compatible.
3466         Set the dialog default title in _init not _new().
3467         
3468         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
3469         Use stock buttons; don't put a button box inside the existing
3470         dialog button box. Don't bother with push/pop colormap anymore.
3471
3472         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
3473         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
3474         for message dialog, and necessary for the font selection and color
3475         selection with help and apply buttons.
3476         
3477         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
3478         to the created button widget. Set GTK_CAN_DEFAULT on the button.
3479         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
3480         between buttons, put less padding around the action area.
3481         (gtk_dialog_run): Exit on unmap rather than on destroy. 
3482         This will also exit the loop if the widget is hidden.
3483         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
3484         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
3485         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
3486         special-case delete event.
3487
3488         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
3489         formatting
3490         
3491 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
3492
3493         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
3494         button to temporarily disable position recording in the
3495         "saved position" test.
3496
3497 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
3498
3499         * gtk/gtkthemes.c: added compat code that temporarily implements
3500         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
3501         going to be revamped by owen's upcoming GtkModule patches, but
3502         untill then people want gtk to build, right? ;)
3503
3504 2000-11-04  Havoc Pennington  <hp@pobox.com>
3505
3506         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
3507         list
3508
3509         * docs/Changes-2.0.txt: Add note about
3510         gtk_container_get_toplevels()
3511
3512         * gtk/gtktextview.h: formatting
3513         
3514         * gtk/gtktextview.c: don't start descriptions with "Returns",
3515         confuses gtk-doc
3516
3517 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
3518
3519         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
3520         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
3521
3522 2000-11-03  Havoc Pennington  <hp@redhat.com>
3523
3524         * gtk/gtktexttagtable.c: Docs
3525         (gtk_text_tag_table_size): return a signed int
3526
3527         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
3528         (gtk_text_tag_event): make the event_object a GObject
3529
3530         * gtk/gtktextview.c: Write API docs for all functions.
3531
3532         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
3533         for gtk_text_view_get_window_type() called on one of the private
3534         windows.
3535
3536         * gtk/gtktextview.c: Instead of accessing text_view->buffer
3537         directly, call get_buffer() which demand-creates a default
3538         buffer. So gtk_text_view_new() can be used to create a view with a
3539         default buffer in it, if you just want an empty text box users can
3540         put data in. Useful for GUI builders also.
3541
3542 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
3543
3544         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
3545         the charset encodign portion MUST be in lowercase.
3546         * gtk/gtkrc.az: added file for Azeri language
3547
3548 2000-11-03  Havoc Pennington  <hp@redhat.com>
3549
3550         Get widgets working on the btree/buffer side. Display of them 
3551         still doesn't work.
3552         
3553         * gtk/gtktextview.c: start implementing child widget stuff
3554
3555         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
3556
3557         * gtk/gtktextlayout.c: handle embedded widgets
3558
3559         * gtk/gtktextdisplay.c: handle embedded widgets
3560
3561         * gtk/gtktextchild.c: Implement all the child anchor goo
3562
3563         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
3564         function
3565
3566         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
3567         (insert_pixbuf_or_widget_segment): abstract out common portions of 
3568         creating a child anchor or a pixbuf segment.
3569         (gtk_text_btree_create_child_anchor): new function
3570         (gtk_text_btree_unregister_child_anchor): new function
3571
3572         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
3573         allocate_child signal on GtkTextLayout
3574
3575         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
3576         values
3577         (gtk_text_iter_get_child_anchor): new function
3578
3579         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
3580         default handler for the changed signal, which calls
3581         gtk_text_buffer_set_modified(), instead of just always emitting
3582         changed then calling set_modified() manually. I guess this is
3583         maybe more flexible. It seems logical.
3584
3585 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
3586
3587         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
3588         now.
3589
3590         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
3591
3592 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
3593
3594         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
3595         been marked static.
3596
3597 2000-11-02  Havoc Pennington  <hp@redhat.com>
3598
3599         * gtk/testgtk.c (create_labels): had a test backward
3600
3601         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
3602         fields, so the dest GC ends up with the correct clip origin, 
3603         etc. Fixes a bug where colored labels didn't redraw 
3604         properly.
3605
3606 2000-11-02  Alexander Larsson  <alexl@redhat.com>
3607
3608         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
3609         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
3610         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
3611         Add last argument to t_type_register_static call.
3612         
3613         * gdk/linux-fb/gdkdrawable-fb2.c:
3614         Add last argument to t_type_register_static call.
3615         export the get_image drawable virtual function.
3616
3617         * gdk/linux-fb/gdkimage-fb.c:
3618         Add last argument to t_type_register_static call.
3619         rename gtk_image_get to _gdk_fb_get_image and
3620         export it for use by gdkdrawable-fb2.
3621
3622         * gdk/linux-fb/gdkprivate-fb.h:
3623         export _gdk_fb_get_image.
3624
3625         * gdk/linux-fb/gdkselection-fb.c:
3626         Add new api call stubs.
3627
3628         * gtk/Makefile.am:
3629         Missing ( in linux-fb part.
3630
3631         * modules/linux-fb/Makefile.am:
3632         Must link with gdk_pixbuf or get unresolved symbol.
3633
3634 2000-11-01  Havoc Pennington  <hp@pobox.com>
3635
3636         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
3637         GTK_TYPE_TEXT_ITER and BOXED marshallers
3638
3639         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
3640
3641         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
3642         
3643         * gtk/gtk-boxed.defs: add GtkTextIter
3644
3645         * gtk/gtkmarshal.list: Add marshallers for text widget that 
3646         properly use OBJECT and BOXED
3647
3648 2000-11-01  Havoc Pennington  <hp@redhat.com>
3649
3650         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
3651
3652         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
3653         before returning it. 
3654         
3655 2000-11-01  Havoc Pennington  <hp@redhat.com>
3656
3657         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
3658         Clip the rectangle to be rendered to the drawable, since
3659         get_from_drawable() requires a region within the drawable
3660
3661 2000-11-01  Havoc Pennington  <hp@redhat.com>
3662
3663         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
3664         from coordinates.
3665
3666 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
3667
3668         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
3669         it isn't NULL.
3670
3671 2000-11-01  Havoc Pennington  <hp@pobox.com>
3672
3673         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
3674         on a label
3675         (gtk_label_finalize): unref the attr list if any.
3676
3677         * gtk/testgtk.c (create_get_image): close test on second click
3678         (make_message_dialog): close dialog if it exists
3679
3680         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
3681
3682         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
3683         gdk-pixbuf
3684
3685         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
3686         from Pango markup format
3687         (gtk_label_set_markup_with_accel): ditto but with accelerator
3688         parsing
3689
3690         * gtk/gtkimage.c (gtk_image_expose): reformatting.
3691
3692         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
3693         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
3694         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
3695         call gdk_window_get_origin().
3696
3697         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
3698         implement GDK_PIXBUF_ALPHA_FULL
3699         
3700 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
3701
3702         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
3703         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
3704         g_signal_handlers_disconnect_matched to block/unblock and disconnect
3705         multiple handlers respectively, instead of only treating the
3706         first handler found (bug reported by owen).
3707
3708 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
3709
3710         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
3711
3712         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
3713
3714         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
3715         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
3716         gtk/gtktreeviewcolumn.h: Fixed inline docs.
3717
3718         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
3719         widget.  Needs writing someday.
3720
3721         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
3722         the docs.
3723
3724 2000-10-30  Havoc Pennington  <hp@redhat.com>
3725
3726         * gtk/gtktextview.h, gtk/gtktextview.c:
3727         Rename delete_at_cursor delete_from_cursor, and 
3728         move to move_cursor.
3729
3730 2000-10-30  Havoc Pennington  <hp@redhat.com>
3731
3732         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
3733         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
3734         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
3735         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
3736         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
3737         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
3738         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
3739         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
3740         gtktexttypes.h, gtktextview.c, gtktextview.h:
3741
3742         Massive reindentation and reformatting. Arg alignment and comments
3743         still need fixing in various places.
3744
3745 2000-10-30  Havoc Pennington  <hp@redhat.com>
3746
3747         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
3748         to be named insert_at_cursor and delete_at_cursor so C++ can
3749         handle them.
3750
3751 2000-10-28  Tor Lillqvist  <tml@iki.fi>
3752
3753         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
3754         to get a double directory separator in case the home directory
3755         ends with one. This would cause trouble especially on Windows,
3756         where the path will be confused with the syntax for an an UNC
3757         (network share) path \\server\share\path.
3758         (gtk_rc_add_initial_default_files): Ditto.
3759
3760 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
3761
3762         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
3763
3764         * gtk/gtktextview.c: Use correct marshallers.
3765
3766 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
3767
3768         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
3769         use new iter stuff, and added all the appropriate signals et al.
3770
3771         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
3772         code is internal to gtk only.
3773
3774 2000-10-28  Tor Lillqvist  <tml@iki.fi>
3775
3776         * gtk/gtk.def
3777         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
3778         glib-genmarshal etc.
3779
3780 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
3781
3782         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
3783         parallel builds.
3784
3785 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
3786
3787         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
3788
3789 2000-10-27  Robert Brady  <robert@suse.co.uk>
3790
3791         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
3792         en_GB (British), ia (Interlingua).
3793
3794 2000-10-26  Havoc Pennington  <hp@redhat.com>
3795
3796         * gtk/gtktextiter.c (my_strrstr): fix constness warning
3797
3798         Fixed output of:
3799         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
3800         
3801         * gtk/gtktextsegment.c (char_segment_new): rename
3802         (_char_segment_new_from_two_strings): rename
3803         (_toggle_segment_new): rename
3804         
3805         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
3806         (make_clipboard_widget): make it static
3807         (text_get_func): static
3808         (text_clear_func): static
3809
3810         * gtk/gtkcolorsel.c (adjustment_changed): make this function
3811         static
3812         (hex_changed): make it static
3813         (hsv_changed): make it static
3814         (opacity_entry_changed): make it static
3815
3816         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
3817         (toggle_segment_check_func): rename with _gtk
3818
3819         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
3820         (_widget_segment_new): rename
3821         (_widget_segment_add): rename
3822         (_widget_segment_remove): rename
3823         (_widget_segment_ref): rename
3824         (_widget_segment_unref): rename
3825
3826         * gtk/gtktextmark.c (_mark_segment_new): Rename
3827         _gtk_mark_segment_new   
3828
3829 2000-10-26  Havoc Pennington  <hp@redhat.com>
3830
3831         * gtk/gtkmarshal.list: add new marshallers used by the text widget
3832         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
3833         types
3834
3835         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
3836         marshaller types
3837
3838         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
3839         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
3840         license on these files.
3841
3842         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
3843         work.
3844
3845         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
3846         runtime random number different for each tree, instead of 
3847         a constant I made up.
3848
3849 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
3850
3851         * gtk/Makefile.am: buncha cleanups, kludged build sources
3852         dependencies with a Makefile: oldest-source-stamp dependancy
3853         for the moment. automake is really fighting us here, with
3854         intentionally not allowing user-defined rules or dependancies
3855         prior to it's -include $(DEP_FILES) statement. sucks rocks!
3856
3857         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
3858         to public headers. tehy have a comment stating that they are
3859         "semi-public" aren't included by gtk.h and if enums popup there,
3860         they can be /*< skip >*/-ed.
3861
3862         * gtk/gtktextlayout.h: 
3863         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
3864         added LGPL... <SIGH>
3865
3866 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
3867
3868         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
3869         GtkTreeIter.  Added iterators everywhere.
3870
3871         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
3872
3873         * gtk/gtktreeviewselection.c: Changed to use the iterators.
3874
3875         * gtk/gtktreestore.c: Changed to use the iterators.
3876
3877         * gtk/gtkliststore.c: Commented out the code.  Will convert to
3878         iterators tomorrow.
3879
3880         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
3881         iterators tomorrow.
3882
3883         * gtk/treestoretest.c: Changed to use iterators.
3884
3885         * demos/testgtk/main.c: Moved to use the new iterator system.
3886
3887 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
3888
3889         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
3890         localization misbehaviour.
3891
3892         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
3893         a useless type without copy/free.
3894
3895         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
3896         of GTK_TYPE_CTREE_NODE.
3897
3898 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
3899
3900         * gtk/gtksignal.c:
3901         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
3902         applicable.
3903
3904         * gtk/gtk-boxed.defs (GtkSelectionData): specify
3905         gtk_selection_data_copy and gtk_selection_data_free
3906         do GtkSelectionData work as params in signals.
3907
3908 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
3909
3910         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
3911         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
3912         couldn't they at least give it a non-standard name?
3913         
3914         * gtk/gtktextlayout.c: arg! yet another implementation of
3915         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
3916
3917         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
3918         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
3919         home. now i know this _is_ a conspiracy.
3920
3921         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
3922         ::state-changed.
3923
3924         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
3925         (gtk_accel_group_create_add): marshaller signature fixups.
3926
3927         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
3928         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
3929
3930         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
3931         anymore.
3932
3933 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
3934
3935         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
3936         due to the signal system changes, it wouldn't build currently. to
3937         be fixed soon.
3938
3939         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
3940
3941         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
3942         so it needs gtk_marshal_VOID__ENUM() instead of
3943         gtk_marshal_NONE__UINT().
3944
3945         * gdk/gdk*.c: adapted type registration functions.
3946
3947         * gtk/gtkbindings.c:
3948         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
3949         gone.
3950
3951         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
3952
3953         * gtk/gtkobject.c:
3954         (gtk_object_destroy):
3955         (gtk_object_shutdown): fixed recursion guards. basically we have to
3956         catch the case where any of GObject.shutdown() or gtk_object_destroy()
3957         is called during ::destroy, and avoid recursion there.
3958
3959         * gtk/gtktypeutils.c:
3960         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
3961         boxed_copy/boxed_free. this needs a more general solution based on a
3962         publically installed code-generator utility.
3963
3964         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
3965         glib's gobject has support for that now.
3966         define GtkSignalMarshaller in terms of GSignalCMarshaller.
3967
3968 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
3969
3970         * gtk/gtksignal.[hc]:
3971         * gtk/gtkmarshal.[hc]:
3972         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
3973         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
3974         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
3975         care of that.
3976
3977         * *.c: marshaller name fixups.
3978
3979         * gtk/gtkmarshal.list: added a comment briefing the format.
3980
3981 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
3982
3983         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
3984         compatibility macros here now. more specifically, most of
3985         the API is preserved (yes, _most_, nonwithstanding the
3986         following exceptions listed, the API is stil lHUGE ;)
3987         things that got removed completely:
3988         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
3989         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
3990         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
3991         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
3992         gtk_signal_remove_emission_hook().
3993         non-functional functions variants:
3994         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
3995         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
3996         not supported anymore.
3997         (gtk_signal_compat_matched): new internal function to aid
3998         implementation of the compatibility macros, it  provides
3999         functionality to block/unblock/disconnect handlers based
4000         on func/data.
4001
4002         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
4003
4004         * *.c: adaptions to new type registration API signatures.
4005
4006 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
4007
4008         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
4009
4010 2000-10-25  Robert Brady  <robert@suse.co.uk>
4011
4012         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
4013         gdk_property_delete): If window == NULL, assume the root window.
4014         (restoring the behaviour that was in 1.2).
4015         
4016         * gtk/testtext.c (save_buffer): Allow creation of new files when
4017         saving.
4018
4019         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
4020         calls to read().
4021
4022 2000-10-25  Tor Lillqvist  <tml@iki.fi>
4023
4024         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
4025
4026         * gdk/win32/gdkdrawable-win32.c
4027         * gdk/win32/gdkimage-win32.c
4028         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
4029         X11 backend.
4030
4031         * gdk/win32/gdkcc-win32.c
4032         * gdk/win32/gdkcolor-win32.c
4033         * gdk/win32/gdkfont-win32.c
4034         * gdk/win32/gdkinput-win32.c
4035         * gdk/win32/gdkmain-win32.c
4036         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
4037
4038 2000-10-24  Havoc Pennington  <hp@redhat.com>
4039
4040         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
4041         it a static function
4042
4043         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
4044         redraw text when a tag is applied to it.
4045
4046         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
4047         (gtk_text_tag_affects_nonsize_appearance): private functions to
4048         see if a tag requires various kinds of redraw/layout to be queued
4049         up.
4050
4051         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
4052
4053         * gtk/testtext.c (fill_example_buffer): Put the cursor 
4054         at the start of the buffer, so search works by default
4055
4056         * gtk/gtktextiter.c (lines_match): init match_start always
4057
4058         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
4059         function, get iter at a line + a byte index
4060
4061         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
4062         to set byte position within a line
4063         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
4064
4065 2000-10-23  Havoc Pennington  <hp@redhat.com>
4066
4067         * gtk/testtext.c: Re-enable the "find" dialog
4068
4069         * gtk/testgtk.c: Add test for gdk_drawable_get_image
4070         
4071         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
4072         the arguments to gdk_draw_drawable were in the wrong order
4073         (gdk_window_paint_init_bg): This function was ignoring the
4074         init_region, instead of clipping to it, so the entire backing
4075         pixmap was cleared on every begin_paint()
4076         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
4077         was in here again, the loop kept using the same GtkWindowPaint
4078         over and over.
4079         (gdk_window_begin_paint_region): Fix a bug where we had two
4080         x_offset instead of x_offset and y_offset
4081
4082         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
4083         before we get the image.
4084         (gdk_draw_drawable): get the composite before we draw the drawable.
4085         (gdk_drawable_real_get_composite_drawable): default
4086         get_composite_drawable implementation that returns the drawable 
4087         itself
4088
4089         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
4090         get_composite_drawable virtual function
4091
4092         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
4093         list-walking bug
4094
4095         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
4096         make this work if the source drawable is a GdkDrawableImplX11
4097         instead of a public drawable type. This is really broken; the
4098         problem is that GdkDrawable needs a virtual method get_xid(), but
4099         of course that doesn't work in practice. Enter RTTI.
4100
4101         Also, improve mismatched depth message.
4102
4103         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
4104         GdkPixmap
4105
4106         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
4107         install _gdk_x11_get_image as our implementation of get_image
4108         
4109         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
4110         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
4111
4112         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
4113         gdk_drawable_get_image
4114
4115         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
4116
4117         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
4118         get_image
4119
4120         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
4121         trailing semicolon after for loop
4122
4123 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
4124
4125         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
4126         where font_desc for widget's context lagged widget's font_desc by
4127         one step.
4128
4129 2000-10-22  Tor Lillqvist  <tml@iki.fi>
4130
4131         * gdk/win32/gdkgc-win32.c
4132         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
4133
4134         * gtk/makefile.mingw.in
4135         * gtk/gtk.def: Updates.
4136
4137         * gtk/testgtk.c: sleep() is called _sleep in MS's C
4138         library.
4139
4140         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
4141
4142         * gtk/makefile.msc: Remove
4143
4144         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
4145
4146         * gtk/Makefile.am: Add it.
4147
4148         * configure.in: Generate it.
4149
4150         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
4151         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
4152         something even if not implemented, to satisfy picky MSVC.
4153
4154         Patches by Hans Breuer:
4155         
4156         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
4157         SetBkMode() and SetTextAlign() before calling
4158         pango_win32_render().
4159
4160         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
4161         Set hcliprgn to NULL after destroying it.
4162         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
4163
4164         * gdk/win32/gdkgeometry-win32.c
4165         (_gdk_windowing_window_queue_antiexpose): More effective
4166         implementation.
4167
4168         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
4169         depth as default, not the visual's.
4170
4171         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
4172         against empty title.
4173
4174         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
4175         IMAGE_PRIVATE_DATA.
4176
4177         * gdk/win32/gdkimage-win32.c: Use it.
4178
4179 2000-10-22  Robert Brady  <robert@suse.co.uk>
4180
4181         * configure.in: Check for bind_textdomain_codeset
4182
4183         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
4184         present, make use of it.
4185
4186         Add a translatable string "default:LTR" which, if translated
4187         to "default:RTL", will cause the default direction to be
4188         Right-to-Left.
4189
4190         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
4191         direction if marked as flippable.
4192
4193         * gtk/gtkhscale.c: Mark widget as flippable.
4194         
4195 2000-10-04  Havoc Pennington  <hp@redhat.com>
4196
4197         * gtk/testgtk.c (create_buttons): create some stock buttons
4198         with the default accel group
4199         (create_image): test some new GtkImage features
4200         (make_message_dialog): test GtkMessageDialog
4201         (create_modal_window): fix someone's bizzarro indentation
4202
4203         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
4204         GTK_WIN_POS_CENTER_ON_PARENT. 
4205         Add "destroy with parent" setting, which means the window goes
4206         away with its transient parent.
4207         (gtk_window_get_default_accel_group): get the default accel group
4208         for the window.
4209         (gtk_window_set_destroy_with_parent): set/unset destroy with
4210         parent flag
4211         (gtk_window_read_rcfiles): invalidate icon set caches
4212         after reloading rcfiles 
4213
4214         * gtk/gtkenums.h (GtkWindowPosition): add
4215         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
4216         on its parent window when the dialog is mapped for the first time.
4217
4218         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
4219         a simple message dialog class
4220         
4221         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
4222         handler to emit response signal, and maybe later it would
4223         honor a hide_on_delete flag - though that isn't there yet.
4224         Set border width on the vbox to 2, so we get some padding.      
4225         Use a button box for the action area.
4226         (gtk_dialog_key_press): synthesize a delete event if Esc
4227         is pressed and the GtkWidget key press handler didn't 
4228         handle the escape key.
4229         (gtk_dialog_new_with_buttons): new function creates a dialog
4230         with some default buttons in it.
4231         (gtk_dialog_add_action_widget): add an activatable widget
4232         as a button in the dialog - you can also add a non-activatable
4233         widget by accessing the action area directly.
4234         (gtk_dialog_add_button): add a simple button - stock ID or 
4235         label - to the action area
4236         (gtk_dialog_response): emit response signal
4237         (gtk_dialog_run): block waiting for the dialog, return 
4238         the response. Override normal delete_event behavior, so that 
4239         delete_event does nothing inside gtk_dialog_run().
4240
4241         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
4242         emitted when an action widget is clicked or the dialog gets
4243         delete_event
4244
4245         * gtk/gtk.h: add gtkmessagedialog.h
4246
4247         * gtk/Makefile.am: add gtkmessagedialog.[hc]
4248
4249 2000-10-18  Havoc Pennington  <hp@redhat.com>
4250
4251         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
4252         where any number of empty lines would get skipped
4253
4254         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
4255         edge.
4256
4257         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
4258         warning about invalid iterators (explain more thoroughly)
4259         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
4260
4261         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
4262         big
4263
4264         * demos/*.c: Add error handling
4265
4266         * gtk/gtktextbuffer.c: don't modify const iterators
4267
4268         * gtk/gdk-pixbuf-loader.c: Add full error handling here
4269
4270         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
4271         on file load
4272
4273         * gtk/gtkiconfactory.c: Update to reflect addition of error
4274         handling to gdk-pixbuf loaders
4275
4276 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
4277
4278         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
4279         move to new modularized testgtk.
4280
4281 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
4282
4283         * gtk/gtktreeview.c: Draw the arrows correctly.
4284
4285         * gtk/gtktreemodel.c: Added user docs.
4286
4287         * gtk/gtk.h: remove gtktreedatalist.h.
4288
4289         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
4290         parent when generating my type.
4291
4292         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
4293         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
4294
4295 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
4296
4297         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
4298         GtkTreeModel from object to interface.
4299
4300 2000-10-16  Havoc Pennington  <hp@redhat.com>
4301
4302         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
4303         compilation
4304
4305 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
4306
4307         * gtk/gtktreeselection.c: Add API documentation to all public
4308         functions.
4309
4310         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
4311         functions.
4312
4313 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
4314
4315         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
4316         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
4317         docs to all public functions.
4318
4319         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
4320         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
4321         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
4322         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
4323         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
4324         issue.
4325
4326 2000-10-14  Robert Brady  <robert@suse.co.uk>
4327
4328         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
4329
4330 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
4331
4332         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
4333         values other then G_TYPE_STRING.
4334         * gtk/gtktreeselection.c: Minor commenting updates.
4335         * gtk/gtktreeview.c: Format updates.
4336
4337 2000-10-09  Tor Lillqvist  <tml@iki.fi>
4338
4339         * README.win32: Update.
4340
4341         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
4342         lines that had been deleted by mistake (?).
4343
4344         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
4345         also the case fg==white and bg==black (but still not randomly
4346         coloured cursors). Thanks to Wolfgang Sourdeau.
4347
4348         * gdk/win32/*.c: Silence gcc -Wall.
4349
4350         * gtk/gtk.def: Add missing entry points.
4351
4352         Fixes by Hans Breuer:
4353
4354         * gdk/makefile.msc
4355         * gdk/win32/makefile.msc: Update.
4356
4357         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
4358         some MSVC thing, presumably), cause breakpoint on failures. Add
4359         GDK_NOR case. Call g_log_set_always_fatal.
4360
4361         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
4362         should be pased by reference.
4363         
4364         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
4365         
4366         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
4367
4368         * gdk/win32/gdkevents-win32.c
4369         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
4370
4371         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
4372         implementation object.
4373
4374         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
4375         not just windows.
4376         
4377         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
4378         Use the wrapper object.
4379         
4380 2000-10-06  Havoc Pennington  <hp@redhat.com>
4381
4382         * Makefile.am (SRC_SUBDIRS): contrib subdir
4383
4384         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
4385         so it can be used in Xlib version
4386
4387         * demos/testpixbuf.c (update_timeout): error checking from 1.0
4388         tree
4389
4390         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
4391         change from 1.0 tree that returns first frame of animation
4392         if the loaded file is an animation.
4393
4394         * contrib: add new directory to hold stuff that comes with GTK+
4395         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
4396         
4397         * configure.in: add contrib/*
4398
4399 2000-10-05  Havoc Pennington  <hp@redhat.com>
4400
4401         * demos/testpixbuf-save.c: add pixbuf save test
4402
4403         * demos/Makefile.am: add testpixbuf-save.c
4404
4405 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
4406
4407         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
4408         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
4409         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
4410         * gtk/gtktreeselection.[ch]: Replaced
4411         "node_selected"/"node_unselected" signal with "selection_changed"
4412         signal.
4413
4414 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
4415
4416         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
4417         tree widget.
4418
4419 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
4420
4421         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
4422         drawing.
4423
4424 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
4425
4426         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
4427         Move list pointer forwards before removing item from
4428         list. (Crash reported by Salmaso Raffaele)
4429
4430         * gdk/gdkwindow.h: Remove spurious trailing ,
4431
4432         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
4433         dependencies on uninstalled libraries, sorry folks.
4434
4435 2000-10-04  Havoc Pennington  <hp@redhat.com>
4436
4437         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
4438         gtk/gtkiconfactory.c: Fix copyrights    
4439
4440         * demos/testpixbuf.c: add inline pixbuf test
4441         
4442 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
4443
4444         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
4445         Add gdk_window_iconify.
4446
4447         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
4448         (gdk_window_set_geometry_hints): Add win_gravity
4449         to geometry structure.
4450
4451         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
4452         Implement _NET_WM_PING.
4453
4454         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
4455         Set _NET_WM_PID on the client leader.
4456
4457         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
4458         Handle UTF-8 better.
4459
4460         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
4461         UTF-8 better, set _NET_WM_NAME as well. Only set
4462         icon name if it hasn't previously been explicitely 
4463         set.
4464
4465 2000-10-03  Havoc Pennington  <hp@redhat.com>
4466
4467         * gtk/testtextbuffer.c: clean up trailing whitespace,
4468         add extensive tests for tag toggle iteration.
4469         
4470         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
4471         distance
4472
4473         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
4474         optimize case where the tag root is on level 1
4475         (gtk_text_line_previous_could_contain_tag): attempt to implement
4476         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
4477         functionality
4478
4479         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
4480         Implement this, though not very efficiently.
4481
4482         * gtk/gtktextiterprivate.h: reformat
4483
4484         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
4485         iterator
4486
4487         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
4488         this to properly revalidate the iterators.
4489
4490         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
4491         properly at the end of the line (and therefore on empty lines)
4492
4493         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
4494         maybe we should return a value...
4495
4496 2000-10-03  Tor Lillqvist  <tml@iki.fi>
4497
4498         * config.h.win32: Guard definition of alloca(). glib.h now handles
4499         that.
4500
4501         * gdk/gdk.def
4502         * gtk/gtk.def: Add new entry points.
4503
4504         Changes just to make GTK+ build without errors on Win32. No hope
4505         of it working in its current state, though...:
4506         
4507         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
4508         some functions from the X11 backend, just to make GTK+ build.
4509
4510         * gdk/makefile.mingw.in
4511         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
4512         number. Add new object files.
4513
4514         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
4515         GetMessageTime to get timestamp (where on X11 uses
4516         gdk_x11_get_server_time()).
4517
4518 2000-10-02  Havoc Pennington  <hp@pobox.com>
4519
4520         * gtk/gtktextview.c: text_window_* weren't static and should have
4521         been.
4522         Start work on child widgets; not yet complete, syncing to 
4523         office computer.
4524
4525         * gtk/gtktextchild.h: change this to contain a public interface,
4526         starting work on child interfaces.
4527         * gtk/gtktextchildprivate.h: move private interfaces here
4528
4529         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
4530
4531         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
4532         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
4533         gtk/gtktextmark.c: copyright notices
4534
4535         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
4536         internal functions      
4537
4538         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
4539         internal function
4540
4541         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
4542         Reformatting    
4543
4544 2000-09-30  Havoc Pennington  <hp@pobox.com>
4545
4546         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
4547         NULL start/end pointers
4548
4549         * gtk/gtktextbuffer.c: Write some docs
4550         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
4551         NULL, so you can just check whether there's a selection.        
4552
4553         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
4554         cleanup_line or segments_changed ourselves, it gets done 
4555         in unlink_segment
4556
4557         * gtk/gtktextmark.h:
4558         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
4559         
4560         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
4561
4562         * gtk/gtktextmark.c: delete some more old Tk cruft
4563
4564         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
4565         mark before removing it, so we can emit MARK_DELETED with a valid
4566         pointer.
4567         (gtk_text_buffer_mark_set): hold ref across signal emission
4568
4569         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
4570         whining about attempts to delete special marks
4571
4572         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
4573         underscore, since it's internal.
4574
4575         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
4576         now implemented in terms of iterators in gtktextiter.h
4577
4578         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
4579         New function, destructively sets contents of buffer. Also 
4580         a convenient way to clear the buffer by setting text to ""
4581
4582         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
4583         multiline string literal
4584
4585         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
4586         text changes.
4587
4588         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
4589         is not dereferenceable
4590         (gtk_text_iter_forward_lines): fix return value
4591
4592 2000-09-29  Havoc Pennington  <hp@redhat.com>
4593
4594         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
4595
4596         * gtk/gtktextview.c: Implement drag thresholding; change functions 
4597         that set border window size to have nicer name
4598         (gtk_text_view_mark_set_handler):  Fix this to have the 
4599         right signature.
4600
4601         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
4602
4603         * gtk/testtext.c: Update with API changes, put line numbers on 
4604         both sides.
4605         
4606         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
4607         with this
4608
4609         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
4610         pixbuf; delete a big block of #if 0 Tk code
4611
4612         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
4613         insert_pixmap with insert_pixbuf
4614
4615 2000-09-29  Martin Baulig  <baulig@suse.de>
4616
4617         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
4618         confusion with the GdkPixbuf of the GNOME 1.x platform.
4619
4620 2000-09-29  Havoc Pennington  <hp@pobox.com>
4621
4622         * gtk/gtktextview.c: Implement the side windows.
4623
4624         * gtk/testtext.c: Implement simple line numbering in the 
4625         left side window; seems to make scrolling sloooow. Oops.
4626         Also, cursor blink is for some reason causing redraws
4627         of the line numbers. Should investigate...
4628
4629 2000-09-28  Havoc Pennington  <hp@redhat.com>
4630
4631         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
4632         scrolling child windows, and draw focus rectangle properly.
4633         
4634         (gtk_text_view_buffer_to_window_coords):
4635         Coordinate transformation to deal with all these freaking windows
4636         and offsets
4637         (gtk_text_view_window_to_buffer_coords): transform the other way
4638
4639         * gtk/testtext.c (create_buffer): Update to match Pango API change
4640
4641         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
4642         anonymous tags
4643         (foreach_unref): don't emit remove signal from finalize, just
4644         set tag's parent to NULL
4645
4646 2000-09-26  Havoc Pennington  <hp@redhat.com>
4647
4648         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
4649         Fix some warnings       
4650
4651 2000-09-26  Havoc Pennington  <hp@redhat.com>
4652
4653         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
4654         headers into the private header list
4655
4656         * Makefile.am (pkgconfig_DATA): install pkg-config files
4657
4658         * configure.in: add pkg-config files
4659
4660         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
4661
4662         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
4663         outstanding icon caches on theme change.
4664
4665         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
4666         important types:
4667
4668         (GtkIconSource): Specification for creating a pixbuf 
4669         appropriate for a direction/state/size triplet from 
4670         a source pixbuf or filename
4671
4672         (GtkIconSet): List of GtkIconSource objects that are used to
4673         create the "same" icon (e.g. an OK button icon), and cache for
4674         rendered icons
4675
4676         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
4677         up the icon set for a given stock ID.  GTK maintains a stack of
4678         GtkIconFactory to search, and applications or libraries can add
4679         additional icon factories on top of the stack
4680         
4681         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
4682         the set of GtkIconSource specified for a given stock ID into 
4683         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
4684         RcStyle, under the specified stock ID.
4685
4686         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
4687         render_icon used to derive a GdkPixbuf from a GtkIconSource.
4688         This allows people to theme how prelight, insensitive, etc. are
4689         done.
4690
4691         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
4692         icon factories for a style, and return the resulting 
4693         icon set if any.
4694
4695         (gtk_style_render_icon): Render an icon using the render_icon 
4696         method in the GtkStyleClass.
4697
4698         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
4699         Use the style for a given widget to look up a stock ID, get the
4700         icon set, and render an icon using the render_icon method 
4701         of the style
4702
4703         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
4704         (contains information about a stock item), the built-in stock item
4705         IDs, and functions to add/lookup stock items.
4706
4707         * gtk/stock-icons/*: Stock icons that come with GTK
4708
4709         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
4710         a button based on a GtkStockItem
4711         (gtk_button_new_accel): Takes a uline string and accel group, and
4712         installs the accelerator.
4713
4714         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
4715         image-display widget.
4716
4717 2000-09-25  Havoc Pennington  <hp@redhat.com>
4718
4719         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
4720
4721         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
4722         Fix a bug when removing node data, we didn't properly 
4723         re-splice the linked list after removing the data.
4724
4725         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
4726         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
4727
4728         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
4729
4730         * gtk/gtktextlayout.c (set_para_values): Set tab array 
4731         for the layout from the GtkTextTag.
4732
4733         * gtk/gtktexttypes.h: delete tab and search cruft, 
4734         remove g_convert() in favor of GLib version
4735
4736         * gtk/gtktexttypes.c: remove tab implementation from here,
4737         move to Pango
4738
4739         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
4740         tab stuff using new PangoTabArray from Pango
4741
4742         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
4743         unused border_width stuff
4744
4745 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
4746
4747         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
4748         glib) and now useless utf_to_latin1() latin1_to_utf()
4749
4750         * gtk/gtktextview.[ch]: Change ::move_insert and
4751         ::delete_text action signals to ::move and ::delete;
4752         create the signals with the right enumeration type,
4753         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
4754         C-v bindings, change Home, End to move to beginning/end
4755         of line, Add C-Home C-End to move to beginning/end
4756         of buffer. Change ::cut_text to ::cut_clipboard, etc;
4757         combine ::scroll_text into ::move; use new GtkSelectionData
4758         functions to simplify DND text handling.
4759         
4760         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
4761         deletion enumerations here, rename enumeration values to 
4762         be consistently plural.
4763
4764         * gtk/gtktextbuffer.c: Use new clipboard interfaces
4765         for cut/copy/paste and primary selection.
4766
4767         * gtk/gtktextbuffer.[ch]: Remove excess time and
4768         'interactive' arguments from cut/copy/paste;
4769         rename cut to cut_clipboard, etc; remove
4770         gtk_text_buffer_get_clipboard_contents().
4771
4772         * gtk/gtktextlayout.[ch]: Add 
4773         gtk_text_layout_move_iter_to_line_end() to move the iter to 
4774         line ends.
4775
4776         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
4777         Functions to set or get a UTF-8 string on the selection
4778         data.
4779
4780         * gtk/gtkclipboard.[ch]: New, simplified selection handling
4781         interfaces.
4782
4783         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
4784         created widgets - one of these is useless if we don't.
4785
4786         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
4787         a public function clear all targets registered for the
4788         widget.
4789
4790         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
4791         Never call gtk_widget_realize() - that was just asking
4792         for bizarre side-effects.
4793
4794         * gtk/gtkselection.c (gtk_selection_owner_set): Call
4795         gdk_selection_owner_set even if the widget is the
4796         same so that we reliably update the timestamp on
4797         the server.
4798
4799         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
4800         gdk_x11_get_server_time() function.
4801         
4802         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
4803         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
4804         Add some tricky filtering on serial numbers for
4805         selection clear events to fix up long-standard
4806         race condition FIXME's in gtkselection.c.
4807
4808         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
4809         routines to convert from utf8 to compound text or
4810         STRING and from a text property to UTF-8.
4811
4812         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
4813         a convenience function gdk_get_current_event_time().
4814
4815         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
4816         and free selection_data->data properly
4817
4818 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
4819
4820         * gtk/gtkthemes.c: Remove some unecessary includes.
4821
4822 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
4823
4824         * gtk/gtktextdisplay.c
4825         * gtk/gtktextlayout.c
4826         * gtk/gtktexttag.c
4827         * gtk/gtktexttag.h
4828         * gtk/testtext.c: Change the overstrike property to strikethrough,
4829         to closer match pango.
4830
4831 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
4832
4833         * gtk/gtktextview.c: Fix up visibility so that focus,
4834         cursor_visible and blink interact properly.  Reenable cursor blink
4835         which had been roughly disabled. Make blink and focus
4836         properly per-view.
4837
4838         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
4839         Add a flag for whether to display insertion cursor and
4840         a function to set the flag.
4841
4842         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
4843         get_line_y() to get_line_yrange(), to be a bit more generally
4844         useful.
4845
4846 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
4847
4848         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
4849           do stop_navigating_submenu, to clear last timeout properly.
4850           Also in gtk_menu_motion_notify move ignore_enter above
4851           the conditional to make it always happen as suggested by Owen
4852
4853 2000-09-07  Tor Lillqvist  <tml@iki.fi>
4854
4855         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
4856
4857         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
4858         w32api headers.
4859
4860         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
4861         declarations.
4862
4863         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
4864         (gdk_win32_get_colormap): A line had been deleted by mistake.
4865
4866         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
4867         (gdk_event_translate): Handle more virtual keycodes to be able to
4868         generate GDK events for Control-comma, Control-period, etc.
4869
4870         * gtk/gtk.def: Add some missing entry points.
4871
4872 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
4873
4874         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
4875         Doc comment fixing. (Mostly non-matching parameter names.)
4876
4877         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
4878         comments a little to avoid looking like a doc comment.
4879
4880         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
4881         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
4882         conversions be changed to GError?)
4883
4884         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
4885         Move private #defines into .c file.
4886
4887         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
4888         order of argument addition, remove duplicates.
4889
4890         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
4891         parent class is FrameClass, not BinClass.
4892
4893         * gtk/gtk.h: Add gtkinvisible, which was missing.
4894         (It's occasionalyl useful for client apps, if seldom.)
4895
4896         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
4897         #define.
4898
4899 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
4900
4901         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
4902         coordinates when creating window, instead of GDK-space
4903         coordinates. (Avoid BadValue on too large windows.)
4904
4905 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4906
4907         * configure.in (use_mmx_asm): Remove conftest* after use along the
4908         lines of AC_TRY_COMPILE.        
4909         
4910         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
4911         of g_dirname, which is deprecated.
4912         (gtk_rc_parse_any): Removed calls to
4913         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
4914
4915         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
4916         Removed calls to g_hash_table_{freeze,thaw}, as they are
4917         deprecated now.
4918
4919         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
4920         instead of g_basename.
4921         
4922 2000-09-04 Elliot Lee <sopwith@redhat.com>
4923         
4924         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
4925         ANSI warning.
4926
4927 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
4928
4929         * gtk/gtkwidget.h:  Add some documenting comments about 
4930           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
4931           just as owen said on irc.
4932
4933         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
4934           set HAS_DEFAULT.  Only set it if there isn't another window
4935           holding it (a focus window which RECEIVES_DEFAULT) and only unset
4936           it if the widget is not the focused window with RECEIVES_DEFAULT.
4937           This fixes weird double default bugs in dialogs which has things
4938           call gtk_window_set_default at times.
4939
4940 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
4941
4942         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
4943         Nils Barth and David Santiago to improve submenu
4944         navigation. The patch does this by creating a triangular
4945         region from the point where the pointer leaves the
4946         menu to the submenu.  While the pointer is in
4947         that region and a timeout has not expired, events 
4948         that would cause the active submenu to change are
4949         ignored.
4950
4951 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
4952
4953         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
4954         moving a toplevel window immediately after sizing it would
4955         result in it being sized back to the old size since 
4956         impl->width, impl->height aren't updated until we hear
4957         back from the server. There is still a (longstanding) bug
4958         here that gdk_window_get_size() will give the wrong size
4959         until we do hear back.
4960
4961 2000-08-31  Havoc Pennington  <hp@redhat.com>
4962
4963         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
4964         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
4965         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
4966         Rename GtkTextStyleValues to GtkTextAttributes
4967
4968 2000-08-31  Havoc Pennington  <hp@pobox.com>
4969
4970         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
4971         for rapid testing whether an iterator is the end iterator
4972         (gtk_text_btree_new): init end line cache
4973         (gtk_text_line_is_last): use fast cached line to 
4974         see if we're the last line.
4975         (get_last_line): use cached line here too, should 
4976         speed up some random unrelated code.
4977         
4978 2000-08-30  Havoc Pennington  <hp@pobox.com>
4979
4980         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
4981         signals.
4982
4983         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
4984         delete_text signals. This allows the signals to be used for
4985         implementing undo.
4986
4987         * gtk/gtktextbuffer.c: Change signal handler signatures; 
4988         provide "interactive" argument when emitting insert_text or
4989         delete_text signal.
4990         
4991 2000-08-30  Havoc Pennington  <hp@pobox.com>
4992
4993         * gtk/gtktextbuffer.c: Docs
4994
4995 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
4996
4997         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
4998         from switch statements, since Tor removed the enumeration
4999         value.
5000         
5001         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
5002         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
5003
5004 2000-08-29 Elliot Lee <sopwith@redhat.com>
5005         * */*.h: Use G_GNUC_CONST.
5006
5007 2000-08-27  Havoc Pennington  <hp@pobox.com>
5008
5009         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
5010         minor indentation fixes, inserted some FIXME about stuff I
5011         realized was broken while documenting it.
5012         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
5013         GTK convention  
5014
5015 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
5016
5017         * gtk/testgtk.c (create_styles): Fix double free of
5018         font desc.
5019
5020 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
5021
5022         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
5023         
5024         * gtk/testgtk.c (create_styles): Add a test for modifying
5025         the style through gtk_widget_modify_*.
5026
5027         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
5028         a function to get the current modifier style.
5029
5030         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
5031         of the passed in GtkRcStyle instead of ref'ing it.
5032
5033         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
5034
5035 2000-08-20  Tor Lillqvist  <tml@iki.fi>
5036
5037         * gdk/gdkimage.h
5038         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
5039         shared memory image+pixmap GdkImage type, or
5040         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
5041         I am dropping that.
5042
5043         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
5044         actually call gtk_init_abi_check(), passing also
5045         sizeof(GtkWindow). Ditto for gtk_init_check(). 
5046
5047         * gtk/gtk.def
5048         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
5049         New functions, used to check that the GTK+-using code has been
5050         compiled using the correct compiler and switches. In particular,
5051         with gcc one has to use the -fnative-struct switch as GTK+ is
5052         compiled with that.
5053
5054 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
5055
5056         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
5057         ->prev fields when merging lists. (Found simultaneously
5058         by Pawel Salek and Jakub Jelinek)
5059
5060 2000-08-12  Tor Lillqvist  <tml@iki.fi>
5061
5062         * gdk/gdk.def
5063         * gtk/gtk.def: Add missing entries.
5064
5065         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
5066         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
5067
5068         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
5069         function. Dummy implementation at this point.
5070
5071         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
5072         rules. Undefine GTK_COMPILATION when compiling the test programs.
5073         
5074         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
5075
5076 2000-08-11  Tor Lillqvist  <tml@iki.fi>
5077
5078         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
5079         to convert back and forth from UTF-8 and the "system" (or "current
5080         locale") charset when necessary. Indentation/spacing cleanup.
5081
5082 2000-08-10  Havoc Pennington  <hp@redhat.com>
5083
5084         * Makefile.am (snapshot): Change the format of the snapshot
5085         version to match glib
5086
5087         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
5088         from EXTRA_DIST since it doesn't seem to exist
5089
5090 2000-08-10  Tor Lillqvist  <tml@iki.fi>
5091
5092         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
5093         version of the directory name (not the UTF-8 one) when building
5094         the path name to stat().
5095
5096 2000-08-03  Elliot Lee  <sopwith@redhat.com>
5097
5098         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
5099         PANGO_ATTR_SHAPE set.
5100
5101 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
5102
5103         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
5104         Peter Osterlund to simplify the code while keeping the
5105         functionality the same.
5106
5107 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
5108
5109         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
5110         is_viewable() test further inside the function, since removing the 
5111         window from the redraw list without clearing ->update_area
5112         was also very broken.
5113
5114 2000-08-02  Tor Lillqvist  <tml@iki.fi>
5115
5116         * configure.in: Check for <unistd.h>.
5117
5118 2000-08-01  Martin Baulig  <baulig@suse.de>
5119
5120         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
5121         to display the message that this is a development version of GTK+.
5122
5123 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
5124
5125         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
5126         was depending on widget->allocation instead of the width of text_area,
5127         which was incorrect for subclasses like GtkSpinButton.
5128
5129         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
5130         with width == 1 tests that should be width == -1.
5131
5132 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
5133
5134         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
5135         (broken, Elliot, every single window blank on X) custom code with call
5136         to gdk_window_is_viewable() which a) prevents code duplicate and
5137         b) works. 
5138
5139 2000-07-31  Elliot Lee  <sopwith@redhat.com>
5140
5141         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
5142         to get the GDK_PARENT_ROOT() macro to work.
5143         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
5144         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
5145         of, windows that aren't shown.
5146         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
5147         pointer grab stuff.
5148
5149 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
5150
5151         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
5152           s/gtk_main_iteration/g_main_iteration/
5153
5154           Did this already in change:
5155                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
5156           don't know how it got reverted.
5157
5158 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
5159
5160         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
5161         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
5162
5163         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
5164         not gdk_pixbuf.
5165
5166 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
5167
5168         * configure.in,po/{sp,sr}.po: Added Serbian files
5169
5170 2000-07-30  Tor Lillqvist  <tml@iki.fi>
5171
5172         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
5173
5174         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
5175         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
5176         GIOChannel implementation.
5177
5178         * gdk/win32/gdkinput.c
5179         * gdk/win32/gdkpango-win32.c: Update license name here, too.
5180
5181         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
5182         definition to match prototype.
5183
5184         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
5185
5186 2000-07-27  Elliot Lee  <sopwith@redhat.com>
5187
5188         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
5189         function, to allow handling image formats that cannot be detected
5190         by looking at content alone.
5191
5192 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
5193
5194         * docs/tutorial/*.gif *.jpg *.eps
5195           Update these to the same look-n-feel.
5196           Why does including images in DocBook suck so badly?
5197
5198 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
5199
5200         * gtk/gtktable.c: applied patch from Phil Thompson
5201         <phil@river-bank.demon.co.uk> that enables space settings for
5202         the last row/columns as well.
5203
5204 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
5205
5206         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
5207         updates the license headers to the GNU Lesser General Public License,
5208         as well as updating the copyright year to 2000.
5209
5210 2000-07-26  Robert Brady  <rwb197@zepler.org>
5211
5212         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
5213           and po/Makefile, was installing and looking for them under gtk20
5214           and gtk2 respectively.
5215
5216 2000-07-25  Havoc Pennington  <hp@redhat.com>
5217
5218         * gtk/testtext.c: Comment out some stuff that depends on the rest
5219         of my patches.
5220
5221 2000-07-25  Havoc Pennington  <hp@redhat.com>
5222
5223         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
5224         buffer
5225
5226 2000-07-25  Havoc Pennington  <hp@redhat.com>
5227
5228         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
5229         widget changes.
5230
5231         * gtk/gtktextview.h: To be consistent with usage of "line"
5232         throughout the API to mean "newline-terminated thingy", change
5233         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
5234         to MOVEMENT_LINE.
5235
5236         (GtkTextView): Add flags for default editability, and whether to
5237         show the cursor. Add functions to get/set that. Add 
5238
5239         (gtk_text_view_get_iter_location): new function
5240
5241         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
5242         gtktextlayout.h
5243         (g_convert): Add g_convert temporarily, will go in glib in a bit
5244         
5245         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
5246         GtkTextTagTableForeach instead of brokenly using GHFunc.
5247         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
5248
5249         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
5250         moved to public header.
5251
5252         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
5253         "invisible", since "elide" was a bad name.
5254         (gtk_text_tag_get_priority): Added
5255
5256         (GtkTextStyleValues): put this in public header, along with
5257         functions to use it.
5258
5259         * gtk/gtktextmarkprivate.h: Include more headers, since we no
5260         longer include gtktextbtree.h.
5261
5262         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
5263         gtk_text_mark_deleted
5264
5265         * gtk/gtktextlayout.h: Don't include the "really private" headers,
5266         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
5267         to make this possible. Now we only need to install
5268         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
5269         (However the Makefile.am isn't changed yet because of the
5270         logistics of merging gtk-hp-patches piecemeal)
5271
5272         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
5273         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
5274         gtk_text_iter_get_line is now used in the public API for a
5275         different purpose.
5276
5277         * gtk/gtktextiter.h: Clean up function names to be more
5278         consistent. Always call char offset "offset" and byte index
5279         "index". A "line" is always a line number. 
5280
5281         (gtk_text_iter_is_last): new function, more efficient than 
5282         the existing way to check
5283         (gtk_text_iter_is_first): new function, also more efficient
5284
5285         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
5286
5287         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
5288         gtk_text_iter_forward_char, etc.
5289
5290         (gtk_text_iter_forward_to_tag_toggle): Renamed from
5291         forward_find_tag_toggle, since this isn't a linear search
5292
5293         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
5294
5295         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
5296         New functions, search for a buffer substring.
5297
5298         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
5299         interactive and default editable (since we need to store that info
5300         until we receive the selection data).
5301
5302         Remove all the _at_char and at_line etc. versions of functions;
5303         only have iterator versions.
5304
5305         Add _interactive() versions of functions, that consider the
5306         editability of text. (FIXME add interactive flag to the 
5307         insert/delete signals per Darin's suggestion)
5308
5309         (gtk_text_buffer_get_tag_table): new function, demand-creates the
5310         tag table if necessary
5311
5312         Remove declaration of gtk_text_buffer_get_iter_from_string
5313
5314         (_gtk_text_buffer_get_btree): private/internal function, added.
5315         
5316
5317         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
5318         (gtk_text_line_is_last): new function
5319
5320 2000-07-25  Havoc Pennington  <hp@redhat.com>
5321
5322         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
5323         using GtkProgressBar. See Changes-2.0.txt for details.
5324
5325         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
5326         "pulse_step" which are the equivalent of
5327         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
5328         Implement new API.
5329         
5330         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
5331         (use_text_format) to mark whether text set on the progress bar is
5332         a format string. Deprecate entire GtkProgress interface.
5333
5334         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
5335         (gtk_progress_build_string): make this a no-op if use_text_format
5336         is FALSE
5337
5338         * docs/Changes-2.0.txt: Describe progress bar changes.
5339
5340 2000-07-25  Tor Lillqvist  <tml@iki.fi>
5341
5342         * Makefile.am: Include the build directory.
5343
5344         * configure.in: Generate build/Makefile, build/win32/Makefile,
5345         gdk/, gdk/win32/, and gtk/makefile.mingw.
5346
5347         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
5348         Add GETTEXT_PACKAGE.
5349         
5350         * gdk/gdk.def
5351         * gtk/gtk.def: Updates.
5352
5353         * gdk/gdkfont.h
5354         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
5355         need them any longer.
5356
5357         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
5358
5359         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
5360         PANGOWIN32_LIBS and gdk_pixbuf.
5361
5362         * gdk/win32: Compiles, but no doubt doesn't work at all.
5363
5364         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
5365
5366         * gdk/win32/gdkinput.c: New file, temporarily.
5367         
5368         * gdk/win32/gdkinput-win32.h: New file
5369
5370         * gdk/win32/gdkinputprivate.h: Remove.
5371
5372         * gdk/win32/gdkpango-win32.c: New file.
5373
5374         * gtk/makefile.mingw.in: New file
5375
5376         * gtk/makefile.cygwin: Removed
5377         
5378         * gtk/Makefile.am: Update accordingly.
5379
5380         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
5381         made externally visible.
5382
5383         * gtk/gtkmain.c: Use it.
5384         
5385         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
5386         is enough.
5387
5388         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
5389
5390 2000-07-24 Elliot Lee <sopwith@redhat.com>
5391         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
5392         individual backends already.
5393         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
5394         again. Yes, there really is a good reason for this, if you are using the gdkregion
5395         internals, and if you're not, why do you care?
5396         * gdk/gdkwindow.c: Fix inverted condition
5397         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
5398         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
5399         * gtk/gtkrange.c: Redraw trough when moving.
5400         * gtk/gtktypeutils.c: Fix warning by adding const cast.
5401         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
5402
5403 2000-07-23  Tor Lillqvist  <tml@iki.fi>
5404
5405         * configure.in: Check for mkstemp and sigsetjmp. Output
5406         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
5407
5408         More work on GDK for Win32. Still in an intermediate state.
5409
5410         * gdk/makefile.cygwin
5411         * gdk/win32/makefile.cygwin: Removed.
5412         
5413         * gdk/makefile.mingw.in
5414         * gdk/win32/makefile.mingw.in: New files.
5415
5416         * gdk/Makefile.am
5417         * gdk/win32/Makefile.am: Generate and distribute them.
5418
5419         * gdk/win32/gdkwindow-win32.h
5420         * gdk/win32/gdkdrawable-win32.h
5421         * gdk/win32/gdkpixmap-win32.h: New files.
5422
5423         * gdk/win32/gdkcolor-win32.c
5424         * gdk/win32/gdkcursor-win32.c
5425         * gdk/win32/gdkdrawable-win32.c
5426         * gdk/win32/gdkgc-win32.c
5427         * gdk/win32/gdkimage-win32.c
5428         * gdk/win32/gdkprivate-win32.h
5429         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
5430         Rename fields and variables called xcursor, xid, etc (these names
5431         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
5432
5433 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
5434
5435         * gtk/gtkentry.[ch]: Fix some problems with vertical
5436         alignment.
5437
5438         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
5439         char/byte confusion.
5440
5441 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
5442
5443         * gtk/gtktextview.c (changed_handler): Fix bug where
5444         redraw wasn't being done properly when height of
5445         dirty region changed.
5446
5447         * demos/Makefile.am: Remove various references to
5448         -lgmodule
5449
5450 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
5451
5452         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
5453         PangoAttrShape to reserve space for pixmaps, add 
5454         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
5455         in the display functions.
5456         
5457         * gtk/testgtk.c (create_layout): Set some more exotic
5458         scrolled window options
5459
5460         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
5461         Add function to set the shadow type of a window, to allow
5462         putting a shadow around widgets such as GtkLayout or GnomeCanvas
5463         which don't draw their own frame.
5464
5465 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
5466
5467         * docs/tutorial/package-db-tutorial.sh: New file for
5468           packaging DocBook format tutorial
5469
5470 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
5471
5472         * docs/tutorial/gtk-tut.sgml: Minor updates
5473
5474         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
5475
5476 2000-07-19  Tor Lillqvist  <tml@iki.fi>
5477
5478         * gtk/gtksignal.c: Fix C++ comment.
5479
5480         * gtk/gtkimmulticontext.c
5481         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
5482         don't return value from void functions.
5483
5484         * gtk/gtk.def: Add gtk_rc_style_unref.
5485
5486 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
5487
5488         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
5489         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
5490         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
5491         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
5492         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
5493         gtk/gtktypeutils.h: Include files outside of the extern "C"
5494         block. Makes some C++ compiler happy. Reported by Denis Vakatov
5495         <vakatov@peony.nlm.nih.gov>.
5496
5497 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
5498
5499         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
5500           Completes first pass. Hurrah!
5501
5502 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
5503
5504         * docs/tutorial/gtk-tut.sgml: More clean ups.
5505
5506 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
5507
5508         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
5509         paint the background of the text area which was accidentally
5510         removed at some point.
5511
5512         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
5513           
5514          - Move most of the functionality from the theme vtable
5515            into GtkRcStyleClass and GtkStyleClass. The moved
5516            vtable functions were changed a bit in the move to
5517            work better in their new home.
5518
5519          - Get rid of the engine and engine_data fields from
5520            GtkRcStyle and GtkStyle; instead the theme
5521            engine derives theme-specific subclasses of GtkRcStyle
5522            and GtkStyle
5523
5524          - Add extra dlsym() found entry point to themes,
5525            theme_create_rc_style().
5526
5527         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
5528         in gtk_style_real_copy.
5529
5530         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
5531         to register a type associated with an engine. (The engine
5532         won't be unloaded as there is an instance of the type.)
5533
5534
5535 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
5536
5537         * docs/tutorial/gtk-tut.sgml: Clean ups.
5538
5539 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
5540
5541         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
5542           of cleaning up to do.
5543
5544 2000-07-15  Tor Lillqvist  <tml@iki.fi>
5545
5546         * gdk/testgdk.c: New file, quick hack to test backends for
5547         pixel-by-pixel correctness of the most simple graphic operations.
5548
5549 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
5550
5551         * Really release 1.3.1
5552         
5553         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
5554         include structure.
5555
5556 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
5557
5558         * Released 1.3.1
5559
5560 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
5561
5562         * gtk/gtktextlayout.c: use FALSE for size_only most
5563         of the time when calling gtk_text_layout_get_line_display()
5564         to avoid causing double reshapes when a redraw follows
5565         immediately after.
5566
5567 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
5568
5569         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
5570         appropriate region and gdk_window_process_updates() so trough
5571         updating doesn't lag behind the window being scrolled.
5572
5573         * gdk/gdkgc.c: Make parent_class pointer static.
5574          
5575 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
5576
5577         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
5578         include <string.h>.
5579          
5580         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
5581         cut-and-paste error in computing memory offset for 4 channels.
5582
5583 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
5584
5585         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
5586         gtk_rc_append_default_pixmap_path(), since it wasn't
5587         adding an interesting path and we don't have a meaningful
5588         default for this value.
5589
5590 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
5591
5592         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
5593         gtk-config to gtk-config-2.0 move gtk_.m4 to
5594         gtk-2.0.m4
5595
5596         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
5597         gdk/Makefile.am demos/Makefile.am: Change 
5598         library names to libgtk-1.3.la, etc, so that we
5599         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
5600
5601         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
5602         gdk/Makefile.am gdk/x11/Makfile.am
5603         Move include files into /usr/include/gtk-2.0, 
5604         /usr/lib/gtk-2.0/include/
5605          
5606         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
5607         gtk/gtkintl.h: Change package for gettext from 
5608         gtk+ to gtk20. Put hack in autogen.sh to modify
5609         po/Makefile.in.in after gettextize to make this
5610         possible.
5611
5612         * gtk+.spec: Some updates, not tested.
5613
5614         * gdk-pixbuf/Makefile.am: Move loaders into
5615         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
5616
5617         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
5618         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
5619         to THEMENAME/gtk-2.0/. Move engine directory  to
5620         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
5621         
5622 2000-07-12  Tor Lillqvist  <tml@iki.fi>
5623
5624         Win32 changes, still doesn't build though.
5625
5626         * gdk/makefile.cygwin
5627         * gdk/win32/makefile.cygwin
5628         * gtk/makefile.cygwin: Updates.
5629
5630         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
5631         default values for fg and bg pixel as X11 does (0 and 1), not
5632         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
5633         Use 0 for pen width by default (treated as 1 anyway later, but for
5634         apps that might check the value in the GdkGC).
5635         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
5636         interface to gdk_gc_predraw and _postdraw.
5637
5638         * gdk/win32/gdkwin32.h
5639         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
5640
5641         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
5642         extraneous semicolon.
5643
5644         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
5645
5646         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
5647         not the Win32 bitspixel value.
5648
5649         * gdk/win32/gdkcc-win32.c:
5650         * gdk/win32/gdkcolor-win32.c 
5651         * gdk/win32/gdkprivate-win32.h
5652         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
5653         GDK object structure.
5654
5655 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
5656
5657         * docs/tutorial/gtk_tut_12.es.sgml (name): 
5658         * docs/tutorial/gtk_tut_it.sgml (name): 
5659         * docs/tutorial/gtk_tut_fr.sgml (name): 
5660         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
5661         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
5662
5663 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
5664
5665         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
5666           small changes.
5667
5668 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
5669
5670         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
5671         a bug here, never been here and never fixed anything ;(
5672         (don't segfault if tree->root_tree is NULL, which happens prior
5673         to widget realization, but puke instead).
5674
5675 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
5676
5677         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
5678         add the necessary tokens.
5679
5680         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
5681         (gtk_rc_style_to_style): copy thicknesses.
5682         (gtk_rc_init_style): apply thicknesses.
5683         (gtk_rc_parse_style): parse xthickness and ythickness.
5684
5685         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
5686
5687         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
5688         (gdk_window_new): 
5689         (_gdk_windowing_window_init): 
5690         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
5691         (gdk_pixmap_create_from_data): 
5692         (gdk_bitmap_create_from_data): 
5693         (gdk_pixmap_new): 
5694         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
5695         (gdk_image_new): 
5696         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
5697         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
5698         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
5699         (gdk_colormap_get_system): 
5700         (gdk_colormap_new): 
5701         * gdk/gdkwindow.c (gdk_window_init): 
5702         * gtk/gtkstyle.c (gtk_style_new):
5703         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
5704         * gdk/gdkpixmap.c (gdk_pixmap_init): 
5705         * gtk/gtkrc.c (gtk_rc_style_new):
5706         use g_object_new() instead of g_type_create_instance() which
5707         is a private function for fundamental type implementations.
5708
5709 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
5710
5711         * configure.in: Add check for db2html
5712
5713 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
5714
5715         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
5716         hack to set glib_debug_objects based on gtk_debug_flags.
5717
5718 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
5719
5720         * INSTALL.in: Update the Prerequisites section.
5721
5722         * Makefile.am demos/Makefile.am docs/Makefile.am
5723         docs/tutorial/Makefile.am gdk/x11/Makefile.am
5724         gdk/linux-fb/Makefile.am: Dist fixes
5725
5726 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
5727
5728         * NEWS: 10,000 foot view of 1.3.1 changes.
5729
5730 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
5731
5732         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
5733         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
5734         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
5735         gdk/x11/gdkmain-x11.c: 
5736
5737         Patch from George Lebl to add a GdkGrabStatus enumeration to use
5738         as a return value of gdk_*_grab(). Previously, we just
5739         returned the X11 values directly.
5740
5741 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
5742
5743         * gdk/x11/Makefile.am: Patch from George Lebl to 
5744         install all the headers in the right place.
5745
5746 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
5747
5748         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
5749           initial conversion to DocBook.
5750
5751 2000-07-04  Tor Lillqvist  <tml@iki.fi>
5752
5753         * README.win32: Improve a bit.
5754
5755         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
5756         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
5757         Alt+0nnn on the numpad (used to enter characters by numeric code
5758         from current DOS or ANSI codepage) working correctly, as in other
5759         Windows apps.
5760
5761         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
5762         same argument validity tests as in X11 version.
5763         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
5764
5765         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
5766         definitions in case missing from headers.
5767
5768         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
5769         destroy the window-specific cursor.
5770         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
5771         calling GetModuleHandle(NULL).
5772         (gdk_window_set_cursor): Reworked to always copy the passed cursor
5773         with CopyCursor before setting it as the window-specific
5774         cursor. It is OK for the caller to destroy the GdkCursor (and thus
5775         also its Windows cursor) after calling this function. Destroy any
5776         previous window-specific cursor.
5777
5778 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
5779
5780         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
5781         font charset is iso8859-1, not iso-8859-1.
5782
5783 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
5784
5785         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
5786         Use g_get_charset() instead of g_get_codeset().
5787
5788         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
5789         Comment out some strdup'ing functions to keep timj
5790         happy until we finish fighting this out.
5791
5792 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
5793
5794         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
5795         <= width or height.
5796
5797         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
5798         from 1.2 for parent/child states.
5799
5800         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
5801         of typos.
5802
5803         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
5804         event structures, replace with a generic axes field. Replace 
5805         deviceid/sourec with GdkDevice *device.
5806
5807         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
5808         to extract particular axis use value from event. (Also
5809         can be used for normal X/Y.)
5810
5811         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
5812         allow for arbitrary number of axes, namespace everything
5813         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
5814         everywhere.
5815
5816         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
5817         Get rid of the gdk_input_vtable setup if favor of simply
5818         defining the functions in gdkinput-none/gxi/xfree.c in
5819         a similar fashion to the way that the port structure is 
5820         done.
5821
5822         * gtk/gtkdnd.c: Fix fields of synthesized button press event
5823         for new event structures. 
5824
5825         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
5826         new device interfaces.
5827
5828 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
5829
5830         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
5831         set the initial text.
5832
5833         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
5834         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
5835         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
5836         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
5837
5838         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
5839         pango_layout_set_font_description to simplify.
5840
5841 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
5842
5843         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
5844         pango_layout_set_font_description to simplify.
5845
5846 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
5847
5848         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
5849         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
5850         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
5851
5852         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
5853         PANGO_PIXELS() macro.
5854
5855 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
5856
5857         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
5858         that returns a PangoContext owned by the widget and updated to
5859         match future changes in the widget. Also, make 
5860         gtk_widget_create_pango_layout() use this context. If we ever
5861         add a ::changed signal to PangoContext, this will make things
5862         much more convenient. 
5863
5864         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
5865         in the appropriate places instead of destroying the layouts and
5866         creating new ones.
5867
5868         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
5869         in a few strategic places.
5870
5871 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
5872
5873         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
5874         gtk_widget_size_request() on reparented child, if one. Otherwise,
5875         queue_resize() on the child never results in it getting size-requested
5876         at all.
5877
5878         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
5879         in option menus, so that (with luck) people won't copy it into
5880         their apps in the future.
5881
5882         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
5883         to gtk_option_menu_calc_size. This isn't perfect, but should fix
5884         a lot of problems with changing the size of the menu's menu
5885         items after adding it to the option menu.
5886
5887         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
5888
5889         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
5890         the text direction for a widget changes.
5891
5892         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
5893         ::direction_changed to get rid of various hacks.
5894
5895 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
5896
5897         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
5898         name.
5899
5900 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
5901
5902         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
5903         flag to the structure. Do not call XFreePixmap on pixmaps created
5904         by gdk_pixmap_foreign_new().
5905
5906 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
5907
5908         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
5909         value using GdkRGB functionality given GdkColormap and GdkColor.
5910         (name not final, waiting for inspiration.)
5911         
5912         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
5913         set the foreground/background of a GC using the GC's colormap
5914         and GdkRGB. (name not final, waiting for inspiration.)
5915
5916         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
5917         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
5918
5919         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
5920         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
5921         purely a function of the corresponding colormap. Make
5922         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
5923
5924         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
5925         gdk_pixbuf_*create_from_xpm_* in terms of
5926         gdk_pixbuf_new_from_xpm_data(), move into platform independent
5927         code.
5928
5929         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
5930         advantage of the new draw_rgb_32_image_dithalign.
5931
5932         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
5933
5934         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
5935         on each created GC.
5936
5937         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
5938
5939         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
5940         which we initialize from the drawable when the GC is created,
5941         if the drawable has a colormap.
5942
5943         * gdk/x11/gdkgc-x11.c: include string.h for memset.
5944
5945         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
5946
5947         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
5948
5949 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
5950
5951         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
5952         actually returning expose events, make sure to set
5953         the count field properly.
5954
5955         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
5956         accidentally reintroced bug which always cleared
5957         the graphics_exposures value. 
5958
5959 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
5960
5961         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
5962
5963 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
5964
5965         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
5966
5967 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
5968
5969         * docs/faq/gtk-faq.sgml: Start of Section 6.
5970
5971 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
5972
5973         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
5974         
5975         (Fixes problem with drawing childless frames. Pointed out
5976         by and a first patch from Anders)
5977         
5978         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
5979         compute a child_allocation, even if we don't have a child.
5980
5981         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
5982         Always chain to the parent's impl, even if we don't have a child.
5983
5984 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
5985
5986         * gdk/gdkrgb.c: If possible, create only a single shm segment and
5987         use multiple parts of it instead of creating a bunch of separate
5988         segments, since the maximum number of segments per system is not
5989         large. (This might be worth backporting to GTK+-1.2.x if we make a
5990         new release )
5991
5992         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
5993         structure in preparation for per-colormap GdkRGB.
5994
5995         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
5996         to False when we get EINVAL from shmget so that the caller of
5997         gdk_image_new can retry with a smaller segment size.
5998
5999 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
6000
6001         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
6002
6003 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
6004
6005         * configure.in: make the current version number 1.3.1 (binary age 0,
6006         interface age 0).
6007         
6008         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
6009         gtkcompat.h is all we want.
6010
6011         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
6012         GLib primitive types. fixed g_type_register_fundamental() argument
6013         ordering.
6014
6015         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
6016         compiles.
6017
6018         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
6019         object code cleanup, comment trigraph fixes, etc...
6020
6021 2000-06-23  Havoc Pennington  <hp@redhat.com>
6022
6023         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
6024         instead of making up a bogus name for first_para_mark
6025
6026         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
6027         0 as a context ID
6028
6029 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
6030
6031         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
6032
6033 2000-06-21  Havoc Pennington  <hp@pobox.com>
6034
6035         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
6036         we didn't check window->bg_pixmap != GDK_NO_BG.
6037
6038         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
6039         gdk-pixbuf
6040
6041 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
6042
6043         * docs/faq/gtk-faq.sgm: Move file to here.
6044           TODO: Update Makfile.am 
6045
6046 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
6047
6048         * docs/gtk-faq.sgm: Add Section 2
6049
6050 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
6051
6052         * docs/gtk-faq.sgm: New file. Start of DocBook
6053           version of the FAQ.
6054
6055 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
6056
6057         * configure.in (GDK_PIXBUF_MAJOR): Define version
6058         numbers for GDK_PIXBUF_*, as they get substituted
6059         into a header file. Need to consider versioning
6060         for gdk-pixbuf more carefully later.
6061
6062 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
6063
6064         Work with srcdir != builddir.   
6065         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
6066         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
6067         * demos/testpixbuf.c: Likewise.
6068         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
6069         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
6070         <gdk/x11/gdkx.h>.
6071         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
6072         "gdk-pixbuf.h".
6073         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
6074
6075 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
6076
6077         * TODO.xml: Change 1.4 version numbers to 2.0.
6078
6079 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
6080
6081         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
6082         fixups to GTK+ standard.
6083
6084 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
6085
6086         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
6087         gdk-pixbuf.
6088
6089         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
6090         fixups for GObject.
6091
6092         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
6093         gdk-pixbuf with GDK dependencies moved into GDK.
6094         
6095         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
6096         move gdk-pixbuf-loader here until GObject has signals.
6097
6098         * demos/: New directory of demos. Move demos from
6099         gdk-pixbuf here.
6100
6101         * demos/pixbuf-init.c: Small bit of code to check for
6102         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
6103         set GDK_PIXBUF_MODULEDIR appropriately.
6104
6105         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
6106         define which no longer makes sense.
6107
6108 2000-06-21  Havoc Pennington  <hp@redhat.com>
6109
6110         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
6111         gtk_get_default_language
6112
6113         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
6114         new function to get the default language
6115
6116         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
6117         s/gtk_text_view_style_values/gtk_text_style_values/
6118
6119         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
6120         Add a "language" field to tags.
6121
6122         (gtk_text_tag_set_arg): Fix bug in setting
6123         "bg_full_height_set" tag.
6124
6125 2000-06-21  Havoc Pennington  <hp@redhat.com>
6126
6127         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
6128         in the interfaces
6129
6130         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
6131         stuff instead when possible.
6132
6133         * gtk/gtktexttypes.h: Delete some unused constants
6134
6135         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
6136         testtextbuffer.c: use glib instead of custom unicode routines
6137
6138 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
6139
6140         * docs/es/: Removed mistakenly added generated sgml
6141
6142         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
6143         Remove outdated info files.
6144
6145         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
6146         Moved tutorial files into subdir
6147
6148         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
6149         subdir.
6150
6151         * docs/man/gtk_button.pod: Remove. (contents will be
6152         integrated into gtk-reference button page.)
6153
6154         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
6155         docs/faq/Makefile.am: Adjust for new organization
6156
6157 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
6158
6159         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
6160         not $(MKINSTALLDIRS)
6161
6162 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
6163
6164         * gtk/testgtk.c (create_text): Finish the job Elliot started
6165         of removing font setting test for text widget. (Since text widget
6166         and GdkFont are not deprecated, and cause portability problems.)
6167
6168 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
6169
6170         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
6171         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
6172         Remove use of libunicode in favor of new GLib functions.
6173
6174         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
6175         nano-x, framebuffer. The X11 include is just a hack until we get
6176         the necessary functions in gdkcolor.h, so there is no reason to
6177         add other includes of platforms.
6178
6179         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
6180         window bigger than the screen change.
6181
6182         * gtk/testgtk.c: Revert some random changes from Elliot
6183         that had no particular point and were causing testgtkrc
6184         not to function correctly.
6185         
6186         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
6187         because GdkSegment and GdkRegionBox have the same fields,
6188         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
6189         results in clearer code.
6190
6191         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
6192         gdk_input_translate_coordinates): Fix missed GdkObjectification
6193
6194 2000-06-18  Elliot Lee  <sopwith@redhat.com>
6195
6196         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
6197         * gtk/gtk{plug,socket}.h: Missed commits from previous.
6198
6199 2000-06-20  Havoc Pennington  <hp@redhat.com>
6200
6201         * modules/linux-fb/Makefile.am: Make this compile
6202         without framebuffer enabled
6203
6204         * gdk/linux-fb/Makefile.am: Add conditional to not build
6205         framebuffer unless specified in configure
6206
6207         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
6208         the size of the target instead of source if -1 was passed for
6209         width/height
6210
6211         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
6212         width/height confusion.
6213
6214 2000-06-19  Havoc Pennington  <hp@redhat.com>
6215
6216         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
6217         GDK_DRAWABLE_XID. In the future, we probably want to make it
6218         faster with G_DISABLE_CHECKS turned on.
6219
6220 2000-06-14  Havoc Pennington  <hp@redhat.com>
6221
6222         * gdk/Makefile.am: add gdkpixmap.c
6223
6224         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
6225         s/gdk_image_init/_gdk_windowing_image_init
6226
6227         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
6228         ref/unref
6229
6230         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
6231
6232         * gdk/gdkcompat.h: remove GdkWindowType compat, since
6233         GdkWindowType is now non-deprecated; 
6234         change gdk_window_get_type() compat to be
6235         gdk_window_get_window_type().
6236
6237         * gdk/gdkdnd.h: make GdkDragContext a GObject.
6238
6239         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
6240         virtual GObject. Make all functions call into the vtable.
6241         Move gdk_image_put() guts in here. Remove GdkDrawableType
6242         and gdk_drawable_get_type(), these are now GdkWindow-specific.
6243         draw_image, get_depth, get_size, set_colormap, get_colormap,
6244         get_visual added to the vtable.
6245         
6246         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
6247         GObject. Virtualize everything. 
6248         (gdk_gc_new_with_values): remove check for destroyed window,
6249         because now GdkWindow::create_gc will check this.
6250         (gdk_gc_set_values): New function to set GC values, this 
6251         was already implemented but wasn't in the header
6252
6253         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
6254
6255         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
6256         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
6257         remove _gdk_window_class; add _gdk_window_impl_get_type() and
6258         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
6259         _gdk_windowing_window_init, rename gdk_image_init to
6260         _gdk_windowing_image_init.
6261         
6262         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
6263         (gdk_draw_layout): Remove check for destroyed window, 
6264         because all the drawable methods already check it.
6265         
6266         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
6267         Add gdkpixmap.c which contains implementation of GdkDrawable
6268         virtual table (by chaining to a platform-specific implementation
6269         object).
6270         
6271         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
6272         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
6273         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
6274         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
6275         GdkColormapPrivate. 
6276
6277         * gdk/gdktypes.h: #include <glib-object.h>
6278
6279         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
6280         Move most functionality to platform-specific implementation
6281         object. GdkWindow itself now handles the backing store, then
6282         chains to the platform-specific implementation.
6283         (gdk_window_get_window_type): return GdkWindowType of the window.
6284         (gdk_window_peek_children): New routine, returns the children of 
6285         a GdkWindow
6286         (gdk_window_get_children): Was in X11-specific code and did 
6287         XQueryTree. Changed to simply return a copy of window->children; 
6288         so it can go in cross-platform code.
6289         
6290         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
6291
6292         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
6293         GdkColormap; just changed to use the new private data instead
6294         of casting to GdkColormapPrivate.
6295
6296         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
6297         gdk_cursor_new().
6298
6299         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
6300         (private data member in the GObject). 
6301         (xdnd_manager_source_filter): Function had broken 
6302         error handling, fix it (use gdk_error_trap_push).
6303
6304         * gdk/x11/gdkdrawable-x11.c: This file now implements
6305         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
6306         base class is purely for the convenience of the X port,
6307         and not part of the interface to cross-platform GDK.
6308
6309         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
6310         
6311         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
6312         specific to X, and returned by the create_gc virtual method
6313         of GdkDrawableImplX11. 
6314         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
6315         rather than gchar, this was also changed in the GdkGC vtable.
6316         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
6317         mask is 0, return immediately, instead of checking every flag.
6318         This is faster, and keeps us from segfaulting if values is NULL
6319         and the mask contains some nonzero flags.
6320
6321         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
6322         GdkWindow.
6323
6324         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
6325         GdkWindowPrivate is gone.
6326
6327         * gdk/x11/gdkim-x11.c: rename things that got renamed.
6328
6329         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
6330         remove the image_put stuff that got transferred to GdkDrawable.
6331         
6332         * gdk/x11/gdkinput.c: renamings
6333
6334         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
6335
6336         * gdk/x11/gdkpixmap-x11.c: GObject conversion
6337
6338         * gdk/x11/gdkprivate-x11.h: indentation fixes
6339
6340         * gdk/x11/gdkproperty-x11.c: renamings
6341
6342         * gdk/x11/gdkselection-x11.c: renamings
6343
6344         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
6345         implements the platform-specific "impl" object.
6346         Moved gdk_window_get_children to gdk/gdkwindow.c
6347
6348         * gdk/x11/gdkx.h: Remove all the private structs and private datas
6349         that no longer exist. Add declaration of GdkGCX11 object here.
6350         Fix all the macros to still work. 
6351
6352         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
6353         GdkDragContext from the boxed types since they are now GObjects.
6354
6355         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
6356         moved xthickness/ythickness into the instance. GtkStyleClass
6357         functions are now in the standard vtable for GtkStyle, so you have
6358         to create a GObject subclass to write a theme engine.
6359         (gtk_style_copy): fixed a leaked PangoFontDescription
6360         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
6361         can be the standard GObject function.
6362         
6363         * Throughout GTK:
6364         s/style->klass->[xy]thickness/style->[xy]thickness
6365         s/pango_layout_unref/g_object_unref/
6366
6367         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
6368         
6369         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
6370         accessing GDK internals.
6371
6372         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
6373         accessing GDK internals.
6374
6375 2000-06-18  Elliot Lee  <sopwith@redhat.com>
6376
6377         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
6378
6379         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
6380         problem by calculating event position relative to the trough
6381         rather than the slider.
6382         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
6383
6384         * gdk/gdkgc.h: Add GDK_NOR.
6385
6386         * configure.in, Makefile.am: Add modules top level dir
6387         * configure.in: Only use pangox library if building x11 target.
6388         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
6389
6390 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
6391
6392         * gtk/gtkcolorsel.c: Change private class member to be named
6393         private_data throughout the file.
6394
6395         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
6396         private_data to avoid clashing with keyword.
6397
6398 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
6399
6400         * gdk/gdkdnd.h: Add comment to remove warning.
6401
6402 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
6403
6404         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
6405         Byelorussian language; changed the Makefile and file names 
6406         to reflect that.
6407
6408 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
6409
6410         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
6411         rather than gdk_window_hide; this makes things work
6412         correctly if the window is programmatically hidden while
6413         iconified.
6414
6415 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
6416
6417         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
6418         cut and paste typo where wrong pixmap was being
6419         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
6420
6421 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
6422
6423         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
6424         Add helper function to compute format / bytes 
6425         relationship. Use in a couple places to fix up
6426         errors which assume 8 * format.
6427
6428         * gtk/gtkselection.c (gtk_selection_request): Use 32
6429         rather than 8 * sizeof (GdkAtom), to work correctly
6430         on Alpha.
6431
6432 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
6433
6434         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
6435         libgtk.la
6436         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
6437         versions
6438
6439         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
6440         checking macros return NULL since the function has a return value.
6441
6442 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
6443
6444         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
6445         GTK+ from building at all.
6446
6447         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
6448
6449 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
6450
6451         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
6452         gtk/Makefile.am: make it possible to configure gtk for different
6453         targets on the same platform. The library name is now 
6454         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
6455         flag. Only the x11 target compiles right now.
6456         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
6457         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
6458         * gdk/nanox/gdk*generic*: delete generic region code.
6459         * gdk/linux-fb/gdk*generic*: delete generic region code.
6460         * README.nanox: update information.
6461         
6462 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
6463
6464         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
6465         prepend not append. (Pointed out by Brett Hall.)
6466
6467 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
6468
6469         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
6470
6471 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
6472
6473         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
6474         need this later, and this makes sure that the atexit for
6475         glib gets called after that for GDK, so atexits are
6476         properly ordered for object leak checking.
6477
6478         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
6479
6480         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
6481         pango_x_shutdown_display()
6482
6483         * gtk/simple.c (main): Close window on destroy.
6484
6485 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
6486
6487         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
6488         to treat initial creation different from setting with 
6489         regards to the graphics-exposures parameter, so add a parameter
6490         indicating whether this is initial or not.
6491
6492 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
6493
6494         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
6495         to sort of work by adding an extra return_exposes arg
6496         to gdk_event_translate() - it might be better to simply
6497         deprecate the function altogether and force people to rewrite
6498         without it. gdk_window_scroll() handles most of it, and where
6499         gdk_window_scroll() doesn't work, simply redrawing more does.
6500
6501         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
6502         assertion.
6503
6504         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
6505
6506         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
6507         bunch of pretty much useless /* Print debugging info */ comments 
6508         which had drifted away from the code they were commenting.
6509
6510 2000-06-02  Havoc Pennington  <hp@pobox.com>
6511
6512         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
6513         is in working order.
6514         
6515         * gtk/testtext.c: Change to reflect anonymous mark API
6516
6517         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
6518
6519         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
6520         field, which was unused.
6521
6522         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
6523         saves some typing.
6524
6525         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
6526
6527         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
6528         flag on the insertion point and selection bound
6529
6530         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
6531         make mark-manipulation functions take a GtkTextMark* instead of a
6532         mark name.
6533         
6534         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
6535         GtkTextMarkBody; will be used to detect attempts to delete
6536         the permanent marks (insert and selection bound)
6537
6538         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
6539
6540 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
6541
6542         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
6543         flag to on.
6544
6545         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
6546         Honor DOUBLE_BUFFRED_FLAG
6547
6548         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
6549         function to set the DOUBLE_BUFFERED flag.
6550
6551         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
6552         or not exposes done on the widget should be double-buffered.
6553
6554         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
6555         to be what would be expected. (Fixes problem with a
6556         g_return_if_fail() validating a TextDirection enumeration)
6557
6558 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
6559
6560         * gtk/gtkwidget.c: Remove all references to 
6561         offscreen flag which was no longer used.
6562
6563         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
6564
6565         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
6566         for non-null label_widget->parent.
6567
6568         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
6569         which no longer was used.
6570
6571         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
6572
6573         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
6574         for null arguments.
6575
6576         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
6577         check for destroyed windows.
6578
6579 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
6580
6581         * gtk/gtkimmulticontext.c: Add a finalize method and unref
6582         the slave context there.
6583
6584         * gtk/gtkinvisible.[ch]: Make reference counting behavior
6585         identical to GtkWindow.
6586
6587 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
6588
6589         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
6590         pangox to here, so we can write them independent of rendering
6591         system, using GDK primitives.
6592
6593         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
6594         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
6595         since we have a rendering-system independent implementation in
6596         terms of draw_glyphs().
6597         
6598         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
6599         function to render a single line.
6600
6601         * gdk/x11/gdkpango.c: Move the guts of this file mostly
6602         into ../gdkpango.c, which simplifies things, since we
6603         don't have to deal with raw X gc's.
6604
6605 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
6606
6607         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
6608         get the logical attributes for a given GtkTextLine.
6609
6610 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
6611
6612         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
6613         g_locale_get_codeset() to g_get_codeset() change.
6614
6615 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
6616
6617         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
6618         descriptions.
6619
6620         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
6621         the entry.
6622
6623         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
6624         redoing (vastly simplifying) for Pango. Still needs quite
6625         a bit of work. (Size selection is currently poor. List of 
6626         predefined sizes is not a good idea, since all of these
6627         sizes won't necessarily be distinct.)
6628
6629 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
6630
6631         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
6632         CODESET results for LANG=C.
6633
6634 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
6635
6636         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
6637         which takes a stringized pango font description;
6638         ignore the older 'font' and 'fontset' declarations.
6639
6640         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
6641         field with a GdkFont derived via gdk_font_from_description(),
6642         for compatibility. (Should we just remove it entirely?
6643         Probably too much compatibility breakage, but people
6644         should be migrating to the new Pango stuff as quickly
6645         as possible.)
6646
6647 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
6648
6649         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
6650
6651 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
6652
6653         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
6654         redoing; there are some bugs in size allocation right
6655         now, the semi-existant distinction between header / day
6656         fonts was removed, but, with Pango, could actually
6657         be made functional in a nice way.
6658         
6659         * gtk/testcalender: Move calender from examples into this
6660         directory as a test program. (We really need to restrcture
6661         testgtk into a whole directory full of tests for every
6662         widget or functionality group, separated into multiple .c
6663         files.)
6664
6665 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
6666
6667         * gtk/testgtk.c (file_exists): Fix stupid typo that
6668         was keeping RC file from being loaded.
6669
6670         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
6671         RC file font code.
6672
6673 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
6674
6675         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
6676         Add function to load a GdkFont from a PangoFontDescription.
6677
6678 2000-05-29  Tor Lillqvist  <tml@iki.fi>
6679
6680         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
6681         variable should be of type GdkEventPrivate.
6682
6683 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
6684
6685         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
6686         to have any widget for the label, use a GtkLabel widget
6687         to display the text. (Based partially on a patch from
6688         Anders Carlson.)
6689
6690         (Quite a bit of code reorganization - strip 90% of the
6691         guts out of gtkaspectframe and add a single virtual
6692         func to GtkFrameClass - compute_child_allocation.)
6693
6694 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
6695
6696         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
6697         (Removed clist->row_center_offset field because caching
6698         it wasn't saving time or code, added private function
6699         _gtk_clist_create_cell_layout()).
6700
6701 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
6702
6703         * gtk/gtkaccellabel.c: Pangoized.
6704
6705         * gtk/[hv]ruler.c: Pangoized
6706
6707 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
6708
6709         * gtk/gtkfilesel.c (gtk_file_selection_init):
6710         Use gtk_clist_set_column_auto_resize() to remove need
6711         need for manual column width computations.
6712
6713 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
6714
6715         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
6716         ensuring Pango correctness, and considerably simplifying the
6717         code.
6718         
6719         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
6720
6721         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
6722         getting of numbers of lines.
6723
6724         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
6725         to the actual requested width of the lable, not to the wrap
6726         width we set.
6727
6728         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
6729
6730         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
6731           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
6732
6733         * gtk/gtktextview.c: Fix structure inheritance.
6734
6735         * gtk/gtkprogressbar.c: Pangoize.
6736
6737 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
6738
6739         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
6740         in a function.
6741
6742         * gtk/gtktextlayout.c (find_display_line_above): Fixed
6743         bug with computing line tops.
6744
6745         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
6746
6747 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
6748
6749         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
6750         and y_offset coordinates to do what we need now. (The offset between
6751         buffer and layout coordinates has been reintroduced, but is a 
6752         bit different than before.)
6753
6754         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
6755         handle the adjustments ourselves, and scroll as necessary using
6756         the new gdk_window_scroll().
6757         
6758         The advantage of this is that when we are incrementally revalidating,
6759         we are essentially rearranging things around the visible portion
6760         of the screen. With the old setup, the visible portion of the
6761         screen was moved around in the layout, so scrolling and redrawing
6762         to track that caused jumping of the display. Since we now
6763         control the scrolling ourselves, we can suppress this and
6764         only redraw when things actually change.
6765
6766 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
6767
6768         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
6769         the region not just redisplay it after-all, since we store the
6770         cursors in the LineDisplay. (Ugly interactions here between
6771         GtkLayout and GtkTextBTree here.)
6772         
6773         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
6774
6775 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
6776
6777         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
6778         Added function to scroll contents of a window while keeping the
6779         window constant. Works by XCopyArea or guffaw-scrolling depending
6780         on the details of how the window is set up. (guffaw-scrolling
6781         still needs to be filled in.)
6782
6783 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
6784
6785         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
6786         move the debugging that was tied to a global variable
6787         to that.
6788
6789         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
6790
6791         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
6792         validated flag, in line data instead of setting height/width to
6793         -1. This allows us to perform operations with partially invalid
6794         buffer (using the old size for invalid lines) and thus to do
6795         incremental vaidation. Keep height/width aggregates up to date
6796         when deleting text and rebalancing the tree.
6797
6798         * gtk/gtktextbtree.[ch]: Add functions validate a line
6799         (gtk_text_btree_validate_line), and to validate up
6800         to a number of pixels (gtk_text_btree_validate).
6801
6802         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
6803         that indicates that something is changed and a revalidation
6804         pass is needed. Change ::need_repaint to ::changed, and
6805         make it take old and new yranges instead of a rectangle.
6806
6807         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
6808         the line_data_destroy() function from 
6809         gtk_text_btree_add_view() to a virtual function in 
6810         GtkTextLayout
6811
6812         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
6813         since we are handling partial repaints in a different fashion
6814         now.
6815
6816         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
6817         of the selection instead of queueing a repaint on the
6818         entire widget.
6819
6820         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
6821         get_selection_bounds() down to btree, make the function
6822         in buffer a wrapper around the btree function.
6823
6824         * gtk/gtktextlayout.[ch]: Add functions to check if the
6825         layout is valid and to recompute either a range of pixels
6826         aroudn a line or a certain total number of pixels.
6827
6828         * gtk/gtktextlayout.[ch]: Cache a single line display;
6829         now that we only redraw the needed portions, the hit rate
6830         for this cache is quite high.
6831         
6832         * gtk/gtktextview.[ch]: Keep track of the first paragraph
6833         on the screen so that when re-laying-out the buffer, we can
6834         keep the same place. This requires connecting to ::value_changed
6835         on the adjustments
6836
6837         * gtk/gtktextview.[ch]: Add idle functions to revalidate
6838         the buffer after we receive an ::invalidated signal.
6839         
6840 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
6841
6842         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
6843         to max of allocation and layout size, not just to the
6844         layout size.
6845
6846         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
6847         Invalidate window so it gets redrawn properly.
6848
6849         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
6850         to mean the entire window.
6851
6852         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
6853         into public header.
6854
6855 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
6856
6857         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
6858         to get the name of a mark.
6859
6860         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
6861         to find the paragraph from a y position.
6862
6863 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
6864
6865         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
6866         nodes have width/height >= 0, not > 0.
6867
6868 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
6869
6870         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
6871         Add a size_only flag, so when we only need the size, we don't create
6872         useless appearance attributes.
6873
6874         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
6875         duplicate setting of font description.
6876
6877         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
6878
6879 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
6880
6881         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
6882         EXTRA_DIST. It does not work well when the file that
6883         everything depends on is not in the tarball.
6884
6885 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
6886
6887         * gtk/testgtk.c: Some hacks and fixes so that it basically
6888         works when not sitting in the GTK+ build tree.
6889
6890 2000-05-03  Havoc Pennington  <hp@redhat.com>
6891
6892         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
6893         Properly determine the ordering of the tag root and the current
6894         line within the tree. Previous algorithm only worked if the tag
6895         root's immediate parent was the common root of both the current
6896         line and the tag root.
6897
6898 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
6899
6900         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
6901         alignment.
6902
6903         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
6904         the widget text directional dynamically.
6905
6906         * gtk/gtktextview.[ch]: Added functions to get and set default
6907         wrap mode.
6908
6909 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
6910
6911         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
6912         in cursor location computation.
6913
6914 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
6915
6916         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
6917         vadjusment values properly when layout gets smaller.
6918
6919         * gtk/gtktextview.c (need_repaint_handler): Areas being
6920         passed in are far completely inaccurate, and sometimes
6921         too small, so, for now, just queue a redraw on the
6922         whole visible region.
6923
6924 2000-04-25  Havoc Pennington  <hp@redhat.com>
6925
6926         * gtk/gtktextbtree.c (summary_destroy): new function to 
6927         destroy tag summary nodes
6928         (gtk_text_line_next_could_contain_tag): this function was 
6929         totally broken if the line passed in wasn't below the tag
6930         root. Fix it.
6931         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
6932         "wildcard" case, we have to do a linear scan. Blah.
6933         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
6934         we have to do the linear scan
6935         (tag_removed_cb): When a tag is removed from the tag table, 
6936         remove the GtkTextTagInfo node from the btree.
6937         (gtk_text_btree_spew): Implement the spew function, for 
6938         our debugging pleasure.
6939
6940 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
6941
6942         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
6943         a problem with referring to the wrong buffer.
6944
6945         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
6946
6947         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
6948         font description to gtk_style_new() - otherwise things
6949         don't work without a .gtkrc file.
6950
6951         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
6952         tags table if we create it ourself, too.
6953
6954         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
6955         it was conflicting with XKB modifiers.
6956
6957         * gtk/gtktextview.[ch]: Add simple support for 
6958         GtkIMContext.
6959
6960 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
6961
6962         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
6963         with deletion from last commit.
6964
6965 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
6966
6967         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
6968         in the context from the current locale.
6969         
6970         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
6971         context, not hardcoded value.
6972
6973         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
6974         not logical.
6975
6976 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
6977
6978         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
6979         attributes - that doesn't handle partial-glyph selection
6980         properly. Instead use new pango_layout_line_get_x_ranges()
6981         functionality to draw the selection.
6982
6983         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
6984         now properly handles out-of-range coordinates.
6985
6986         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
6987
6988         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
6989         public.
6990
6991         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
6992         for paragraphs opposite to the base direction of the widget.
6993
6994         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
6995
6996         * gtk/gtktextlayout.c: Don't split segments on marks, since that
6997         causes Arabic words to reshape as you cursor through.
6998
6999         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
7000         cursor position when moving vertically with the arrow keys and
7001         scrolling with page-up/page-down. (Arrow keys save only the X,
7002         scrolling saves both X and Y.)
7003
7004         This means you can line-up / line-down or page-up / page-down
7005         without losing your place, and also that moving vertically
7006         with the cursor keys keeps the same X position, not the same
7007         character count:
7008
7009         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
7010         arrow keys move by display lines, not paragraphs.
7011
7012 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
7013
7014         * gtk/gtklayout.c: Make sure that the bin window is at least
7015         as big as the allocation. (Should we also make sure that the
7016         bin window is big enough to completely cover widget->window?)
7017
7018         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
7019         function to get the onscreen rectangle.
7020
7021         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
7022         for offsets in window coordinates.
7023
7024 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
7025
7026         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
7027         confusion.
7028
7029         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
7030         from the widget direction.
7031
7032         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
7033         Add a "direction" attribute.
7034
7035         * gtk/gtktextview.c: global s/tkxt/text_view/.
7036
7037         * gtk/testtext.c: Added long block of text in Arabic, to test out
7038         the direction attributes. (Some problems with the shaping system
7039         for arabic become obvious - like the fact the cursor splits words
7040         into unjoined pieces.)
7041
7042 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
7043
7044         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
7045
7046         * gtk/gtktextlayout.c: Fix up alignment.
7047
7048         * gtk/testtext.c: Add some tests for centering, wrapping.
7049
7050 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
7051
7052         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7053         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
7054         If we wrote GTK+-specific layout-render function this could just replace
7055         the draw_layout() operation in the vtable.
7056
7057         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
7058         pango_layout_get_cursor_pos() and use that function.
7059
7060         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
7061         is a non-static symbol.
7062
7063         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
7064         with gtk_text_btree_find_line_by_y()
7065
7066         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
7067         renderer that handles GtkTextAppearance attributes.
7068
7069         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
7070
7071           - Move the values in the style that don't affect geometry into a
7072             GtkTextAppearance structure.
7073           - Change underline to take a PangoUnderline and "font" a string
7074             representation of a font description
7075           - Add a "font_desc" attribute which takes a FontDescription structure.
7076
7077         * gtk/gtktextlayout.[ch]:
7078
7079           - Get rid of the display-line list per each line. Instead, we
7080             generate, on demand, a GtkTextLineDisplay structure which]
7081             contains a PangoLayout * and other necesary information
7082             (offsets, cursor locations) for displaying a paragraph.
7083           - Get rid of the code to wrap lines, create display chunks,
7084             etc. Instead, we just go through a paragraph and convert
7085             it into the necessary inputs to a PangoLayout.
7086           - Implement a new attribute type, GtkTextAttrAppearance. This
7087             holds a GtkTextAppearance, and is used to pass colors, 
7088             stipple, etc, through from the layout to the display without
7089             having to use lots and lots of individual attributes.
7090           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
7091             in terms of PangoLayout functions.
7092         
7093         * gtk/gtktextview.c: 
7094          
7095           - Handle passing the necessary PangoContext to the layout
7096           - Some fixups in painting to deal with the automatic backing store
7097             and offsetting of GTK+-1.4
7098           - Add a style_set handler so that the default style reacts
7099             properly to theme changes.
7100         
7101         * gtk/gtktext?*.[ch]: Random code-style fixes.
7102
7103         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
7104
7105 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
7106
7107         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
7108         in original form preparatory to Pango-ization and gdkimcontext-ization.
7109
7110 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
7111
7112         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
7113         so that we can derive from gtkimcontext in language bindings properly.
7114
7115 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
7116
7117         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
7118         Add a compose table including (almost) all the compose combinations
7119         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
7120         data in the XIM implementation.
7121
7122         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
7123         Moved functions to convert keyvalues from and to unicode here from
7124         the win32 port and made them public.
7125
7126 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
7127
7128         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
7129
7130 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
7131
7132         * gtk/gtkimcontext.[ch]: Base class for new input context system
7133
7134         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
7135         the real input context implementation to be loaded from modules
7136         and switched on the fly.
7137
7138         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
7139         context that just does direct keysymbol => unicode translation.
7140
7141         * gtk/gtkentry.[ch]: Start switching editing over to using
7142         GtkInputContext. (No handling of preedit yet.)
7143
7144 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
7145
7146         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
7147         many substitutions. (klass should not be subsituted.)
7148
7149 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
7150
7151         * configure.in: Add checks for Pango
7152
7153         * configure.in docs/Makefile.am: Add test for sgml2html
7154         and allow 'make dist' without building html, but print out
7155         warnings in that case. (For making snapshots)
7156
7157         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
7158         Add Pango libraries and C flags
7159
7160         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
7161         Add function (gdk_draw_layout) to draw a pango layout.
7162
7163         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
7164         for getting Pango contexts for GDK.
7165
7166         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
7167
7168         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
7169         editing.
7170
7171         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
7172         keysym => unicode translations. More languages can be added
7173         here, but real input-method support is needed.
7174
7175         * docs/Changes-1.4.txt: Added note about entry behavior.
7176         
7177         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
7178         to set the reading direction for a widget and the global direction.
7179         Add test which allows toggling the global direction. Two private
7180         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
7181
7182         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
7183           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
7184
7185         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
7186
7187         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
7188         underlining now handled by Pango.
7189
7190         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
7191         to RCStyle and Style. (Having both this and the old font name and GdkFont 
7192         is temporary.)
7193
7194         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
7195         convenience functions for creating contexts and layouts for widgets.
7196
7197         * gtk/testgtk.c: Enhance label tests with multilingual labels.
7198
7199 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
7200
7201         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
7202         titles to be active, even if they aren't visible.
7203         (gtk_clist_column_titles_passive):  Ditto.
7204
7205 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
7206
7207         * gtkmenu.c:
7208         * gtkmenu.h:
7209         * gtktypeutils.h: Spelling/grammar fixes in comments.
7210
7211 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
7212
7213         * gdk/nanox/*.h: add missing header files.
7214
7215 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
7216
7217         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
7218         send_event to TRUE.
7219         (gtk_drawing_area_size): queue a resize.
7220
7221 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
7222
7223         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
7224         the handlers, also invalidate them. bug nailed down by Karl Nelson
7225         <kenelson@ece.ucdavis.edu>.
7226
7227 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
7228
7229         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
7230         "(nil)" foundries, patch from Grigorios Magklis.
7231
7232         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
7233         on non-available fonts, based on a patch by Grigorios Magklis
7234         <maglis@cs.rochester.edu>.
7235
7236 2000-05-18  Elliot Lee  <sopwith@redhat.com>
7237
7238         * gdk/x11/gdkregion-generic.c: If a region does not have any
7239         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
7240         instead of GDK_OVERLAP_RECTANGLE_IN.
7241
7242 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
7243
7244         * gtk/gtklayout.c (gtk_layout_map): Remove references to
7245         OFFSCREEN, as it is no longer necessary.
7246
7247 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
7248
7249         * gtk/gtkcolorsel.c: Patch from David Santiago
7250         <mrcooger@cyberverse.com> to change things so that the 
7251         indicator of the active palette entry is done independently,
7252         not via the focus, since it should always be visible.
7253
7254 2000-05-17  Tor Lillqvist  <tml@iki.fi>
7255
7256         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
7257         refcount leaks as in the X11 backend.
7258
7259         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
7260         cosmetics.
7261
7262         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
7263         backend. Add _gdk_windowing_window_destroy().
7264
7265         * gtk/gtkcolorsel.c: Include correct backend-specific header.
7266         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
7267         either, but these probably do exist on nanox?)
7268         
7269         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
7270         which isn't necessarily defined by <math.h>.
7271
7272         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
7273         ancestry past GtkObject.
7274
7275         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
7276         from DLL on Win32.
7277
7278         * gtk/gtk.def: Update corresponding to recent changes.
7279
7280         * gtk/makefile.{cygwin,msc}: Updates.
7281
7282 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
7283
7284         * docs/Changes-1.4.txt: A bit of editing.
7285
7286         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
7287         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
7288         to clear the update area for the window, and clear it
7289         when hiding a window.
7290
7291         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
7292         if window destroyed.
7293
7294         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
7295
7296         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
7297         gdk_window_destroy() to the generic code, since there was a lot of 
7298         window-system-independent logic it in. Add a function:
7299         
7300          _gdk_window_destroy() 
7301
7302         to the internal API to destroy a window without unreferencing it.
7303         Add a function:
7304
7305          _gdk_windowing_window_destroy()
7306
7307         That does the windowing-system-dependent part of destroying 
7308         the window.
7309
7310 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
7311
7312         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
7313
7314 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
7315
7316         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
7317         Make gtk_widget_shape_combine_mask() keep a reference count on
7318         the pixmap since it keeps it around.
7319
7320 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
7321
7322         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
7323         leak.
7324
7325         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
7326         leak with event filters.
7327
7328 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
7329
7330         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
7331         signal handlers with the right data arguments. (Fixes
7332         some warnings when a widget was repeatedly set as a drag
7333         destination.)
7334
7335         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
7336         window so we can avoid avoid setting the DND properties on the
7337         toplevel window repeatedly.
7338
7339 2000-05-13  Tor Lillqvist  <tml@iki.fi>
7340
7341         * gdk/win32/gdkwin32.h: Define more message types missing from
7342         mingw headers.
7343
7344         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
7345         call gdk_window_destroy_notify(). It was never called. This
7346         probably meant that the GdkWindow was never freed. Thanks Owen for
7347         noticing (!).
7348
7349         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
7350         window as destroyed before calling DestroyWindow(). DestroyWindow()
7351         causes a call to the window procedure (gdk_WindowProc), which
7352         calls gdk_event_translate(), which calls
7353         gdk_window_destroy_notify(), which gets confused unless the window
7354         is set as destroyed.
7355
7356         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
7357         this function to indicate it's win32 only. Put inside #ifdef
7358         G_ENABLE_DEBUG.
7359
7360         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
7361         debugging function. (gdk_event_translate:) Add a default branch
7362         that uses the above function to print debug messages with all
7363         Windows messages symbolically.
7364
7365         * gdk/win32/gdkprivate-win32.h: Declare it, and
7366         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
7367
7368 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
7369
7370         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
7371         public header file.
7372
7373 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
7374
7375         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
7376
7377         * gtk/gtktext.c: made the adjustments no-construct args, simply
7378         provide default adjustments.
7379         (gtk_text_destroy): release adjustments.
7380
7381         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
7382         adjustment argument non-construct.
7383
7384         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
7385         instead of in finalize.
7386         (gtk_progress_get_text_from_value): 
7387         (gtk_progress_get_current_text): 
7388         (gtk_progress_set_value): 
7389         (gtk_progress_get_percentage_from_value): 
7390         (gtk_progress_get_current_percentage): 
7391         (gtk_progress_set_percentage): 
7392         (gtk_progress_configure): ensure an adjustment is present.
7393
7394 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
7395
7396         * gtk/gtkcolorsel.[hc]:
7397         * gtk/gtkcolorseldialog.[hc]:
7398         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
7399         their parent implementation, use bit fields for boolean values, don't
7400         create unused widgets, usage of glib types, braces go on their own
7401         lines, function argument alignment, #include directives etc. etc. etc..
7402
7403         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
7404
7405 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
7406
7407         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
7408
7409         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
7410         of NULL.
7411
7412         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
7413         to freed data.
7414         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
7415
7416         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
7417         to NULL when the toplevel is getting destroyed.
7418         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
7419         (gtk_menu_destroy): 
7420         (gtk_menu_init): store the information of whether we have to
7421         readd the initial child ref_count during destruction in a new
7422         GtkMenu field needs_destruction_ref_count.
7423
7424         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
7425         here, those reading: learn from my mistake! ;)
7426         in order for set_?adjustment to support a default adjustemnt if
7427         invoked with an adjustment pointer of NULL, the code read (pseudo):
7428         if (v->adjustment) unref (v->adjustment);
7429         if (!adjustment) adjustment = adjustment_new ();
7430         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
7431         now imagine the first unref to actually free the old adjustment and
7432         adjustment_new() creating a new adjustment from the very same memory
7433         portion. here, the latter comparision will unintendedly fail, and
7434         all hell breaks loose.
7435         (gtk_viewport_set_hadjustment):
7436         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
7437         after unreferencing it.
7438
7439         * gtk/gtkcontainer.[hc]: removed toplevel registration
7440         functions: gtk_container_register_toplevel(),
7441         gtk_container_unregister_toplevel() and
7442         gtk_container_get_toplevels() which had wrong semantics
7443         anyways: it didn't reference and copy the list.
7444
7445         * gtk/gtkwindow.c: we take over the container toplevel registration
7446         bussiness now. windows are registered across multiple destructions,
7447         untill they are finalized. the initial implicit reference count
7448         users are holding on windows is removed with the first destruction
7449         though.
7450         (gtk_window_init): ref & sink and set has_user_ref_count, got
7451         rid of gtk_container_register_toplevel() call. add window to
7452         toplevel_list.
7453         (gtk_window_destroy): unref the window if has_user_ref_count
7454         is still set, got rid of call to
7455         gtk_container_unregister_toplevel().
7456         (gtk_window_finalize): remove window from toplevel list.
7457         (gtk_window_list_toplevels): new function to return a newly
7458         created list with referenced toplevels.
7459         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
7460
7461         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
7462         adjustment a non-construct arg.
7463         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
7464         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
7465         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
7466
7467         * gtk/gtkrange.c: added some realized checks.
7468         (gtk_range_destroy): get rid of the h/v adjustments in the
7469         destroy handler instead of finalize. remove timer.
7470         (gtk_range_get_adjustment): demand create adjustment.
7471
7472         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
7473         we simply create them on demand now and get rid of them in
7474         the destroy handler.
7475         (gtk_viewport_destroy): get rid of the h/v adjustments in the
7476         destroy handler instead of finalize.
7477         (gtk_viewport_get_hadjustment): 
7478         (gtk_viewport_get_vadjustment): 
7479         (gtk_viewport_size_allocate): demand create h/v adjustment
7480         if required.
7481
7482         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
7483         gtk_widget_real_destroy () functionality.
7484         (gtk_widget_real_destroy): reinitialize with a new style, instead
7485         of setting widget->style to NULL.
7486
7487 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
7488
7489         * gtk/gtkcalendar.c:
7490         * gtk/gtkbutton.c: ported _get_type() implementation over to
7491         GType, either to preserve memchunks allocation facilities,
7492         or because Gtk+ 1.0 GtkTypeInfo was still being used.
7493
7494         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
7495         over. prepare for ::destroy to be emitted multiple times.
7496         removed reference tracer magic. chain into GObjectClass.shutdown()
7497         to emit ::destroy signal.
7498
7499         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
7500         fundamental.
7501
7502         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
7503         cludge.
7504
7505         * gtk/gtksocket.c:
7506         * gtk/gtkplug.c:
7507         * gtk/gtklayout.c:
7508         * gtk/gtklabel.c:
7509         * gtk/gtkargcollector.c:
7510         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
7511         not being a fundamental anymore, and to work with the new
7512         type system (nuked fundamental type varargs clutter).
7513
7514         * gtk/*.c: install finalize handlers in the GObjectClass
7515         part of the class structure.
7516         changed direct GTK_OBJECT()->klass accesses to
7517         GTK_*_GET_CLASS().
7518         changed direct object_class->type accesses to GTK_CLASS_TYPE().
7519
7520         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
7521         GType. made most of the GTK_*() type macros and Gtk* typedefs
7522         simple wrappers around macros and types provided by GType.
7523         most notably, a significant portion of the old API vanished:
7524         GTK_TYPE_MAKE(),
7525         GTK_TYPE_SEQNO(),
7526         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
7527         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
7528         GTK_TYPE_ARGS,
7529         GTK_TYPE_CALLBACK,
7530         GTK_TYPE_C_CALLBACK,
7531         GTK_TYPE_FOREIGN,
7532         GtkTypeQuery,
7533         gtk_type_query(),
7534         gtk_type_set_varargs_type(),
7535         gtk_type_get_varargs_type(),
7536         gtk_type_check_object_cast(),
7537         gtk_type_check_class_cast(),
7538         gtk_type_describe_tree(),
7539         gtk_type_describe_heritage(),
7540         gtk_type_free(),
7541         gtk_type_children_types(),
7542         gtk_type_set_chunk_alloc(),
7543         gtk_type_register_enum(),
7544         gtk_type_register_flags(),
7545         gtk_type_parent_class().
7546         replacements, where available are described in ../docs/Changes-1.4.txt.
7547         implemented compatibility functions for the remaining API.
7548
7549         * configure.in: depend on glib 1.3.1, use gobject module.
7550
7551 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
7552
7553         * TODO.xml: Various updates to current status.
7554
7555 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
7556
7557         * gtk.m4: Print out version when test succeeds.
7558
7559 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
7560
7561         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
7562         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
7563         
7564         (Original triangle color selector from Simon Budig
7565         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
7566         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
7567         Santiago <mrcooger@cyberverse.com>)
7568
7569         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
7570         out into a separate widget.
7571
7572         * gtk/testgtk.c: Add some checkbuttons for toggling palette
7573         and opacity controls.
7574
7575 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
7576
7577         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
7578         snuck in prematurely.
7579
7580 2000-05-07  Tor Lillqvist  <tml@iki.fi>
7581
7582         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
7583         had deleted a ! operator by mistake, which caused
7584         GDK_SELECTION_CLEAR events never to be generated, which caused
7585         only the first copy to the clipboard from an gtkeditable to
7586         actually cause a copy to the Windows clipboard.
7587
7588 2000-05-06  Tor Lillqvist  <tml@iki.fi>
7589
7590         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
7591         compilation, too. Current mingw gcc distributions include the
7592         necessary headers. Also the necessary IIDs are now in mingw
7593         headers/libraries, and own definitions unnecessary.
7594
7595         More hacking on OLE2 DND, still doesn't work though, and thus
7596         ifdeffed out.
7597
7598         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
7599         here, too.
7600
7601 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
7602
7603         * gdk/nanox/*: nano-X port work in progress.
7604         * gdk/simple.c: simple test for Gdk.
7605         * README.nanox: notes about the port: read this first!
7606         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
7607         with nano-X.
7608
7609 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
7610
7611         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
7612         gdk_window_clear() into common code, implement in terms of
7613         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
7614         not redirected to the backing rectangle.
7615
7616 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
7617
7618         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
7619         EXTRA_DIST. It does not work well when the file that
7620         everything depends on is not in the tarball.
7621
7622 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
7623
7624         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
7625         with recursion where process_updates() is called from
7626         an expose handler. (GtkTextView is highly broken in
7627         doing this, but it should work, so it is a nice test
7628         case.)
7629
7630 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
7631
7632         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
7633         handle the case where updates are queued during processing of
7634         updates.
7635
7636 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
7637
7638         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
7639         window is on gdk_display - use that instead of segfaulting.
7640
7641 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
7642
7643         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
7644         broken and require an empty arg, give it to them.
7645
7646 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
7647
7648         * gtk/gtklabel.h: indentation fixes.
7649
7650 2000-05-02  Tor Lillqvist  <tml@iki.fi>
7651
7652         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
7653         draw too narrow or too low arcs, they seem to fail, at least with
7654         some display drivers.
7655
7656         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
7657
7658         Large changes to the Win32 backend, partially made necessary by
7659         the changes to the backend-independent internal
7660         structures. Attempts to implement similar backing store stuff as
7661         on X11. The current (CVS) version of the Win32 backend is *not* as
7662         stable as it was before the no-flicker branch was merged. A
7663         zipfile with that version is available from
7664         http://www.gimp.org/win32/. That should be use by "production"
7665         code until this CVS version is usable. (But note, the Win32
7666         backend has never been claimed to be "production quality".)
7667
7668         * README.win32: Add the above comment about versions.
7669
7670         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
7671
7672         * gdk/gdk.def: Update.
7673
7674         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
7675         presumably be replaced by some more better mechanism as 1.4 gets
7676         closer to release shape.
7677
7678         * gdk/makefile.{cygwin,msc}: Update.
7679
7680         * gdk/win32/*.c: Correct inclusions of the backend-specific and
7681         internal headers. Change code according to changes in these. Use
7682         gdk_drawable_*, not gdk_window_* where necessary.
7683
7684         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
7685         our old DND.
7686
7687         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
7688         to interpret single characters as UTF-8. Thanks to Hans Breuer.
7689         Use correct function name in warning messages.
7690
7691         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
7692         GSourceFuncs gdk_event_prepare and gdk_event_check.
7693         (gdk_event_get_graphics_expose): Do implement, use
7694         PeekMessage. Thanks to Hans Breuer.
7695         (event_mask_string): Debugging function to print an GdkEventMask.
7696         (gdk_pointer_grab): Use it.
7697
7698         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
7699         (old) book I used claimed was Hangul actually is CJK Unified
7700         Ideographs Extension A. Also, Hangul Syllables were missing.
7701         Improve logging.
7702
7703         * gdk/win32/gdkgc-win32.c: Largish changes.
7704
7705         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
7706         g_win32_getlocale() from GLib, and not setlocale() to get current
7707         locale name.
7708
7709         * gdk/win32/gdkprivate-win32.h
7710         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
7711         gdkwin32.h, similarily as in the X11 backend.
7712
7713         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
7714         assignment was used instead of equals in if test. Thanks to Hans
7715         Breuer.
7716
7717         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
7718         the X11 version.
7719
7720         * gdk/win32/makefile.{cygwin,msc}
7721         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
7722         path to the Win32 headers that works also with the mingw compiler.
7723
7724         * gtk/gtkstyle.c: Include <string.h>.
7725
7726 2000-04-26  Havoc Pennington  <hp@redhat.com>
7727
7728         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
7729         replacing the broken gtk_label_get ()
7730
7731 2000-04-15  Havoc Pennington  <hp@pobox.com>
7732
7733         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
7734         this keeps scanner scripts from getting confused.
7735
7736         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
7737         data, rather than void
7738
7739 2000-04-15  Tor Lillqvist  <tml@iki.fi>
7740
7741         * gtk/gtkclist.c (gtk_clist_motion)
7742         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
7743         with is_hint FALSE, get x and y from the event. They used to be
7744         used uninitialised. The Win32 backend never sends motion events
7745         marked as hints. This for instance fixes the annoying file and
7746         font selector behaviour in the Win32 version.
7747
7748 2000-04-14  Tor Lillqvist  <tml@iki.fi>
7749
7750         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
7751         gtk_private_n_signals variables, they are used by some software,
7752         sigh.
7753
7754         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
7755         installation directory from the Registry, where the installer
7756         should have put it.
7757
7758 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
7759
7760         * gdk/x11/Makefile.am: Fix problem with installation directory for
7761         gdkx.h
7762
7763         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
7764         <mrcooger@cyberverse.com> so that when selecting menus with the
7765         mouse, the first item will not be selected, but when selecting
7766         with an accelerator, or navigating left-right on a menubar with
7767         the menus popped up, the first item will be selected.
7768
7769 2000-04-05  Dan Damian  <dand@dnttm.ro>
7770
7771         * configure.in: Added "ro" to ALL_LINGUAS.
7772
7773 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
7774
7775         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
7776         indentation.
7777
7778         * Makefile.am (EXTRA_DIST): Fix typo.
7779
7780         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
7781         to catch gdkconfig.h
7782
7783         * gtk/gtkitemfactory.c: Added FIXME.
7784
7785 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
7786
7787         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
7788         s/return_if_fail/return_val_if_fail/g and add a return value.
7789
7790 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
7791
7792         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
7793         merge slipup.
7794
7795         * gdk/gdkinput.h: Fix missing line from merge.
7796
7797 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
7798
7799         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
7800         instead of gdkprivate.h.
7801
7802 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
7803
7804         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
7805         parent class to correctly be GtkDialogClass.
7806
7807 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
7808
7809         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
7810         toplevel windows and their immediate children by their parents,
7811         since the size of toplevel windows is out of our immediate
7812         control and we don't get any real benefit from trying to track
7813         this size for clipping.
7814
7815         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
7816         for input_only windows.
7817
7818         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
7819         to fix some hacks and make sure that we don't try to set the
7820         background of input only windows.
7821
7822 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
7823
7824         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
7825         the _really_ internal stuff, and leave gdkprivate.h for the fake private
7826         stuff that we've traditionally exposed.
7827
7828         * gdk/**.c: Use gdkinternals.h where appropriate.
7829
7830         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
7831         not include gdkprivate-x11.h, move all stuff of conceivable public
7832         interest into gdkx.h; keep all really private stuff in
7833         uninstalled header gdkprivate-x11.h.
7834
7835         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
7836         image->image_put on windows through a new function _gdk_window_draw_image()
7837         to allow us to do backing store for images. (Sort of ugly)
7838
7839         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
7840         contexts locally so that we can offset them properly when drawing 
7841         onto backing pixmaps.
7842
7843         * gdk/gdkinput.h: Reindented
7844
7845         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
7846         pixmap or color for the window, so we can properly initialize
7847         our double-buffer pixmaps, and also so that we temporarily set
7848         a background of None while scrolling.
7849
7850         * gdk/gdkregion.h: Revise region boolean operators to have an
7851         interface that is actually convenient - switch from creating new
7852         regions on every op, to "methods" that modify existing regions
7853         (A = A OP B). 3 argument forms which allow dest == src, would also
7854         be possible, but the current interfaces seem to map nicely
7855         onto what needs to be done. (There is quite a lot of region
7856         code in GDK now.)
7857
7858         * gdk/gdkregion.h: Add constructor from rectangle and a copy
7859         operator.
7860
7861         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
7862         gdkpoly-generic.h: Copy region code from Xlib, switch it over
7863         to 32 bit coordinates, modify it to be mostly GTK+ style
7864         and to have interfaces that match gdkregion.h.
7865
7866         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
7867         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
7868         create a backing pixmap and redirect all drawing to
7869         that backing pixmap until a matching gdk_window_end_paint().
7870
7871         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
7872         Create a special drawable class for GtkWindow's that 
7873         redirects the drawing to the backing pixmap as necessary
7874         and then calls the real operations in _gdk_windowing_window_class.
7875
7876         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
7877         Store invalid region for each window. Generate expose events for invalid
7878         region in an idle. This replaces both the expose compression
7879         and the redrawing queuing in GTK+. It is both more efficient and
7880         simpler than either one individually and far more so then the
7881         combination.
7882
7883         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
7884         Emulate 32 bit coordinates for windows with 16 bit coordinates
7885         by offsetting drawing, guffaw scrolling techniques and
7886         mapping/unmapping child windows as necessary.
7887
7888         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
7889         where, when invalid regions are processed, the region is stored,
7890         and if expose events come in that are detectably duplicate
7891         the processed exposes (by comparison of event serial numbers),
7892         the stored region is subtracted out of those exposes.
7893
7894         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
7895         regions newly exposed when scrolling or resizing windows.
7896         This, combined with forcing processesing of queued invalidated
7897         regions, gives nice flicker-free scrolling.
7898
7899         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
7900         invalidated regions after every scroll.
7901
7902         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
7903         emulation in GDK. Its, for all practical purposes just a
7904         GtkViewport/GtkFixed hybrid now.
7905
7906         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
7907         (16-bit) structures as necessary instead of just casting.
7908
7909         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
7910         in terms of the structures from gdkregion-generic.c, using appropriate
7911         offsets from GDK to X11 coordinates. Cache clip mask and
7912         origin and ts origin locally and only flush to the server
7913         when drawing, to avoid constantly setting and resetting these
7914         values when offsetting GC's for scrolling and backing pixmaps.
7915
7916         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
7917
7918         * gtk/gtkcontainer.c: Call process_all_updates at end
7919         of resizing to reduce flicker. (Avoids having redraw
7920         lag arbitrarily behind resize under some circumstances)
7921
7922         * gtk/gtkentry.c: Remove old backing store code, and simply take
7923         advantage of the new backing store capabilities of GDK.
7924
7925         * gtk/gtkmain.c: Simple implementation of widget backing
7926         store - simply push a paint while handling each expose.
7927         (Should really be configurable widget for widget.)
7928         
7929         * gtk/gtkwidget.c: Remove all the old complicated redraw
7930         code, and simply invalidate the GDK windows from
7931         gdk_window_queue_clear(), etc. (Sigh, so much carefully
7932         debugged complexity ... gone to the winds.)
7933
7934         Remove all the code for suppressing expose events while
7935         resizes are pending; this isn't needed since the invalid
7936         areas won't be processed until after the resizes are
7937         processed, since they are in a lower priority idle.
7938
7939 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
7940
7941         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
7942         and height of dest rectangle for non-intersecting rectangles.
7943
7944 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
7945
7946         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
7947         for GdkRectangle.
7948
7949 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
7950
7951         * gdk/gdk{events,image,private,types,window}.h
7952          gdk/x11/gdkinputprivate.h: Change all coordinates
7953          from int16 to int. Also, Change width and height from
7954          unsigned to signed to avoid all the stupid C 
7955          signedness bugs.
7956
7957 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
7958
7959         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
7960         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
7961         Add some more detailed checking.
7962
7963         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
7964         New function to retrieve the depth of a drawable.
7965
7966         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
7967         field, reorder fields to save memory. 
7968
7969 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
7970
7971         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
7972         of the background image instead of scaling the background down to
7973         a line.
7974
7975         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
7976         which temporarily set slider to wrong size.
7977
7978         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
7979         queue_clear().
7980
7981 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
7982
7983 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
7984
7985         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
7986
7987 2000-03-17  Tor Lillqvist  <tml@iki.fi>
7988
7989         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
7990         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
7991
7992         * gdk/win32/gdkfont-win32.c
7993         * gdk/win32/gdkproperty-win32.c
7994         * gdk/win32/gdkselection-win32.c
7995         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
7996         now declared such.
7997
7998 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
7999
8000         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
8001
8002 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
8003
8004         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
8005         is called without trapping X errors.
8006
8007 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
8008
8009         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
8010         way into the fontset lists.
8011
8012 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
8013
8014         * gtk/gtkthemes.h: add extern "C" scope.
8015
8016 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
8017
8018         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
8019         to make appends to the list constant. (gtk-guy-990901-0.patch)
8020
8021 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
8022
8023         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
8024         for the typename hash table.
8025
8026 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
8027
8028         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
8029         to make sure we never divide by zero. 
8030         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
8031
8032 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
8033
8034         * gtk/gtkfontsel.c: Apply patch from
8035         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
8036         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
8037
8038         Also, some cleanups in atom handling.
8039
8040 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
8041
8042         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
8043         not GtkWidget.
8044
8045 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
8046
8047         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
8048         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
8049         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
8050         more guint wrap-around bugs before going to bed.
8051
8052 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
8053
8054         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
8055         guint wrap arounds in allocation.width.
8056
8057         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
8058         process untill we fit the allocation given.
8059
8060 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
8061
8062         * gtk/gtkwidget.c:
8063         (gtk_widget_unrealize): guard widget access with ref/unref
8064         around signal emission.
8065         (gtk_widget_hide): same here, but also check its destroyed
8066         state before queueing a resize.
8067
8068 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
8069
8070         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
8071         of gtk_default_insensitive_bg as insensitive base color.
8072
8073         * gtk/gtktext.c (gtk_text_style_set): set the background color according
8074         to the widget's state.
8075         (gtk_text_realize): same here.
8076         (gtk_text_state_changed): same here.
8077         (draw_bg_rect): compare background color against base[] from
8078         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
8079
8080 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
8081
8082         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
8083         grabs are active, unless a delete event is send to the toplevel
8084         of the currently grab holding widget.
8085
8086 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
8087
8088         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
8089         debugging g_print's.
8090
8091 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
8092
8093         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
8094         ever make the scrolled-window requisition ever depend on the 
8095         visibility state of the scrollbars for the AUTOMATIC policy. 
8096         This breaks the GTK+ requisition model, and causes loops.
8097
8098 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
8099
8100         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
8101         the default font to avoid problems with XFree86-4.0 where the
8102         default charset is iso10646-1, not iso8859-1.
8103
8104 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
8105
8106         * acinclude.m4
8107         * config.guess
8108         * config.sub
8109         * ltconfig
8110         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
8111
8112         * gtk/Makefile.am: minor cosmetic consistency tweak
8113
8114 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
8115
8116         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
8117         the activate_time to 0, so that we handle a quick
8118         press/release press/release properly and don't suppress
8119         the second release. (Red Hat bug #7545)
8120
8121 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
8122
8123         * gtk/gtkctree.c (row_delete):
8124         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
8125         bugs with destruction notifier, *always* update internal
8126         structures *before* calling user code.
8127
8128 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
8129
8130         A few more fixes for bug #5487, #2051, #2677.
8131         * gtk/gtkclist.c : 
8132         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
8133         not GDK_BUTTON_PRESS.
8134         (resync_selection): resync only if selection_mode is
8135         GTK_SELECTION_EXTENDED
8136         * gtk/gtkctree.c (resync_selection): same here
8137
8138 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
8139
8140         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
8141         gdk_drag_get_selection() and gtk_menu_detach().
8142
8143         [ From Jeroen Ruigrok/Asmodai ]
8144
8145 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
8146
8147         * gtk/gtknotebook.c (gtk_notebook_size_request): 
8148         page->tab_label can be NULL.
8149
8150 2000-01-25  Havoc Pennington  <hp@pobox.com>
8151         
8152         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
8153         arg is boolean
8154
8155         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
8156
8157         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
8158
8159         * gdk/gdkproperty.c (gdk_property_get): return boolean
8160
8161         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
8162
8163         * gdk/gdkim.c (gdk_im_ready): return boolean
8164
8165         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
8166
8167         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
8168         glib clash, should fix glib)
8169
8170         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
8171         (gdk_get_show_events): return gboolean, and canonicalize 
8172         to TRUE/FALSE
8173
8174         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
8175         colormap is private
8176         (gdk_colors_alloc): gboolean whether to be contiguous
8177         (gdk_color_equal): return gboolean since we are a predicate
8178         and not a qsort() (this looks semi-wrong due to glib breakage,
8179         IMO glib should be fixed)
8180         
8181         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
8182         (gdk_get_use_xshm): return gboolean
8183         (gdk_pointer_is_grabbed): return gboolean
8184
8185         * gdk/gdk.h: Change prototypes to match all the above changes,
8186         and re-run egtk-format-protos as required.
8187
8188 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
8189
8190         * gtk/gtkctree.c (resync_selection): 
8191         * gtk/gtkclist.c (resync_selection):
8192
8193         Return immediately if clist->drag_pos < 0. This is a workaround
8194         for the corrupt state that the clist gets into when a
8195         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
8196
8197         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
8198         
8199         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
8200         variable from recent commit.
8201
8202 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
8203
8204         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
8205
8206 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
8207
8208         * gtk/Makefile.am: prefix all autogenerated source that get build in
8209         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
8210         in builddir. since we subsequently cd into srcdir for autogeneration,
8211         the paths have to be stripped from the target file names, thusly we
8212         use $(@F) as target names now.
8213         put a comment about configure.in's --disable-rebuilds option,
8214         which can be used for non-writable source directories, for development
8215         setups though, srcdir has to be *writable*.
8216
8217 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
8218
8219         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
8220           Finish the job of allowing event to be NULL.
8221           (Fixes bug #4283, reported by Chris Blizzard)
8222
8223         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
8224           things so that the cursor appears on screen, properly
8225           take into account INNER_BORDER.
8226           (Fixes bug #4754, reported by Antonio Campos)
8227
8228 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
8229
8230         * gtk/gtknotebook.c (gtk_notebook_map): Don't
8231           show the tab_label unless it itself is visible.
8232
8233           gtk/gtknotebook.c (gtk_notebook_size_request):
8234           Do a better job of making sure that the visibility
8235           of the tab label corresponds to whether it should
8236           be mapped or not.
8237
8238 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
8239
8240         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
8241           Use the requisition, not the allocation, since the
8242           allocation has not necessarily been computed yet.
8243           (Pointed out by Eugene Osintsev)
8244
8245 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
8246
8247         * gtk/gtkstyle.c (gtk_style_new): Dont' set
8248           style/base[GTK_STATE_INSENSITIVE] both to
8249           gtk_default_insensitive_bg!
8250           (Bug #2187, reported by Jonathan Blandford)
8251
8252         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
8253           Add Alt_L, Alt_R to list of invalid accelerators.
8254           (Bug #3736, reported by Vlad Harchev)
8255
8256 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
8257
8258         * gtk/gtkfilesel.c (open_ref_dir): Fix several
8259         bugs which occured after an attempt to open 
8260         invalid home directory left cmpl_state->reference_dir == NULL.
8261
8262          - completion on files in home directory didn't work
8263          - completion on an empty string caused  segfault
8264
8265          (Bug #3678, reported by Steve Ratcliffe)
8266
8267         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
8268         cut and paste error that was causing scales to
8269         be incorrectly positioned.
8270         (Bug #2956,
8271          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
8272
8273 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
8274
8275         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
8276         when checking for dcgettext, if we've found we needed
8277         it for dgettext.
8278 +
8279 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
8280
8281         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
8282         queue_clear on NO_WINDOW widgets during a reparent,
8283         since at that point the window and widget heirarchies
8284         are out of sync. This stops crashing in some cases
8285         (the scrolled window reparent test, for instance), and
8286         _probably_ won't cause drawing errors.
8287
8288         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
8289         test do what it was supposed to do and be robust against
8290         window closings, etc. (Bug #2443)
8291
8292 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
8293
8294         * gtk/gtkentry.c: Fix return values on mouse events.
8295         (Bug #2686, Sky <seb_sky@yahoo.com>)
8296
8297         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
8298         (pointed out by George Lebl)
8299
8300         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
8301         (From Ettore Perazzoli  <ettore@helixcode.com>)
8302  
8303 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
8304
8305         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
8306         clicks between rows or outside calender area correctly.
8307         (Patch from Damon Chaplin)
8308
8309         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
8310         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
8311           Call destroy function when overwriting existing data. 
8312           (Pointed out by Damon Chaplin)
8313
8314 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
8315
8316         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
8317           which was causing problems on various systems with Xmu.
8318           This hasn't been needed for a very long time.
8319           (Fixes #1185 3167)
8320
8321 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
8322
8323         * gdk/gdki18n.h: Include <ctype.h> when defining
8324           gdk_isw* in terms of is* as a fallback.
8325           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
8326
8327 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
8328
8329         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
8330           realize the widget when it is size allocated!
8331           (old, old bug)
8332
8333         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
8334           Removed unused call to gdk_window_get_size() that
8335           showed up when the above was fixed.
8336
8337 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
8338
8339         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
8340           fix up widget->window when the widget is a
8341           NO_WINDOW container widget.
8342
8343 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
8344
8345         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
8346           to account for the fact that feof() does _not_ 
8347           return TRUE on errors, and thus avoid infinite loops
8348           when trying to use gdk_pixmap_create_from_xpm()
8349           on unreadable values.
8350
8351 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
8352
8353         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
8354
8355 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
8356
8357         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
8358           gdk_gc_set_dashes to take gint8 instead of gchar to
8359           make it clearer that it is _not_ a NULL terminated string.
8360
8361         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
8362           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
8363           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
8364           arguments.
8365
8366 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
8367
8368         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
8369         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
8370         background size relative to our allocation, guard against small
8371         allocations, we may have not yet been size allocated.
8372
8373 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
8374
8375         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
8376         not just version == 3. We implement all 3 + most of 4 - 
8377         (we don't support matching text/plain;charset=iso-8859-1
8378         to a dest that expects text/plain). We'll still advertise
8379         3 to be safe, but any client implementing version >= 3
8380         must interoperate with 3.
8381         
8382 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
8383
8384         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
8385         background and gc members, add a warning in gtk_tooltips_set_color()
8386         indicating that this function is deprecated.
8387
8388 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
8389
8390         * docs/gtkfaq.sgml: FAQ Update:
8391           - Minor cleanups (Emmanuel, me)
8392           - New questions:
8393                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
8394                 How can I retrieve the text from a GtkMenuItem? (timj)
8395                 How do I validate/limit/filter the input to a GtkEntry? (me)
8396                 Memory does not seem to be released when I free the list
8397                         nodes I've allocated (timj)
8398
8399 2000-03-07  Tor Lillqvist  <tml@iki.fi>
8400
8401         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
8402         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
8403         for which it is no use to call GetLastError onWin9x.
8404         (gdk_other_api_failed) New function, for general error
8405         reporting without calling GetLastError.
8406         (gdk_win32_api_failed) OTOH, this function always calls
8407         GetLastError. (gdk_win32_last_error_string) Remove this function,
8408         GLib has the equivalent now.
8409
8410         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
8411         call them with function name, file name and line number in the
8412         arguments.
8413
8414         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
8415         functions.
8416         
8417         * gtk/gtk.def: Add some missing entry points.
8418
8419         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
8420         gtk_paned_set_gutter_size, which don't exist any longer, as void.
8421         
8422         Fixes by Hans Breuer:
8423
8424         * gdk/makefile.msc: Update for debugging.
8425
8426         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
8427         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
8428         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
8429         in the dash_list.
8430
8431         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
8432         the x11 backend.
8433
8434         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
8435
8436         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
8437
8438 2000-03-04  Tor Lillqvist  <tml@iki.fi>
8439
8440         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
8441         just pixel value of background colour.
8442
8443         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
8444         containing code snippet previously duplicated in a couple of
8445         places.
8446         
8447         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
8448         gdk_colormap_color.
8449
8450         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
8451         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
8452         events for autorepeated Shift, Control and Alt keys. Use
8453         gdk_colormap_color.
8454
8455         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
8456         pointer is inside the window the cursor of which we are setting,
8457         call SetCursor immediately.
8458
8459         * gdk/win32/makefile.cygwin
8460         * gtk/makefile.cygwin: If we don't have the build number stamp
8461         file, use zero.
8462
8463         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
8464         gtk_paned_set_gutter_size as empty.
8465
8466         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
8467         
8468 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
8469
8470         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
8471           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
8472           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
8473           docs/gtk_tut.sgml docs/gtk.texi TODO:
8474
8475           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
8476
8477 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
8478
8479         * gtk/gtkcalendar.c: Implement num_marked_dates,
8480           and don't emit mutiple day_selected signals on
8481           month_prev.
8482
8483 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
8484
8485         * docs/make-todo (lineno): let title and logo be configurable so
8486         that GNOME can use this script too.
8487
8488         * TODO.xml: added logourl and a title
8489
8490 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
8491
8492         * TODO.xml: Added some UI items, and an explanatory
8493         comment at the top of the file.
8494
8495 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
8496
8497         * TODO.xml: some updates, added abunch of new entries.
8498         a note for those fiddeling with this file, when done
8499         with it, invoke:
8500         $ ./docs/make-todo TODO.xml >/dev/null
8501         and correct output errors before comitting changes.
8502
8503 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
8504
8505         * TODO.xml: Added XML-structured TODO file.
8506         * docs/make-todo: python script to turn TODO.xml into
8507           pretty XML output. 
8508
8509 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
8510
8511         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
8512         the function to let it draw the seven dots, instead of the old,
8513         much maligned, method.
8514         (draw_dot): New function to draw a dot.
8515
8516         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
8517         to draw the handle inside the border width as opposed to outside.
8518         Use paint function instead of gdk_draw_point.
8519
8520         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
8521         to draw the handle inside the border width as opposed to outside.
8522         Use paint function instead of gdk_draw_point.
8523
8524         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
8525         Change indenting to be more GTK like.
8526
8527 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
8528
8529         * docs/gtk_tut.sgml: New section on GtkCalendar
8530         * examples/calendar: Update example code
8531
8532 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
8533
8534         * docs/gtkfaq.sgml: FAQ Update
8535
8536 2000-02-19  Anders Carlsson  <andersca@gnu.org>
8537
8538         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
8539         to prevent the scroll event to be propagated upwards.
8540
8541 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
8542
8543         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
8544         OwnerGrabButtonMask from button entries for
8545         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
8546
8547         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
8548         to the event mask (which will result in button/press release
8549         being added to the event mask on Unix) so scrolling works
8550         for layouts in scroll windows.
8551
8552         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
8553
8554         Patch from Anders Carlsson  <andersca@gnu.org> to add
8555         a scroll event.
8556
8557         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
8558         scrolling to the "Test Scrolling" part of testgtk.
8559  
8560         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
8561  
8562         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
8563         it against GDK_SCROLL.
8564  
8565         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
8566         way of mouse wheel scrolling.
8567  
8568         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
8569  
8570         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
8571  
8572         * gtk/gtkmain.c: Removed previous mouse wheel hack.
8573  
8574         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
8575         gdk_event_mask_table.
8576  
8577         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
8578         GdkEventScroll handler.
8579  
8580         * gdk/gdkevents.h: Added GdkEventScroll structure.
8581  
8582 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
8583
8584         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
8585         and Anders Carlsson to change the Paned widgets so that they
8586         can be dragged from anywhere along the length. Also change
8587         the way that this is drawn to make this apparent.
8588
8589         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
8590         from George Lebl to check that option_menu->menu is present
8591         before getting history.
8592
8593 2000-02-14  Tor Lillqvist  <tml@iki.fi>
8594
8595         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
8596         before the assertion for non-NULL segment list.
8597
8598         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
8599         Seems that pattern brushes *must* be 8x8 pixels! At least on my
8600         machine, but it might be display driver dependent. Sigh, so make
8601         sure the stipple is that size. Does Windows suck or what?
8602
8603         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
8604         places.
8605
8606 2000-02-13  Havoc Pennington  <hp@pobox.com>
8607
8608         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
8609         refcount to 1
8610         (gdk_cursor_new): init refcount to 1
8611
8612         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
8613
8614 2000-02-13  Tor Lillqvist  <tml@iki.fi>
8615
8616         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
8617         so that we don't have to do unnecessary settings to the HDC.
8618
8619         * gdk/win32/gdkdrawable-win32.c
8620         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
8621         gdk_gc_predraw.
8622
8623         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
8624         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
8625         GDI paths, call WidenPath to get the outline of the stroken path,
8626         and then fill the outline (with the brush that was built from the
8627         stipple).
8628
8629         * gdk/win32/gdkgc-win32.c: Factor out common code from
8630         _gdk_win32_gc_new and gdk_win32_gc_set_values into
8631         gdk_win32_gc_values_to_win32values. Use correct colour for
8632         SetBkColor() (Until now the code actually used a random colour in
8633         the call to SetBkColor()... but that didn't show up as not many
8634         GDI APIs use the background colour. Pattern (opaque stippled)
8635         brushes do.)
8636
8637         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
8638         gdk_win32_api_failed): New functions for error logging.
8639
8640         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
8641         WIN32_API_FAILED to call them, passing function or file name and
8642         line number.
8643
8644         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
8645
8646         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
8647         GdkColor for foreground and background in GdkGCWin32Data.
8648
8649         * gdk/makefile.cygwin: Link in the resource object separately.
8650
8651         * gdk/win32/rc/gdk.rc
8652         * gtk/gtk.rc (New file)
8653         * gdk/win32/makefile.cygwin
8654         * gtk/makefile.cygwin: Update build number in DLLs automatically,
8655         as in GLib.
8656
8657 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
8658
8659         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
8660         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
8661         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
8662         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
8663         parameters given and cursor->ref_count. coding style fixups.
8664
8665         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
8666         not GtkWidget.
8667         
8668         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
8669         fix up widget macros and add _GET_CLASS() variant.
8670         
8671         * gtk/*.c: some GtkType fixups.
8672
8673 2000-02-09  Tor Lillqvist  <tml@iki.fi>
8674
8675         * gdk/win32/gdkproperty-win32.c
8676         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
8677         were reversed.
8678
8679 2000-02-04  Tor Lillqvist  <tml@iki.fi>
8680
8681         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
8682         g_filename_to_utf8 to convert the font names Windows gives us from
8683         whatever is the default codepage to UTF-8.
8684         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
8685         in the other direction.
8686
8687         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
8688         error in debugging output.
8689
8690 2000-02-02  Tor Lillqvist  <tml@iki.fi>
8691
8692         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
8693         and height parameters to gdk_window_clear_area(). Not minus one.
8694
8695 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
8696
8697         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
8698         checks if the widget passed to gtk_drag_get_data() was not the
8699         dest widget.
8700
8701 2000-02-01  Tor Lillqvist  <tml@iki.fi>
8702
8703         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
8704         g_filename_from_utf8 functions (which were added a moment ago to
8705         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
8706         size buffers.
8707
8708         gtk_file_selection_get_filename returns the filename in the C
8709         runtime encoding. It calls g_filename_from_utf8, but copies the
8710         returned string to a static buffer, which is returned. I think
8711         this is better than returning the result from g_filename_from_utf8
8712         directly, which would mean all apps that use it would have to free
8713         the return value. Or should this function care about this issue at
8714         all? Maybe a new function with clearly defined semantics.
8715
8716         * gtk/gtkfilesel.h: Add comment about
8717         gtk_file_selection_get_filename returning the filename in the C
8718         runtime's encoding.
8719
8720         * README.win32
8721         * gdk/gdk.def
8722         * gdk/makefile.{cygwin,msc}
8723         * gtk/gtk.def: Updates.
8724
8725         * gdk/gdkcursor-win32.c: Initialise refcount.
8726
8727 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
8728
8729         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
8730
8731 2000-01-30  Havoc Pennington  <hp@pobox.com>
8732
8733         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
8734         destroy
8735
8736         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
8737
8738         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
8739         implemented in platform-specific code
8740
8741         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
8742
8743         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
8744         underscore in front
8745
8746         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
8747         put an underscore in front
8748
8749         * gdk/gdkcursor.c: new file, implements
8750         gdk_cursor_ref/gdk_cursor_unref
8751
8752         * gdk/gdkcursor.h: Refcount GdkCursor
8753
8754         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
8755
8756 2000-01-29  Tor Lillqvist  <tml@iki.fi>
8757
8758         * gdk/gdkwindow.h
8759         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
8760
8761 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
8762
8763         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
8764         structures to properly inherit from GtkWidget not GtkBin.
8765
8766 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
8767
8768         * gtk+.spec.in: Added lib/gtk+/include/* to %files
8769         (bug #5178 - Peter Wainright)
8770         
8771         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
8772         so that it will be installed.
8773         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
8774
8775 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
8776
8777         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
8778         for the GtkStyleClass vtable const.
8779
8780         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
8781         take a const string argument like GtkTranslateFunc. This will
8782         require changes in use code.
8783
8784 2000-01-19  Tor Lillqvist  <tml@iki.fi>
8785
8786         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
8787         semantics (to mimic the X11 backend, which just calls XClearArea)
8788         is to check for zero width (and height), and in that case use the
8789         window's width minus x (height minus y). This fixes for instance
8790         some redraw problems with gtkclist, which were easily noticeable
8791         in the gtk file selection widget.
8792
8793         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
8794         windows.
8795
8796 2000-01-13  Tor Lillqvist  <tml@iki.fi>
8797
8798         * configure.in
8799         * gdk/Makefile.am
8800         * gdk/x11/Makefile.am
8801         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
8802         (bug #5177).
8803         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
8804         out later.
8805
8806 2000-01-09  Tor Lillqvist  <tml@iki.fi>
8807
8808         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
8809         WM_MOVE for iconified or invisible windows. This fixes various
8810         problems when minimising windows. Thanks to Bernd Herd.
8811
8812 2000-01-05  Tor Lillqvist  <tml@iki.fi>
8813
8814         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
8815         backend's draw_lines method, not draw_points.
8816
8817 2000-01-02  Tor Lillqvist  <tml@iki.fi>
8818
8819         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
8820         before Owen's reorganisation: Don't have queued_events and
8821         queued_tail statics in this file, but use gdk_queued_events and
8822         gdk_queued_tail. This makes exposure event compression work again.
8823
8824         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
8825         seem to be needed?
8826
8827 1999-12-30  Tor Lillqvist  <tml@iki.fi>
8828
8829         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
8830         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
8831         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
8832         doesn't do anything.
8833
8834         * gdk/gdk.def: Add gdk_xid_table_insert.
8835
8836         * gdk/win32/gdkprivate-win32.h
8837         * gdk/win32/gdkevents-win32.c
8838         * gdk/win32/gdkinput-win32.c
8839         
8840         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
8841         extension_events field in the GdkWindowWin32Data struct. Use only
8842         the extension_events field in GdkWindowPrivate. Previously one was
8843         set, and the other one tested, which broke tablet
8844         functionality. Thanks to Keishi Suenaga for pointing this out.
8845
8846 1999-12-18  Tor Lillqvist  <tml@iki.fi>
8847
8848         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
8849         When handling a single character (text length == 1), don't handle
8850         it as if it was UTF-8.
8851
8852 1999-12-11  Tor Lillqvist  <tml@iki.fi>
8853
8854         * Makefile.am: Distribute README.win32.
8855         
8856         * gdk/Makefile.am
8857         * gdk/win32/Makefile.am: Distribute Win32 files.
8858
8859         * gdk/makefile.msc: New file.
8860
8861         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
8862         after label).
8863
8864         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
8865         gdk_error_code as GDKVAR, as they are referred outside GDK.
8866
8867         * gdk/win32/makefile.msc: Update.
8868
8869         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
8870         tweaks. Check only if at least one of those Unicode subrange bits
8871         we care for is set. If no code page bits are set, guess (wildly)
8872         based on the charset.
8873
8874         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
8875
8876         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
8877         non-NULL.
8878
8879         * gtk/gtkdnd.c
8880         * gtk/gtklayout.c
8881         * gtk/gtkplug.c
8882         * gtk/gtkselection.c
8883         * gtk/gtksocket.c
8884         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
8885         appropriate. There must be a cleaner way to handle this?
8886
8887         * gtk/gtkrc.c: Must include windows.h on Win32.
8888
8889         * gtk/testgtk.c: No need to include gdkx.h.
8890
8891         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
8892
8893 1999-12-07  Tor Lillqvist  <tml@iki.fi>
8894
8895         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
8896         the rbearing is set to the same as the width, but this should be
8897         fixed.
8898
8899 1999-12-06  Tor Lillqvist  <tml@iki.fi>
8900
8901         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
8902         function. If Windows doesn't tell us what Unicode subranges a font
8903         covers, guesstimate based on the codepages it covers. This will
8904         hopefully help those Windows versions or fonts that don't give us
8905         any useful Unicode subrange information with GetTextCharsetInfo.
8906         Call this function in gdk_font_load_internal.
8907
8908         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
8909         minor changes.
8910
8911 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
8912
8913         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
8914         New function, long needed.
8915
8916 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
8917
8918         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
8919         only_if_exists argument of gdk_atom_intern to
8920         bool.
8921
8922 1999-11-25  Tor Lillqvist  <tml@iki.fi>
8923
8924         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
8925         Fix two copy&paste errors.
8926
8927         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
8928         win32 has changed.
8929
8930         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
8931         GdkWin32SingleFont struct.
8932
8933         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
8934         subranges of loaded fonts. Clear font signature first, in case
8935         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
8936         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
8937
8938         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
8939         Unoffset clip region.
8940
8941 1999-11-23  Tor Lillqvist  <tml@iki.fi>
8942
8943         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
8944         event->any.window before calling filter functions.
8945
8946 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
8947
8948         * gtk/gtkgamma.h: Adapt cast macros to standard.
8949
8950 [ Merges from 1.2 ]
8951
8952 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
8953
8954         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
8955         If translation does not include a '/', use entire
8956         translation instead of crashing.
8957
8958 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
8959
8960         * docs/gtk_tut.sgml:
8961         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
8962
8963 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
8964
8965         * gtk/gtkselection.c (gtk_target_list_remove): Use
8966         g_list_remove_link, not g_list_remove.
8967
8968         [ From Geert Bevin <gbevin@thunderstorms.org> ]
8969         
8970 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
8971
8972         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
8973         statement upon unselection (how the heck did that slip in?).
8974
8975 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
8976
8977         * gtk/gtktext.c (gtk_text_freeze): 
8978         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
8979         in frozen state (and aparently crashes). patch provided by Anders
8980         Melchiorsen <and@kampsax.dtu.dk>.
8981
8982 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
8983
8984         * fix insensitive default/focus widget activation,
8985         reported by Matt Goodall <mgg@isotek.co.uk>.
8986
8987         * gtk/gtkwindow.c (gtk_window_key_press_event): 
8988         (gtk_window_activate_default):
8989         (gtk_window_activate_focus):
8990         return handled=FALSE for actiavtion of insensitive default
8991         widgets. return handled=TRUE for activation of insensitive
8992         focus widgets. don't activate in either case.
8993
8994 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
8995
8996         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
8997         and $glib_cflags to match library order and in the
8998         theory that an old version of GLib is more likely to
8999         be in the include directory for X then vice-versa.
9000         (Bug #2776)
9001
9002 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
9003
9004         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
9005         to determine the locale for fontsets, not LC_MESSAGES;
9006         the user may want English messages with a handling
9007         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
9008         will still be broken) (Bug #2891)
9009
9010 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9011
9012         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
9013
9014 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
9015
9016         * gtk/gtkrc.ko: Changed the Korean default fontset.
9017
9018 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
9019
9020         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
9021         where when scrolling to the left or top double exposes
9022         were done, causing major slowdowns.
9023
9024 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
9025
9026         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
9027         names to lowercase and alphanumeric, before looking
9028         them up.
9029
9030         * gtk/Makefile.am: Install codeset variant gtkrc files
9031         with normalized names.
9032
9033 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
9034
9035         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
9036         popup menus when the menu is already visible, but its parent
9037         is still hidden, (happens after tornoff window got hidden).
9038
9039 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
9040
9041         * gtk/Makefile.am (install-data-local): Fix
9042         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
9043         deleted, causing error messages on install.
9044
9045 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
9046
9047         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
9048         the handle as well, since we now sometimes ignore
9049         exposes on the handle while resizing.
9050
9051 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
9052
9053         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
9054         extra g_free introduced in one of the last one or two 
9055         commits.
9056
9057 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
9058
9059         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
9060         consistent, put each style that a gtkrc.* file creates
9061         in a unique namespace, remove old files before installing.
9062
9063 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
9064
9065         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
9066         gtk_rc_init is called multiple times. (Yes, people who
9067         do that have bugs in their code.)
9068
9069 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
9070
9071         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
9072         Remove it since it's generated by the Makefile anyway
9073
9074 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
9075
9076         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
9077         device->info.axes for core pointer.
9078
9079 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
9080
9081         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
9082         idle_id, to deal with obsolete, broken C libraries.
9083
9084 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
9085
9086         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
9087         allocation->x/y twice!
9088
9089         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
9090         consistent with gtk_vscale_pos_trough().
9091
9092 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
9093
9094         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
9095         be queueing a resize on a toplevel container between
9096         the time we show it and when we map it. So, we need
9097         to test GTK_WIDGET_VISIBLE() for toplevels, and only
9098         use GTK_WIDGET_DRAWABLE() for child windows.
9099
9100 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
9101
9102         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
9103         (fixes bug #2144)
9104
9105 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
9106
9107         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
9108         container DRAWABLE (instead of VISIBLE), so we don't queue
9109         resizes on non-toplevel containers.
9110
9111 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
9112
9113         * gtk/gtkselection.[ch]: Make the data argument
9114         const guchar *.
9115
9116 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
9117
9118         * gtk/gtkwindow.c: Try to behave sensibly if 
9119         the focus widget is the window itself. (Should
9120         we allow this at all?)
9121
9122 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
9123
9124         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
9125         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
9126         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
9127         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
9128         in prototypes and implementations consistent (Tomas Ogren).
9129
9130         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
9131         before the widget is unparented (reported by damon).
9132
9133         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
9134         since we provide unsigned data anyways.
9135
9136 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
9137
9138         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
9139         the call to gtk_tooltips_layout_text() until later.
9140
9141         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
9142         Call gtk_widget_ensure_style() before using the style.
9143
9144 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
9145
9146         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
9147         for old widgets that don't propagate draws to all
9148         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
9149
9150 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
9151
9152         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
9153         for a redraw but just the widget that requested the resize.
9154
9155 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
9156
9157         * gtk/gtkcontainer.c: added new widget level method
9158         gtk_container_set_reallocate_redraws() and a GtkContainer flag
9159         reallocate_redraws : 1 to reflect the setting, exported this through
9160         the argument system as a boolean ::reallocate_redraws.
9161
9162         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
9163         on the widget because the allocation changes, do so as well for
9164         widget->parent if the parent has reallocate_redraws set to TRUE.
9165         with that containers requesting reallocation redraws get automatically
9166         redrawn if their children changed allocation (this unfortunately
9167         affects also other children that didn't change allocation, but we
9168         cannot work around that before 1.3).
9169
9170 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
9171
9172         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
9173         _and_ height are >0 (not _or_).
9174
9175         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
9176         instead of gtk_container_queue_resize(), which is a core gtk internal
9177         function (must have been on crack when i queued that).
9178
9179         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
9180         we can check more reliably if we want to discard expose events.
9181         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
9182         flag.
9183         
9184         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
9185         we simply trust these events. for deciding whether to discard exposes,
9186         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
9187         
9188 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
9189
9190         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
9191         queues of areas that are completely off screen.
9192
9193         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
9194         logic for handleboxes.
9195
9196         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
9197         check on width/height.
9198
9199 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
9200
9201         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
9202         we are fine with using $@ the way we do (if we actually encounter
9203         brokeness with $@ in VPATH builds because of additional path prefixes,
9204         we need to use $(@F) actually).
9205
9206 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
9207
9208         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
9209         short lived bugs, that would allow language bindings to do surgeries
9210         to our guts.
9211
9212 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
9213
9214         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
9215         where comparison was being done against an uninitialized
9216         value causing intermittant results depending on
9217         compiler flags. Also make it clearer that we aren't
9218         ever initializing the child as 0x0 (though this will
9219         be caught in gtk_widget_size_allocate())
9220
9221 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
9222
9223         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
9224         gtk_window_unset_transient_for() call after we do checks
9225         involving the old transient parent.
9226         [ From Lance Capser <lmc@cyberhighway.net> ]
9227
9228 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
9229
9230         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
9231         an empty file.
9232
9233 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
9234
9235         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
9236         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
9237
9238 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
9239
9240         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
9241         `$@' is valid only in the build dir, not after we've done 
9242         `cd $srcdir'.  Also use `test -f' instead of less portable
9243         `test -e'.
9244
9245 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
9246
9247         * gtk/gtktext.c (correct_cache_insert): Rewrite
9248          for simplicity, and hopefully correctness.
9249          (Fixes bug #1322, which was a segfault when
9250           on some insertions with the properties around
9251           the insertion set up just wrong.)
9252
9253         * gtk/gtktext.c (gtk_text_adjustment): When we receive
9254          a "changed" signal, clamp the new value to the adjustment
9255          bounds to avoid segfaulting if someone tries to change
9256          the adjustment to a bogus value. (Bug #1795)
9257
9258 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
9259
9260         * gtk/gtkmain.c: Ignore unexpected destroy notifies
9261         for children, for toplevel windows handle them
9262         like delete_event.
9263
9264         * gtk/gtkplug.c: Add an unrealize handler so that
9265         we unref plug->socket_window when we are done
9266         with it.
9267
9268 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
9269
9270         * gtk/gtktext.c (clear_area): Fix stupid signedness
9271          problem that was causing background to sometimes
9272          be misaligned.
9273
9274 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
9275
9276         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
9277         
9278         * gtk/gtkmenu.c (gtk_menu_position): Make
9279          sure we never position menus with negative x, y,
9280          since gtk_widget_set_uposition() can't handle that.
9281
9282         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
9283          Modify the positioning code a bit so that we always
9284          put the top-left corner onscreen. (This is for
9285          UI reasons, gtk_menu_position() now takes care of
9286          gtk_widet_set_uposition() brokeness.)
9287
9288 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
9289
9290         * gtk/Makefile.am: fixed up things for -jx, x > 1.
9291
9292 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
9293
9294         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
9295           RC style that is passed in. The lack of the ref
9296           before was a bug. If people worked around this
9297           bug, this will introduce a slight memory leak
9298           in their code. The code should typically look like:
9299
9300             rc_style = gtk_rc_style_new ();
9301             [...]
9302             gtk_widget_modify_style (widget, rc_style);
9303             gtk_rc_style_unref (rc_style);
9304
9305         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
9306           the style if it was already set.
9307
9308         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
9309           style if it was set before.
9310
9311 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
9312
9313         * gtk/testgtk.c (main): Add a check to see if we
9314           are being run from the correct directory and
9315           to quit nicely if we are not.
9316
9317         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
9318           static.
9319
9320 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
9321
9322         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
9323
9324         * gtk/gtkwindow.c:
9325         queue resizes unconditionally (gtk_widget_queue_resize will figure
9326         what to do if the window is not realized).
9327         (gtk_window_move_resize): only recenter the window
9328         for GTK_WIN_POS_CENTER_ALWAYS.
9329         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
9330         the same way as GTK_WIN_POS_CENTER.
9331
9332 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
9333
9334         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
9335         with (!(info->last_flags & GDK_HINT_POS)) instead of
9336         (!info->last_flags & GDK_HINT_POS).
9337
9338         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
9339         new_height unconditionally, because we use these values even if
9340         !default_size_changed && !hints_changed.
9341         comented the (default_size_changed || hints_changed) case with
9342         respect to resize rejects from the window manager.
9343
9344         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
9345         in the zvt condition hack, since this includes the window hints, set
9346         the hints after the handling_resize case.
9347
9348         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
9349         window is initially shown with to the geometry.
9350
9351 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
9352
9353         * gtk/gtkwindow.c (gtk_window_move_resize):
9354         s/size_changed/default_size_changed/g so i know what's
9355         really going on (frying brain on smaller flame now).
9356
9357 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
9358
9359         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
9360         we have size_changed upon handling_resize. this is a gross
9361         workaround for the broken zvt widget and should be removed in
9362         1.3 again (search for FIXME).
9363         Owen provided an accurate comment for this:
9364
9365         /* We could be here for two reasons
9366          *  1) We coincidentally got a resize while handling
9367          *     another resize.
9368          *  2) Our computation of size_changed was completely
9369          *     screwed up, probably because one of our children
9370          *     is broken. It's probably a zvt widget.
9371          *
9372          * For 1), we could just go ahead and ask for the
9373          * new size right now, but doing that for 2)
9374          * might well be fighting the user (and can even
9375          * trigger a loop). Since we really don't want to
9376          * do that, we requeue a resize in hopes that
9377          * by the time it gets handled, the child has seen
9378          * the light and is willing to go along with the
9379          * new size. (this happens for the zvt widget, since
9380          * the size_allocate() above will have stored the
9381          * requisition corresponding to the new size in the
9382          * zvt widget)
9383          *
9384          * This doesn't buy us anything for 1), but it shouldn't
9385          * hurt us too badly, since it is what would have
9386          * happened if we had gotten the configure event before
9387          * the new size had been set.
9388          */
9389
9390 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
9391
9392         * gtk/gtkrc.c: deal properly with the fact that RC
9393           style lists may include rc styles more than once.
9394
9395         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
9396           unused static function.
9397
9398         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
9399           stack of directories of RC files currently being
9400           parsed and implicitely add them to pixmap path.
9401           
9402           This fixes a bug where the directory would get
9403           appended then overwritten by pixmap_path declarations.
9404
9405           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
9406
9407         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
9408           theme's exit function. (Patch from Peter Wainwright,
9409           bug #1454)
9410
9411         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
9412           Add a destroy() handler to take care of removing
9413           group for menu item. (Fixes bug #1197)
9414
9415         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
9416           in warning message.
9417
9418 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
9419
9420         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
9421         roundtrip to figure window's width and height, since we know that
9422         anyways from widget->allocation.
9423
9424 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
9425
9426         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
9427           the hints after we request the new size.
9428
9429 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
9430
9431         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
9432           GTK_WIDGET_REALIZED() assertion - we can compute the
9433           hints before we are realized.
9434
9435         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
9436           hint changing so that we have a value of hints_changed
9437           when we decide whether to constrain the window size.
9438
9439         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
9440
9441         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
9442         change back to G_MAXINT.
9443
9444 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
9445
9446         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
9447         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
9448         contain uncluttered values.
9449         (gtk_window_compute_hints): simply assert that window is realized
9450         and that geometry_info is valid, since we rely on this anyways.
9451         (gtk_window_constrain_size): major cleanups to the code.
9452         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
9453         for the base size, instead of the minimums. use 32767 as max width
9454         and height (like in gtkwindow.c) instead of G_MAXINT.
9455
9456 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
9457
9458         * cleaned up the GtkContainer.need_resize flag handling mess, we
9459         only need to force resize requests when we were prematurely
9460         realized, or our widget tree was modified when we were temporarily
9461         hidden. handling these cases directly upon showing the window (i.e.
9462         while the GdkWindow is still unmapped) avoids the need to wait for
9463         a configure event response and therefore makes the GUI more snappier
9464         and avoids blank windows during the roundtrip.
9465
9466         * gtk/gtkwidget.c:
9467         (gtk_widget_hide): 
9468         (gtk_widget_show): don't queue resizes on toplevels, they know how
9469         to deal with matters.
9470
9471         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
9472         flag directly for not visible resize containers and spare us unecessary
9473         signal emissions.
9474
9475         * gtk/gtkwindow.c:
9476         (gtk_window_realize): if we need to enforce premature size allocation,
9477         queue a container resize so we are correctly resized later on.
9478         (gtk_window_init):
9479         (gtk_window_size_request):
9480         don't freak around with the ->need_resize flag,
9481         gtk_container_queue_resize() will care about that.
9482         (gtk_window_show):
9483         handle initial resizing issues here, we can handle matters better in
9484         this place, especially since we know that our GdkWindow is still
9485         unmapped.
9486         (gtk_window_move_resize):
9487         don't care about ->need_resize at all.
9488         handle size changes properly that occoured while we waited for a
9489         configure event.
9490
9491 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
9492
9493         * gtk/gtkwidget.c (gtk_widget_set_uposition):
9494         * gtk/gtkwindow.[hc] (gtk_window_reposition):
9495         Move the hint setting code from gtk_widget_set_uposition
9496         to here; set the hints so that we respect any previously
9497         set geometry hints.
9498
9499         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
9500         change the window hints here or move the window here,
9501         let that happen in gtk_window_move_resize().
9502
9503 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
9504
9505         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
9506         to already queued resizes (and therefore redraws) on a widget, check
9507         its anchestry as well.
9508
9509         * gtk/gtkcontainer.c:
9510         (gtk_container_queue_resize): clear resize widgets for resize
9511         containers before aborting prematurely. this is especially important
9512         for toplevels which may need imemdiate processing or their resize
9513         handler to be queued.
9514         (gtk_container_dequeue_resize_handler): added new internal function for
9515         gtkwindow.c.
9516
9517         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
9518         configure event, take possible changes in window position into account
9519         as well.
9520         if we request a new window size, queue up a resize handler that will
9521         last until the configure event response arrives.
9522         combined the ->need_resize case (initial show) with the general size
9523         (hints) changed case and added even more comments.
9524         if !auto_shrink, only revert to the old allocation if the new size
9525         is smaller than the current allocation.
9526
9527 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
9528
9529         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
9530                            gtk_window_set_geometry_hints
9531                            gtk_window_set_default_size):
9532         When hints are set, queue a resize so that the hints will
9533         be eventually reset on the toplevel.
9534
9535         * gtk/gtkwindow.c (gtk_window_show): Use
9536         gtk_window_compute_default_size(). Clear the need_resize flag
9537         on the initail map so that we don't unnecessarily trigger the
9538         resize code.
9539
9540         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
9541         into separate functions. Compare the hints we are setting
9542         with what we set last time so that we can accurately
9543         tell when we need to reset the hints.
9544
9545         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
9546         function to figure out the size from requisition
9547         and default_size.
9548
9549         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
9550         from fvwm to constrain a size to the geometry hints.
9551
9552         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
9553         to compare two sets of geometry hints.
9554
9555         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
9556         from gtk_window_set_hints(), just compute the hints,
9557         don't set them.
9558
9559         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
9560         code from gtk_window_move_resize() to separate function,
9561         rationalize a bit.
9562
9563 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
9564
9565         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
9566         structure into a new private structure.
9567
9568         * gtkrc.c: Split GtkRcStyle into public/private.
9569         In the private part, add a list of pointers to the
9570         RcStyle lists this RcStyle participates in.
9571
9572         * gtkrc.c: When a RcStyle is free, remove all
9573         lists referencing it from the 
9574         realized_style_ht hash, and free those lists.
9575         
9576         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
9577         gtk_rc_init(), since that adds the default styles
9578         to the list of parsed RC files again.
9579
9580         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
9581         
9582 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
9583
9584         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
9585         checks that ensure that a widget's allocation is at least 1 in width
9586         and height. (GNOME note: this doesn't affect old panel code anymore,
9587         because GtkSocket will request width and height of at least 1 since
9588         Fri Jul 23).
9589
9590         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
9591         allocated yet (happens if the user realizes the window prematurely),
9592         size request and allocate it.
9593         (gtk_window_size_allocate): guard against guint underflows.
9594
9595 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
9596
9597         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
9598         in gtk_built_sources, so gtk.defs gets built prior to all other
9599         sources.
9600
9601 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
9602
9603         * gtk/Makefile.am:
9604         invoke indent on gtkmarshal.*. 
9605         rewrote source generation rules, use COPYING as oldest source tag for
9606         a piggyback rule to generate all sources from (don't touch it ;).
9607         major cleanups, strip spaces on build rules for GNU Make.
9608
9609         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
9610         source and target files from commandline arguments. don't invoke indent.
9611
9612 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
9613
9614         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
9615         notebook after switch to avoid drawing problems.
9616         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
9617         
9618         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
9619         show them instead. 
9620         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
9621
9622 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
9623
9624         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
9625         notebook after switch to avoid drawing problems.
9626         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
9627         
9628         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
9629         show them instead. 
9630         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
9631
9632 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
9633
9634         * gtk/gtkwindow.c:
9635         we use window->need_resize from configure_event now, to indicate that
9636         the gtkwindow should keep its allocation (e.g. because the user resized
9637         the window through window manager handles). resize_count is now reliably
9638         used to figure whether we got the allocation we requested from the
9639         window manager.
9640         configure events get queued as resizes now, the real stuff (size
9641         computation and allocation) now only goes on in gtk_window_move_resize().
9642         GtkWindow's requisition now contains its *real* requisition (like all
9643         other widgets), *not* taking usize into account.
9644         geometry_info->last_{width|height} is now updated from set_hints() only
9645         so it always contains the last hints we set for the window manager.
9646         made some event handlers return TRUE instead of FALSE.
9647         the overall code should be much more straight forward now, and the
9648         significant code portions are accompanied by comments now.
9649         (gtk_window_set_hints):
9650         removed requisition argument and made it
9651         fetch the requisition through gtk_widget_get_child_requisition.
9652         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
9653         does that now.
9654         (gtk_window_show):
9655         ensure that the widget is realized before calling 
9656         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
9657         ensure that we got properly size requested and allocated before
9658         realization.
9659         (gtk_window_configure_event):
9660         ignore plain window moves, or reallocate the widget tree through the
9661         resize queue otherwise.
9662         (gtk_window_move_resize):
9663         mostly rewrote this function to figure window manager hints more
9664         reliably, coalesce window moves and resizes to reduce configure events
9665         and do actuall size allocations.
9666
9667 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
9668
9669         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
9670         that have a resize pending, because a redraw is already queued for them.
9671
9672         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
9673         hack to clear resize_widgets.
9674
9675         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
9676         for resize containers prior to size allocation. (this is also a bit
9677         ugly, but avoids side effects for stopped emissions and is thus more
9678         reliable).
9679         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
9680
9681         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
9682         function from gtk_tooltips_expose, as we connect to ::expose_event
9683         *and* ::draw now.
9684
9685 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
9686
9687         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
9688         checks.
9689         (gtk_target_list_unref): Likewise.
9690
9691         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
9692
9693 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
9694
9695         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
9696         guard against division by zero. (Fixes bug #1339)
9697
9698 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
9699
9700         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
9701         Prevent the trivial leak of information of allowing
9702         word motion when the entry is not visible.
9703
9704 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
9705
9706         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
9707         modality to error dialog as well as confirmation dialogs.
9708         (Bug #1803, reported by Rosanna Wing Sze Yuen)
9709
9710 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
9711
9712         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
9713         tree->view_lines.
9714         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
9715
9716         * gtk/Makefile.am (install-data-local): Solaris apparently
9717         has various troubles with ln -f; use rm first instead.
9718         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
9719
9720 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
9721
9722         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
9723         use `cp' followed by `rm' (the `rm' was already there).
9724
9725 July 30, 1999 Elliot Lee <sopwith@redhat.com>
9726         
9727         * configure.in: Fix autoconf warnings about cross compilation by
9728         trying to provide sane defaults for AC_TRY_RUN.
9729         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
9730         put them into $(srcdir) when generated. Also add a dependency of
9731         gtksignal.h on gtkmarshal.h for -j builds. 
9732         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
9733
9734 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
9735
9736         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
9737         GDK_THREADS_{LEAVE,ENTER} pair.
9738         (From Paul Fisher <pnfisher@redhat.com>)
9739
9740 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
9741
9742         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
9743         width and height are always >0 (owen).
9744
9745 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
9746
9747         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
9748         change that assured that a widget's allocated with and height are
9749         always >1, since this breaks *buggy* panel code. unfortunately this
9750         back-breaks the gimp's color selector.
9751
9752         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
9753         allocation is always >0 in width and height, before sending the
9754         configure event; this is a *gross* hack to get the gimp back to work.
9755         
9756         * marked both cases with TODO-1.3
9757
9758 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
9759
9760         * gtk/gtktext.c: Don't display wrap indicators when
9761         text is not editable and word wrap is on.
9762
9763 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
9764
9765         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
9766         option menus here as they are not derived from menu shell, assure that
9767         the option menu has a menu we can add items to.
9768
9769 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
9770
9771         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
9772         width/height to (gint) before calculations and check against < 0 to
9773         avoid guint wraparounds.
9774
9775 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
9776
9777         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
9778         width and height is never zero. sanity check both dimensions against
9779         32767 and issue a warning if the allocation is greater than that.
9780
9781 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
9782
9783         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
9784         to g_main_pending() as well.
9785
9786 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
9787
9788         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
9789         call to g_main_iteration() - since that will regrab
9790         GTK+ lock to process events.
9791
9792 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
9793
9794         * gtk/gtkwindow.c
9795         - Regularize with the rest of GTK+ by making widget->requisition
9796           not reflect the set_usize()
9797         - Always recompute geometry hints, then check if they
9798           changed before sending them to the X server. The
9799           previous checks for changes would fail in a number
9800           of circumstances. 
9801
9802 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
9803
9804         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
9805
9806 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
9807
9808         * gtk/gtkdnd.c:
9809         - Code cleanups
9810         - Instantaneously update on modifier key presses
9811         - Allow cancellation of the drag with Escape.
9812
9813 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
9814
9815         * gtk/testgtk.c (create_handle_box): Set the policy
9816         to auto_shrink - otherwise the appearance is rather
9817         strange when flipping between horizontal and vertical.
9818
9819 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
9820
9821         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
9822         (gtk_window_set_default_size): don't change a value if it's < 0.
9823         queue a resize.
9824
9825 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
9826
9827         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
9828
9829 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
9830
9831         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
9832         add an extra "/" when concating "/" + filename.
9833         (From Matt Grossman <mattg@oz.net>)
9834
9835 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
9836
9837         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
9838         for fg_gc if we set it for drawing pixmap.
9839
9840 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
9841
9842         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
9843         
9844         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
9845         already set, call old engine's destroy function and
9846         unref the old engine.
9847
9848 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
9849
9850         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
9851
9852 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
9853
9854         * gtk/gtkaccelgroup.h: mark certain functions as internal.
9855
9856 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
9857
9858         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
9859         expand behaviour changed.
9860
9861         * gtk/gtklabel.c (gtk_label_set_pattern):
9862         (gtk_label_set_justify):
9863         (gtk_label_set_line_wrap):
9864         don't bother invoking queue_clear, the reallocation does
9865         that for us, always free_words so the upcoming resize will
9866         relayout the label's contents.
9867
9868 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
9869
9870         * applied argument implementation patches from Elena Devdariani
9871         <elena@cogent.ca>.
9872
9873         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
9874         ::space_style, ::relief
9875         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
9876         * gtk/gtkpreview.c: ::expand
9877         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
9878         * gtk/gtknotebook.c: ::homogeneous
9879         * gtk/gtklabel.c: ::wrap
9880         * gtk/gtklist.c: ::selection_mode
9881         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
9882         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
9883         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
9884         * gtk/gtkclist.c: ::sort_type
9885         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
9886         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
9887
9888 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
9889
9890         * gtk/gtkstyle.c: Removed ill-thought-out part of last
9891         comment.
9892
9893 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
9894
9895         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
9896         counting right when we have to attach a new style
9897         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
9898
9899         * gtk/gtkstyle.c: Documented the refcounting
9900         peculularities of gtk_style_attach.
9901
9902 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
9903
9904         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
9905         window types.
9906
9907         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
9908         of GTK_TOPLEVEL for creating the window.
9909
9910 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
9911
9912         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
9913         the last argument (reported by Per Winkvist).
9914         
9915 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
9916
9917         Fixes for invisible XOR lines (Frank Loemker
9918         <floemker@TechFak.Uni-Bielefeld.DE>)
9919         
9920         * gtk/gtkclist.c (gtk_clist_realize): Always use
9921         a non-zero pixel for GDK_XOR.
9922
9923         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
9924         Use GDK_INVERT instead of GDK_XOR.
9925
9926 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
9927
9928         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
9929         signals if h/voffsets differ from adjustment values.
9930         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
9931
9932 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
9933
9934         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
9935         ::selection-done emissions up to the topmost menu shell.
9936
9937 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
9938
9939         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
9940         the user data on the window before destroying it.
9941
9942         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
9943         unrealize handler to take care of destroying 
9944         notebook->panel properly. 
9945         (Bug #1198 - Morten Welinder <terra@diku.dk>)
9946
9947         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
9948         of g_new and g_realloc to stop memory leak. (Actually,
9949         we could just use g_realloc(), but I'm not 100% sure
9950         that is portable).
9951         (Bug #1196 - Morten Welinder <terra@diku.dk>)
9952
9953 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
9954
9955         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
9956
9957         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
9958         for fontsets.
9959
9960         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
9961         with bin/button confusion.
9962
9963 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
9964
9965         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
9966         and show how preselection of radio items is done.
9967
9968 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
9969
9970         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
9971         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
9972         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
9973         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
9974         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
9975         * gtk/gtktable.c (gtk_table_attach): 
9976         * gtk/gtklist.c (gtk_list_insert_items): 
9977         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
9978         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
9979         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
9980         * gtk/gtkbin.c (gtk_bin_add): 
9981         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
9982         * gtk/gtkfixed.c (gtk_fixed_put): 
9983         * gtk/gtklayout.c (gtk_layout_put):
9984         general fixups to container_add logic. always realize child if
9985         child->parent is realized, only map the child and queue a resize
9986         if child and child->parent are both visible.
9987
9988 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
9989
9990         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
9991         instead of gtk_container_foreach to walk and unrealize children, so
9992         composite children get also unrealized.
9993         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
9994         (gtk_widget_map): assert that the widget is visible (basic constrain).
9995         (gtk_widget_real_map): assert that the widget is realized (basic
9996         constrain).
9997
9998 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
9999
10000         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
10001
10002 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
10003
10004         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
10005         file for iso-8859-2 locales.
10006
10007         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
10008
10009 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
10010
10011         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
10012          (Pointed out by andy@rz.uni-karlsruhe.de and others).
10013          Remove some suspicious and useless lines. 
10014
10015 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
10016
10017         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
10018         width,height = 0, 0 to mean - here to edge of window,
10019         instead of -1, -1, since the former is all we support.
10020
10021 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
10022
10023         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
10024         when removing from quit_functions list.
10025
10026 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
10027
10028         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
10029
10030 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
10031
10032         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
10033          When redrawing characters on non-visible entry, use appropriate
10034          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
10035
10036 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
10037
10038         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
10039         from drag coordinates.
10040         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
10041         use drag_dest_cell.
10042
10043         * gtk/gtktree (drag_dest_cell)
10044         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
10045         (Bug #1129)
10046
10047 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
10048
10049         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
10050         translate_* fields.
10051         (gtk_item_factory_finalize): invoke translate_notify independant from
10052         translate_data.
10053         (gtk_item_factory_set_translate_func): likewise.
10054         (gtk_item_factory_destroy): only remove ifactory pointer from those
10055         widgets that belong to us (stupid me).
10056
10057 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
10058
10059         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
10060         rc_style list when lookup succeeeds.
10061
10062 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
10063
10064         * gtk/gtkctree.c (resync_selection): 
10065         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
10066         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
10067         bug.
10068
10069 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
10070
10071         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
10072         Add some missing GDK_THREADS_ENTER()/LEAVE around
10073         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
10074
10075 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
10076
10077         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
10078         rather than emit_by_name.
10079
10080         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
10081         on the widget across multiple signal emissions.
10082         (gtk_editable_delete_text): same here.
10083         (gtk_editable_class_init): set widget_class->activate_signal after
10084         editable_signals[ACTIVATE] has been created.
10085
10086 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
10087
10088         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
10089         position here prematurely -- we might not have the
10090         right ->min_position and ->max_position yet.
10091
10092 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
10093
10094         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
10095         Add error traps so if the other end of the connection
10096         dies, we survive.
10097
10098         * gtk/gtkselection.c (gtk_selection_notify): Clean
10099         up properly when selection property retrieval fails.
10100         
10101         * gtk/gtkselection.c (gtk_selection_request): Correctly
10102         reject SelectionRequest notifies where the handler
10103         returns no data.
10104
10105 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
10106
10107         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
10108         when we've previously highlighted.
10109
10110         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
10111         emit two "drag_leave" signals for Motif drops.
10112
10113         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
10114         back the correct status messages when dropping from
10115         Motif onto a proxy window that is rejecting the
10116         drop.
10117
10118 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
10119
10120         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
10121         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
10122         to compare two argument values. added gtk_arg_to_valueloc() to set a
10123         variable from an arg through its location (pointer).
10124
10125         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
10126         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
10127         as gfloat*, uchars are collected as guchar*, ints are collected as
10128         gint*, etc...
10129
10130 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
10131
10132         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
10133         Include <string.h> instead of <strings.h>.
10134
10135         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
10136         (actually, a lot more duplicate includes occur if
10137          you trace through the sequence of #include's)
10138         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
10139         
10140 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
10141
10142         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
10143         gtk-a-higuti-990322-[0-3]
10144
10145         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
10146         that was causing -DX_LOCALE not to work.
10147
10148         * gtk/gtkrc.c (gtk_rc_init):
10149         X_LOCALE will never have LC_MESSAGES defined
10150
10151 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
10152
10153         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
10154         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
10155
10156         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
10157         left/right as well (gtk-michael-980726-0.patch.gz).
10158
10159         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
10160         for pointer values, use gchar instead of char. fixed uline allocation
10161         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
10162         chunks instead of G_ALLOC_ONLY.
10163         (gtk_label_size_request): always alter requisition as passed and leave
10164         widget->requisition alone.
10165         (gtk_label_set_text): allow NULL strings.
10166         (gtk_label_new): likewise.
10167
10168 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
10169
10170         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
10171
10172 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
10173
10174         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
10175         *and* mapped (i.e. drawable).
10176         (gtk_bin_expose): only send exposes to drawable children.
10177
10178         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
10179         (gtk_box_expose): only send exposes to drawable children.
10180
10181         * gtk/gtkhscale.c (gtk_hscale_draw): 
10182         * gtk/gtkvscale.c (gtk_vscale_draw):
10183         hm, this is an ugly one. we first compute the size of our trough area
10184         here (window relative) and then check intersection with the draw_area
10185         which is parent relative because we're a NO_WINDOW widget, so we need
10186         to offset the trough area by allocation.x and allocation.y before the
10187         check. (this must not be done for the background area though, since
10188         that's already computed parent relative).
10189
10190 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
10191
10192         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
10193         unrealize title buttons.
10194
10195 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
10196
10197         * gtk/gtkclist.c (gtk_clist_column_title_passive)
10198         (gtk_clist_column_title_active): 
10199         only connect/disconnect to GtkWidgetClass::event to block mouse events.
10200
10201         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
10202         zero initialize event, removed superfluous gdk_window_get_pointer call
10203
10204         * gtk/gtklist.c (gtk_list_vertical_timeout)
10205         (gtk_list_horizontal_timeout): removed superfluous
10206         gdk_window_get_pointer call
10207
10208 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
10209
10210         * plugging problems reported by "Bruce Mitchener, Jr."
10211         <bruce@puremagic.com> due to a purify session.
10212
10213         * gtk/gtkstyle.c:
10214         (gtk_style_ref): 
10215         (gtk_style_unref): assert ref_count to be > 0.
10216
10217         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
10218         the requisition.
10219         (gtk_clist_set_shift): likewise.
10220
10221         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
10222         adjustments.
10223
10224         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
10225         event before sending it and set send_event to TRUE (which needs to
10226         be done for *all* synthesized events).
10227         (gtk_list_vertical_timeout): likewise.
10228
10229         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
10230         leaks.
10231
10232         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
10233         to TRUE when synthesizing events.
10234
10235 [ *** end of merges from 1.2 *** ]      
10236         
10237 1999-11-21  Tor Lillqvist  <tml@iki.fi>
10238
10239         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
10240         (or copied from gdkconfig.h.win32 on Win32, sigh).
10241
10242         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
10243
10244         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
10245
10246         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
10247
10248         * gdk/gdkconfig.h.win32: New file.
10249
10250         * gdk/win32/makefile.cygwin: Build just a static archive here.
10251
10252         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
10253         for the DLL from the static archive built above.
10254
10255         * gdk/gdk.def: Moved here from the win32 subdirectory.
10256
10257         * gdk/win32/*: Adapt for the changed private struct organisation.
10258
10259         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
10260
10261 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
10262
10263         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
10264         for wheel mice (buttons 4 and 5).
10265
10266 1999-11-18  Tor Lillqvist  <tml@iki.fi>
10267
10268         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
10269         drawables use just the pixel field in the foreground and
10270         background GdkColor of the GdkGC.
10271
10272         gdk_gc_set_{fore,back}ground() are called in the GIMP with
10273         GdkColors containing uninitialized (red,green,blue) fields, and
10274         just the pixel field filled in, and furthermore in the
10275         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
10276         It thus turns out that we really don't need to have the full
10277         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
10278         it later to have just the pixel values.
10279
10280 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
10281
10282         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
10283
10284 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
10285
10286         * docs/gtkfaq.sgml: threads example from Erik Mouw.
10287         New question on GtkLabel background colors.
10288
10289         * docs/gtk_tut.sgml:
10290           - Correct the example code callback
10291             function definitions.
10292           - Update the gtkdial example code, from Frans van Schaik.
10293           - Update setselection.c to current API.
10294
10295         * examples/Makefile examples/*/*.c: Update to code
10296         listed in tutorial.
10297
10298 1999-11-10  Tor Lillqvist  <tml@iki.fi>
10299
10300         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
10301         subrange table (from the "Developing International Software for
10302         WIndows 95 and Windows NT" book) was missing the Hangul syllable
10303         block... Get the loaded font's charset correctly.
10304
10305         (Note that this, and the other *-win32.c files, still really are
10306         the old ones, the win32 subdirectory is not ready for compilation
10307         yet after the reorg.)
10308
10309 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
10310
10311         * gtk/gtkclist.c: Fix off-by-one bug in parameter
10312         check.
10313
10314 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
10315
10316         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
10317         on results of XQueryDeviceState().
10318
10319 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
10320
10321         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
10322         we need to accesss only ->children. We need an accessor
10323         for the children.
10324
10325         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
10326         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
10327         to get rid of gdkx.h include.
10328         
10329         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
10330         and random references to 'None'.
10331
10332         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
10333         Get rid of unused #include <gdk/gdkx.h>
10334
10335         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
10336         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
10337         gdkconfig.h.
10338
10339 1999-11-08  Tor Lillqvist  <tml@iki.fi>
10340
10341         * gdk/win32/gdkdraw.c
10342         * gdk/win32/gdkfont.c
10343         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
10344         following yesterday's changes. (Unrelated to Owen's reorg.)
10345
10346 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
10347
10348         * gdk/x11/gdkinput-gxi.c: Add missing include,
10349           fix GdkWindowPrivate => GdkDrawablePrivate.
10350
10351         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
10352
10353         * gdk/x11/Makefile.am (xinput_sources): Add missing
10354         backslash to fix building with --with-xinput=none
10355
10356 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
10357
10358         Move all X specific code into the x11/ directory.
10359         Aside from shuffling things around, did the following:
10360
10361        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
10362          gdk_arg_context_* - a simple argument parsing system
10363          in the style of popt.
10364
10365        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
10366          gdk/x11/gdkprivate-x11.h:
10367          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
10368          add ->klass and ->klass_data fields. The klass_data
10369          field points to an auxilliary structure that is
10370          windowing system dependent.
10371
10372        * gdk/gdkfont.c: Make most of the measurement functions
10373          simply wrappers around gdk_text_extents().
10374
10375        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
10376          _gdk_font_strlen() function that hides the weird
10377          behavior in gtk+-1.[02] where a string is interpreted
10378          differently for 8-bit and 16-bit fonts.
10379
10380        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
10381          to store common code for synthesizing double/triple
10382          press events.
10383         
10384        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
10385          Make all the function that modify an existing GC
10386          simply wrappers around gdk_gc_set_values().
10387          
10388        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
10389          for throwing out later.
10390
10391        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
10392          GdkImagePrivate and GdkColormapPrivate to have a
10393          windowing system dependent part (GdkFontPrivateX etc.)
10394          that "derives" from the system-independent part.
10395
10396        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
10397          Got rid of the included-source-files for XInput in
10398          favor of automake conditionals. (Which didn't exist
10399          when XInput support was originally added.)
10400
10401        * gdk/gdkrgb.c: Remove the visual id from the debugging
10402          statements since that is X11 specific; print out
10403          type/depth info instead.
10404          
10405
10406 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
10407
10408         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
10409         loading duplicates of hashed fonts.
10410
10411         * gdk/gdk.c (gdk_keysym_convert_case): rename
10412         gdk_XConvertCase to gdk_keysym_convert_case, allow
10413         results to be NULL in the GTK+ style.
10414
10415         * gdk/gdkcompat.h: Started compatibility header
10416         for renames.
10417
10418 1999-11-07  Tor Lillqvist  <tml@iki.fi>
10419
10420         * gdk/win32/gdkprivate.h: New font private structures, related to
10421         fontsets.
10422
10423         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
10424         gdk_font_list_free(). On X11, will just be wrappers to
10425         XListFonts() and XFreeFontNames(). On Win32, the code previously
10426         in gtkfontsel.c is now here.
10427
10428         New function gdk_font_xlfd_create(). On X11 will get the FONT
10429         property of the font (for GDK_FONT_FONTs), or call
10430         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
10431         builds a XLFD style name from the font information in the LOGFONT
10432         struct(s).
10433
10434         New function gdk_font_xlfd_free(), which correspondingly frees the
10435         string returned by gdk_font_xlfd_create().
10436
10437         Implement fontsets on Win32. Add a function that iterates over a
10438         wide char string and calls a callback function for each substring
10439         of wide chars from the same Unicode subrange (and thus probably
10440         available in the same real font).
10441
10442         Improve the XLFD emulation a bit.
10443
10444         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
10445
10446         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
10447         Beta3, WM_IME_CHAR messages don't seem to contain the composed
10448         multi-byte char as with the Active IMM on Win9x. Oh well, handle
10449         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
10450         ImmGetCompositionStringW() to get the composed Unicode chars.
10451
10452         * gdk/win32/gdkgc.c
10453         * gdk/win32/gdkdraw.c: Changes needed because of the font private
10454         struct changes.
10455
10456         * gdk/win32/gdk.def: Add the new functions.
10457
10458 1999-11-04  Tor Lillqvist  <tml@iki.fi>
10459
10460         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
10461         get the Platform SDK to get <dimm.h>.
10462
10463         * gdk/win32/gdkevents.c: More event handling fixes and
10464         simplification. Never generate motion events with is_hint true. We
10465         used to do that on bogus grounds earlier. Windows sends
10466         WM_MOUSEMOVE messages on button events even if the mouse hasn't
10467         moved, ignore these.
10468
10469         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
10470
10471         * gdk/win32/gdkglobals.c
10472         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
10473         the TrackMouseEvent function, and use it.
10474
10475         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
10476         char before calling WideCharToMultiByte in order to get a string
10477         for the window title.
10478
10479         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
10480
10481         * gdk/win32/gdk.def: Remove obsolete functions.
10482
10483         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
10484         /nodefaultlib and /defaultlib switches.
10485
10486         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
10487
10488 1999-10-31  Tor Lillqvist  <tml@iki.fi>
10489
10490         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
10491         EuroSign).
10492
10493         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
10494         same type as GdkWChar, especially on Win32.
10495
10496         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
10497
10498         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
10499         before passing to Windows GDI for drawing etc. Convert to the
10500         system default codepage before passing to Windows as window
10501         titles.
10502
10503         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
10504         support changing input locale on the fly.
10505
10506         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
10507         on-the-fly changes. Convert incoming characters from the current
10508         codepage to Unicode (and then to a UTF-8 multi-byte string) based
10509         on the current input language. Use keysym<->Unicode mapping tables
10510         and functions borrowed from xterm sources.
10511
10512         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
10513         editions of Win9x, use the ActiveX-based Active IMM (Input Method
10514         Manager) if available. IMEs and the Active IMM are available under
10515         the disguise of Chinese, Korean and Japanese support for IE and
10516         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
10517         support is present in all editions (as long as you install it).
10518
10519         Call DispatchMessage from gdk_events_queue() (and thus
10520         gdk_WindowProc()), instead of duplicating the code in
10521         gdk_WindowProc().
10522
10523         Reworked the grab handling and propagation code, factored out
10524         duplicated code snippets into separate functions. Other cleanups,
10525         too.
10526
10527         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
10528         the <dimm.h> header describing the Active IMM.
10529
10530         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
10531         just do the same as for "single" fonts.
10532
10533         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
10534         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
10535         the new keysyms from gdkkeysyms.h.
10536
10537         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
10538         fontset, so that gtkentry uses wide characters.
10539
10540         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
10541         GTk+'s system directory "gtk+", not "gtk".
10542
10543 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
10544
10545         * docs/gtkfaq.sgml: FAQ update
10546
10547 1999-10-21  Tor Lillqvist  <tml@iki.fi>
10548
10549         * gdk/win32/gdkprivate.h: Add more font private data.
10550
10551         * gdk/win32/gdkfont.c
10552         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
10553         fonts and strings. Now works much better. You still have to
10554         have a correct font selected, though. No fontset emulation yet.
10555
10556 1999-10-19  Tor Lillqvist  <tml@iki.fi>
10557
10558         * gtk/maketypes.awk: Use G_OS_WIN32.
10559
10560         * gtk/gtk.def: Add some missing entry points. Also some non-public
10561         ones, but PyGTK porter claims to need them.
10562
10563         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
10564         built-in type generation.
10565
10566 1999-10-14  Tor Lillqvist  <tml@iki.fi>
10567
10568         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
10569         GDK_FONT_FONT fonts (which is all we have for now, we don't
10570         emulate fontsets). The X11 version uses plain XDrawString in that
10571         case, too. The string passed to gdk_draw_text_wc seems to be in
10572         fact (at least, when used by gtkentry and gtktext) either in a
10573         single-byte charset, or a DBCS. Not Unicode.
10574
10575         This fixes the problem in gtkfontsel, where even if you had
10576         selected a font with a non-Latin1 charset (windows-greek, for
10577         instance), the preview still used Latin-1 glyphs.
10578
10579         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
10580         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
10581         (gdk_font_load): Recognize the demibold etc weights, even if we
10582         don't have the corresponding constants in the headers.
10583         (gdk_font_hash_insert): Use same hash mechanism as in the X11
10584         version. Should save font resources a bit, when we don't have
10585         multiple HFONTs for the same font.
10586
10587         * gdk/win32/gdkprivate.h: Add the names field as in the X11
10588         version.
10589
10590 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
10591
10592         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
10593         X values
10594
10595 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
10596
10597         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
10598         layout support (as mentioned on
10599         http://www.jcinteractive.com/gnome-ui/software/widgets/)
10600
10601 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
10602
10603         * gtk/fnmatch.c
10604         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
10605
10606 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
10607
10608         * configure.in (ALL_LINGUAS): Added Galician (gl)
10609
10610 1999-10-05  Tor Lillqvist  <tml@iki.fi>
10611
10612         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
10613
10614         * gdk/win32/gdkcompat.c: New file, actually provide an
10615         implementation for the deprecated functions. (Just temporarily.)
10616
10617         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
10618
10619         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
10620
10621         * gdk/win32/gdk.def gtk/gtk.def: Updates.
10622
10623 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
10624
10625         * configure.in: Added "uk" to ALL_LINGUAS.
10626         
10627 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
10628
10629         * configure.in: correct checking for BeOS check
10630
10631         * gdk/gdktypes.h
10632         * gtk/fnmatch.c
10633         * gtk/gtkfilesel.c
10634         * gtk/gtkitemfactory.c
10635         * gtk/gtkmain.[ch]
10636         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
10637
10638 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
10639
10640         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
10641         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
10642         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
10643         by Bulgarian). 
10644
10645 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
10646
10647         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
10648         Fix a reference to window_private->destroyed.   
10649
10650         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
10651         (ugly) setting of an internal GdkWindow member to use
10652         a _slightly_ cleaner macro.
10653
10654         * gdk/gdkprivate.h: Split GdkWindowPrivate into
10655         GdkDrawablePrivate and GdkWindowPrivate.
10656         Add extra macros for accessing GDK_DRAWABLE_ components.
10657
10658         * *.[ch]: Massive adjustments for the above, use the
10659         new macros in a lot of places.
10660
10661 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
10662
10663         * gdk/gdktypes.h: Make GdkDrawable the base type,
10664         not GdkWindow.
10665
10666 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
10667
10668         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
10669
10670 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
10671
10672         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
10673
10674 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
10675
10676         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
10677         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
10678
10679         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
10680
10681         * docs/gtk-config.1: Now autogenerated.
10682         * docs/Changes-1.4.txt: started
10683         
10684 1999-10-03  Tor Lillqvist  <tml@iki.fi>
10685
10686         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
10687         to #ifdef also here.
10688
10689         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
10690         Owen did to the X11 backend.
10691
10692         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
10693         ScrollWindowEx when blitting inside a window, it can't be correct
10694         in the general case.
10695
10696         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
10697         WM_GETMINMAXINFO is easier.
10698
10699         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
10700         depth equal to the bitspixel value, not the visual's depth.
10701
10702         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
10703         to 24 even if the bitspixel value is 32.
10704
10705         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
10706         need to check for depth==32 when bpp==32, depth will always be 24.
10707
10708 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
10709
10710         * docs/Changes-1.4.txt: Started
10711         
10712         * gtk/Makefile.am (gdk_headers): Include all the new headers.
10713
10714         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
10715         
10716         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
10717         into C file.
10718         
10719         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
10720         header to gdkinputprivate.h.
10721
10722         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
10723         unused since before 1.2.
10724
10725 1999-09-30  Tor Lillqvist  <tml@iki.fi>
10726
10727         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
10728         expand possible hex escapes in the font family (put there by
10729         logfont_to_xlfd if the font name isn't a legal XLFD font family,
10730         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
10731         On Win32, add hex escapes here, too.
10732
10733 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
10734
10735         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
10736         to #ifdef GDK_WINDOWING_X11.
10737
10738 [ Merges from gtk-1-2 ]
10739
10740 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
10741
10742         * configure.in: fixed "GNU Make" check to pass with new make version
10743         3.77.95.
10744
10745 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
10746
10747         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
10748         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
10749         AM_PATH_GTK() macros don't get confused by the -pre1.
10750
10751 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10752
10753         * configure.in (REBUILD): Change check for perl5
10754           to check explicitely for v >= 5.002. (5.001
10755           does not work with our scripts.)
10756
10757 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
10758
10759         * configure.in: evaluate $PERL for the perl version check. added
10760         --disable-rebuilds to give the user an option to completely disable
10761         any source autogeneration rules.
10762
10763 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
10764
10765         * configure.in: evaluate $ac_make when checking for GNU Make.
10766
10767 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10768
10769         * docs/Makefile.am: added generation.txt.
10770
10771         * Makefile.am: require automake 1.4, build README from README.in and
10772         INSTALL from INSTALL.in in dist-hook.
10773         
10774         * README.in:
10775         * INSTALL.in: new files to autogenerate README and INSTALL from.
10776
10777         * configure.in: figure whether we have GNU Make
10778
10779         * docs/generation.txt: minor additions/corrections.
10780
10781 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
10782
10783         * docs/gtkfaq.sgml: FAQ Update
10784
10785 July 30, 1999 Elliot Lee <sopwith@redhat.com>
10786         
10787         * configure.in: Fix autoconf warnings about cross compilation by
10788         trying to provide sane defaults for AC_TRY_RUN.
10789
10790 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
10791
10792         * ltconfig
10793         * ltmain.sh: upgrade to libtool 1.3.3
10794
10795 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
10796
10797         * INSTALL: Indicate that the --with-glib= configure
10798         time flag is unsupported.
10799
10800 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
10801
10802         * docs/generation.txt: Added a file that gives
10803         documenation about the autogeneration process for
10804         various autogenerated files.
10805         
10806 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
10807
10808         * configure.in (LIBS): Look for libgmodule in the
10809         right location.
10810
10811 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
10812
10813         * docs/gtk_tut.sgml: Removed references to
10814         code examples in my directory on gtk.org as
10815         they should all be in the tutorial now.
10816
10817         * docs/gtk_tut.sgml: Added sources for dial-test
10818         and scribble-xinput programs that were previously
10819         missing.
10820
10821 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
10822
10823         * TODO: Added entry about menu keyboard navigation, removed
10824         some finished items.
10825
10826 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
10827
10828         * acinclude.m4: Standardize on func_dgettext
10829         not func_gettext, so that the checks for dgettext
10830         actually are paid attention to.
10831
10832 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
10833
10834         * configure.in (LIBS): Add $INTLLIBS into $LIBS
10835         directly, rather than repeating the checks for
10836         gettext.
10837
10838         * INSTALL: Added information about gettext and
10839         NLS support.
10840
10841         * acinclude.m4 (LIBM): Check for dgettext, not
10842         just gettext. This should hopefully fix things wrt
10843         systems with old versions of GNU gettext installed.
10844
10845 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
10846
10847         * configure.in (LIBS): Look for libgmodule in the
10848         right location.
10849
10850 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
10851
10852         * autogen.sh: add --enable-maintainer-mode
10853
10854         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
10855
10856 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
10857
10858         * docs/gtk-config.1.in:
10859           docs/Makefile.am:
10860           configure.in: gtk-config is now generated.
10861
10862         * docs/gtk-config.1: Removed, now generated.
10863
10864 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
10865
10866         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
10867         handle CreateNotify itself, still put out a debuging message for
10868         --gdk-debug=events. made the ReparentNotify debugging message more
10869         verbose.
10870         wrap xcoords translation for ConfigureEvents into an error trap,
10871         a destroy event may already be pending, and in that case, the
10872         actuall coordinate values are not at all critical.
10873
10874 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
10875
10876         * gdk/gdkcc.c: Stop leaking the color_hash all over
10877         the place. Simplify and improve the logic.
10878
10879 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
10880
10881         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
10882         for prototypes and function implementations consistent (reported
10883         by Tomas Ogren).
10884
10885 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
10886
10887         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
10888         send_event set in debugging output.
10889         (gdk_compress_exposures): default initialize the event so we don't
10890         operate on bogus values (namely send_event).
10891
10892 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
10893
10894         * gdk/gdkwindow.c: When we receive an unexpected
10895         destroy notify on one of our windows, don't just
10896         warn about it, also mark our windows as destroyed.
10897
10898 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
10899
10900         * gdk/gdkfont.c (gdk_font_hash_insert): Add
10901           name => font and name => fontset hashes. The 
10902           name => fontset hash is a _big_ win since we
10903           weren't previously caching fontsets at all and loading
10904           fontsets is expensive. The name => font hash
10905           is less of a win, but it does save us from doing
10906           repeated XQueryFont calls on the same font.
10907
10908         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
10909           list so we can remove font/fontset from hash.
10910
10911 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10912
10913         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
10914           and slightly confusing test. [ XInternAtom (,,TRUE)
10915           will never return None ].
10916
10917 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
10918
10919         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
10920           gdk/gdkwindow.c (gdk_window_set_hints):
10921
10922         Don't omit setting the properties if flags == 0 -
10923         there may be an existing set of properties there
10924         already. (Very old bug. Would it be better to
10925         delete the property instead?)
10926
10927         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
10928           spelling error in comment.
10929
10930 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
10931
10932         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
10933           to avoid stomping over gdk_error_warnings.
10934
10935         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
10936           as (bits_per_pixel + 7) / 8. This gives the same
10937           result as before for multiples of 8, but actually
10938           a "reasonable" value for 1bit or 4bit displays.
10939
10940 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10941
10942         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
10943         GNU Make.
10944
10945 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
10946
10947         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
10948         discarding configure events.
10949
10950 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
10951
10952         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
10953         refcount is greater than zero.
10954
10955         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
10956
10957         * gdk/gdkfont.c (gdk_font_unref): Likewise.
10958
10959         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
10960
10961         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
10962
10963 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
10964
10965         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
10966         that format 32 => sizeof(item) == 4. It really is
10967         sizeof(long).
10968
10969 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
10970
10971         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
10972         core dump at all on X IO errors, only core dump
10973         if --enable-debug for X errors.
10974
10975 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
10976
10977         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
10978         unknown window:" message. disabled ConfigureNotify discarding code,
10979         because it led to events being processed out of order.
10980
10981 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
10982
10983         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
10984
10985         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
10986         we export this function, supress error warnings and don't reset the
10987         error code in the first half of this function.
10988
10989         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
10990         code (instead of just -1) so gdk_error_trap_pop() reveals something
10991         actually informative about the error that happened.
10992
10993         * gdk/*.c:
10994         don't rely on gdk_error_code being -1 if an error occoured, but just
10995         gdk_error_code != 0.
10996
10997 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
10998
10999         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
11000         pointer *before* invoking the filter function, so we at least don't
11001         crash if a filter is removed that is currently executed. window filters
11002         *really* need to be made truely reentrant at some point.
11003
11004 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
11005
11006         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
11007         PropertyNotify debug messages.
11008
11009 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
11010         
11011         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
11012         
11013         * gdk/gdkim.c: Fix cut-and-paste errors for 
11014         x/y and PreeditAttributes/StatusAttributes.
11015
11016 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11017
11018         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
11019         G_MAXINT to 2^16 to alleviate overflow problems in
11020         various window managers.
11021
11022 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
11023
11024         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
11025         for fontsets.
11026
11027 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
11028
11029         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
11030         Initialize size_hints.x and size_hints.y because kwm
11031         brokenly pays attention to them.
11032         (Bug #1181 -  Lars Heete <hel@admin.de>)
11033
11034 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
11035
11036         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
11037         return value of gdk_list_visuals(). 
11038         (Bug #1193 - Morten Welinder <terra@diku.dk>)
11039
11040 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
11041
11042         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
11043         XSetIMValues to (void *) when comparing to NULL, to workaround
11044         the problem of some compilers barfing since older X headers don't
11045         have the prototype for it.
11046
11047 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
11048
11049         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
11050         for pseudocolor where colormap->colors was double
11051         allocated.
11052
11053         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
11054         color value in the hash table with the pixel filled
11055         in so when we do later hash table lookups, the color
11056         value is correct.
11057         
11058 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
11059
11060         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
11061         making the call
11062
11063 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
11064
11065         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
11066         pointed out by Morten Welinder <terra@diku.dk>.
11067
11068 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11069
11070         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11071           default filter from the list
11072
11073 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11074
11075         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11076           default filter from the list
11077
11078 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
11079
11080         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
11081
11082         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
11083         g_strdup_printf instead of calcing the length separately
11084
11085 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
11086
11087         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
11088         that we don't do in many other places. (Fixing duplicate 
11089         #include of config.h)
11090
11091         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
11092         Otherwise, #ifndef XINPUT_NONE check in the latter
11093         doesn't work. (Bug #546)
11094
11095 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
11096
11097         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
11098         "None" case insensitive.
11099
11100 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
11101
11102         * gdk/gdkselection.c: 
11103         Add error traps so if the other end of the connection
11104         dies, we survive.
11105
11106 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
11107
11108         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
11109         dest_xid field into two fields - one for the window
11110         to send in messages, one to indicate the last looked
11111         up window for caching purposes. This is needed, so
11112         that Leave messages get the correct window.
11113
11114 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
11115
11116         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
11117         Fix warning created by people mucking around
11118         with the gsource API.
11119
11120         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
11121         Change mapping between GIOCondition and GdkInputCondition
11122         to match the way the Linux kernel does it. This should
11123         fix problems where closed pipes were no longer signalling
11124         GDK_INPUT_READ on systems with a native poll().
11125
11126 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
11127
11128         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
11129         explicitly for the string "None" - it is in the XPM
11130         spec and some servers treat unknown colors in odd ways
11131         (like asking the user!)
11132
11133 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
11134
11135         * gdk/gdkevents.c: made "->" into a "." of previous change so
11136         it compiles
11137
11138 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
11139
11140         * gdk/gdkevents.c (gdk_compress_exposures): Set the
11141         window field of the event structure before calling
11142         user filters.
11143
11144 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
11145
11146         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
11147         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
11148
11149 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
11150
11151         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
11152         intermediate text property - prevents major memory
11153         leak when gdk_use_mb.
11154         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
11155
11156 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
11157
11158         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
11159         gtk-a-higuti-990322-[0-3]
11160
11161         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
11162         sizeof(wchar_t) != sizeof (GdkWChar)
11163
11164         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
11165         that was causing -DX_LOCALE not to work.
11166
11167         * gtk/gtkrc.c (gtk_rc_init):
11168         X_LOCALE will never have LC_MESSAGES defined
11169
11170         * gdk/gdk.c (gdk_init_check):
11171         Remove --xim-preedit and --xim-status from argv properly.
11172
11173         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
11174         that the client window is present on the X server
11175         before we pass it to the input method.
11176
11177 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
11178
11179         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
11180         if --display is specified on the command line, than
11181         the drag window will not be created on that display.
11182         
11183 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
11184
11185         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
11186         lookups with only_if_exists == TRUE were inserting
11187         bogus values into the atom cache.
11188
11189 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
11190
11191         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
11192         then reset it to NULL.
11193
11194         * gdk/gdkcolor.c:
11195         (gdk_colors_free): 
11196         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
11197         key for g_hash_table_remove() in both functions, this prevents us
11198         from accessing possibly uninitialized portions of a GdkColor structure
11199         where we are only interested in its pixel value.
11200
11201 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
11202
11203         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
11204         font hash table, if we have a GdkFontPrivate entry for this font
11205         already, simply increment its reference count, provided by Olaf Dietsche
11206         <olaf.dietsche+list.gtk@netcologne.de>.
11207
11208 1999-09-21  Tor Lillqvist  <tml@iki.fi>
11209
11210         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
11211         just to be sure.
11212
11213         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
11214         unused variables, leftovers from the X11 version.
11215
11216         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
11217
11218         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
11219         downcase fields on X11.
11220
11221 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
11222         
11223         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
11224         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
11225
11226 1999-09-17  Tor Lillqvist  <tml@iki.fi>
11227
11228         * gdk/win32/gdk.def: Add gdk_threads_mutex.
11229
11230         * gtk/makefile.msc: Correct path to libintl.
11231
11232         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
11233         use of gint vs. int, and gint vs. gboolean in headers and
11234         definitions. Use GtkType for the *_get_type functions. Note that
11235         these changes preserve binary compatibility.
11236
11237         * gdk/gdk.c
11238         * gdk/win32/gdk.c
11239         * gdk/gdk.h: Fix inconsistencies: gint vs int.
11240
11241         * gtk/gtkmain.c
11242         * gtk/gtkclist.c
11243         * gtk/gtkmenufactory.c
11244         * gtk/gtknotebook.c
11245         * gtk/gtkwidget.c: Fix inconsistencies, also gint
11246         vs. gboolean.
11247
11248         * gtk/gtkcolorsel.[ch]
11249         * gtk/gtkcombo.[ch]
11250         * gtk/gtkdrawingarea.[ch]
11251         * gtk/gtkgamma.[ch]
11252         * gtk/gtkhandlebox.[ch]
11253         * gtk/gtkhpaned.[ch]
11254         * gtk/gtkhruler.[ch]
11255         * gtk/gtkplug.[ch]
11256         * gtk/gtkpreview.[ch]
11257         * gtk/gtkruler.[ch]
11258         * gtk/gtksocket.[ch]
11259         * gtk/gtkstatusbar.[ch]
11260         * gtk/gtktoolbar.[ch]
11261         * gtk/gtkvbbox.[ch]
11262         * gtk/gtkvpaned.[ch]
11263         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
11264         functions.
11265
11266         * gtk/gtkgamma.h: Fix bug, missing () in call of
11267         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
11268
11269 1999-09-14  Tor Lillqvist  <tml@iki.fi>
11270
11271         * gdk/gdkcolor.c (gdk_colormap_new)
11272         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
11273         colormap->colors was allocated twice.
11274
11275         * gdk/win32/gdk.c: Remove some unused stuff.
11276
11277         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
11278         colormap.
11279
11280         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
11281         * gtk/gtklabel.h (gtk_label_get_type)
11282         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
11283         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
11284         in a couple of places, not guint.
11285
11286 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
11287
11288         * configure.in,po/et.po: added Estonian language file
11289
11290 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
11291
11292         * configure.in,po/da.po: added Danish file
11293
11294 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
11295
11296         * docs/gtkfaq.sgml: Minor FAQ Update
11297
11298 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
11299
11300         * docs/gtkfaq.sgml: FAQ update
11301
11302 1999-08-27  Tor Lillqvist  <tml@iki.fi>
11303
11304         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
11305         way to get window contents continually refreshed while resizing. I
11306         didn't like the effects myself, so it's not on by default.
11307
11308         * gdk/win32/gdkprivate.h: New flag variable
11309         gdk_event_func_from_window_proc, FALSE by default.
11310
11311         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
11312         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
11313         are passed --gdk-event-func-from-window-proc.
11314
11315         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
11316         and we have am event_func, call it instead of enqueing the event.
11317
11318 1999-08-23  Tor Lillqvist  <tml@iki.fi>
11319
11320         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
11321         Kelley: Set expose_count in GdkEventExposes correctly.
11322
11323         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
11324         MULTIPLE_WINDOW_CLASSES).
11325
11326         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
11327         for bug in NT, apparently NT *does* draw the end pixel, too, in
11328         LineTo with a one-pixel pen, so we don't have to do it ourselves.
11329
11330 1999-08-21  Tor Lillqvist  <tml@iki.fi>
11331
11332         Improvements by Hans Breuer: 
11333
11334         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
11335
11336         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
11337         CS_?REDRAW flags as they cause lots of (late) redraws when "show
11338         window contents while dragging" is turned on. Allocate at least
11339         one unique class for every GdkWindowType. If support for single
11340         window-specific icons is ever needed (eg. Dialog specific), every
11341         such window should get its own class.
11342
11343 1999-08-19  Tor Lillqvist  <tml@iki.fi>
11344
11345         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
11346         error that caused crashes.
11347
11348 1999-08-17  Tor Lillqvist  <tml@iki.fi>
11349
11350         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
11351         window, use ScrollWindowEx, and call UpdateWindow. This prevents
11352         bugs when for instance part of the window was outside the
11353         display. Thanks to Philippe Colantoni for finding and fixing this.
11354
11355 1999-08-16  Tor Lillqvist  <tml@iki.fi>
11356
11357         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
11358         endpoint calculations which were totally wrong. (A little RTFMing
11359         helps a lot ;-)
11360
11361         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
11362         from a separate directory, not from gettext, because of licensing
11363         issues (we want to use the LGPL version).
11364
11365         * README.win32: Mention the intl from glibc vs from gettext issue.
11366
11367 1999-08-13  Tor Lillqvist  <tml@iki.fi>
11368
11369         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
11370         in the key event handling: Now AltGr chars work again. Also,
11371         now Alt-digits are passed up as well as Control-digits.
11372         Pass keypad plus and minus as normal plus and minus.
11373
11374 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
11375
11376         * docs/gtkfaq.sgml: FAQ Update
11377
11378 1999-07-25  Tor Lillqvist  <tml@iki.fi>
11379
11380         * README.win32
11381         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
11382         the Wintab SDK.
11383
11384         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
11385         OK, but getting closer. Guard against bogus tilt data from Wacom
11386         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
11387         enable easier building without Wintab.
11388
11389         * gdk/win32/gdkinput.h
11390         * gdk/win32/gdkevents.c 
11391         * gdk/win32/gdkwindow.c: Minor changes related related to above.
11392         
11393         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
11394         code. As we have just one visual on Win32, no sense to have it in a
11395         table, and no need for the hash table.
11396
11397         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
11398         better on white background.
11399
11400 1999-07-21  Tor Lillqvist  <tml@iki.fi>
11401
11402         * README.win32: Update gcc build instructions. Mention gettext is
11403         GPL.
11404
11405         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
11406         supported cursor size with GetSystemMetrics.
11407
11408         * gdk/win32/gdkfont.c
11409         * gtk/gtkfontsel.c: Guard against some font weight and charset
11410         symbols being undefined (in mingw32 headers).
11411
11412         * gdk/win32/makefile.cygwin
11413         * gtk/makefile.cygwin
11414         * gtk/gtkthemes.c: No longer need to have differently named
11415         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
11416
11417 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
11418
11419         * docs/gtkfaq.sgml: Long awaited FAQ update.
11420
11421 1999-07-15  Tor Lillqvist  <tml@iki.fi>
11422
11423         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
11424         it. Obscure bit manipulation needed.
11425
11426         * gdk/win32/gdkevents.c: Logging.
11427         
11428         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
11429         style (file name include compiler name) for theme engines.
11430
11431 1999-07-13  Tor Lillqvist  <tml@iki.fi>
11432
11433         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
11434
11435         * gdk/win32/gdkevents.c: Fix long-standing bug in key
11436         events. The key.string wasn't zero-terminated, still we strdup'ed
11437         it in gdk_event_copy(). Synthesize crossing events for button
11438         events before possible propagation.
11439
11440         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
11441
11442         * gdk/win32/makefile.cygwin
11443         * gtk/makefile.cygwin: Use new DLL naming style for the
11444         GCC-compiled ones.
11445
11446         * gdk/win32/makefile.msc
11447         * gtk/makefile.msc: Cosmetics mostly.
11448
11449         * gtk/gtk.def: Add missing entry points.
11450
11451         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
11452
11453 1999-07-09  Tor Lillqvist  <tml@iki.fi>
11454
11455         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
11456         or height is zero. Don't print a warning if Pie or Arc fails, they
11457         always fail (?) for very narrow ellipses.
11458
11459         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
11460         the part or the destination window corresponding to source area
11461         outside of the source drawable's boundary.
11462
11463         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
11464         anything if less than two points.
11465
11466         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
11467         return NULL. Gtk cut-and-paste inside a single program works
11468         better this way. (It always gets the clipboard contents from
11469         Windows, not from its own copy, which is cleared anyway. I can't
11470         say I fully understand what happens... Emulating the X selection
11471         and property stuff is a bit of a mess.)
11472
11473         * gdk/win32/gdkevents.c
11474         * gdk/win32/gdkproperty.c: A bit more verbose logging.
11475
11476         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
11477         that never got deleted). Revamp gdk_region_shrink.
11478
11479         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
11480         after use.
11481
11482         * gtk/gtk.def: Add some missing entry points.
11483
11484         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
11485         component.
11486
11487 1999-07-04  Tor Lillqvist  <tml@iki.fi>
11488
11489         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
11490         Control-digits specially.
11491
11492 1999-07-03  Tor Lillqvist  <tml@iki.fi>
11493
11494         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
11495
11496 1999-06-28  Tor Lillqvist  <tml@iki.fi>
11497
11498         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
11499         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
11500         finding this.)
11501
11502 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
11503
11504         * gtk+.spec.in: Corrected some typos in files section.
11505         
11506 1999-06-15  Tor Lillqvist  <tml@iki.fi>
11507
11508         * README.win32: Mention using GNU gettext.
11509         * config.h.win32: Enable NLS stuff.
11510         * gtk/makefile.msc: Use GNU gettext.
11511         * gdk/win32/gdkdnd.c: Minor header reorg.
11512         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
11513         cosmetics.
11514         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
11515         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
11516
11517 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
11518
11519         * acinclude.m4
11520         * config.guess
11521         * config.status
11522         * ltconfig
11523         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
11524
11525 1999-05-30  Tor Lillqvist  <tml@iki.fi>
11526
11527         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
11528         SafeAdjustWindowRectEx. Don't override all calls to
11529         AdjustWindowRectEx by it, but use it only in two places: When
11530         creating a new top-level window and when moving a top-level
11531         window.
11532
11533         Use screen coordinate rectangle, not client rectangle, in
11534         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
11535         when we try to place a window so that the decoration (mainly,
11536         title bar) isn't visible.
11537
11538         These changes fix the bug that showed up for instance as the
11539         GIMP's saved top-level windows moving right and down (by an amount
11540         equal to the window decoration) for each session. This bug showed
11541         up also in testgtk's "Saved Position".
11542
11543         gdk_window_resize also redone a bit.
11544
11545 1999-05-25  Tor Lillqvist  <tml@iki.fi>
11546
11547         * gtk/testgtkrc: Add (commented out) Windows-style theme
11548         include line.
11549
11550         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
11551
11552 1999-05-18  Tor Lillqvist  <tml@iki.fi>
11553
11554         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
11555         gdkx.h to a gdk subdirectory, so that applications can include
11556         these with <gdk/*.h> without trouble.
11557
11558         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
11559         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
11560         have their bitmap destroyed.
11561
11562         * gdk/win32/gdk.def: Add gdk_root_parent.
11563
11564 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
11565
11566         * configure.in
11567           gtk-config.in
11568           ltconfig
11569           ltmain.sh     
11570           gtk/Makefile.am: changes to compile nicely (with xlib) 
11571           on BeOS
11572
11573 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
11574
11575         * acinclude.m4
11576         * config.guess
11577         * config.sub
11578         * ltconfig
11579         * ltmain.sh: upgrade to libtool 1.3
11580
11581 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
11582
11583         * gtk/gtkclist.c:
11584         * gtk/gtkctree.c: merges from gtk-1-2
11585
11586 1999-04-25  Tor Lillqvist  <tml@iki.fi>
11587
11588         Support added for building using a GNU toolchain on Win32,
11589         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
11590
11591         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
11592         * config.h.win32: Changes for gcc.
11593         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
11594         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
11595         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
11596         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
11597         Protect shl stuff unavaiilable with mingw32 headers.
11598         * gdk/win32/gdkevents.c: Fix typo.
11599         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
11600         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
11601         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
11602         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
11603         the mingw32 headers.
11604         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
11605         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
11606         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
11607         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
11608         Test for NATIVE_WIN32, not _MSC_VER.
11609         * gtk/gtkmain.c: No use warning about developer version on Win32,
11610         there aren't any non-developer versions anyhow.
11611         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
11612         * gtk/makefile.msc: Use pthread from another directory. Minor other
11613         changes. 
11614
11615 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11616
11617         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11618           default filter from the list
11619
11620 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
11621
11622         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
11623          when gtk_widget_grab_default() is called for a widget that
11624          is not within a GtkWindow.
11625
11626 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
11627
11628         * docs/gtk_tut.sgml, examples/clist.c: use a
11629           scrolled window in the clist example. Minor
11630           tutorial fixes.
11631
11632 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
11633
11634         * docs/gtk_tut.sgml: Style check from David King
11635           <dking@youvegotmail.net>
11636
11637 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
11638
11639         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
11640         compile with unknown value of GDK_WINDOWING
11641
11642 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
11643
11644         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
11645         after the rule is fired.
11646         (install-exec-local): Install gdkconfig.h only if the contents are
11647         different from the currently installed gdkconfig.h.
11648
11649 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
11650
11651         * gdk/Makefile.am (configexecincludedir): Rename from 
11652         configincludedir so that gdkconfig.h will be installed 
11653         as part of `make install-exec'. 
11654
11655 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
11656
11657         * acinclude.m4
11658         * config.guess
11659         * config.sub
11660         * ltconfig
11661         * ltmain.sh: upgrade to libtool 1.2f
11662
11663         * autogen.sh: libtool is not required to autogen gtk+
11664
11665         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
11666         needed)
11667
11668 1999-03-18  Tor Lillqvist  <tml@iki.fi>
11669
11670         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
11671         declaring gdk variables exported/imported from the DLL. New image
11672         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
11673         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
11674         GDK_DRAG_PROTO_OLE2.
11675
11676         * gdk/gdk.h: Merge in Win32 version: Two new functions,
11677         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
11678         declared only for the Win32 version, but could be in the X11
11679         version as well. (Needed for a Xlib-less gdk_imlib.)
11680         gdk_color_hash should have only one parameter. Declare
11681         gdk_threads_mutex with GDKVAR.
11682         
11683         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
11684         just one parameter.
11685
11686         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
11687         per pixel, not bits.
11688
11689         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
11690         Fetch bpp (which means bits-per-pixel here) from another place on
11691         Win32. Accept also depth==32 (which we might get on Win32) with
11692         bpp==32.
11693
11694         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
11695         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
11696         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
11697         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
11698         in the backend-dependent directory, not in the common gdk
11699         directory.
11700
11701         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
11702         headers.
11703
11704 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
11705
11706         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
11707         want to use the Gtk+ devel version (which is true, and yes - even i am
11708         currently working with the 1.2.x branch). so everyone reading this, you
11709         probably want to issue
11710         cvs checkout -r glib-1-2 glib
11711         and
11712         cvs checkout -r gtk-1-2 gtk+
11713         as your next two comands.
11714
11715 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
11716
11717         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
11718         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
11719
11720         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
11721         file. strongly deprecated the GTK_HAVE_* macros, we provide
11722         GTK_CHECK_VERSION() for people that need to check for certain
11723         Gtk+ versions.
11724
11725         * gtk/gtkcompat.h: removed this from CVS.
11726         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
11727         idea right from the start, it just didn't seem like that back then.
11728
11729 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
11730
11731         * merges from gtk-1-2:
11732
11733 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
11734
11735         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
11736         item factory class has been created.
11737         (gtk_item_factory_parse_rc): likewise.
11738
11739         * gtk/gtkmenu.c:
11740         keep proper references for old_active_menu_item.
11741         (gtk_menu_reparent): unset the usize of the new parent,
11742         so the menu can sanely be size requested and we don't get nasty screen
11743         artefacts upon next reparentation.
11744         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
11745         enter notify. only synthesize enter notifies if the pointer really is
11746         inside the event window.
11747         (gtk_menu_popdown): use gtk_menu_shell_deselect().
11748         (gtk_menu_popup): move the background setting stuff into
11749         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
11750
11751         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
11752         gtk_menu_shell_select_item() to select the new item.
11753         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
11754         do the right thing for deselection as well.
11755
11756 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
11757
11758         * gtk/gtkwidget.[hc]:
11759         (gtk_widget_accelerators_locked): return whether a widget's accelerators
11760         are locked.
11761
11762         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
11763         existing accelerators if the widget's accelerators are locked.
11764
11765 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
11766
11767         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
11768
11769         * gtk/gtkmenu.c: truely forward key press and key release events to
11770         the menu widget from the toplevel or tearoff window. we can't simply
11771         connect to that, we need to stop further processing of the events as
11772         well.
11773
11774 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
11775
11776         * gtk/gtkmenu.c:
11777         (gtk_menu_key_press): pass event->keyval, event->state to
11778         gtk_accelerator_valid, instead of event->keyval twice.
11779         refuse to install single letter accelerators for menus that use
11780         single letter shortcuts.
11781
11782         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
11783         gtk_menu_ensure_uline_accel_group().
11784
11785         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
11786         which will always return an uline accel group, made
11787         gtk_menu_get_uline_accel_group() return NULL if the group isn't
11788         yet created.
11789
11790 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
11791
11792         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
11793
11794         * gtk/gtkclist.c (gtk_clist_column_title_passive):
11795         Leave button sensitive, trap  button_press, button_release,
11796         motion_notify, enter_notify and leave_notify events instead.
11797         (gtk_clist_column_title_active): disconnect event handler.
11798         (gtk_clist_drag_data_get): fixed memory leak. Reported by
11799         Guillaume Laurent <glaurent@worldnet.fr>
11800
11801 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
11802
11803         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
11804         width/height mixups.
11805
11806         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
11807         if needed.
11808
11809 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
11810
11811         * gtk/testgtk.c (create_item_factory): unref the item factory after
11812         window's destruction.
11813
11814         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
11815         count on the menu shell around the menu item's activation, since the
11816         signal emission may cause menu shell destruction.
11817
11818         * gtk/gtkitemfactory.c:
11819         the previous code leaked one accel group per menu. we use
11820         gtk_menu_get_uline_accel_group() now to fix that, and with that
11821         also create the underline accelerator group of the menus only if
11822         required (i.e. an underline accelerator has been specified).
11823         (gtk_item_factory_construct):
11824         (gtk_item_factory_create_item): removed code that would create an
11825         extra accel group for the menu (and leak references).
11826         (gtk_item_factory_create_item): adapted the underline accelerator
11827         installation code to properly feature gtk_menu_get_uline_accel_group().
11828
11829         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
11830         menu->accel_group, this may return NULL if the accelerator group
11831         hasn't been set yet.
11832         added gtk_menu_get_uline_accel_group() to retrive the underline
11833         accelerator group of the menu, this will be created on demand
11834         and proper care is taken about its reference count.
11835
11836         * gtk/gtkitemfactory.h:
11837         * gtk/gtkitemfactory.c:
11838         dumped the approach of keeping a widgets by action list on the
11839         factory since the factory<->widget destroy negotiation didn't work
11840         and would be hard to get going at all. instead we keep a list of
11841         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
11842         persistant throughout a program's life time).
11843         also, i removed the static const gchar *key_* variables, and made
11844         them inline strings (they weren't actually used anyways).
11845         (gtk_item_factory_add_item): update ifactory->items.
11846         (gtk_item_factory_destroy): destroy ifactory->items (and remove
11847         the item factory pointer from the remaining ifactory widgets).
11848         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
11849         list to find the widget.
11850         (gtk_item_factory_get_item): new function that works around
11851         gtk_item_factory_get_widget() limitations, this function will only
11852         return menu items, even for <Branch> entries.
11853
11854 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
11855
11856         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
11857         font hash table, if we have a GdkFontPrivate entry for this font
11858         already, simply increment its reference count, provided by Olaf Dietsche
11859         <olaf.dietsche+list.gtk@netcologne.de>.
11860
11861         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
11862         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
11863
11864 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
11865
11866         * gtk/gtkcontainer.c:
11867         (gtk_container_add_with_args):
11868         (gtk_container_addv):
11869         (gtk_container_add): before adding a child to a conatiner, make sure
11870         it is (default) constructed, this is neccessary because under certain
11871         circumstances the child will get relized and mapped immediatedly, in
11872         which case it has to be constructed already.
11873
11874 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
11875
11876         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
11877         values > 1 as TRUE also.
11878
11879 1999-03-16  Tor Lillqvist  <tml@iki.fi>
11880
11881         * README.win32: New file.
11882                 
11883         * configure.in: Check for lstat.
11884
11885         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
11886         completeness.
11887
11888         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
11889
11890         * gtk/gtk.def: Removed CRs.
11891
11892         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
11893         ..\gdk\win32).
11894
11895         * gdk/win32/makefile.msc: Correct upwards relative paths.
11896         
11897 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
11898
11899         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
11900           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
11901           it was connecting a void function to expose_event and the int
11902           returning function to the draw signal
11903
11904 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
11905
11906         * configure.in:
11907         Use correct path to libgmodule.la when ref'ing uninstalled copy
11908         of glib.  (Already in stable branch, Bug #417)
11909
11910 1999-03-15  Tor Lillqvist  <tml@iki.fi>
11911
11912         Win32 merge and general portability stuff:
11913                 
11914         * acconfig.h,configure.in: Check for <sys/time.h>.
11915
11916         * gdk/win32: New directory (actually, been there for a while).
11917         
11918         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
11919         NATIVE_WIN32, and use these. Always case fold on Win32. No
11920         backslashed escapes on native Win32.
11921
11922         * gtk/{gtk.def,makefile.msc}: New files.
11923
11924         * gtk/Makefile.am: Add above new files.
11925         
11926         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
11927         instead of <strings.h>.
11928
11929         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
11930         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
11931         <unistd.h> appropriately.
11932
11933         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
11934         Use ABS() (from <glib.h>) instead of abs().
11935         
11936         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
11937         of gtk (and thus glib) headers, so that WIN32 will be
11938         defined. With MS C, include <direct.h> for mkdir prototype.
11939
11940         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
11941         some casts, needed by MS C.
11942
11943         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
11944         implemented).
11945
11946         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
11947         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
11948         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
11949
11950         * gtk/gtkmain.h: Mark variables for export/import on Win32.
11951                 
11952         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
11953         the event is not a hint, or its window is not the slider. Needed
11954         on Win32, at least.
11955
11956         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
11957         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
11958         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
11959         a subdirectory of the Windows directory as gtk system
11960         configuration directory.
11961
11962         * gtk/gtkselection.c: No chunks on Win32.
11963
11964         * gtk/gtksocket.c: Not implemented on Win32.
11965
11966         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
11967
11968         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
11969
11970         * gtk/maketypes.awk: Declare variables with a macro that expands to
11971         necessary export/import magic in the case of Win32.
11972                 
11973         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
11974
11975 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
11976
11977         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
11978         since those were meant only for gdki18n.h.  
11979         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
11980         for widechar tests.
11981         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
11982
11983 1999-03-13  Tor Lillqvist  <tml@iki.fi>
11984
11985         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
11986         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
11987
11988         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
11989         installed) to CFLAGS.
11990
11991         * gdk/Makefile.am: Add rules for gdkconfig.h.
11992
11993         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
11994         APIs.
11995
11996         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
11997         gdkx.h anyway when compiling for X11.
11998         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
11999         general): Merge in Win32 version.
12000         
12001         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
12002         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
12003         expansion (if we don't have HAVE_PWD_H), allow for drive
12004         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
12005         included code from Craig Setera's port to Win32 (the one that uses
12006         X11, and the cygwin dll), even if it probably will be abandoned.
12007
12008         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
12009         the user entered one herself.  This way one can complete *.h and
12010         don't get matches on any .help files, for instance.
12011         
12012 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
12013
12014         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
12015         font hash table, if we have a GdkFontPrivate entry for this font
12016         already, simply increment its reference count, provided by Olaf Dietsche
12017         <olaf.dietsche+list.gtk@netcologne.de>.
12018
12019         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
12020         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
12021
12022 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
12023
12024         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
12025         the number of calls to gdk_draw_point() (and thus to X) by
12026         clipping the points by hand.
12027
12028         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
12029         the clip parameter.
12030         (gtk_handle_box_paint): Only paint the handle if the expose area
12031         intersects it.
12032
12033 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12034
12035         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
12036
12037 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
12038
12039         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
12040         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
12041
12042 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
12043
12044         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
12045          textmode (O_TEXT) for OS/2 version.
12046
12047 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
12048
12049         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
12050         GtkSpinButton, "input" and "output", to make the output more flexible.
12051         The user has to provide a mapping between adjustment->value and the
12052         output string (and vice versa, if the spin button is editable). 
12053         See testgtk for examples.
12054
12055 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
12056
12057         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
12058         new one.
12059         
12060         * configure.in: set gtk+ version to 1.3.0.