]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
add test stuff for CellRendererToggle
[~andy/gtk] / ChangeLog.pre-2-8
1 2001-01-15  Havoc Pennington  <hp@pobox.com>
2
3         * tests/testtreeview.c: add test stuff for CellRendererToggle
4
5         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
6         accessor
7
8         * gtk/gtkcellrenderertoggle.c: distinguish different event types,
9         only toggle on button press (would do release like GtkButton, but
10         we'd need implicit grab code for treeview cells)
11
12 2001-01-16  Tor Lillqvist  <tml@iki.fi>
13
14         * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
15
16         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
17         GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
18
19         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
20         to g_{locale,filename}_{to,from}_utf8 to match current API.
21
22         * gtk/makefile.msc.in (gtk_OBJECTS)
23         * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
24
25         * gtk/gtk.def: Update.
26
27 2001-01-15  Tor Lillqvist  <tml@iki.fi>
28
29         * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
30         implementaion that more closely mimics the events that an X server
31         would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
32         GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
33         with nested preview widgets, for instance, more responsive when
34         you move the mouse quickly into them.
35         (find_window_for_pointer_event): Make it actually compile.
36         (gdk_event_translate): Set send_event to the value of
37         InSendMessage (). This doesn't really mean the same as X11's
38         send_event flag, but is close enough, says jpe@archaeopteryx.com
39
40 2001-01-15  Alexander Larsson  <alexl@redhat.com>
41
42         * gdk/linux-fb/gdkdnd-fb.c:
43         Implemented drag and drop.
44         Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
45         when it tries to free and then copy the same event (info->last_event).
46         I am not sure about why this happens, but will continue looking.
47
48 2001-01-15  Alexander Larsson  <alexl@redhat.com>
49
50         * gdk/linux-fb/gdkwindow-fb.c:
51         Use gdk_window_invalidate_rect instead of
52         gdk_window_invalidate_rect_clear to minimise flashing.
53         When hiding windows you need to clear the root window though.
54
55 2001-01-15  Alexander Larsson  <alexl@redhat.com>
56
57         * gdk/linux-fb/gdkdrawable-fb2.c:
58         For optization, add an full_shapes argument to gdk_fb_clip_region.
59         If this is false, only the cliprects of the shapes are used.
60
61         * gdk/linux-fb/gdkprivate-fb.h:
62         Export gdk_fb_window_peek_shape.
63         Add full_shapes to gdk_fb_clip_region.
64
65         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
66         When moving a window, don't clear everything under the it, just the
67         root window. Makes stuff faster and flash less.
68         (gdk_window_get_pointer): Correctly handle offseted shapes, due to
69         USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
70         offset of the shape.
71         
72
73 2001-01-12  Havoc Pennington  <hp@redhat.com>
74
75         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the 
76         current invalid region, fixes redraw bug while scrolling the 
77         text widget
78
79         * gtk/gtktextview.c, gtk/gtktextview.h:
80         Rearrange the scrolling/validation/etc. code in a major way, 
81         so it seems to make sense to me. Probably isn't genuinely that
82         much better, but...
83
84         * gtk/gtktexttag.c (set_fg_color): fix name of property used for
85         notifies
86
87         * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
88
89 2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
90
91         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
92         Hide mouse pointer while rotation. Show it afterwards.
93
94 2001-01-12  Alexander Larsson  <alexl@redhat.com>
95
96         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
97         windows in consideration when generating clip region.
98
99         * gdk/linux-fb/gdkfb.h:
100         Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
101
102         * gdk/linux-fb/gdkprivate-fb.h:
103         Add shape to GdkWindowFBDatat.
104         exported gdk_fb_window_get_abs_shape().
105         removed gdk_fb_draw_lines declaration.
106
107         * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
108         Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
109         send focus changes when there is a grabbed window.
110         (gdk_window_get_pointer): Handle shaped windows.
111         (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
112         (gdk_fb_window_peek_shape): Returns the shape for a window,
113         handles GDK_FB_USE_CHILD_SHAPE.
114         (gdk_fb_window_get_abs_shape): Returns the shape of the window,
115         offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
116         (gdk_window_shape_combine_mask): Implement.
117
118         * gtk/gtkwindow-decorate.c:
119         HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
120         setting the shape of a window makes the window transparent.
121
122 2001-01-11  Havoc Pennington  <hp@redhat.com>
123
124         * gtk/gtktreemodelsimple.h: Oops, broke some macros
125
126 2001-01-10  Havoc Pennington  <hp@redhat.com>
127
128         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
129         add this function, bug 40251
130
131         * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
132         of type macro   
133
134 2001-01-11  Alexander Larsson  <alexl@redhat.com>
135
136         * acconfig.h:
137         Added ENABLE_SHADOW_FB
138
139         * configure.in:
140         Added --disable-shadowfb
141
142         * gdk/linux-fb/gdkcursor-fb.c:
143         Update shadowfb when updating cursor
144
145         * gdk/linux-fb/gdkdrawable-fb2.c:
146         Added wrappers for shadowfb that calls  the normal drawable
147         methods, but calls gdk_shadow_fb_update(bounding box) when
148         GdkWindows are drawed to.
149         Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
150         which also returns the bounding box.
151
152         * gdk/linux-fb/gdkfb.h:
153         Added GdkFBAngle type and gdk_fb_set_rotation declaration.
154
155         * gdk/linux-fb/gdkgeometry-fb.c:
156         Update shadowfb when scrolling window.
157
158         * gdk/linux-fb/gdkglobals-fb.c:
159         Add _gdk_fb_screen_angle.
160         
161         * gdk/linux-fb/gdkkeyboard-fb.c:
162         Test code for screen rotation. Shift-F2 in the xlate driver
163         rotates the screen.
164
165         * gdk/linux-fb/gdkmain-fb.c:
166         Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
167
168         * gdk/linux-fb/gdkmouse-fb.c:
169         Use fb_width/height instead of modeinfo.xres/yres.
170
171         * gdk/linux-fb/gdkprivate-fb.h:
172         Added fb_men, fb_width, fb_height & fb_stride. When using
173         shadow fb these can differ from the framebuffer stuff.
174         Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
175         gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
176         _gdk_fb_screen_angle. Removed CM, RP.
177
178         * gdk/linux-fb/gdkrender-fb.c:
179         Added code for shadowfb handling and screen rotation using
180         shadowfb.
181
182         * gdk/linux-fb/gdkwindow-fb.c:
183         Use fb_mem, fb_stride, fb_width, fb_height.
184         Added recompute_rowstride to reset the rowstride of all windows.
185         Added gdk_fb_recompute_all() which recomputes rootwindow size,
186         window abs positions and window rowstrides. Usefull when the
187         rotation has changed.
188
189 Thu Jan 11 13:16:50 GMT 2001  Tony Gale <gale@gtk.org>
190
191         * docs/faq/gtk-faq.sgml: update to make web site updating easier
192
193 2001-01-10  Havoc Pennington  <hp@redhat.com>
194
195         * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
196         where sibling == iter
197         (gtk_tree_store_insert_after): handle sibling == iter
198         (gtk_tree_store_prepend): remove stamp checks
199         (gtk_tree_store_insert_before): ditto
200         (gtk_tree_store_append): ditto
201         (gtk_tree_store_get_path): ditto
202         (gtk_tree_store_get_value): ditto
203         (gtk_tree_store_iter_has_child): ditto
204         (gtk_tree_store_iter_n_children): ditto
205         (gtk_tree_store_iter_nth_child): ditto
206         (gtk_tree_store_insert_after): ditto
207         (gtk_tree_store_is_ancestor): ditto
208         (gtk_tree_store_iter_depth): ditto
209         (gtk_tree_store_insert_before): assert that sibling's parent is
210         the same as the passed-in parent
211         (gtk_tree_store_insert_after): assert that sibling's parent is
212         the same as the passed-in parent
213
214         
215         * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience 
216         function to get the first iterator in a model
217         
218         * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
219         conventionally the "root" in this sense is just NULL afaict.
220
221         * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
222         where sibling == iter
223         (gtk_list_store_insert_after): handle case where sibling == iter
224
225         * tests/testtreeview.c (run_automated_tests): fairly lame basic
226         automated tests for ListStore, TreeStore
227
228         * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
229         (gtk_list_store_insert): update tail pointer, and fix it to work
230         (gtk_list_store_insert_before): update tail pointer, and fix it to work
231         (gtk_list_store_append): use tail to be faster
232         (gtk_list_store_prepend): fix it, update tail pointer
233         (gtk_list_store_insert_after): fix it, update tail pointer
234
235         * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for 
236         the list
237
238 2001-01-09  Havoc Pennington  <hp@redhat.com>
239
240         * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
241         is NULL due to a pending resize
242
243         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
244         column width to values less than 1
245
246         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
247         width to be between min/max width, and still set the width 
248         even if autosize is turned on, so the tree view can use this 
249         function in order to autosize.
250         (gtk_tree_view_column_init): set initial width to 1 not 0
251
252         * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
253         setter function to modify column width, so we get notification
254         (gtk_tree_view_insert_iter_height): ditto
255         (gtk_tree_view_calc_size): ditto
256         (gtk_tree_view_check_dirty): ditto
257
258         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
259         properties to change all the interesting attributes of the tree
260         view column.
261         (gtk_tree_view_column_set_header_clickable): rename set_clickable
262         (gtk_tree_view_column_get_clickable): add
263         (gtk_tree_view_column_set_cell_renderer): don't unset the current
264         attributes; assume a cell renderer with equivalent object
265         properties has been swapped in. Do g_object_notify().
266         (gtk_tree_view_column_set_visible): g_object_notify
267         (gtk_tree_view_column_get_sizing): rename from get_col_type
268         (gtk_tree_view_column_set_sizing): g_object_notify
269         (gtk_tree_view_column_set_width): add g_object_notify
270         (gtk_tree_view_column_set_min_width): ditto
271         (gtk_tree_view_column_set_max_width): ditto
272         (gtk_tree_view_column_set_title): ditto
273         (gtk_tree_view_column_set_clickable): ditto
274         (gtk_tree_view_column_set_widget): ditto
275         (gtk_tree_view_column_set_justification): ditto
276
277 2001-01-09  Havoc Pennington  <hp@redhat.com>
278
279         * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
280         there are no rows in the model
281
282         * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
283         NULL, then return the start of the list
284
285         * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
286         if we can't get any rows from an empty model 
287
288         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
289         extraneous * after function pointer typedef usage
290
291         * Makefile.am: don't specify full path to cp and rm
292
293         * gtk/gtkcellrenderertextpixbuf.c
294         (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
295         NULL before dereferencing, fixes a segfault that happened from
296         time to time
297
298         * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
299         use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
300         and reindent the function
301         (gtk_cell_renderer_pixbuf_get_size): indentation
302
303         * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
304         we quit it
305         (gtk_dialog_add_buttons_valist): add g_return_if_fail
306         (gtk_dialog_set_default_response): New function, to set default
307         button
308         (gtk_dialog_set_response_sensitive): New function, to set 
309         sensitivity of buttons
310
311         * gtk/gtkcellrendererpixbuf.c
312         (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
313         (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
314
315         * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
316         handle any G_TYPE_OBJECT subclass, not just the base class, and 
317         also boxed types.
318         (_gtk_tree_data_list_value_to_node): ditto
319
320         * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if 
321         --gtk-debug=tree
322
323         * gtk/gtkmain.c: add GTK_DEBUG_TREE
324
325         * gtk/gtkdebug.h: add GTK_DEBUG_TREE
326
327 2001-01-09  Tor Lillqvist  <tml@iki.fi>
328
329         * gdk/win32/gdkevents-win32.c: Implement better mouse
330         capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
331         (find_window_for_pointer_event): New function.
332         (gdk_event_translate): Use it when handling mouse events.
333
334 2001-01-09  Alexander Larsson  <alla@lysator.liu.se>
335
336         * configure.in:
337         Added --with-included-loaders option
338
339         * gdk-pixbuf/Makefile.am:
340         * gdk-pixbuf/gdk-pixbuf-io.c:
341         Add support for including selected gdk-pixbuf loaders only.
342
343         * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
344         gtk_window_set_has_frame):
345         Added inline documentation.
346
347         * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
348         * docs/reference/gdk/tmpl/windows.sgml:
349         Added inline documentation.
350
351 Mon Jan  8 14:42:06 2001  Jonathan Blandford  <jrb@redhat.com>
352
353         * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
354         realizing buttons that have already been realized.
355
356 Mon Jan  8 14:06:29 2001  Jonathan Blandford  <jrb@redhat.com>
357
358         * tests/testtreeview.c (main): Show menu items before adding to
359         option menu.
360
361         * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
362         around if we kill them.
363
364         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
365         Return if we pass in a NULL model.
366
367 2001-01-08  Havoc Pennington  <hp@redhat.com>
368
369         * tests/testtreeview.c: hack on this some
370
371         * gtk/gtktreestore.c (gtk_tree_store_setv): rename
372         gtk_tree_store_set_valist, v is for arrays, valist for varargs
373         list
374         (gtk_tree_store_getv): rename gtk_tree_store_get_valist
375
376         * gtk/gtkliststore.h: Add varargs set() and get() convenience
377         functions
378
379 2001-01-08  Alexander Larsson  <alexl@redhat.com>
380
381         * gtk/gtkwindow-decorate.[hc]:
382         * gtk/Makefile.am:
383         New files. Contains an implementation of a minimal WM for
384         linux-fb.
385
386         * gtk/gtkwindow.h:
387         Add the possibility for GtkWindows to specify a frame. This
388         is used for the window decoration code, but could concievably
389         be used for X programs too (xmms style windows).
390         GtkWindow->frame is the toplevel window if the window is framed.
391         The signal frame_event gets all events that are targeted to
392         GtkWindow->frame.
393         (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
394         
395         * gtk/gtkwindow.c:
396         Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
397         Call out to gtkwindow-decorate.c for WM support in linx-fb.
398
399 2001-01-08  Alexander Larsson  <alexl@redhat.com>
400
401         * docs/README.linux-fb:
402         Correct filename ~/.pangoft2_aliases
403
404         * gdk/gdkwindow.h:
405         Added new function gdk_window_get_decorations.
406
407         * gdk/linux-fb/gdkfb.h:
408         Removed _gdk_window_get_decorations declaration.
409         Renamed _gdk_window_set_child_handler to
410         gdk_fb_window_set_child_handler.
411
412         * gdk/linux-fb/gdkwindow-fb.c:
413         Renamed _gdk_window_set_child_handler to
414         gdk_fb_window_set_child_handler.
415
416         * gdk/x11/gdkwindow-x11.c:
417         New function gdk_window_get_mwm_hints().
418         Implemented gdk_window_get_decorations.
419
420         * docs/reference/gdk/tmpl/windows.sgml:
421         * docs/reference/gdk/gdk-sections.txt:
422         Added gdk_window_get_decorations docs.
423         
424 2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
425
426         * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
427         gdk_fb_window_find_focus, gdk_fb_send_focus_change,
428         gdk_fb_window_send_crossing_events):
429         Possibly send focus events when the mouse moves from one
430         window to another.
431
432 2001-01-07  Tor Lillqvist  <tml@iki.fi>
433
434         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
435         gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
436         to match current API.
437
438         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
439         environment variable is set, don't call g_error when on a
440         palettized (PseudoColor) display. Some people want to use GTK+ 
441         in 256-colour mode even though works only partially.
442
443         * gdk/gdk.def
444         * gtk/gtk.def
445         * gtk/makefile.mingw.in: Update.
446
447 2001-01-05  Havoc Pennington  <hp@redhat.com>
448
449         * tests/testtreeview.c: hack on this a bit
450
451         * gtk/gtktextlayout.c (gtk_text_layout_class_init):
452         s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
453
454         * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS): 
455         was spelled incorrectly
456         (GTK_IS_TREE_MODEL_SIMPLE): ditto
457
458         * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
459         from gtk_tree_view_set_headers_active   
460
461         * gtk/gtktexttag.c:
462         (gtk_text_tag_get_property): handle PROP_DIRECTION
463         (gtk_text_tag_set_property): g_object_notify when we toggle the _set
464         properties, bug 40235
465
466         * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
467         forward_to_line_end
468
469 Fri Jan  5 16:16:29 2001  Owen Taylor  <otaylor@redhat.com>
470
471         * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
472         modules/input/gtkimcontextxim.c: Adapt to new prototypes
473         for unicode,locale,filename conversion functions.
474
475 2001-01-05  Havoc Pennington  <hp@redhat.com>
476
477         * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
478         broken if called on the first position in the buffer.
479
480         * gtk/gtktextlayout.c (line_display_index_to_iter): fix
481         forward_to_delimiters to be called only if we aren't already at
482         the delimiters.
483
484 2001-01-05  Havoc Pennington  <hp@redhat.com>
485
486         * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
487
488 2001-01-05  Alexander Larsson  <alexl@redhat.com>
489
490         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
491         colormap in here. Sync from X port.
492         (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
493         Sync from X port.
494         (gdk_fb_clip_region): Comment out g_warning about empty clip region.
495         This happens now and then, and i don't think it is a bug.
496         (gdk_fb_draw_polygon): Correctly add extra point if startpoint
497         != endpoint.
498         (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
499         GDK_LINE_SOLID.
500
501         * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
502         some of the fields filled in at least.
503
504         * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
505         miLineArcD is no more, remove it from the function definition.
506
507 2001-01-04  Havoc Pennington  <hp@redhat.com>
508
509         * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
510         this
511
512         * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
513         user_data instead of tree_node
514
515         * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
516         TREE_VIEW_COLUMN_SIZE
517
518         * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
519         "size" field to "width" finishes bug 40061
520
521         * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
522         for bitfields, bug 40268
523
524 2001-01-04  Havoc Pennington  <hp@redhat.com>
525
526         Rename some stuff:
527         
528         s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
529
530         s/GtkModelSimple/GtkTreeModelSimple/g;
531         s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
532         s/gtk_model_simple/gtk_tree_model_simple/g;
533         s/gtkmodelsimple/gtktreemodelsimple/g;
534
535         s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
536
537         s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
538         s/column_set_col_type/column_set_sizing/g;
539
540         s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
541         s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
542
543         s/GtkCellRendererType/GtkCellRendererState/g;
544         
545         * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
546         (gtk_cell_renderer_toggle_class_init): change "state" property to
547         "active", to match GtkToggleButton
548         (gtk_cell_renderer_toggle_get_active): new function, bug
549         40269
550         (gtk_cell_renderer_toggle_set_active): new function
551         (gtk_cell_renderer_toggle_set_property): route changes to toggle
552         state through gtk_cell_renderer_set_active
553
554 Thu Jan  4 15:46:18 2001  Jonathan Blandford  <jrb@redhat.com>
555
556         * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
557         temporarily until they work again.  Brought up to date with
558         changes in the model.
559         * gtk/gtkmodelsimple.h: Brought up to date with changes in the
560         model.
561
562 2001-01-04  Havoc Pennington  <hp@redhat.com>
563
564         * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
565         equal to the line length, then position iterator before paragraph 
566         separators. Fixes crash reported by Mikael Hermansson when
567         pressing left arrow from the start of a line.   
568
569         * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
570         about byte indexes off the end
571         (iter_set_from_char_offset): add g_error about char offsets
572         off the end
573
574 2001-01-03  Havoc Pennington  <hp@redhat.com>
575
576         * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
577
578         * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use 
579         of private functions; remove inclusion of private headers.
580
581         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this 
582         function, so we don't need private functions in gtktextdisplay.c
583
584         * gtk/gtktextiterprivate.h: underscore-ification
585
586         * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
587         to instead say "only useful to implement widgets"
588
589         * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
590         GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
591         GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
592
593         * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
594         This function was completely broken
595
596         * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
597
598         * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
599
600         * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
601
602         * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
603
604         * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
605
606         * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
607
608         * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
609         gtk_paint_layout
610
611         * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
612         gtk_paint_layout
613
614         * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
615         Progress on bug 40103. Add draw_layout to draw a PangoLayout.
616         (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
617         which were not implemented.     
618
619         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
620         insert_pixbuf signal. Rename delete_text to delete_range since it
621         also deletes pixbufs and child anchors. This almost closes bug
622         40245 (still need to deal with child anchors)
623
624         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
625         insert_pixbuf, change signal names as appropriate, change types of
626         signals taking marks/tags to have the specific type, not just
627         G_TYPE_OBJECT
628         
629         * gtk/gtkmain.c (gtk_get_current_event_state): Add this function; 
630         closes bug 40051
631
632         * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
633         unnecessary remove_contents() call
634         (gtk_option_menu_class_init): add a "changed" signal, closes
635         bug 40039
636         (gtk_option_menu_update_contents): emit "changed" if the 
637         active menu item changes
638
639         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
640         cast to GtkObject, reported by Jonas Borgstrom
641         (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
642         we can't do stuff with side effects in finalize. Instead, spew a
643         warning if the loader isn't closed.
644
645         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
646         colormap in here, non-X ports probably need to sync to this change
647
648         * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove 
649         assertion that colormap != NULL, you can set the colormap to NULL
650         if you like.
651         
652         * Makefile.am: remove gtk-config-2.0
653
654         * configure.in: Use pkg-config to locate GLib. Remove
655         separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
656         and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
657         Use pkg-config to locate Pango. Output correct Pango libs to
658         gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
659
660         * Makefile.am (pkgconfig_DATA): install only target-specific pc
661         files
662         (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
663         X11 pc files
664
665         * gtk+-2.0.pc.in (Requires): require the GDK for the current target
666         unref from here
667
668 2001-01-03  Alexander Larsson  <alla@lysator.liu.se>
669
670         * configure.in:
671         Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
672
673 Tue Jan  2 16:23:05 2001  Owen Taylor  <otaylor@redhat.com>
674
675         * gtk/gtktextlayout.c
676         (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
677         variable when moving back onto a single line.
678
679 2001-01-01  Havoc Pennington  <hp@redhat.com>
680
681         * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
682
683         * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
684
685         * configure.in (LIBTOOL_EXPORT_OPTIONS): define
686         LIBTOOL_EXPORT_OPTIONS with options to control symbol export
687
688 2001-01-01  Havoc Pennington  <hp@redhat.com>
689
690         * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
691
692         * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for 
693         GtkTextAttributes
694
695         * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug 
696         #40246
697         (gtk_text_attributes_copy_values): rename from 
698         gtk_text_attributes_copy
699         (gtk_text_attributes_copy): a more standard GTK copy function, 
700         which returns a new object
701
702 2001-01-01  Havoc Pennington  <hp@redhat.com>
703
704         * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
705         
706         * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
707         don't fill in tree_view->priv->selection, kind of an unexpected
708         side effect
709
710         * gtk/gtkcellrenderertext.c: Remove definition of _ and include
711         gtkintl.h
712         
713         * gtk/gtkcellrenderer.c: Remove definition of _ and include
714         gtkintl.h
715         (gtk_cell_renderer_get_property): remove calls to g_value_init
716
717         * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
718         gtkintl.h
719
720         * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
721         and include gtkintl.h
722         (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
723         property names
724
725         * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
726         GtkTreeSelection
727         (_gtk_tree_selection_new_from_with_view): rename, return
728         GtkTreeSelection
729         (_gtk_tree_selection_set_tree_view): rename with uscore
730         (gtk_tree_selection_get_selected): fill in the "model" out param
731         first, so it gets filled in even if we return at the top of the 
732         function
733         (gtk_tree_selection_real_select_all): add a comment and an else{}
734         to clarify this a bit
735         (gtk_tree_selection_real_unselect_all): add the same else{}
736
737         * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
738         set_tree_view to have underscore prefixes, move them to the
739         private header, fix return type of new_with_tree_view
740         (struct _GtkTreeSelection): mark struct
741         fields private  
742
743         * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
744         GtkTreeModelFlags, not a guint
745         (gtk_tree_path_prev): return gboolean not gint
746         (gtk_tree_path_up): return gboolean not gint
747
748         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
749         return GtkTreeModelFlags, not a guint
750
751         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
752         that child model is non-null before unrefing it
753         (g_value_int_compare_func): make this a qsort compare func, not 
754         a boolean predicate
755
756         * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
757         (add -umn to the end), and mark it unimplemented
758         (gtk_tree_model_sort_resort): remove, this wasn't implemented, and 
759         I don't see what it's for - doesn't the model always sort itself?
760         (gtk_tree_model_sort_set_compare): this had the wrong signature
761
762         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
763         Fix the docs to say that it destructively replaces existing
764         attributes (previously said that it added attributes).
765         (gtk_tree_view_column_set_visible): canonicalize bool before
766         equality testing. Also, check for realization before
767         hiding/showing the tree_column->window; if this window could exist
768         before realization, then it's busted and needs fixing, we can't 
769         create GDK resources pre-realization. Also, remove
770         superfluous queue_resize(), since set_size() does that for us.
771         (gtk_tree_view_column_set_col_type): check realization before 
772         using tree_column->window
773
774         * gtk/gtktreedatalist.c: fix filename in copyright notice
775
776 2000-12-31  Havoc Pennington  <hp@pobox.com>
777
778         * gtk/gtktextview.c: Rearrange all the
779         scroll-while-dragging-or-selecting code to be different, not
780         necessarily better. ;-)
781         (gtk_text_view_scroll_to_mark): Change this
782         function to take within_margin as a fraction instead of a pixel
783         value, and to take alignment arguments (indicating where to align 
784         the mark inside the visible area)
785         
786         * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
787         to GtkObject
788
789         * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
790         behavior so that offsets past the end of the line are not 
791         allowed, and an offset equal to the line length moves the iterator
792         to the next line
793         (gtk_text_iter_set_line_index): make parallel change
794         (gtk_text_iter_get_bytes_in_line): add this function
795         
796         * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
797         of byte indexes off the end of the line; byte index at the end of
798         the line now returns FALSE and doesn't fill in the requested
799         values, byte index past the end of the line is an error.  Also,
800         don't allow -1 offset anymore, since its meaning is unclear.
801
802         This change exposes some bug in visual cursor motion, where we
803         end up with a huge invalid byte index; needs fixing. Symptom of 
804         bug is a crash when you hit up arrow.
805         
806         (_gtk_text_line_char_locate): match the change to byte_locate
807
808         * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
809         from start of line properly. fixes bug reported by Mikael
810         Hermansson where backspace would delete all text before the
811         cursor.
812
813 2000-12-30  Tor Lillqvist  <tml@iki.fi>
814
815         * gdk/win32/gdkwindow-win32.c
816         (gdk_window_impl_win32_get_visible_region): New function, as in
817         the X11 backend.
818         (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
819         instead of duplicating the same code here.
820
821         * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
822         GDK_COLORMAP macro.
823
824         * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
825         destroy function.
826         (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
827         access that.
828
829         * gtk/gtk.def: Update.
830
831         * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
832
833 2000-12-30  Havoc Pennington  <hp@pobox.com>
834
835         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
836         colormap on input only windows, to avoid special cases all over
837         the code for these windows.
838
839 2000-12-26  Tor Lillqvist  <tml@iki.fi>
840
841         * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
842         we are on a palettized display ("PseudoColor" in X11), as the code
843         for that doesn't work anyway, and never has.
844
845 2000-12-22  Alexander Larsson  <alexl@redhat.com>
846
847         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
848         Don't use isprint() for chars > 255.
849
850 2000-12-21  Havoc Pennington  <hp@redhat.com>
851
852         * tests/testtreeview.c: more work
853
854 2000-12-21  Alexander Larsson  <alexl@redhat.com>
855
856         * docs/README.linux-fb:
857         Update the docs to the new pangoft2 way.
858
859 2000-12-21  Alexander Larsson  <alexl@redhat.com>
860
861         * configure.in:
862         For linux-fb get the pangoft2 cflags and libs. This needs a recent
863         pango version.
864         Remove modules/linux-fb/Makefile.
865
866         * gdk/linux-fb/gdkdrawable-fb2.c:
867         Render glyphs using freetype.
868
869         * gdk/linux-fb/gdkfb.h:
870         Add new fb-specific functions needed for managing windows.
871
872         * gdk/linux-fb/gdkmain-fb.c:
873         Remove gdk_font_init/fini() calls.
874
875         * gdk/linux-fb/gdkpango-fb.c:
876         Remove old implementation. Use pangoft2 instead.
877
878         * gdk/linux-fb/gdkprivate-fb.h:
879         Remove PangoFBFont and related stuff.
880
881         * gdk/linux-fb/gdkwindow-fb.c:
882         Implement drawable->get_visible_region.
883         Implement support for _gdk_window_set_child_handler () and
884         _gdk_window_get_decorations().
885
886         * modules/Makefile.am:
887         Remove linux-fb subdir.
888
889         * modules/linux-fb/*:
890         Removed all.
891         
892 2000-12-20  Jonathan Blandford  <jrb@redhat.com>
893
894         * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
895         calls, as they are no longer needed.
896
897         * gtk/gtktreemodelsort.c: Fix up the comparison code.
898         
899         * gtk/gtktreemodel.h: Start work on ::reordered signal.  Need to
900         figure out how to emit a signal on an interface.
901
902 2000-12-20  Havoc Pennington  <hp@redhat.com>
903
904         * tests: new directory to contain tests, gtk/test* should move
905         here sometime (with appropriate on-cvs-server hackery)
906
907         * tests/testtreeview.c, tests/Makefile.am: a test
908         
909         * configure.in (AC_OUTPUT): add tests/Makefile
910
911         * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
912         and "invisible_set" which were missing
913
914         * gtk/gtkrbtree.h: some cheesy indentation fix
915         
916 2000-12-20  Alexander Larsson  <alexl@redhat.com>
917
918         * gtk/gtkinvisible.c (gtk_invisible_realize):
919         Attach the style to the window so that the style it is not
920         leaked when unrealizing the window.
921
922 2000-12-18  Havoc Pennington  <hp@redhat.com>
923
924         * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
925         begin/end user action where appropriate
926         (gtk_text_view_commit_handler): add begin/end user action
927
928         * gtk/gtktextbuffer.c: add begin/end user action signals, and
929         bracket interactive operations with begin/end user action pair.
930         
931         * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
932         "interactive" arg from insert_text and delete_text signals.
933         Add begin_user_action, end_user_action signals
934         (gtk_text_buffer_begin_user_action): 
935         (gtk_text_buffer_end_user_action): New functions to delimit 
936         a user-visible action
937
938         * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
939         signals.
940         
941 2000-12-18  Havoc Pennington  <hp@redhat.com>
942
943         * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
944         was pretty non-working.
945
946         * gtk/testtext.c (fill_file_buffer): make this a bit more robust
947         by passing the length to g_utf8_validate().
948
949 2000-12-16  Havoc Pennington  <hp@pobox.com>
950
951         * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c: 
952         Port to GObject, can go back in gdk-pixbuf after setting up 
953         a gdk-pixbuf-marshal.h header over there.
954
955         * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
956         (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
957         args
958         (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
959         set
960         (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
961         here, do it when we create the buttons later
962         (gtk_tree_view_realize_buttons): add some g_return_if_fail 
963         (gtk_tree_view_map): paranoia checks that column->button is shown 
964         and unmapped
965         (gtk_tree_view_size_request): only request visible children.
966         Move header size calculation in here, for cleanliness, and 
967         to maintain invariants for child widgets if we eventually 
968         let users set different children inside the buttons
969         (gtk_tree_view_map_buttons): factor out code to map buttons,
970         since it was being called several times
971         (gtk_tree_view_size_allocate_buttons): move_resize the drag
972         windows instead of just moving them; their height may change 
973         if we allow random widgets in there, or the theme changes.
974         (gtk_tree_view_size_allocate): move button size allocation 
975         above emitting the scroll signals, to ensure a sane state when we
976         hit user code
977         (gtk_tree_view_button_release): remove queue_resize after
978         tree_view_set_size(), set_size() will handle any resize queuing
979         that's needed
980         (gtk_tree_view_focus_in): just queue a draw, don't fool with
981         draw_focus goo
982         (gtk_tree_view_focus): use gtk_get_current_event() and
983         gdk_event_get_state()
984         (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
985         (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
986         semicolon
987         (gtk_tree_view_create_button): show the button here
988         (gtk_tree_view_button_clicked): actually emit the clicked signal
989         on the column
990         (_gtk_tree_view_set_size): return right away if the size is
991         unchanged, as a cheesy optimization
992         (gtk_tree_view_setup_model): rename set_model_realized to 
993         setup_model to match the flag that indicates whether we've 
994         called it
995         (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
996         exist, because set_scroll_adjustment does that and it shouldn't
997         matter what order you call these in
998         (gtk_tree_view_get_vadjustment): ditto
999         (gtk_tree_view_set_headers_visible): canonicalize the bool, 
1000         for paranoia
1001         (gtk_tree_view_set_headers_visible): call
1002         gtk_tree_view_map_buttons() instead of using cut-and-paste code
1003         (gtk_tree_view_append_column): clarify whether the return value
1004         is the count of columns before or after, and do the increment 
1005         separately from the return statement so you can tell from the code.
1006         (gtk_tree_view_remove_column): ditto
1007         (gtk_tree_view_insert_column): ditto
1008         (gtk_tree_view_get_column): remove g_return_if_fail for columns
1009         outside the existing range, the docs say that outside-range
1010         columns are allowed, so we handle them as documented. (Presumably
1011         this allows a nice loop with column != NULL as test.)
1012         (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments 
1013         mean (left/right/center etc.).
1014         (gtk_tree_view_collapse_all): only queue a draw if we're mapped
1015         (gtk_tree_view_expand_row): add docs
1016         (gtk_tree_view_collapse_row): add docs
1017
1018         * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
1019         function to emit the clicked signal on a column
1020         
1021         * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
1022         state of an event
1023         (gdk_event_get_time): don't treat GDK_SCROLL 
1024         as a button event, remove default case from switch so gcc 
1025         will whine if we don't explicitly handle all event types
1026
1027         * gtk/gtktreeselection.h: added some FIXME 
1028         
1029         * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
1030         "columns" to "n_columns" and "column" to "columns" for clarity
1031
1032 2000-12-16  Havoc Pennington  <hp@pobox.com>
1033         
1034         * gtk/gtktextiter.c: General cleanup of the log attr iteration
1035         stuff. This should make e.g. the delete key work again in the
1036         text widget...
1037         (gtk_text_iter_forward_cursor_positions): handle negative count
1038         (gtk_text_iter_backward_cursor_positions): handle negative count
1039         (gtk_text_iter_forward_word_ends): handle negative count
1040         (gtk_text_iter_backward_word_starts): handle negative count
1041
1042         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
1043         gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c, 
1044         gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to 
1045         GObject. No doubt will cause breakage.
1046
1047         * demos/gtk-demo/textview.c: remove hacks around
1048         non-GObject-ification of the text objects
1049
1050         * demos/gtk-demo/main.c (main): use g_object_set() to manipulate 
1051         the text tag
1052         
1053 2000-12-14  Havoc Pennington  <hp@pobox.com>
1054
1055         * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
1056         that we have Xrender
1057
1058 Thu Dec 14 20:22:31 2000  Owen Taylor  <otaylor@redhat.com>
1059
1060         * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
1061         Add two virtualized functions gdk_drawable_get_clip_region - to
1062         get the clip region when drawing.
1063         
1064         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
1065         use invalidate_region.
1066
1067         * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
1068         region.
1069
1070         * acconfig.h configure.in: Check for Xft. For now, assume
1071         that if Xft is found, Pango was compiled with Xft support
1072         as well.
1073
1074         * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add 
1075         gdk_colormap_query_color().
1076         
1077         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
1078         with Xft if appropriate.
1079
1080         * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
1081         a pangoxft context if we have XFT and the environment
1082         variable GD_USE_XFT is set.
1083         
1084         * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
1085         and also possibly an XftDraw structure.
1086
1087         * gtk/gtkfontsel.c: Handle the case where the font from the
1088         style doesn't match any of the fonts a bit better.
1089         
1090         * gtk/testgtk.c: Add tabs between directional segments for
1091         hebrew/arabic test. (Not really necessary, just a little
1092         prettier.)
1093
1094 2000-12-14  Havoc Pennington  <hp@redhat.com>
1095
1096         * gtk/testtext.c (fill_file_buffer): fix unicode validation when
1097         reading a file
1098
1099 2000-12-14  Havoc Pennington  <hp@redhat.com>
1100
1101         * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
1102         unused call to get_last_line()
1103
1104         * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
1105         here until boxed is working (and maybe after that - we should
1106         really not gratuitously break old code)
1107
1108         * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
1109         specific types for font_desc and tabs args, move them to
1110         GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get 
1111         fixed. Move GdkColor args to GTK_TYPE_POINTER also.
1112
1113         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
1114         use GTK_TYPE_POINTER for signal signatures as a hack-around
1115
1116         * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
1117         PangoTabArray
1118
1119         * gtk/gtktextlayout.c (line_display_iter_to_index): 
1120         make static
1121         (line_display_index_to_iter): make static
1122
1123         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
1124         to marshal a string not a boxed
1125
1126         * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
1127
1128         * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
1129         since the UTF-8 isn't validated yet
1130
1131         * gtk/gtktextsegment.c (char_segment_check_func): don't require
1132         lines to end in '\n'
1133         
1134         * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
1135         forward_to_delimiters, and grapheme boundaries
1136         (gtk_text_view_delete_from_cursor): properly handle non-newline
1137         delimiters, and grapheme boundaries
1138
1139         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
1140         to gtk_text_iter_forward_to_delimiters, and make it work properly
1141         if empty lines end with a character other than '\n'
1142
1143         * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
1144         position
1145
1146 2000-12-15  Tor Lillqvist  <tml@iki.fi>
1147
1148         * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
1149
1150         * gtk/gtk.def
1151         * gdk/gdk.def: Update.
1152
1153         * gdk/win32/gdkmain-win32.c
1154         * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
1155         gdkmain-win32.c here.
1156
1157         * gdk/win32/makefile.mingw.in (all): No need to make
1158         gdk-win32res.o here, the makefile one step up will call us to make
1159         it.
1160
1161         * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
1162         gdkkeys-win32.
1163
1164         * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
1165
1166         * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
1167         call to g_source_add().
1168
1169         * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
1170         leak. Thanks to Andreas Kemnade.
1171
1172 2000-12-13  Havoc Pennington  <hp@pobox.com>
1173
1174         * gtk/gtktextbtree.h: Remove double _ in front of some functions
1175
1176         * gtk/gtktext*.[hc]: update accordingly
1177         
1178 2000-12-13  Havoc Pennington  <hp@pobox.com>
1179
1180         * gtk/gtktextbtree.h: Put _ in front of every function in this 
1181         header file
1182
1183         * gtk/gtktext*.[hc]: update to reflect renamed btree functions
1184
1185 2000-12-13  Alex Larsson  <alexl@redhat.com>
1186
1187         * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
1188         Add support for ps2 intellimouse.
1189
1190         * gdkkeyboard-fb.c:
1191         Move shift-F1 repaint handling to xlate handler only.
1192         
1193         * docs/README.linux-fb:
1194         Add imps2 to docs.
1195         Document the new refresh keys.
1196         
1197 Tue Dec 12 23:46:44 2000  Tim Janik  <timj@gtk.org>
1198
1199         * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
1200
1201         * gtk/gtkbox.c: change property types from (u)long to (u)int for
1202         ::position and ::padding.
1203
1204         * gtk/gtkcontainer.c: make ::border_width an INT property.
1205
1206         * gtk/gtkpacker.c: make ::position an INT property.
1207
1208         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
1209         guard against NULL h/v scrollbars, since this is used at construction
1210         time.
1211
1212         * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
1213         internal gtk_clist_constructor().
1214
1215         * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
1216         gtk_ctree_constructor().
1217
1218         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
1219         ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
1220
1221         * docs/reference/Makefile.am: fun stuff, disabled docs generation
1222         again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
1223
1224         * gtk/gtkwidget.[hc]:
1225         removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
1226         and gtk_widget_get().
1227         (gtk_widget_new): use g_object_new_valist().
1228         (gtk_widget_set): use g_object_set_valist().
1229
1230         * gtk/gtkobject.[hc]:
1231         removed gtk_object_arg_get_info(), gtk_object_getv(),
1232         gtk_object_query_args(), gtk_object_newv(),
1233         gtk_object_class_add_signals(),
1234         gtk_object_class_user_signal_new(),
1235         gtk_object_class_user_signal_newv(),
1236         gtk_object_arg_set(), gtk_object_arg_get(),
1237         gtk_object_args_collect(),
1238         gtk_object_default_construct(),
1239         gtk_object_constructed(),
1240         GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
1241         removed nsignals, signals and n_args members from GtkObjectClass.
1242         (gtk_object_new): use g_object_new_valist().
1243         (gtk_object_set): use g_object_set_valist().
1244         (gtk_object_get): use g_object_get_valist().
1245         
1246         * gtk/gtkcompat.h: define gtk_object_default_construct().
1247         
1248         * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
1249         g_object_new().
1250
1251         * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
1252         fucntions, cleaned up method assignments (make sure your structures
1253         are setup properly before calling out). removed all GTK_CONSTRUCTED
1254         hacks ;)
1255
1256 Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>
1257
1258         * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix 
1259         off-by-one error in checks. (Dave Lambert)
1260
1261 2000-12-12  Alexander Larsson  <alexl@redhat.com>
1262
1263         * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
1264         Don't free gdk_fb_keyboard twice.
1265
1266 Tue Dec 12 08:24:42 2000  Tim Janik  <timj@gtk.org>
1267
1268         * gtk/testgtk.c:
1269         (create_tooltips): 
1270         (create_statusbar): get rid of object_signal:: GtkObject argument uses,
1271         use GObject swapped_signal:: properties instead.
1272
1273         * gtk/gtkcellrenderertoggle.c: 
1274         * gtk/gtkcellrenderertextpixbuf.c: 
1275         * gtk/gtkcellrenderertext.c: 
1276         * gtk/gtkcellrendererpixbuf.c: 
1277         * gtk/gtkcellrenderer.c:
1278         * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
1279         missing warnings for invalid property ids, install properties
1280         with g_object_class_install_property() now.
1281         
1282         * gtk/gtksignal.c:
1283         (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
1284         
1285 Wed Oct 25 14:17:43 2000  Owen Taylor  <otaylor@redhat.com>
1286         
1287         * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
1288         to determine if a window is the focus widget within
1289         its toplevel.
1290
1291         * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
1292         to be boolean.
1293
1294         * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling 
1295         of the case where the container CAN_FOCUS to here instead
1296         of having it in each individual move-the-focus place.
1297
1298         * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
1299         focusing to be geometric in a much more obvious sense. Arrowing
1300         around is still non-intuitive because it isn't perfect and
1301         because entries, etc, grab the arrow keys, but it at least
1302         usually will do what you expect now.
1303         
1304         * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
1305         file.
1306
1307         * gtk/gtknotebook.c: Change tabs to be a single item in
1308         the focus chain. Make movement of focus on tabs with arrow
1309         keys wrap around.
1310         
1311         * gtk/gtknotebook.c (gtk_notebook_find_child): Add
1312         CHECK_FIND_CHILD macro to give informative error messages
1313         instead of silent returns.
1314
1315         * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT 
1316         flag since we handle GdkReturn on the tabs.
1317
1318         * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
1319         windows rather than sending expose events directly.
1320
1321         * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure 
1322         definition for GtkNotebookPage into .c file, since it is private.
1323
1324         * gtk/testgtk.c (create_notebook): Add option for 
1325         testing borderless notebook.
1326
1327         * gtk/testgtk.c (page_switch): Removed egregious poking
1328         around in GTK+ internals.
1329
1330         * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
1331
1332         * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
1333         properly through gtk_clist_focus. Make the title headers a
1334         single item in the tab-focus chain, and make left-right wrap
1335         around.
1336
1337         * gtk/gtkwindow.c (gtk_window_focus): Add a custom
1338         focus method so that wrapping around works properly.
1339
1340         * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() - 
1341         that is handled for the widget now. 
1342
1343 Mon Dec 11 11:41:12 2000  Owen Taylor  <otaylor@redhat.com>
1344
1345         * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
1346         widgets as TOPLEVEL.
1347
1348         * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
1349         TOPLEVEL widgets are containers.
1350
1351         * gtk/gtkinvisible.h: Remove useless include.
1352
1353 2000-12-11  Havoc Pennington  <hp@redhat.com>
1354
1355         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
1356         Handle chopping off \r\n and 0x2029 in addition to \n before
1357         passing to PangoLayout
1358
1359         * gtk/gtkimcontextsimple.c
1360         (gtk_im_context_simple_get_preedit_string): 
1361         return an empty string if no match is pending
1362
1363         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
1364         assertion that the returned preedit string was sane
1365
1366         * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
1367         s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
1368         s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
1369
1370 Mon Dec 11 10:02:26 2000  Owen Taylor  <otaylor@redhat.com>
1371
1372         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize): 
1373         Fix up finalizer to chain to its parent.
1374
1375 2000-12-11  Alexander Larsson  <alexl@redhat.com>
1376
1377         * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
1378         Clearified the difference between the keyboard types. Wrote a note
1379         about the magic sysrq key to get out of raw mode.
1380
1381 2000-12-09  James Henstridge  <james@daa.com.au>
1382
1383         * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
1384         member to hold masks for detecting the start of a protocol packet.
1385         (mouse_devs): add packet start masks for ps2 and ms device types.
1386         Left the mask for fidmour blank, as I have no idea what it should
1387         be.
1388         (handle_mouse_io): skip bytes until we get to the start of a
1389         packet.  My Logitech mouse seems to be passing an extra NULL pad
1390         byte, and GPM does a similar thing here.
1391         (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
1392         this is the ms mouse driver.
1393         (gdk_fb_mouse_ms_packet): fix up button handling, which was
1394         completely broken except for button1.  It was checking the wrong
1395         bit in the packet for the status of the right mouse button, and
1396         wrongly assuming right == button2 rather than 3.  I fixed that and
1397         also added support for middle button (button2).
1398
1399 2000-12-08  Havoc Pennington  <hp@redhat.com>
1400
1401         * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
1402         that cause a segfault on text insertion
1403
1404         * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix 
1405         warning
1406
1407         * gtk/gtktextiter.c (test_log_attrs): use
1408         _gtk_text_buffer_get_line_log_attrs to speed things up a bit
1409
1410         * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs): 
1411         Get log attrs for a line, using a cache stored on the buffer
1412         
1413         * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
1414         reported by Jeff Franks
1415
1416 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1417
1418         * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
1419         /dev/ttyS0 -> /dev/mouse
1420
1421 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1422
1423         * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
1424         Added dummy gdk_fontset_load.
1425
1426 2000-12-08  Alexander Larsson  <alexl@redhat.com>
1427
1428         * docs/README.linux-fb:
1429         * docs/Makefile.am:
1430         Initial GtkFB docs.
1431         
1432         * gdk/linux-fb/Makefile.am:
1433         Define GDK_DATA_PREFIX.
1434
1435         * gdk/linux-fb/gdkmain-fb.c:
1436         Fix typo.
1437         Change default display to /dev/fb0.
1438
1439         * gdk/linux-fb/gdkpango-fb.c:
1440         Add $(prefix)/share/fonts/ to font path.
1441         
1442 2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
1443
1444         * gdk/linux-fb/gdkkeyboard-fb.c:
1445         New file containing the abstracted keyboard driver. Most code
1446         taken from gdkinput-ps2.c
1447
1448         * gdk/linux-fb/gdkinput-ps2.c:
1449         Removed file.
1450         
1451         * gdk/linux-fb/Makefile.am:
1452         Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
1453
1454         * gdk/linux-fb/gdkcolor-fb.c:
1455         display->fb was renamed to display->fb_fd.
1456
1457         * gdk/linux-fb/gdkcursor-fb.c:
1458         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1459
1460         * gdk/linux-fb/gdkinput.c:
1461         Moved gdk_input_init here from gdkinput-ps2.c
1462
1463         * gdk/linux-fb/gdkmain-fb.c:
1464         display->fb was renamed to display->fb_fd.
1465         Now the tty and the console is opened here instead
1466         of in the keyboard driver. Also check GDK_VT to see what
1467         tty to open.
1468         Move gdk_beep () here from gdkinput-ps2.c
1469         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1470
1471         * gdk/linux-fb/gdkmouse-fb.c:
1472         Add header.
1473         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1474         Return correct keyboard modifiers.
1475         GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
1476
1477         * gdk/linux-fb/gdkprivate-fb.h:
1478         Add tty and vt info to display.
1479         Add orignal modeinfo storage to display
1480         Update global functions
1481
1482         * gdk/linux-fb/gdkwindow-fb.c:
1483         Added gdk_fb_window_find_focus().
1484         gdk_mouse_get_info -> gdk_fb_mouse_get_info
1485
1486 2000-12-07  Havoc Pennington  <hp@pobox.com>
1487
1488         * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of 
1489         function, noticed by Alex
1490
1491 2000-12-06  Elliot Lee  <sopwith@redhat.com>
1492
1493         * configure.in: Detect freetype properly
1494
1495         * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
1496         above.
1497
1498 2000-12-06  Alexander Larsson  <alexl@redhat.com>
1499
1500         * gdk/linux-fb/Makefile.am:
1501         Add gdkmouse-fb.c
1502         
1503         * gdk/linux-fb/gdkmouse-fb.c:
1504         New file. Abstracted the mouse drivers a bit.
1505
1506         * gdk/linux-fb/gdkcursor-fb.c:
1507         The cursor hide/show functions was moved here from gdkinput-ps2.c.
1508
1509         * gdk/linux-fb/gdkinput-ps2.c:
1510         Removed old mouse handling code. Moved cursor handling code
1511         to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
1512         gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
1513         gdk_mouse_get_info.
1514
1515         * gdk/linux-fb/gdkmain-fb.c:
1516         Pass NULL pointers for x,y in gdk_mouse_get_info call.
1517
1518         * gdk/linux-fb/gdkprivate-fb.h:
1519         Removed public gdk_fb_find_common_ancestor, added and renamed
1520         functions for the new mouse handling code.
1521
1522         * gdk/linux-fb/gdkwindow-fb.c:
1523         Moved gdk_fb_window_send_crossing_events here. added global
1524         variable gdk_fb_window_containing_pointer. made
1525         gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
1526         renamed to gdk_mouse_get_info.
1527
1528 2000-12-06  Alexander Larsson  <alexl@redhat.com>
1529
1530         * gdk/linux-fb/gdkevents-fb.c:
1531         Update to match latest gmain/gsource changes.
1532
1533         * gdk/linux-fb/gdkinput-ps2.c:
1534         Bogus gdk_keymap_get_entries_for_keycode implementation so that
1535         it links. Will be implemented later.
1536
1537 2000-12-03  Havoc Pennington  <hp@pobox.com>
1538
1539         * gdk/Makefile.am: add gdkkeys.[hc]
1540
1541         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
1542         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
1543
1544         * acconfig.h, configure.in: add checks and command line options
1545         for XKB
1546
1547         * gdk/x11/gdkkeys-x11.c: Implement the above functions
1548         
1549         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
1550         and group in the key event
1551
1552         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
1553         field with the low-level hardware key code, and a group
1554         field with the keyboard group
1555
1556         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
1557         and declare a couple globals used for keymap handling
1558         
1559         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
1560         hold down Shift-Control and type a hex number to get a Unicode 
1561         character corresponding to the hex number
1562         (gtk_im_context_simple_get_preedit_string): Fix cursor position
1563         (return bytes not chars)
1564
1565 2000-12-05  Elliot Lee  <sopwith@redhat.com>
1566
1567         * gdk/gdkcolor.h: Make GdkColor specify element sizes
1568         to avoid waste on 64-bit platforms.
1569
1570 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
1571
1572         * INSTALL: Fix link to PNG home, remove reference
1573         to fribidi.
1574
1575         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
1576         
1577         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
1578         tested.)
1579
1580         * gtk/gtkcheckmenuitem.c: Permanently turn on
1581         always_show_toggle.
1582
1583         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
1584         be NULL. (Vladimir Klebanov, #26545)
1585
1586         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
1587         some signed/unsigned comparison problems. (#6510,
1588         David Kaelbling)
1589
1590         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
1591         return type to boolean (Oskar Liljeblad, #18648)
1592
1593 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1594
1595         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
1596         Remove bogus colormap setting.
1597
1598 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1599
1600         * gdk/linux-fb/gdkcolor-fb.c:
1601         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
1602
1603         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
1604         Must set colormap.
1605         
1606 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
1607
1608         * docs/tutorial/gtk-tut.sgml: DND updates
1609
1610 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
1611
1612         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
1613         Remove old debug g_warning().
1614         (gdk_fb_draw_drawable): The src argument can be either a wrapper
1615         or an implementation, just pass the implementation to draw_drawable_2.
1616         
1617         * gdk/linux-fb/gdkprivate-fb.h:
1618         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
1619
1620         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
1621         clear and invalidate area when window is destroyed.
1622         (send_map_events): Remove old commented out code.
1623
1624 2000-12-05  Alexander Larsson  <alexl@redhat.com>
1625
1626         * gdk/linux-fb/gdkpango-fb.c:
1627         Use italic instead of oblique in font aliases.
1628         
1629         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
1630         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
1631         other unsupported functions.
1632
1633 2000-12-04  Havoc Pennington  <hp@redhat.com>
1634
1635         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
1636
1637         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
1638
1639         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
1640
1641         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
1642         hack to avoid infinite loops (synthetic expose event) - 
1643         Owen has more appropriate fixes in a branch he'll check in later.
1644
1645         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
1646         separator, CR, and CRLF as line ends
1647
1648         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
1649         into lines using pango_find_paragraph_boundary(); other bits of
1650         the widget are still going to be broken if the boundary isn't '\n'
1651         though
1652
1653 2000-12-04  Alexander Larsson  <alexl@redhat.com>
1654
1655         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
1656         multiply.
1657
1658         * gdk/linux-fb/gdkpango-fb.c:
1659         Copied some 26.6 scaling macros from pango to clean up the rounding.
1660         (pango_fb_font_get_glyph_info): Correct sign on x value.
1661
1662         * gdk/linux-fb/gdkprivate-fb.h:
1663         Removed unreferenced external functions.
1664
1665         * modules/linux-fb/Makefile.am: Use ` instead of '.
1666
1667         * modules/linux-fb/basic.c:
1668         Remove dead code. In particular the dummy lang engine which broke all
1669         pango layouts in GtkFB. Don't include tables-big.i anymore.
1670
1671         * modules/linux-fb/tables-big.i:
1672         Upgrade to latest version from pango. Left for reference, basic_ranges
1673         moved to basic.c.
1674         
1675 2000-12-04  Havoc Pennington  <hp@redhat.com>
1676
1677         Fix bugs Alex found:
1678         
1679         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
1680         to "draw"
1681
1682         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
1683
1684         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
1685
1686         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
1687         implementation in here, apparently the expose() implementation was
1688         dead code.
1689
1690 2000-12-04  Alexander Larsson  <alexl@redhat.com>
1691
1692         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
1693         Return positive descent.
1694
1695 2000-12-02  Havoc Pennington  <hp@pobox.com>
1696
1697         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
1698         method and signal
1699         
1700         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
1701         calls gdk_window_process_updates() to push the exposes through
1702         (gtk_widget_class_init): No more draw signal, no
1703         gtk_widget_real_draw()  
1704         
1705         * gtk/gtkbin.c (gtk_bin_draw): remove
1706
1707         * gtk/gtkbox.c (gtk_box_draw): remove
1708
1709         * gtk/gtkbutton.c (gtk_button_draw): remove
1710
1711         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
1712
1713         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
1714
1715         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
1716
1717         * gtk/gtkclist.c (gtk_clist_draw): remove
1718
1719         * gtk/gtkentry.c (gtk_entry_draw): remove
1720
1721         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
1722
1723         * gtk/gtkfixed.c (gtk_fixed_draw): remove
1724
1725         * gtk/gtkframe.c (gtk_frame_draw): remove
1726
1727         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
1728
1729         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
1730
1731         * gtk/gtklayout.c (gtk_layout_draw): remove
1732
1733         * gtk/gtklist.c (gtk_list_draw): remove
1734
1735         * gtk/gtklistitem.c (gtk_list_item_draw): remove
1736
1737         * gtk/gtkmenu.c (gtk_menu_draw): remove
1738
1739         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
1740
1741         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
1742
1743         * gtk/gtknotebook.c (gtk_notebook_draw): remove
1744
1745         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
1746
1747         * gtk/gtkpacker.c (gtk_packer_draw): remove
1748
1749         * gtk/gtkrange.c (gtk_range_draw): remove
1750
1751         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
1752
1753         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
1754
1755         * gtk/gtktable.c (gtk_table_draw): remove
1756
1757         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
1758
1759         * gtk/gtktext.c (gtk_text_draw): remove
1760
1761         * gtk/gtktextview.c (gtk_text_view_draw): remove
1762
1763         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
1764
1765         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
1766
1767         * gtk/gtktree.c (gtk_tree_draw): remove
1768
1769         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
1770
1771         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
1772
1773         * gtk/gtkviewport.c (gtk_viewport_draw): remove
1774
1775         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
1776
1777         * gtk/gtkvscale.c (gtk_vscale_draw): remove
1778
1779         * gtk/gtkwindow.c (gtk_window_draw): remove
1780
1781 2000-20-01  Anders Carlsson  <andersca@gnu.org>
1782
1783         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
1784         a GtkToggleButton is both insensitive and active, it was being
1785         drawn by the GtkButton draw handler which doesn't check the
1786         state. Now it's calling gtk_toggle_button_paint instead.
1787         
1788 2000-12-01  Havoc Pennington  <hp@redhat.com>
1789
1790         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
1791         dangling pointers to the appearance attributes from the 
1792         line display
1793
1794         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
1795         width/height to mean "full width/height of drawable"
1796
1797         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
1798         click to select word/line
1799         
1800         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
1801         when getting log attrs. Get a slice, so that pixmaps and stuff
1802         are properly handled.
1803
1804         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
1805         paste into the selection (replaces selection now, previously
1806         crashed or added to selection). Reveals longstanding btree bug -
1807         select multiple lines, middle-click on the selection, boom. This
1808         isn't related to my changes though.
1809
1810         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
1811         PangoLogAttrs changes
1812         (gtk_entry_move_backward_word): ditto
1813
1814         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
1815         functions return bool whether the iter moved onto a
1816         dereferenceable position.
1817  
1818         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
1819         functions for motion in terms of display lines.
1820
1821         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
1822         get the buffer a mark is inside
1823         
1824 2000-12-01  Alexander Larsson  <alexl@redhat.com>
1825
1826         * gdk/linux-fb/Makefile.am:
1827         * modules/linux-fb/Makefile.am:
1828         Freetype 2 final uses freetype-config
1829
1830         * gdk/linux-fb/gdkpango-fb.c:
1831         Upgrade to use Freetype 2 final.
1832         More flexible support for font aliases, this also fixes a bug with
1833         GtkFontSelector, as the aliases must be visible in the font/family list,
1834         or GtkFontSelector reads uninitialized memory.
1835
1836 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
1837
1838         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
1839         XGetIMValues to properly terminate variable argument list, and do
1840         NULL return check for ic_values and xim_styles.
1841
1842         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
1843         Restore preedit state after XmbResetIC().
1844         
1845         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
1846         XvaCreateNestedList() should take XvaNestedList, but not
1847         XvaNestedList*.
1848
1849         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
1850         preedit_draw_callback, preedit_caret_callback): Match
1851         "preedit-changed" signal name to "preedit_changed" to be
1852         consistent to the spec.
1853
1854         * gtk/gtkimcontextsimple.c (check_table):
1855         Match "preedit-changed" to "preedit_changed" to be consistent
1856         to the spec.
1857
1858 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
1859
1860         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
1861         gc->clip_region == NULL>
1862
1863 2000-11-30  Tor Lillqvist  <tml@iki.fi>
1864
1865         Changes by Hans Breuer:
1866         
1867         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
1868         Dont't use negative width and height as max_hints. This fixes
1869         Owen's recent testgtk changes for win32.
1870
1871         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
1872         gdk_win32_hdc_release): These are exported and may be called with
1873         other drawable types than our GdkDrawableImplWin32 (?).
1874
1875         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
1876         so always #define USE_BACKING_STORE.
1877
1878         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
1879         of printf for debugging output.
1880
1881         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
1882         
1883         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
1884
1885         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
1886         declaration.
1887
1888         * gtk/gtktexttypes.h: Ditto.
1889
1890         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
1891         (GDK_VoidSymbol) also if in case of arg check failure.
1892
1893         * gtk/gtkimcontextsimple.c
1894         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
1895         position to the pointer, but to the variable it points to.
1896
1897         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
1898
1899         * gtk/gtk.def: Updates.
1900
1901 2000-11-29  Elliot Lee  <sopwith@redhat.com>
1902
1903         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
1904         GTK_TYPE_TREE_MODEL.
1905
1906 2000-11-29  Alexander Larsson  <alexl@redhat.com>
1907
1908         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
1909         Set the size of the font from the description.
1910         (gdk_text_width): Gross hack that calculates the width
1911         of text by text_length * size/2. This is necessary because
1912         GtkLabel does some ugly gtk_string_width call to calculate
1913         an good size.
1914         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
1915
1916 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
1917
1918         * docs/tutorial/gtk-tut.sgml: DND updates
1919
1920 2000-11-29  Alexander Larsson  <alexl@redhat.com>
1921
1922         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
1923         If you pass width or height == 0 to gdk_window_clear_area they
1924         should be calculated from the window size.
1925
1926 2000-11-29  Alexander Larsson  <alexl@redhat.com>
1927
1928         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
1929         a grab, but no grab-cursor, use the cursor from the grabbed
1930         window. (gdk_fb_window_send_crossing_events): Send normal
1931         enter/leave notifications if grab and owner_events == TRUE.
1932
1933 2000-11-29  Alexander Larsson  <alexl@redhat.com>
1934
1935         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
1936         Do implicit button grabs, even if the window doesn't
1937         want the event.
1938         (gdk_fb_window_send_crossing_events): If there is a
1939         grab, only the grabbed window gets normal enter/leave
1940         notifications. On ungrab go from grabbed window to current.
1941         Don't send any notification to b when propagating from c -> b.
1942         If setting a grab on window, don't set prev_window.
1943         (handle_mouse_input): Send enter/leave events to the window the
1944         mouse is over, not the grabbed one.
1945         
1946 2000-11-28  Elliot Lee  <sopwith@redhat.com>
1947
1948         * gdk/gdkregion-generic.c: Zap warning.
1949         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
1950         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
1951
1952 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
1953
1954         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
1955         The cursor should be hidden if it is part of either the
1956         source or destination region. Not only if it is in both.
1957         (gdk_window_set_transient_for): Silence warnings.
1958
1959 2000-11-28  Alexander Larsson  <alexl@redhat.com>
1960
1961         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
1962         The default mode in X is Pie Arcs, therefore that is
1963         what Gtk+ uses.
1964
1965 2000-11-28  Alexander Larsson  <alexl@redhat.com>
1966
1967         * gdk/linux-fb/gdkinput-ps2.c:
1968         Implement correct EnterNotify/LeaveNotify:
1969         (gdk_fb_window_send_crossing_events): New function that sends
1970         all GdkCrossingEvents from the last mouse-window to the specified
1971         destination.
1972         (gdk_fb_window_visibility_crossing): Removed function.
1973         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
1974         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
1975         instead of gdk_window_get_pointer() for better readability.
1976
1977         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
1978         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
1979
1980         * gdk/linux-fb/gdkprivate-fb.h:
1981         removed gdk_fb_window_visibility_crossing, added
1982         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
1983
1984         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
1985         New function that finds the least common ancestor of two windows.
1986         (gdk_window_show, gdk_window_hide):
1987         Use gdk_fb_window_send_crossing_events.
1988         (gdk_fb_window_move_resize): Send configure events to toplevel
1989         windows. Use gdk_fb_window_send_crossing_events.
1990
1991 2000-11-27  Havoc Pennington  <hp@redhat.com>
1992
1993         * gtk/gtkprivate.h (enum): Remove a trailing comma
1994
1995 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
1996
1997         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
1998         the "changed" callback of the adjustment.  We need to redraw the
1999         spin button's arrows when the adjustment's range changes.
2000         (adjustment_changed_cb): Draw the arrows.
2001         (gtk_spin_button_value_changed): Draw the arrows.
2002
2003 2000-11-23  Alexander Larsson  <alexl@redhat.com>
2004
2005         * gdk/linux-fb/gdkselection-fb.c:
2006         Initial selection implementation.
2007
2008         * gtk/gtkselection.c:
2009         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
2010         requestor in gtk_selection_request.
2011         
2012         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
2013         Added gdk_selection_property atom.
2014
2015         * gdk/linux-fb/gdkprivate-fb.h:
2016         Export _gdk_selection_window_destroyed.
2017         Removed mask_off_x/y from GdkCursorPrivateFB.
2018         Removed hbearing, added top, left to PangoFBGlyphInfo.
2019
2020         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
2021         Call _gdk_selection_window_destroyed
2022         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
2023         the root window has been created.
2024         (static_dx_hack, static_dy_hack, compare_draw_rects,
2025         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
2026         in region. They are already sorted. Instead just traverse them in
2027         reverse if draw_direction < 0.
2028         
2029         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
2030         Double-clicks must be sent after the normal button_press.
2031         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
2032         
2033         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
2034         Pass _gdk_fb_screen_gc instead of NULL.
2035
2036         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
2037         Initialize gdk_selection_property.
2038         (gdk_event_make): Remove unused code.
2039
2040         * gdk/linux-fb/gdkcursor-fb.c:
2041         Make the pixmap for the cursor the same size as the mask. Also remove
2042         the mask_off_x/y fields in GdkCursorPrivateFB and combine
2043         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
2044         Now the whole cursor is visible.
2045
2046         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
2047         Fix bug where xdest+height instead of ydest+height was used
2048         to calculate if the source and dest overlapped. This fixes the
2049         redraw bug when the main window in testgtk was scrolled when
2050         partially covered by a tall window.
2051         Copy rectangles in region in order depending on draw_direction.
2052         Also moved the draw_direction flipping of start_y and end_y into
2053         the gc functions, as this might not be what all of them want.
2054         (gdk_fb_draw_lines): Support dashed lines.
2055         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
2056         so that the text is positioned correctly (was 1 pixel high).
2057
2058         gdk/linux-fb/gdkgc-fb.c:
2059         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
2060         all lines were drawn a pixel to short. Also checked the default of
2061         the rest of the values, and they're the same as X now.
2062
2063         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
2064         Clean up pixel positioning of the glyphs. Just use bgy->top and
2065         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
2066         to all divisions to get correct rounding behaviour.
2067
2068         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
2069         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
2070         Moved start_y/end_y flip into draw_drawable implementations.
2071         Flip also x rendering when draw_direction < 0.
2072         Remove unneccesary multiply with draw_direction.
2073
2074 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
2075
2076         * docs/tutorial/gtk-tut.sgml:
2077           - get rid of gtk_toggle_button_toggled FUD
2078           - start DND section - needs work - based on:
2079                 http://wolfpack.twu.net/docs/gtkdnd/
2080
2081 2000-11-22  Alexander Larsson  <alexl@redhat.com>
2082
2083         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
2084         Correct calculation of font metrics. Now GtkEntrys have sane
2085         size.
2086
2087 2000-11-22  Alexander Larsson  <alexl@redhat.com>
2088
2089         * gdk/gdktypes.h:
2090         Add new type GdkSpan
2091         
2092         * docs/reference/gdk/gdk-sections.txt,
2093         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
2094         gdk/gdkregion.h:
2095         Implement and document gdk_region_spans_intersect_foreach.
2096
2097         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
2098         Add new file gdkrender-fb.c which contains all core
2099         rendering code.
2100         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
2101         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
2102         (optimized rectangle fillers).
2103
2104         * gdk/linux-fb/gdkdrawable-fb2.c:
2105         Move all rendering code to gdkrender-fb.c.
2106         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
2107         Use the new span intersection functions in gdk_fb_fill_spans.
2108         gdk_fb_draw_rectangle() clips filled rectangles and calls
2109         gc->fill_rectangle with the result.
2110         gdk_fb_fill_spans() gets extra argument "sorted".
2111
2112         * gdk/linux-fb/gdkevents-fb.c:
2113         Remove unused includes and defines.
2114         New function gdk_fb_get_time() to get correct time for events.
2115
2116         * gdk/linux-fb/gdkinput-ps2.c:
2117         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
2118         Make sure to set the time of all events.
2119
2120         * gdk/linux-fb/gdkmain-fb.c:
2121         Use gdk_fb_get_time ().
2122
2123         * gdk/linux-fb/gdkprivate-fb.h:
2124         New virtual GC calls: fill_span & fill_rectangle.
2125         Export gdk_fb_get_time().
2126         gdk_fb_fill_spans() gets extra argument "sorted".
2127
2128         * gdk/linux-fb/mi*.c:
2129         Use GdkSpan instead of GdkRectangle.
2130         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
2131         from XFree 4 source)
2132         
2133 2000-11-22    <jrb@redhat.com>
2134
2135         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
2136         reversing the order in an if statement will do.  Doing so managed
2137         to make the treemodelsort half work.  Other half will follow after
2138         I get the insert function fully fixed.
2139
2140 2000-11-21  Elliot Lee  <sopwith@redhat.com>
2141         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
2142         more than 2 bits. Besides, I need to implement an evil hack. :)
2143
2144 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
2145
2146         * docs/tutorial/gtk-tut.sgml: minor corrections
2147
2148 2000-11-20  Jonathan Blandford <jrb@redhat.com>
2149         * gtk/gtktreemodelsort.h: Add convertion functions to let you
2150           convert to and from relative path's and iters.
2151
2152         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
2153           testing sorting functions a bit better.  Currently broken -- will
2154           fix in morning.
2155
2156 2000-11-20  Havoc Pennington  <hp@redhat.com>
2157
2158         * gtk/gtkwidget.c: Documented a bunch of functions in here
2159         (gtk_widget_realize): Warn if you try to realize
2160         a widget with no parent that isn't a toplevel
2161         (gtk_widget_intersect): return a gboolean
2162
2163 2000-11-20  Havoc Pennington  <hp@redhat.com>
2164
2165         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
2166         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
2167         scrolling to be implemented in GDK to finish. Also, right now
2168         we just size_allocate all children on every layout change,
2169         which is pretty lame. Test commented out of testtext.c, 
2170         until it works better.
2171
2172 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
2173
2174         * gdk/linux-fb/gdkdrawable-fb2.c:
2175         Removed unused arguments from gdk_fb_drawable_get_pixel().
2176
2177         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
2178         Renamed fidur specific mouse packet data in MouseDevice to
2179         generic. Used it in ps2 mouse handling code to avoid blocking
2180         reads.
2181
2182 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
2183
2184         * demos/gtk-demo/main.c: Changed to have the list become
2185         non-italic when the demo window is destroyed through an external
2186         event (like a close button).  Doing so found three bugs in the
2187         widget.
2188
2189         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
2190
2191         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
2192         we actually set the cell.
2193
2194         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
2195
2196         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
2197         free a leaked path.  Thanks memprof.
2198
2199 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
2200
2201         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
2202         off-by-one error when destroying allocated segments
2203         on failure. (Elliot)
2204
2205 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
2206
2207         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
2208         memleaks found by Evan Martin.
2209
2210 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
2211
2212         * Released 1.3.2
2213         
2214         * NEWS: Updates for 1.3.2
2215
2216 2000-11-17  Tor Lillqvist  <tml@iki.fi>
2217
2218         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
2219         but in general for window system specific events.
2220
2221         * gtk/gtk.def
2222         * gtk/makefile.mingw.in
2223         * gtk/makefile.msc.in: Update.
2224         
2225         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
2226
2227 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
2228
2229         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
2230         distribute gtk.immodules.
2231
2232         * gtk/Makefile.am (install-data-local): Don't install the
2233         gtk.immodules file created for the uninstalled modules;
2234         instead run gtk-query-immodules after install
2235
2236 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
2237
2238         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
2239         -rpath to the right install location.
2240
2241         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
2242         -export-dynamic.
2243
2244         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
2245         properly.
2246
2247 2000-11-15  Havoc Pennington  <hp@pobox.com>
2248
2249         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
2250         patch from Mikael Hermansson to temporarily stop blinking while
2251         the user is using the keyboard to type or navigate. 
2252
2253         Also, when blinking, stay on for longer than we stay off. Also,
2254         return from start_cursor_blink if !cursor_visible, to save
2255         checking that flag all over the place before we call
2256         start_cursor_blink.
2257
2258 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
2259
2260         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
2261         only contain a "fontset" line, which is now ignored.
2262
2263         * gtk/gtkentry.c (gtk_entry_button_release): Make 
2264         double-click-to-select-word work.
2265         
2266 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
2267
2268         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
2269         Don't move back one char when we are actually at the end of the 
2270         paragraph.
2271
2272 2000-11-15  Robert Brady  <robert@suse.co.uk>
2273
2274         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
2275         'o' < 'p'.
2276         
2277         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
2278         bind_textdomain_codeset.
2279
2280         (gtk_init_check): Make the warning about translating default:LTR
2281         sterner.
2282         
2283 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
2284
2285         * **/Makefile.am : remove unecessary rules for win32-specific
2286         config-substituted targets. If you want these rules, use
2287         --enable-maintainer-mode (called automatically by autogen.sh).
2288         Stops a lot of unneccessary make-time warnings.
2289
2290         * gtk/gtktext{layout,display}.c: Factor in total width as
2291         well as screen when figuring alignment for word-wrap as well as
2292         no wrap; this is necessary to handle lines that cannot be wrapped
2293         at all.
2294
2295 2000-11-15  Havoc Pennington  <hp@redhat.com>
2296
2297         * gtk/testtext.c: Implement essential color cycling feature
2298
2299 2000-11-15  Havoc Pennington  <hp@redhat.com>
2300
2301         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
2302         when we invalidate the main window.
2303
2304         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
2305         GtkTextView will now invalidate the side windows for us when text
2306         changes.
2307
2308 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
2309
2310         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
2311         unconditionally, since we may need to update the horizontal
2312         scrollbars even if the height didn't change.
2313
2314         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
2315         the extra attrs, since some of them affect size.
2316
2317         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
2318         x_offset correctly.
2319
2320 2000-11-15  Havoc Pennington  <hp@redhat.com>
2321
2322         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
2323         don't move the first line out into the margin, instead move the
2324         whole paragraph in order to make space for the first line within 
2325         the margin
2326
2327 2000-11-15  Havoc Pennington  <hp@redhat.com>
2328
2329         * gtk/gtktextview.c (changed_handler): offset redraw rect by
2330         xoffset in addition to yoffset, so horizontal scrolling doesn't
2331         break redraws
2332
2333 2000-11-15  Havoc Pennington  <hp@redhat.com>
2334
2335         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
2336         from the cursor
2337         (render_layout_line): fix reversed test that caused weird
2338         underlines to get drawn
2339
2340 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
2341
2342         * gdk/linux-fb/gdkprivate-fb.h:
2343         Fix debug macros.
2344         
2345 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
2346
2347         * gdk/linux-fb/gdkprivate-fb.h:
2348         Added virtual functions set_pixel, get_color,
2349         fill_span and draw_drawable to the GC.
2350         Added global _gdk_fb_screen_gc to use instead of
2351         NULL when drawing to the screen.
2352         Added _gdk_fb_gc_calc_state() prototype.
2353
2354         * gdk/linux-fb/gdkgc-fb.c:
2355         Call _gdk_fb_gc_calc_state() on any gc state change.
2356
2357         * gdk/linux-fb/gdkglobals-fb.c:
2358         Add _gdk_fb_screen_gc
2359                 
2360         * gdk/linux-fb/gdkdrawable-fb2.c:
2361         _gdk_fb_gc_calc_state() calculates best functions
2362         for the GC state and depth.
2363         Moved bpp specialized code to separate functions.
2364         Added optimized 24 bpp AA draw_drawable.
2365
2366         * gdk/linux-fb/gdkevents-fb.c:
2367         Silence gcc warning.
2368
2369         * gdk/linux-fb/gdkimage-fb.c:
2370         Use _gdk_fb_screen_gc
2371
2372         * gdk/linux-fb/gdkwindow-fb.c:
2373         Init and use _gdk_fb_screen_gc
2374
2375         * gdk/linux-fb/mitypes.h:
2376         Remove unused types.
2377
2378 2000-11-14  Havoc Pennington  <hp@pobox.com>
2379
2380         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
2381         to pixels
2382
2383 2000-11-14  Havoc Pennington  <hp@pobox.com>
2384
2385         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
2386
2387         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
2388         unknown char, no real reason we were using a variable. 
2389         Remove gtk_text_unknown_char variable. Fix all the text widget
2390         files accordingly.
2391
2392         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
2393         since the Unicode spec seems to prefer that character for our
2394         purposes.
2395
2396 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
2397
2398         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
2399         value of g_getenv() isn't freeable, so g_strdup it.
2400
2401         * modules/input/inuktitut.c: Inuktitut input method.
2402
2403         * modules/input/Makefile.am: Build this.
2404         
2405 2000-11-14  Elliot Lee  <sopwith@redhat.com>
2406
2407         * gtk/Makefile.am: Install gtk.immodules, needed for operation
2408         of gtk programs.
2409
2410 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
2411
2412         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
2413         reversed > that was causing Home to go to end of previous line.
2414
2415         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
2416         modified-keypresses (leave for bindings.)
2417
2418         * modules/input/Makefile.am: Remove useless -export-dynamic
2419         from module LDFLAGS.
2420
2421 2000-11-14  Havoc Pennington  <hp@redhat.com>
2422
2423         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
2424         higher.
2425
2426         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
2427         account. Also, render rise, underline, background, etc. for
2428         pixbufs as well as text. Also, draw underlines one pixel higher.
2429
2430         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
2431         PangoAttribute for the rise, so it gets drawn properly. Also,
2432         add the GtkTextAppearance attribute for pixbuf/widget segments
2433         as well; we should go ahead and have rise, underline, background,
2434         stipple work for those
2435
2436         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
2437         Pango
2438
2439 2000-11-15  Tor Lillqvist  <tml@iki.fi>
2440
2441         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
2442
2443         * gtk/gtk.def: Update.
2444
2445         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
2446         included.
2447         (gtk_rc_get_im_module_file): Use run-time installation directory
2448         on Win32.
2449
2450         * gdk/win32/rc/gdk.rc: Remove.
2451         * gdk/win32/rc/gdk.rc.in: New file.
2452         * gdk/win32/rc/Makefile.am: New file
2453         * gdk/win32/Makefile.am: Corresponding changes.
2454
2455         * gtk/gtk.rc: Remove.
2456         * gtk/gtk-win32.rc.in: New file.
2457         * gtk/Makefile.am: Corresponding changes.
2458
2459         * configure.in: Corresponding changes.
2460
2461         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
2462         has a built gtkcompat.h. Developers using CVS code on Win32 can
2463         hand-edit it from gtkcompat.h.in.
2464
2465         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
2466         gtkcompat.h from gtkcompat.h.win32.
2467
2468 2000-11-14  Havoc Pennington  <hp@redhat.com>
2469
2470         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
2471         to default to GDK_ACTION_MOVE if the drag is within a single
2472         widget. Defaults to GDK_ACTION_COPY between widgets.
2473
2474 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
2475
2476         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
2477
2478         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
2479
2480         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
2481         srcdir != builddir
2482
2483         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
2484
2485         * configure.in (GTK_VERSION): Up to 1.3.2
2486
2487         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
2488         gtkimcontextxim.h
2489
2490         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
2491         missing doc comment.
2492
2493 2000-11-14  Alexander Larsson  <alexl@redhat.com>
2494
2495         * modules/linux-fb/basic.c:
2496         Use the glib iconv wrappers.
2497
2498 2000-11-13  Havoc Pennington  <hp@pobox.com>
2499
2500         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
2501         still more bugs.
2502
2503         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
2504         scroll the GdkWindows before realization.
2505
2506 2000-11-13  Havoc Pennington  <hp@redhat.com>
2507
2508         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
2509         where GC didn't always get updated properly
2510
2511         * demos/gtk-demo/textview.c (create_tags): Use subattributes
2512         of fonts instead of setting the entire font
2513
2514         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
2515         setting entire font
2516
2517         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
2518
2519         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
2520         a bunch of individually-settable font attributes. You can still 
2521         use the "font" and "font_desc" args, they just set all the font
2522         attributes at once.
2523
2524 2000-11-13 Elliot Lee <sopwith@redhat.com>
2525
2526         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
2527
2528 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
2529
2530         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
2531         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
2532
2533         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
2534         work better.
2535
2536 2000-11-13  Havoc Pennington  <hp@redhat.com>
2537
2538         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
2539         the module file.
2540
2541         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
2542         dest->language
2543
2544         * gtk/testtext.c: Test pixels above/below/inside paragraphs
2545         settings
2546
2547         * gtk/gtktextview.c: Implement object args and setters/getters for
2548         all the aspects of the GtkTextAttributes that are not set from
2549         GtkWidget attributes. This is spacing, justification, margins,
2550         etc.
2551
2552         (gtk_text_view_set_arg)
2553         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
2554         args
2555         (gtk_text_view_class_init): Add args for justify, left_margin,
2556         right_margin, indent, and tabs
2557         
2558
2559         * gtk/gtktextlayout.c (set_para_values): fix to display indent
2560         attribute properly
2561
2562         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
2563         replace with indent attribute
2564
2565         * gtk/gtktextlayout.c (set_para_values): multiply indent by
2566         PANGO_SCALE
2567
2568         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
2569         rearranging code to do that
2570         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
2571         i.e. don't subtract the top_margin first, just to keep
2572         all margin-futzing in one place.
2573
2574         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
2575
2576         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
2577         special case of last line, Pango now handles this itself.
2578         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
2579         Y coordinate
2580         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
2581         (find_display_line_above): wasn't moving the byte index as it
2582         iterated over lines, so always returned byte 0. Also, port to use
2583         PangoLayoutIter.
2584         (find_display_line_below): same problem as
2585         find_display_line_above. Also, port to use PangoLayoutIter.
2586
2587 2000-11-13  Alexander Larsson  <alexl@redhat.com>
2588
2589         * gdk/linux-fb/*.[ch]:
2590         Massive reindent to gtk+ standard. My hands hurt.
2591
2592         * gdk/linux-fb/gdkcolor-fb.c:
2593         Move GdkColorPrivateFB from inherited to windowing_data
2594
2595         * gdk/linux-fb/gdkcursor-fb.c:
2596         _gdk_cursor_new_from_pixmap made static
2597
2598         * gdk/linux-fb/gdkdnd-fb.c:
2599         GdkDragContextPrivate moved to windowing_data
2600
2601         * gdk/linux-fb/gdkdrawable-fb2.c:
2602         Removed endian.h, use glib endianness macros instead
2603         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
2604         and GDK_DRAWABLE_IMPL_FBDATA
2605
2606         * gdk/linux-fb/gdkfont-fb.c:
2607         Add empty gdk_font_load(). Needed for linking of Gtk+.
2608
2609         * gdk/linux-fb/gdkimage-fb.c:
2610         Removed endian.h, use glib endianness macros instead
2611         Moved GdkImagePrivateFB to windowing_data
2612         gdk_image_new_bitmap didn't always allocate enough
2613         memory.
2614
2615         * gdk/linux-fb/gdkinput-ps2.c:
2616         Added semi-working support for MS serial mice.
2617
2618         * gdk/linux-fb/gdkprivate-fb.h:
2619         s/GdkWindowPrivate/GdkWindowObject/
2620         Removed GdkWindowPrivate typedef
2621         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
2622         Removed GDK_DRAWABLE_P
2623         Move GdkColorPrivateFB from inherited to windowing_data
2624         Moved GdkImagePrivateFB to windowing_data
2625
2626         * gdk/linux-fb/gdkvisual-fb.c:
2627         Removed some unused debug code.
2628
2629         * gdk/linux-fb/gdkwindow-fb.c:
2630         Use stock cursors instead of including X headers.
2631         s/GdkWindowPrivate/GdkWindowObject/
2632
2633         * gdk/linux-fb/mitypes.h:
2634         Removed unused types.
2635
2636         * modules/linux-fb/basic.c:
2637         Use the pango fribidi wrappers.
2638
2639 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
2640
2641         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
2642         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
2643         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
2644         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
2645         GEqualFunc where applicable.
2646         
2647         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
2648         pango_font_description_equal as changed in pango.
2649         
2650         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
2651
2652         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
2653
2654         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
2655
2656         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
2657
2658         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
2659
2660         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
2661
2662         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
2663         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
2664
2665         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
2666         gtk_rc_styles_compare -> gtk_rc_styles_equal.
2667
2668 2000-11-12  Havoc Pennington  <hp@pobox.com>
2669
2670         * demos/gtk-demo/Makefile.am (democodedir): change demo install
2671         dir to datadir/gtk+-2.0/demo
2672
2673         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
2674         sorts of text widget and Pango font bugs. Urgh.
2675
2676         * demos/gtk-demo/Makefile.am (demos): Add textview.c
2677
2678         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
2679         tree that you should double click to see the demo. Fix 
2680         types of variables to reflect changed return values from 
2681         GtkTreeStore and GtkTreeViewColumn constructors.
2682
2683         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
2684         newly-created buffer to prepare for GObject semantics
2685
2686         * gtk/testtext.c: don't leak the buffer with GObject semantics
2687
2688         * gtk/testtextbuffer.c: ditto
2689         
2690 2000-11-12  Havoc Pennington  <hp@pobox.com>
2691
2692         Rename this testgtk to gtk-demo to avoid confusion, and 
2693         install it so people can use it as a supplement to 
2694         the documentation.
2695         
2696         * demos/gtk-demo: Moved from demos/testgtk
2697
2698         * demos/testgtk: Removed
2699
2700         * configure.in: make Makefile in gtk-demo
2701         
2702         * demos/gtk-demo/Makefile.am: Install sample source to 
2703         datadir/gtk-demo (maybe there's a better place?), and 
2704         rename the binary to gtk-demo
2705         
2706         * demos/gtk-demo/main.c (load_file): Load installed sample
2707         source if source isn't found in pwd.
2708
2709 2000-11-09  Havoc Pennington  <hp@pobox.com>
2710
2711         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
2712         argument to set the char displayed when visibility == FALSE
2713         (gtk_entry_create_layout): If !entry->visible, replace 
2714         all chars with the "invisible char"
2715
2716         * gtk/testgtk.c: Test the invisible_char deal
2717         
2718 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
2719
2720         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
2721         can't get a native font in the right encoding.
2722
2723 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
2724
2725         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
2726         respectively.
2727
2728 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
2729
2730         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
2731         Fix warning when moving between paragraphs.
2732
2733         * gtk/gtkentry.[ch]: Change move => move_cursor, 
2734         delete => delete_from_cursor, insert => insert_at_cursor
2735
2736 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
2737
2738         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
2739
2740         * modules/input/imthai-broken.c: A Thai input method for use if
2741         Thai keys are really generating Latin1 keysyms.
2742
2743         * modules/input/Makefile.am: Build these.
2744
2745 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
2746
2747         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
2748         g_filename_{to,from}_utf8 now takes an extra parameter.
2749
2750         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
2751         strftime into UTF-8.
2752
2753         (column_from_x, gtk_calendar_paint_day_names): Support RTL
2754         calendars.
2755
2756         (gtk_calendar_paint_day_names): Draw day names in the right 
2757         place.
2758         
2759 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
2760
2761         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
2762         problem with using result of g_get_charset() backwards -
2763         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
2764
2765         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
2766         negative min_width/height and max_width/height to
2767         mean "requisition"; this allows setting a window
2768         to be user-resizable in only one direction easily.
2769
2770         * gtk/testgtk.c (create_main_window): Remove hard-coded
2771         usize - set a default size in the vertical direction.
2772
2773 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
2774
2775         * gtk/gtkrange.c: Add some missing casts. Support 
2776         2 and 3 button clicks on the arrows to mean 
2777         "move by pages" and "jump to end". (Like gtkspinbutton)
2778
2779 2000-11-12 Hans Breuer <Hans@Breuer.Org>
2780
2781         * gdk/win32/makefile.msc : reflect build module changes
2782
2783         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
2784         from GdkPixmap*, cast implementation member instead.
2785
2786         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
2787         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
2788         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
2789         more Gdi functions return value checking. 
2790         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
2791         GdkImagePrivateWin32 *.
2792
2793         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
2794         menus useable again. Add #pragma message to keep reminded on this issue.
2795         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
2796         windows. This allows to enable backing store on Win32!
2797
2798         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
2799         in drawable is of impl type. Correct specific type checks appropriate.
2800  
2801         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
2802         GDK_WINDOW_DESTROYED before allocating new resources.
2803
2804         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
2805
2806         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
2807         (gdk_window_foreign_new) initialize parent handle.
2808         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
2809
2810         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
2811         Let the GDI invalidate the window on MoveWindow call to fix scrolling
2812         problems (e.g. main buttons in testgtk). 
2813
2814 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
2815
2816         * gtk/gtkentry.c (gtk_entry_key_press): Call 
2817         gtk_widget_activate for GDK_Return.
2818
2819         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
2820         of preedit cursor position.
2821
2822 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
2823
2824         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
2825         static.
2826
2827 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
2828
2829         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
2830         out support for multiple locales; that simple doesn't
2831         work reliably with current Xlib
2832
2833         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
2834         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
2835         Add support for positioning the cursor within the preedit string.
2836
2837 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
2838
2839         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
2840         at XIM input method module.
2841
2842         * gtk/gtktextview.c: Check for bindings after passing
2843         events to im context filter.
2844
2845 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
2846
2847         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
2848         empty attribute lists properly.
2849
2850 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
2851
2852         * gtk/queryimmodules.c (main): Return non-zero exit
2853         status if errors were encountered querying any
2854         modules.
2855
2856         * modules/input/Makefile.am (moduledir): remove
2857         leftover bin program target.
2858
2859         * docs/make-todo: Fix typo in error message.
2860
2861 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
2862
2863         * configure.in: Add modules/input/Makefile
2864
2865 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
2866
2867         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
2868         don't include gtkthemes.h.
2869
2870         * gtk/testgtk.c gtk/testtext.c: Set environment variables
2871         to point
2872
2873         * gtk/Makefile.am: Add new .c and .h files, build 
2874         gtk-query-immodules and use it to create a gtk.immodules
2875         file for use of test programs.
2876
2877         * gtk/gtkpreview.c: remove extra blank line.
2878
2879 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
2880
2881         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
2882         Add the ability to add extra tables beyond the default
2883         one, and also the ability to have compose sequences 
2884         that are prefixes of other compose sequences. 
2885
2886         * gtk/gtkimcontextsimple.c: Export a preedit string which
2887         consists of possible candidates for keystrokes that have
2888         been entered but not yet committed.
2889
2890         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
2891         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
2892
2893         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
2894         Add a function to add input-method switching menu items
2895         to a menu.
2896
2897         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
2898         when switching input methods.
2899
2900         * gtk/gtkimcontextsimple.[ch]: Change the format of
2901         the compose table to allow compose tables of different
2902         lengths / sequence.
2903
2904 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
2905
2906         * gtk/gtkimmodule.[ch]: Support routines for loading
2907         GtkIMContext implementations dynamically at runtime.
2908
2909         * modules/input/imcyrillic-translit.c: A sample input
2910         method (based on GtkIMContextSimple with an extra table),
2911         which demonstrates preedit strings and the module
2912         system for input modules
2913
2914         * gtk/queryimmodules.c: Program to query the available
2915         input modules and write the results into a file.
2916          
2917         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
2918         extra config options "im_module_file" (cache file for
2919         input method modules), and "im_module_path" - path
2920         to look for modules when generating cache file.
2921
2922         This doesn't scale.
2923
2924 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
2925
2926         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
2927         generic code from gtkthemes into a new abstraction
2928         GtkModule which has the logic for implementing
2929         a loadable module which implements a number of 
2930         GObject types.
2931
2932 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
2933
2934         * gtk/gtkeditable.[ch]: Convert GtkEditable from
2935         a class into an interface  
2936         
2937         * gtk/gtkoldeditable.[ch]: Move the old editable
2938         implementation into here, so legacy widgets can
2939         still rely on the implemenation. GtkOldEditable
2940         exports GtkEditable. Make selection handling
2941         code use new text conversion functions (and
2942         handle UTF-8 as a side-effect). Use GtkClipboard
2943         for CLIPBOARD.
2944
2945         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
2946         Adopt to match above changes.
2947
2948         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
2949         avoid GtkOldEditable implementation. Restructure
2950         to reduce number of places that modify state directly.
2951         Move to GtkBindingSet. Display the preedit string.
2952         Queue recomputation of PangoLayout and scroll position
2953         to improve effiency of doing complex changes naively.
2954         Add a menu with cut/copy/paste and input method selection.
2955
2956 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
2957
2958         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
2959         to set preedit string and attributes; display preedit string by
2960         inserting string and attributes at cursor when creating the
2961         GtkTextLineDisplay.
2962
2963         * gtk/gtktextlayout.c: Move all conversions between byte
2964         positions in PangoLayout and GtkTextIter into new functions
2965         line_display_iter_to_index/index_to_iter that properly
2966         handle the preedit string.
2967
2968         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
2969         it to return const char * (eventually will end up
2970         as GCONST char *, most likely.)
2971
2972         * gtk/gtktextview.[ch]: Handle the preedit string, call
2973         gtk_im_context_reset() as necessary, add a menu to switch
2974         input methods.
2975         
2976         * gtk/gtktextlayout.[ch]: Remove useless
2977         gtk_text_layout_get_log_attrs() function.
2978
2979 2000-11-11  Tor Lillqvist  <tml@iki.fi>
2980
2981         * gdk/gdk.def
2982         * gtk/gtk.def: Update.
2983
2984         * gdk/win32/*.c: Add last argument to g_type_register_static()
2985         calls.
2986
2987         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
2988
2989         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
2990         generated by older wheel mouse drivers. Get the correct y
2991         coordinate from WM_MOUSEWHEEL messages.
2992
2993         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
2994         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
2995         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
2996         Debugging functions.
2997
2998         * gdk/win32/gdkprivate-win32.h: Declare them.
2999
3000         * gdk/win32/gdkinput-win32.h: Add declaration for
3001         gdk_input_window_destroy().
3002
3003         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
3004
3005 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
3006
3007         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
3008         function to help handle keeping things in sync.
3009
3010 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
3011
3012         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
3013         BOXED marshallers.
3014
3015         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
3016         (gtk_list_store_class_init): use the new BOXED marshallers.
3017
3018         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
3019         new_with_values to new_with_types.
3020         (gtk_tree_store_get_column_type): add this.
3021         (gtk_tree_store_class_init): use the new BOXED marshallers.
3022
3023         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
3024         mirror some POINTER marshallers.
3025
3026 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
3027
3028         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
3029         allow more interesting iterators.  Also, made the lifecycle of
3030         iterators more explicit.
3031
3032         * gtk/gtktreemodelsort.[ch]: New model for sorting.
3033
3034         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
3035         types.
3036
3037 2000-11-09  Alexander Larsson  <alexl@redhat.com>
3038
3039         * demos/testgtk/menus.c:
3040         Changes to make the new testgtk compile after
3041         gtk_menu_append was removed.
3042
3043         * gdk/linux-fb/gdkdrawable-fb2.c
3044         (gdk_fb_get_depth, gdk_fb_get_visual,
3045         gdk_drawable_impl_fb_class_init): Implement
3046         these drawable functions. Now GtkImages work again.
3047
3048         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
3049
3050         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
3051         
3052         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
3053         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
3054         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
3055         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
3056
3057 2000-11-08  Havoc Pennington  <hp@pobox.com>
3058
3059         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
3060         visible_set args, don't know where these had gone, I thought they
3061         used to be there
3062
3063         * gtk/testtext.c: Add a menu item to apply invisibility tag;
3064         now we can test the feature and see that it's totally broken.
3065
3066 2000-11-08  Havoc Pennington  <hp@pobox.com>
3067
3068         Make DND copy pixbufs and tags when source and target share a 
3069         tag table.
3070         
3071         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
3072         in-process GTK_TEXT_BUFFER_CONTENTS target
3073         (gtk_text_view_drag_data_received): Paste from
3074         GTK_TEXT_BUFFER_CONTENTS if we receive it.
3075
3076 2000-11-08  Alexander Larsson  <alexl@redhat.com>
3077
3078         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
3079         API changes.
3080
3081         * gtk/gtkmenu.c: Add support for scrolling menus.
3082         Remove gtk_menu_append/prepend/insert, these have been moved to
3083         gtkcompat.h as #defines.
3084
3085         * gtk/gtkcompat.h.in:
3086         Add compatibility #defines for gtk_menu_append/prepend/insert
3087
3088         * gtk/gtkmenu.h: Add data needed for scrolling menus.
3089         GtkMenuPositionFunc gets an extra argument push_in.
3090         gtk_menu_append/prepend/insert removed.
3091         
3092         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
3093         positioning behaviour to fit to scrolling menus.
3094
3095         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
3096         into menuitem->submeny. That is wrong, and broke torn
3097         off submenus of torn off menus, since they were unrealized
3098         when the first menu was unrealized.
3099
3100         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
3101         gtk_menu_shell_select_item() since these need to be overridden in
3102         GtkMenu.
3103
3104         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
3105         positioning behaviour to fit to scrolling menus.
3106         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
3107         the current item so that it is prelighted when the menu pops up.
3108         This is a workaround to the fact that the menu doesn't get the
3109         initial enter event (due to grabs).
3110
3111         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
3112         s/gtk_menu_append/gtk_menu_shell_append/
3113
3114         * gtk/gtknotebook.c:
3115         s/gtk_menu_insert/gtk_menu_shell_insert/
3116
3117         * gtk/testgtk.c (create_menu, create_menus):
3118         Create the first menu with 50 items so that menu scrolling
3119         can be tested.
3120         
3121         
3122         Patch from Jonathan Blandford  <jrb@redhat.com>
3123
3124         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
3125         system to handle size requests.  First, we ask what the size of
3126         the toggle is.  Then, when allocating the size, we allocate the
3127         toggle_size first.  This way we can have multiple menu-item
3128         classes w/o needing a seperate class for each.
3129
3130         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
3131         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
3132
3133         * gtk/gtkcheckmenuitem.c
3134         (gtk_check_menu_item_toggle_size_request): New function to handle
3135         the toggle size-request.
3136
3137 2000-11-07  Havoc Pennington  <hp@redhat.com>
3138
3139         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
3140         Half-ass somewhat fix this function, so that scrolling to the
3141         insertion point works. Pango hacking is in the future to really
3142         fix it.
3143
3144         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
3145         length of data, no longer used.
3146
3147         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
3148         method contents in here, get rid of destroy method
3149         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
3150         that were backward. Remove debug spew.
3151         (cut_or_copy): Make the clipboard work with insert_range to
3152         preserve tags and pixbufs, not just the primary selection.
3153
3154 2000-11-07  Havoc Pennington  <hp@redhat.com>
3155
3156         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
3157         to gtk_text_mark_get_visible
3158
3159         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
3160         bug that was generating an invalid iterator
3161
3162         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
3163         ensure_char_offsets() in front of code placing the iter in an
3164         invalid state.
3165
3166         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
3167         make override_location arg const
3168         (paste): Replace the selection if we paste into the 
3169         current selection
3170
3171         * gtk/gtkselection.h: Remove "GtkSelectioData"
3172         (struct _GtkSelectionData): move the definition here.
3173
3174         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
3175         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
3176
3177         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
3178
3179         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
3180         (gtk_text_buffer_insert_range_interactive): implement
3181         (gtk_text_buffer_get_tags): Remove, replaced by
3182         gtk_text_iter_get_tags()
3183
3184         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
3185         limit parameter, to avoid infinite linear scan.
3186         (gtk_text_iter_backward_search): Add search limit
3187         (gtk_text_iter_forward_find_char): Add search limit
3188         (gtk_text_iter_backward_find_char): Add search limit
3189
3190 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
3191
3192         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
3193         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
3194         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
3195         gdk/linux-fb/gdkwindow-fb.c:
3196         use g_object_new() instead of g_type_create_instance() which
3197         is a private function for fundamental type implementations.
3198
3199         * gdk/linux-fb/gdkinput-ps2.c:
3200         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
3201         instead just store the current modifier state. Add a (somewhat broken)
3202         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
3203         Rename exported function gdk_input_ps2_get_mouseinfo to
3204         gdk_input_get_mouseinfo.
3205
3206         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
3207         gdk/linux-fb/gdkwindow-fb.c:
3208         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
3209         
3210
3211 2000-11-02  Havoc Pennington  <hp@redhat.com>
3212
3213         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
3214         use stock buttons. Should be 100% source compatible, appropriate
3215         filesel fields now point to dialog->vbox and dialog->action_area.
3216         On the bizarre side, dialog->action_area and filesel->action_area
3217         are not the same widget.
3218         (gtk_file_selection_init): Put some padding around the selection
3219         entry, so it isn't touching the GtkDialog separator.    
3220
3221         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
3222         use stock buttons, etc. Should also be source compatible.
3223         Set the dialog default title in _init not _new().
3224         
3225         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
3226         Use stock buttons; don't put a button box inside the existing
3227         dialog button box. Don't bother with push/pop colormap anymore.
3228
3229         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
3230         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
3231         for message dialog, and necessary for the font selection and color
3232         selection with help and apply buttons.
3233         
3234         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
3235         to the created button widget. Set GTK_CAN_DEFAULT on the button.
3236         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
3237         between buttons, put less padding around the action area.
3238         (gtk_dialog_run): Exit on unmap rather than on destroy. 
3239         This will also exit the loop if the widget is hidden.
3240         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
3241         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
3242         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
3243         special-case delete event.
3244
3245         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
3246         formatting
3247         
3248 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
3249
3250         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
3251         button to temporarily disable position recording in the
3252         "saved position" test.
3253
3254 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
3255
3256         * gtk/gtkthemes.c: added compat code that temporarily implements
3257         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
3258         going to be revamped by owen's upcoming GtkModule patches, but
3259         untill then people want gtk to build, right? ;)
3260
3261 2000-11-04  Havoc Pennington  <hp@pobox.com>
3262
3263         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
3264         list
3265
3266         * docs/Changes-2.0.txt: Add note about
3267         gtk_container_get_toplevels()
3268
3269         * gtk/gtktextview.h: formatting
3270         
3271         * gtk/gtktextview.c: don't start descriptions with "Returns",
3272         confuses gtk-doc
3273
3274 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
3275
3276         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
3277         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
3278
3279 2000-11-03  Havoc Pennington  <hp@redhat.com>
3280
3281         * gtk/gtktexttagtable.c: Docs
3282         (gtk_text_tag_table_size): return a signed int
3283
3284         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
3285         (gtk_text_tag_event): make the event_object a GObject
3286
3287         * gtk/gtktextview.c: Write API docs for all functions.
3288
3289         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
3290         for gtk_text_view_get_window_type() called on one of the private
3291         windows.
3292
3293         * gtk/gtktextview.c: Instead of accessing text_view->buffer
3294         directly, call get_buffer() which demand-creates a default
3295         buffer. So gtk_text_view_new() can be used to create a view with a
3296         default buffer in it, if you just want an empty text box users can
3297         put data in. Useful for GUI builders also.
3298
3299 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
3300
3301         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
3302         the charset encodign portion MUST be in lowercase.
3303         * gtk/gtkrc.az: added file for Azeri language
3304
3305 2000-11-03  Havoc Pennington  <hp@redhat.com>
3306
3307         Get widgets working on the btree/buffer side. Display of them 
3308         still doesn't work.
3309         
3310         * gtk/gtktextview.c: start implementing child widget stuff
3311
3312         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
3313
3314         * gtk/gtktextlayout.c: handle embedded widgets
3315
3316         * gtk/gtktextdisplay.c: handle embedded widgets
3317
3318         * gtk/gtktextchild.c: Implement all the child anchor goo
3319
3320         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
3321         function
3322
3323         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
3324         (insert_pixbuf_or_widget_segment): abstract out common portions of 
3325         creating a child anchor or a pixbuf segment.
3326         (gtk_text_btree_create_child_anchor): new function
3327         (gtk_text_btree_unregister_child_anchor): new function
3328
3329         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
3330         allocate_child signal on GtkTextLayout
3331
3332         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
3333         values
3334         (gtk_text_iter_get_child_anchor): new function
3335
3336         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
3337         default handler for the changed signal, which calls
3338         gtk_text_buffer_set_modified(), instead of just always emitting
3339         changed then calling set_modified() manually. I guess this is
3340         maybe more flexible. It seems logical.
3341
3342 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
3343
3344         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
3345         now.
3346
3347         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
3348
3349 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
3350
3351         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
3352         been marked static.
3353
3354 2000-11-02  Havoc Pennington  <hp@redhat.com>
3355
3356         * gtk/testgtk.c (create_labels): had a test backward
3357
3358         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
3359         fields, so the dest GC ends up with the correct clip origin, 
3360         etc. Fixes a bug where colored labels didn't redraw 
3361         properly.
3362
3363 2000-11-02  Alexander Larsson  <alexl@redhat.com>
3364
3365         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
3366         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
3367         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
3368         Add last argument to t_type_register_static call.
3369         
3370         * gdk/linux-fb/gdkdrawable-fb2.c:
3371         Add last argument to t_type_register_static call.
3372         export the get_image drawable virtual function.
3373
3374         * gdk/linux-fb/gdkimage-fb.c:
3375         Add last argument to t_type_register_static call.
3376         rename gtk_image_get to _gdk_fb_get_image and
3377         export it for use by gdkdrawable-fb2.
3378
3379         * gdk/linux-fb/gdkprivate-fb.h:
3380         export _gdk_fb_get_image.
3381
3382         * gdk/linux-fb/gdkselection-fb.c:
3383         Add new api call stubs.
3384
3385         * gtk/Makefile.am:
3386         Missing ( in linux-fb part.
3387
3388         * modules/linux-fb/Makefile.am:
3389         Must link with gdk_pixbuf or get unresolved symbol.
3390
3391 2000-11-01  Havoc Pennington  <hp@pobox.com>
3392
3393         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
3394         GTK_TYPE_TEXT_ITER and BOXED marshallers
3395
3396         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
3397
3398         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
3399         
3400         * gtk/gtk-boxed.defs: add GtkTextIter
3401
3402         * gtk/gtkmarshal.list: Add marshallers for text widget that 
3403         properly use OBJECT and BOXED
3404
3405 2000-11-01  Havoc Pennington  <hp@redhat.com>
3406
3407         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
3408
3409         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
3410         before returning it. 
3411         
3412 2000-11-01  Havoc Pennington  <hp@redhat.com>
3413
3414         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
3415         Clip the rectangle to be rendered to the drawable, since
3416         get_from_drawable() requires a region within the drawable
3417
3418 2000-11-01  Havoc Pennington  <hp@redhat.com>
3419
3420         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
3421         from coordinates.
3422
3423 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
3424
3425         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
3426         it isn't NULL.
3427
3428 2000-11-01  Havoc Pennington  <hp@pobox.com>
3429
3430         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
3431         on a label
3432         (gtk_label_finalize): unref the attr list if any.
3433
3434         * gtk/testgtk.c (create_get_image): close test on second click
3435         (make_message_dialog): close dialog if it exists
3436
3437         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
3438
3439         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
3440         gdk-pixbuf
3441
3442         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
3443         from Pango markup format
3444         (gtk_label_set_markup_with_accel): ditto but with accelerator
3445         parsing
3446
3447         * gtk/gtkimage.c (gtk_image_expose): reformatting.
3448
3449         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
3450         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
3451         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
3452         call gdk_window_get_origin().
3453
3454         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
3455         implement GDK_PIXBUF_ALPHA_FULL
3456         
3457 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
3458
3459         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
3460         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
3461         g_signal_handlers_disconnect_matched to block/unblock and disconnect
3462         multiple handlers respectively, instead of only treating the
3463         first handler found (bug reported by owen).
3464
3465 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
3466
3467         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
3468
3469         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
3470
3471         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
3472         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
3473         gtk/gtktreeviewcolumn.h: Fixed inline docs.
3474
3475         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
3476         widget.  Needs writing someday.
3477
3478         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
3479         the docs.
3480
3481 2000-10-30  Havoc Pennington  <hp@redhat.com>
3482
3483         * gtk/gtktextview.h, gtk/gtktextview.c:
3484         Rename delete_at_cursor delete_from_cursor, and 
3485         move to move_cursor.
3486
3487 2000-10-30  Havoc Pennington  <hp@redhat.com>
3488
3489         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
3490         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
3491         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
3492         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
3493         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
3494         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
3495         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
3496         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
3497         gtktexttypes.h, gtktextview.c, gtktextview.h:
3498
3499         Massive reindentation and reformatting. Arg alignment and comments
3500         still need fixing in various places.
3501
3502 2000-10-30  Havoc Pennington  <hp@redhat.com>
3503
3504         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
3505         to be named insert_at_cursor and delete_at_cursor so C++ can
3506         handle them.
3507
3508 2000-10-28  Tor Lillqvist  <tml@iki.fi>
3509
3510         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
3511         to get a double directory separator in case the home directory
3512         ends with one. This would cause trouble especially on Windows,
3513         where the path will be confused with the syntax for an an UNC
3514         (network share) path \\server\share\path.
3515         (gtk_rc_add_initial_default_files): Ditto.
3516
3517 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
3518
3519         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
3520
3521         * gtk/gtktextview.c: Use correct marshallers.
3522
3523 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
3524
3525         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
3526         use new iter stuff, and added all the appropriate signals et al.
3527
3528         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
3529         code is internal to gtk only.
3530
3531 2000-10-28  Tor Lillqvist  <tml@iki.fi>
3532
3533         * gtk/gtk.def
3534         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
3535         glib-genmarshal etc.
3536
3537 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
3538
3539         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
3540         parallel builds.
3541
3542 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
3543
3544         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
3545
3546 2000-10-27  Robert Brady  <robert@suse.co.uk>
3547
3548         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
3549         en_GB (British), ia (Interlingua).
3550
3551 2000-10-26  Havoc Pennington  <hp@redhat.com>
3552
3553         * gtk/gtktextiter.c (my_strrstr): fix constness warning
3554
3555         Fixed output of:
3556         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
3557         
3558         * gtk/gtktextsegment.c (char_segment_new): rename
3559         (_char_segment_new_from_two_strings): rename
3560         (_toggle_segment_new): rename
3561         
3562         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
3563         (make_clipboard_widget): make it static
3564         (text_get_func): static
3565         (text_clear_func): static
3566
3567         * gtk/gtkcolorsel.c (adjustment_changed): make this function
3568         static
3569         (hex_changed): make it static
3570         (hsv_changed): make it static
3571         (opacity_entry_changed): make it static
3572
3573         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
3574         (toggle_segment_check_func): rename with _gtk
3575
3576         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
3577         (_widget_segment_new): rename
3578         (_widget_segment_add): rename
3579         (_widget_segment_remove): rename
3580         (_widget_segment_ref): rename
3581         (_widget_segment_unref): rename
3582
3583         * gtk/gtktextmark.c (_mark_segment_new): Rename
3584         _gtk_mark_segment_new   
3585
3586 2000-10-26  Havoc Pennington  <hp@redhat.com>
3587
3588         * gtk/gtkmarshal.list: add new marshallers used by the text widget
3589         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
3590         types
3591
3592         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
3593         marshaller types
3594
3595         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
3596         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
3597         license on these files.
3598
3599         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
3600         work.
3601
3602         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
3603         runtime random number different for each tree, instead of 
3604         a constant I made up.
3605
3606 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
3607
3608         * gtk/Makefile.am: buncha cleanups, kludged build sources
3609         dependencies with a Makefile: oldest-source-stamp dependancy
3610         for the moment. automake is really fighting us here, with
3611         intentionally not allowing user-defined rules or dependancies
3612         prior to it's -include $(DEP_FILES) statement. sucks rocks!
3613
3614         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
3615         to public headers. tehy have a comment stating that they are
3616         "semi-public" aren't included by gtk.h and if enums popup there,
3617         they can be /*< skip >*/-ed.
3618
3619         * gtk/gtktextlayout.h: 
3620         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
3621         added LGPL... <SIGH>
3622
3623 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
3624
3625         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
3626         GtkTreeIter.  Added iterators everywhere.
3627
3628         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
3629
3630         * gtk/gtktreeviewselection.c: Changed to use the iterators.
3631
3632         * gtk/gtktreestore.c: Changed to use the iterators.
3633
3634         * gtk/gtkliststore.c: Commented out the code.  Will convert to
3635         iterators tomorrow.
3636
3637         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
3638         iterators tomorrow.
3639
3640         * gtk/treestoretest.c: Changed to use iterators.
3641
3642         * demos/testgtk/main.c: Moved to use the new iterator system.
3643
3644 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
3645
3646         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
3647         localization misbehaviour.
3648
3649         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
3650         a useless type without copy/free.
3651
3652         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
3653         of GTK_TYPE_CTREE_NODE.
3654
3655 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
3656
3657         * gtk/gtksignal.c:
3658         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
3659         applicable.
3660
3661         * gtk/gtk-boxed.defs (GtkSelectionData): specify
3662         gtk_selection_data_copy and gtk_selection_data_free
3663         do GtkSelectionData work as params in signals.
3664
3665 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
3666
3667         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
3668         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
3669         couldn't they at least give it a non-standard name?
3670         
3671         * gtk/gtktextlayout.c: arg! yet another implementation of
3672         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
3673
3674         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
3675         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
3676         home. now i know this _is_ a conspiracy.
3677
3678         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
3679         ::state-changed.
3680
3681         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
3682         (gtk_accel_group_create_add): marshaller signature fixups.
3683
3684         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
3685         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
3686
3687         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
3688         anymore.
3689
3690 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
3691
3692         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
3693         due to the signal system changes, it wouldn't build currently. to
3694         be fixed soon.
3695
3696         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
3697
3698         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
3699         so it needs gtk_marshal_VOID__ENUM() instead of
3700         gtk_marshal_NONE__UINT().
3701
3702         * gdk/gdk*.c: adapted type registration functions.
3703
3704         * gtk/gtkbindings.c:
3705         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
3706         gone.
3707
3708         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
3709
3710         * gtk/gtkobject.c:
3711         (gtk_object_destroy):
3712         (gtk_object_shutdown): fixed recursion guards. basically we have to
3713         catch the case where any of GObject.shutdown() or gtk_object_destroy()
3714         is called during ::destroy, and avoid recursion there.
3715
3716         * gtk/gtktypeutils.c:
3717         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
3718         boxed_copy/boxed_free. this needs a more general solution based on a
3719         publically installed code-generator utility.
3720
3721         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
3722         glib's gobject has support for that now.
3723         define GtkSignalMarshaller in terms of GSignalCMarshaller.
3724
3725 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
3726
3727         * gtk/gtksignal.[hc]:
3728         * gtk/gtkmarshal.[hc]:
3729         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
3730         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
3731         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
3732         care of that.
3733
3734         * *.c: marshaller name fixups.
3735
3736         * gtk/gtkmarshal.list: added a comment briefing the format.
3737
3738 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
3739
3740         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
3741         compatibility macros here now. more specifically, most of
3742         the API is preserved (yes, _most_, nonwithstanding the
3743         following exceptions listed, the API is stil lHUGE ;)
3744         things that got removed completely:
3745         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
3746         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
3747         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
3748         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
3749         gtk_signal_remove_emission_hook().
3750         non-functional functions variants:
3751         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
3752         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
3753         not supported anymore.
3754         (gtk_signal_compat_matched): new internal function to aid
3755         implementation of the compatibility macros, it  provides
3756         functionality to block/unblock/disconnect handlers based
3757         on func/data.
3758
3759         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
3760
3761         * *.c: adaptions to new type registration API signatures.
3762
3763 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
3764
3765         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
3766
3767 2000-10-25  Robert Brady  <robert@suse.co.uk>
3768
3769         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
3770         gdk_property_delete): If window == NULL, assume the root window.
3771         (restoring the behaviour that was in 1.2).
3772         
3773         * gtk/testtext.c (save_buffer): Allow creation of new files when
3774         saving.
3775
3776         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
3777         calls to read().
3778
3779 2000-10-25  Tor Lillqvist  <tml@iki.fi>
3780
3781         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
3782
3783         * gdk/win32/gdkdrawable-win32.c
3784         * gdk/win32/gdkimage-win32.c
3785         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
3786         X11 backend.
3787
3788         * gdk/win32/gdkcc-win32.c
3789         * gdk/win32/gdkcolor-win32.c
3790         * gdk/win32/gdkfont-win32.c
3791         * gdk/win32/gdkinput-win32.c
3792         * gdk/win32/gdkmain-win32.c
3793         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
3794
3795 2000-10-24  Havoc Pennington  <hp@redhat.com>
3796
3797         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
3798         it a static function
3799
3800         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
3801         redraw text when a tag is applied to it.
3802
3803         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
3804         (gtk_text_tag_affects_nonsize_appearance): private functions to
3805         see if a tag requires various kinds of redraw/layout to be queued
3806         up.
3807
3808         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
3809
3810         * gtk/testtext.c (fill_example_buffer): Put the cursor 
3811         at the start of the buffer, so search works by default
3812
3813         * gtk/gtktextiter.c (lines_match): init match_start always
3814
3815         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
3816         function, get iter at a line + a byte index
3817
3818         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
3819         to set byte position within a line
3820         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
3821
3822 2000-10-23  Havoc Pennington  <hp@redhat.com>
3823
3824         * gtk/testtext.c: Re-enable the "find" dialog
3825
3826         * gtk/testgtk.c: Add test for gdk_drawable_get_image
3827         
3828         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
3829         the arguments to gdk_draw_drawable were in the wrong order
3830         (gdk_window_paint_init_bg): This function was ignoring the
3831         init_region, instead of clipping to it, so the entire backing
3832         pixmap was cleared on every begin_paint()
3833         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
3834         was in here again, the loop kept using the same GtkWindowPaint
3835         over and over.
3836         (gdk_window_begin_paint_region): Fix a bug where we had two
3837         x_offset instead of x_offset and y_offset
3838
3839         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
3840         before we get the image.
3841         (gdk_draw_drawable): get the composite before we draw the drawable.
3842         (gdk_drawable_real_get_composite_drawable): default
3843         get_composite_drawable implementation that returns the drawable 
3844         itself
3845
3846         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
3847         get_composite_drawable virtual function
3848
3849         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
3850         list-walking bug
3851
3852         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
3853         make this work if the source drawable is a GdkDrawableImplX11
3854         instead of a public drawable type. This is really broken; the
3855         problem is that GdkDrawable needs a virtual method get_xid(), but
3856         of course that doesn't work in practice. Enter RTTI.
3857
3858         Also, improve mismatched depth message.
3859
3860         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
3861         GdkPixmap
3862
3863         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
3864         install _gdk_x11_get_image as our implementation of get_image
3865         
3866         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
3867         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
3868
3869         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
3870         gdk_drawable_get_image
3871
3872         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
3873
3874         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
3875         get_image
3876
3877         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
3878         trailing semicolon after for loop
3879
3880 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
3881
3882         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
3883         where font_desc for widget's context lagged widget's font_desc by
3884         one step.
3885
3886 2000-10-22  Tor Lillqvist  <tml@iki.fi>
3887
3888         * gdk/win32/gdkgc-win32.c
3889         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
3890
3891         * gtk/makefile.mingw.in
3892         * gtk/gtk.def: Updates.
3893
3894         * gtk/testgtk.c: sleep() is called _sleep in MS's C
3895         library.
3896
3897         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
3898
3899         * gtk/makefile.msc: Remove
3900
3901         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
3902
3903         * gtk/Makefile.am: Add it.
3904
3905         * configure.in: Generate it.
3906
3907         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
3908         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
3909         something even if not implemented, to satisfy picky MSVC.
3910
3911         Patches by Hans Breuer:
3912         
3913         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
3914         SetBkMode() and SetTextAlign() before calling
3915         pango_win32_render().
3916
3917         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
3918         Set hcliprgn to NULL after destroying it.
3919         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
3920
3921         * gdk/win32/gdkgeometry-win32.c
3922         (_gdk_windowing_window_queue_antiexpose): More effective
3923         implementation.
3924
3925         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
3926         depth as default, not the visual's.
3927
3928         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
3929         against empty title.
3930
3931         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
3932         IMAGE_PRIVATE_DATA.
3933
3934         * gdk/win32/gdkimage-win32.c: Use it.
3935
3936 2000-10-22  Robert Brady  <robert@suse.co.uk>
3937
3938         * configure.in: Check for bind_textdomain_codeset
3939
3940         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
3941         present, make use of it.
3942
3943         Add a translatable string "default:LTR" which, if translated
3944         to "default:RTL", will cause the default direction to be
3945         Right-to-Left.
3946
3947         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
3948         direction if marked as flippable.
3949
3950         * gtk/gtkhscale.c: Mark widget as flippable.
3951         
3952 2000-10-04  Havoc Pennington  <hp@redhat.com>
3953
3954         * gtk/testgtk.c (create_buttons): create some stock buttons
3955         with the default accel group
3956         (create_image): test some new GtkImage features
3957         (make_message_dialog): test GtkMessageDialog
3958         (create_modal_window): fix someone's bizzarro indentation
3959
3960         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
3961         GTK_WIN_POS_CENTER_ON_PARENT. 
3962         Add "destroy with parent" setting, which means the window goes
3963         away with its transient parent.
3964         (gtk_window_get_default_accel_group): get the default accel group
3965         for the window.
3966         (gtk_window_set_destroy_with_parent): set/unset destroy with
3967         parent flag
3968         (gtk_window_read_rcfiles): invalidate icon set caches
3969         after reloading rcfiles 
3970
3971         * gtk/gtkenums.h (GtkWindowPosition): add
3972         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
3973         on its parent window when the dialog is mapped for the first time.
3974
3975         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
3976         a simple message dialog class
3977         
3978         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
3979         handler to emit response signal, and maybe later it would
3980         honor a hide_on_delete flag - though that isn't there yet.
3981         Set border width on the vbox to 2, so we get some padding.      
3982         Use a button box for the action area.
3983         (gtk_dialog_key_press): synthesize a delete event if Esc
3984         is pressed and the GtkWidget key press handler didn't 
3985         handle the escape key.
3986         (gtk_dialog_new_with_buttons): new function creates a dialog
3987         with some default buttons in it.
3988         (gtk_dialog_add_action_widget): add an activatable widget
3989         as a button in the dialog - you can also add a non-activatable
3990         widget by accessing the action area directly.
3991         (gtk_dialog_add_button): add a simple button - stock ID or 
3992         label - to the action area
3993         (gtk_dialog_response): emit response signal
3994         (gtk_dialog_run): block waiting for the dialog, return 
3995         the response. Override normal delete_event behavior, so that 
3996         delete_event does nothing inside gtk_dialog_run().
3997
3998         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
3999         emitted when an action widget is clicked or the dialog gets
4000         delete_event
4001
4002         * gtk/gtk.h: add gtkmessagedialog.h
4003
4004         * gtk/Makefile.am: add gtkmessagedialog.[hc]
4005
4006 2000-10-18  Havoc Pennington  <hp@redhat.com>
4007
4008         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
4009         where any number of empty lines would get skipped
4010
4011         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
4012         edge.
4013
4014         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
4015         warning about invalid iterators (explain more thoroughly)
4016         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
4017
4018         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
4019         big
4020
4021         * demos/*.c: Add error handling
4022
4023         * gtk/gtktextbuffer.c: don't modify const iterators
4024
4025         * gtk/gdk-pixbuf-loader.c: Add full error handling here
4026
4027         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
4028         on file load
4029
4030         * gtk/gtkiconfactory.c: Update to reflect addition of error
4031         handling to gdk-pixbuf loaders
4032
4033 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
4034
4035         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
4036         move to new modularized testgtk.
4037
4038 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
4039
4040         * gtk/gtktreeview.c: Draw the arrows correctly.
4041
4042         * gtk/gtktreemodel.c: Added user docs.
4043
4044         * gtk/gtk.h: remove gtktreedatalist.h.
4045
4046         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
4047         parent when generating my type.
4048
4049         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
4050         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
4051
4052 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
4053
4054         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
4055         GtkTreeModel from object to interface.
4056
4057 2000-10-16  Havoc Pennington  <hp@redhat.com>
4058
4059         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
4060         compilation
4061
4062 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
4063
4064         * gtk/gtktreeselection.c: Add API documentation to all public
4065         functions.
4066
4067         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
4068         functions.
4069
4070 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
4071
4072         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
4073         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
4074         docs to all public functions.
4075
4076         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
4077         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
4078         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
4079         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
4080         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
4081         issue.
4082
4083 2000-10-14  Robert Brady  <robert@suse.co.uk>
4084
4085         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
4086
4087 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
4088
4089         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
4090         values other then G_TYPE_STRING.
4091         * gtk/gtktreeselection.c: Minor commenting updates.
4092         * gtk/gtktreeview.c: Format updates.
4093
4094 2000-10-09  Tor Lillqvist  <tml@iki.fi>
4095
4096         * README.win32: Update.
4097
4098         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
4099         lines that had been deleted by mistake (?).
4100
4101         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
4102         also the case fg==white and bg==black (but still not randomly
4103         coloured cursors). Thanks to Wolfgang Sourdeau.
4104
4105         * gdk/win32/*.c: Silence gcc -Wall.
4106
4107         * gtk/gtk.def: Add missing entry points.
4108
4109         Fixes by Hans Breuer:
4110
4111         * gdk/makefile.msc
4112         * gdk/win32/makefile.msc: Update.
4113
4114         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
4115         some MSVC thing, presumably), cause breakpoint on failures. Add
4116         GDK_NOR case. Call g_log_set_always_fatal.
4117
4118         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
4119         should be pased by reference.
4120         
4121         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
4122         
4123         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
4124
4125         * gdk/win32/gdkevents-win32.c
4126         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
4127
4128         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
4129         implementation object.
4130
4131         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
4132         not just windows.
4133         
4134         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
4135         Use the wrapper object.
4136         
4137 2000-10-06  Havoc Pennington  <hp@redhat.com>
4138
4139         * Makefile.am (SRC_SUBDIRS): contrib subdir
4140
4141         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
4142         so it can be used in Xlib version
4143
4144         * demos/testpixbuf.c (update_timeout): error checking from 1.0
4145         tree
4146
4147         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
4148         change from 1.0 tree that returns first frame of animation
4149         if the loaded file is an animation.
4150
4151         * contrib: add new directory to hold stuff that comes with GTK+
4152         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
4153         
4154         * configure.in: add contrib/*
4155
4156 2000-10-05  Havoc Pennington  <hp@redhat.com>
4157
4158         * demos/testpixbuf-save.c: add pixbuf save test
4159
4160         * demos/Makefile.am: add testpixbuf-save.c
4161
4162 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
4163
4164         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
4165         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
4166         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
4167         * gtk/gtktreeselection.[ch]: Replaced
4168         "node_selected"/"node_unselected" signal with "selection_changed"
4169         signal.
4170
4171 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
4172
4173         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
4174         tree widget.
4175
4176 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
4177
4178         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
4179         drawing.
4180
4181 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
4182
4183         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
4184         Move list pointer forwards before removing item from
4185         list. (Crash reported by Salmaso Raffaele)
4186
4187         * gdk/gdkwindow.h: Remove spurious trailing ,
4188
4189         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
4190         dependencies on uninstalled libraries, sorry folks.
4191
4192 2000-10-04  Havoc Pennington  <hp@redhat.com>
4193
4194         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
4195         gtk/gtkiconfactory.c: Fix copyrights    
4196
4197         * demos/testpixbuf.c: add inline pixbuf test
4198         
4199 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
4200
4201         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
4202         Add gdk_window_iconify.
4203
4204         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
4205         (gdk_window_set_geometry_hints): Add win_gravity
4206         to geometry structure.
4207
4208         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
4209         Implement _NET_WM_PING.
4210
4211         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
4212         Set _NET_WM_PID on the client leader.
4213
4214         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
4215         Handle UTF-8 better.
4216
4217         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
4218         UTF-8 better, set _NET_WM_NAME as well. Only set
4219         icon name if it hasn't previously been explicitely 
4220         set.
4221
4222 2000-10-03  Havoc Pennington  <hp@redhat.com>
4223
4224         * gtk/testtextbuffer.c: clean up trailing whitespace,
4225         add extensive tests for tag toggle iteration.
4226         
4227         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
4228         distance
4229
4230         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
4231         optimize case where the tag root is on level 1
4232         (gtk_text_line_previous_could_contain_tag): attempt to implement
4233         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
4234         functionality
4235
4236         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
4237         Implement this, though not very efficiently.
4238
4239         * gtk/gtktextiterprivate.h: reformat
4240
4241         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
4242         iterator
4243
4244         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
4245         this to properly revalidate the iterators.
4246
4247         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
4248         properly at the end of the line (and therefore on empty lines)
4249
4250         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
4251         maybe we should return a value...
4252
4253 2000-10-03  Tor Lillqvist  <tml@iki.fi>
4254
4255         * config.h.win32: Guard definition of alloca(). glib.h now handles
4256         that.
4257
4258         * gdk/gdk.def
4259         * gtk/gtk.def: Add new entry points.
4260
4261         Changes just to make GTK+ build without errors on Win32. No hope
4262         of it working in its current state, though...:
4263         
4264         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
4265         some functions from the X11 backend, just to make GTK+ build.
4266
4267         * gdk/makefile.mingw.in
4268         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
4269         number. Add new object files.
4270
4271         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
4272         GetMessageTime to get timestamp (where on X11 uses
4273         gdk_x11_get_server_time()).
4274
4275 2000-10-02  Havoc Pennington  <hp@pobox.com>
4276
4277         * gtk/gtktextview.c: text_window_* weren't static and should have
4278         been.
4279         Start work on child widgets; not yet complete, syncing to 
4280         office computer.
4281
4282         * gtk/gtktextchild.h: change this to contain a public interface,
4283         starting work on child interfaces.
4284         * gtk/gtktextchildprivate.h: move private interfaces here
4285
4286         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
4287
4288         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
4289         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
4290         gtk/gtktextmark.c: copyright notices
4291
4292         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
4293         internal functions      
4294
4295         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
4296         internal function
4297
4298         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
4299         Reformatting    
4300
4301 2000-09-30  Havoc Pennington  <hp@pobox.com>
4302
4303         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
4304         NULL start/end pointers
4305
4306         * gtk/gtktextbuffer.c: Write some docs
4307         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
4308         NULL, so you can just check whether there's a selection.        
4309
4310         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
4311         cleanup_line or segments_changed ourselves, it gets done 
4312         in unlink_segment
4313
4314         * gtk/gtktextmark.h:
4315         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
4316         
4317         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
4318
4319         * gtk/gtktextmark.c: delete some more old Tk cruft
4320
4321         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
4322         mark before removing it, so we can emit MARK_DELETED with a valid
4323         pointer.
4324         (gtk_text_buffer_mark_set): hold ref across signal emission
4325
4326         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
4327         whining about attempts to delete special marks
4328
4329         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
4330         underscore, since it's internal.
4331
4332         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
4333         now implemented in terms of iterators in gtktextiter.h
4334
4335         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
4336         New function, destructively sets contents of buffer. Also 
4337         a convenient way to clear the buffer by setting text to ""
4338
4339         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
4340         multiline string literal
4341
4342         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
4343         text changes.
4344
4345         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
4346         is not dereferenceable
4347         (gtk_text_iter_forward_lines): fix return value
4348
4349 2000-09-29  Havoc Pennington  <hp@redhat.com>
4350
4351         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
4352
4353         * gtk/gtktextview.c: Implement drag thresholding; change functions 
4354         that set border window size to have nicer name
4355         (gtk_text_view_mark_set_handler):  Fix this to have the 
4356         right signature.
4357
4358         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
4359
4360         * gtk/testtext.c: Update with API changes, put line numbers on 
4361         both sides.
4362         
4363         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
4364         with this
4365
4366         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
4367         pixbuf; delete a big block of #if 0 Tk code
4368
4369         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
4370         insert_pixmap with insert_pixbuf
4371
4372 2000-09-29  Martin Baulig  <baulig@suse.de>
4373
4374         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
4375         confusion with the GdkPixbuf of the GNOME 1.x platform.
4376
4377 2000-09-29  Havoc Pennington  <hp@pobox.com>
4378
4379         * gtk/gtktextview.c: Implement the side windows.
4380
4381         * gtk/testtext.c: Implement simple line numbering in the 
4382         left side window; seems to make scrolling sloooow. Oops.
4383         Also, cursor blink is for some reason causing redraws
4384         of the line numbers. Should investigate...
4385
4386 2000-09-28  Havoc Pennington  <hp@redhat.com>
4387
4388         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
4389         scrolling child windows, and draw focus rectangle properly.
4390         
4391         (gtk_text_view_buffer_to_window_coords):
4392         Coordinate transformation to deal with all these freaking windows
4393         and offsets
4394         (gtk_text_view_window_to_buffer_coords): transform the other way
4395
4396         * gtk/testtext.c (create_buffer): Update to match Pango API change
4397
4398         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
4399         anonymous tags
4400         (foreach_unref): don't emit remove signal from finalize, just
4401         set tag's parent to NULL
4402
4403 2000-09-26  Havoc Pennington  <hp@redhat.com>
4404
4405         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
4406         Fix some warnings       
4407
4408 2000-09-26  Havoc Pennington  <hp@redhat.com>
4409
4410         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
4411         headers into the private header list
4412
4413         * Makefile.am (pkgconfig_DATA): install pkg-config files
4414
4415         * configure.in: add pkg-config files
4416
4417         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
4418
4419         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
4420         outstanding icon caches on theme change.
4421
4422         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
4423         important types:
4424
4425         (GtkIconSource): Specification for creating a pixbuf 
4426         appropriate for a direction/state/size triplet from 
4427         a source pixbuf or filename
4428
4429         (GtkIconSet): List of GtkIconSource objects that are used to
4430         create the "same" icon (e.g. an OK button icon), and cache for
4431         rendered icons
4432
4433         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
4434         up the icon set for a given stock ID.  GTK maintains a stack of
4435         GtkIconFactory to search, and applications or libraries can add
4436         additional icon factories on top of the stack
4437         
4438         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
4439         the set of GtkIconSource specified for a given stock ID into 
4440         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
4441         RcStyle, under the specified stock ID.
4442
4443         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
4444         render_icon used to derive a GdkPixbuf from a GtkIconSource.
4445         This allows people to theme how prelight, insensitive, etc. are
4446         done.
4447
4448         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
4449         icon factories for a style, and return the resulting 
4450         icon set if any.
4451
4452         (gtk_style_render_icon): Render an icon using the render_icon 
4453         method in the GtkStyleClass.
4454
4455         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
4456         Use the style for a given widget to look up a stock ID, get the
4457         icon set, and render an icon using the render_icon method 
4458         of the style
4459
4460         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
4461         (contains information about a stock item), the built-in stock item
4462         IDs, and functions to add/lookup stock items.
4463
4464         * gtk/stock-icons/*: Stock icons that come with GTK
4465
4466         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
4467         a button based on a GtkStockItem
4468         (gtk_button_new_accel): Takes a uline string and accel group, and
4469         installs the accelerator.
4470
4471         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
4472         image-display widget.
4473
4474 2000-09-25  Havoc Pennington  <hp@redhat.com>
4475
4476         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
4477
4478         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
4479         Fix a bug when removing node data, we didn't properly 
4480         re-splice the linked list after removing the data.
4481
4482         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
4483         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
4484
4485         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
4486
4487         * gtk/gtktextlayout.c (set_para_values): Set tab array 
4488         for the layout from the GtkTextTag.
4489
4490         * gtk/gtktexttypes.h: delete tab and search cruft, 
4491         remove g_convert() in favor of GLib version
4492
4493         * gtk/gtktexttypes.c: remove tab implementation from here,
4494         move to Pango
4495
4496         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
4497         tab stuff using new PangoTabArray from Pango
4498
4499         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
4500         unused border_width stuff
4501
4502 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
4503
4504         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
4505         glib) and now useless utf_to_latin1() latin1_to_utf()
4506
4507         * gtk/gtktextview.[ch]: Change ::move_insert and
4508         ::delete_text action signals to ::move and ::delete;
4509         create the signals with the right enumeration type,
4510         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
4511         C-v bindings, change Home, End to move to beginning/end
4512         of line, Add C-Home C-End to move to beginning/end
4513         of buffer. Change ::cut_text to ::cut_clipboard, etc;
4514         combine ::scroll_text into ::move; use new GtkSelectionData
4515         functions to simplify DND text handling.
4516         
4517         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
4518         deletion enumerations here, rename enumeration values to 
4519         be consistently plural.
4520
4521         * gtk/gtktextbuffer.c: Use new clipboard interfaces
4522         for cut/copy/paste and primary selection.
4523
4524         * gtk/gtktextbuffer.[ch]: Remove excess time and
4525         'interactive' arguments from cut/copy/paste;
4526         rename cut to cut_clipboard, etc; remove
4527         gtk_text_buffer_get_clipboard_contents().
4528
4529         * gtk/gtktextlayout.[ch]: Add 
4530         gtk_text_layout_move_iter_to_line_end() to move the iter to 
4531         line ends.
4532
4533         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
4534         Functions to set or get a UTF-8 string on the selection
4535         data.
4536
4537         * gtk/gtkclipboard.[ch]: New, simplified selection handling
4538         interfaces.
4539
4540         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
4541         created widgets - one of these is useless if we don't.
4542
4543         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
4544         a public function clear all targets registered for the
4545         widget.
4546
4547         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
4548         Never call gtk_widget_realize() - that was just asking
4549         for bizarre side-effects.
4550
4551         * gtk/gtkselection.c (gtk_selection_owner_set): Call
4552         gdk_selection_owner_set even if the widget is the
4553         same so that we reliably update the timestamp on
4554         the server.
4555
4556         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
4557         gdk_x11_get_server_time() function.
4558         
4559         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
4560         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
4561         Add some tricky filtering on serial numbers for
4562         selection clear events to fix up long-standard
4563         race condition FIXME's in gtkselection.c.
4564
4565         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
4566         routines to convert from utf8 to compound text or
4567         STRING and from a text property to UTF-8.
4568
4569         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
4570         a convenience function gdk_get_current_event_time().
4571
4572         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
4573         and free selection_data->data properly
4574
4575 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
4576
4577         * gtk/gtkthemes.c: Remove some unecessary includes.
4578
4579 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
4580
4581         * gtk/gtktextdisplay.c
4582         * gtk/gtktextlayout.c
4583         * gtk/gtktexttag.c
4584         * gtk/gtktexttag.h
4585         * gtk/testtext.c: Change the overstrike property to strikethrough,
4586         to closer match pango.
4587
4588 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
4589
4590         * gtk/gtktextview.c: Fix up visibility so that focus,
4591         cursor_visible and blink interact properly.  Reenable cursor blink
4592         which had been roughly disabled. Make blink and focus
4593         properly per-view.
4594
4595         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
4596         Add a flag for whether to display insertion cursor and
4597         a function to set the flag.
4598
4599         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
4600         get_line_y() to get_line_yrange(), to be a bit more generally
4601         useful.
4602
4603 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
4604
4605         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
4606           do stop_navigating_submenu, to clear last timeout properly.
4607           Also in gtk_menu_motion_notify move ignore_enter above
4608           the conditional to make it always happen as suggested by Owen
4609
4610 2000-09-07  Tor Lillqvist  <tml@iki.fi>
4611
4612         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
4613
4614         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
4615         w32api headers.
4616
4617         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
4618         declarations.
4619
4620         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
4621         (gdk_win32_get_colormap): A line had been deleted by mistake.
4622
4623         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
4624         (gdk_event_translate): Handle more virtual keycodes to be able to
4625         generate GDK events for Control-comma, Control-period, etc.
4626
4627         * gtk/gtk.def: Add some missing entry points.
4628
4629 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
4630
4631         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
4632         Doc comment fixing. (Mostly non-matching parameter names.)
4633
4634         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
4635         comments a little to avoid looking like a doc comment.
4636
4637         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
4638         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
4639         conversions be changed to GError?)
4640
4641         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
4642         Move private #defines into .c file.
4643
4644         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
4645         order of argument addition, remove duplicates.
4646
4647         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
4648         parent class is FrameClass, not BinClass.
4649
4650         * gtk/gtk.h: Add gtkinvisible, which was missing.
4651         (It's occasionalyl useful for client apps, if seldom.)
4652
4653         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
4654         #define.
4655
4656 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
4657
4658         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
4659         coordinates when creating window, instead of GDK-space
4660         coordinates. (Avoid BadValue on too large windows.)
4661
4662 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
4663
4664         * configure.in (use_mmx_asm): Remove conftest* after use along the
4665         lines of AC_TRY_COMPILE.        
4666         
4667         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
4668         of g_dirname, which is deprecated.
4669         (gtk_rc_parse_any): Removed calls to
4670         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
4671
4672         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
4673         Removed calls to g_hash_table_{freeze,thaw}, as they are
4674         deprecated now.
4675
4676         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
4677         instead of g_basename.
4678         
4679 2000-09-04 Elliot Lee <sopwith@redhat.com>
4680         
4681         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
4682         ANSI warning.
4683
4684 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
4685
4686         * gtk/gtkwidget.h:  Add some documenting comments about 
4687           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
4688           just as owen said on irc.
4689
4690         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
4691           set HAS_DEFAULT.  Only set it if there isn't another window
4692           holding it (a focus window which RECEIVES_DEFAULT) and only unset
4693           it if the widget is not the focused window with RECEIVES_DEFAULT.
4694           This fixes weird double default bugs in dialogs which has things
4695           call gtk_window_set_default at times.
4696
4697 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
4698
4699         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
4700         Nils Barth and David Santiago to improve submenu
4701         navigation. The patch does this by creating a triangular
4702         region from the point where the pointer leaves the
4703         menu to the submenu.  While the pointer is in
4704         that region and a timeout has not expired, events 
4705         that would cause the active submenu to change are
4706         ignored.
4707
4708 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
4709
4710         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
4711         moving a toplevel window immediately after sizing it would
4712         result in it being sized back to the old size since 
4713         impl->width, impl->height aren't updated until we hear
4714         back from the server. There is still a (longstanding) bug
4715         here that gdk_window_get_size() will give the wrong size
4716         until we do hear back.
4717
4718 2000-08-31  Havoc Pennington  <hp@redhat.com>
4719
4720         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
4721         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
4722         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
4723         Rename GtkTextStyleValues to GtkTextAttributes
4724
4725 2000-08-31  Havoc Pennington  <hp@pobox.com>
4726
4727         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
4728         for rapid testing whether an iterator is the end iterator
4729         (gtk_text_btree_new): init end line cache
4730         (gtk_text_line_is_last): use fast cached line to 
4731         see if we're the last line.
4732         (get_last_line): use cached line here too, should 
4733         speed up some random unrelated code.
4734         
4735 2000-08-30  Havoc Pennington  <hp@pobox.com>
4736
4737         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
4738         signals.
4739
4740         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
4741         delete_text signals. This allows the signals to be used for
4742         implementing undo.
4743
4744         * gtk/gtktextbuffer.c: Change signal handler signatures; 
4745         provide "interactive" argument when emitting insert_text or
4746         delete_text signal.
4747         
4748 2000-08-30  Havoc Pennington  <hp@pobox.com>
4749
4750         * gtk/gtktextbuffer.c: Docs
4751
4752 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
4753
4754         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
4755         from switch statements, since Tor removed the enumeration
4756         value.
4757         
4758         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
4759         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
4760
4761 2000-08-29 Elliot Lee <sopwith@redhat.com>
4762         * */*.h: Use G_GNUC_CONST.
4763
4764 2000-08-27  Havoc Pennington  <hp@pobox.com>
4765
4766         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
4767         minor indentation fixes, inserted some FIXME about stuff I
4768         realized was broken while documenting it.
4769         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
4770         GTK convention  
4771
4772 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
4773
4774         * gtk/testgtk.c (create_styles): Fix double free of
4775         font desc.
4776
4777 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
4778
4779         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
4780         
4781         * gtk/testgtk.c (create_styles): Add a test for modifying
4782         the style through gtk_widget_modify_*.
4783
4784         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
4785         a function to get the current modifier style.
4786
4787         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
4788         of the passed in GtkRcStyle instead of ref'ing it.
4789
4790         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
4791
4792 2000-08-20  Tor Lillqvist  <tml@iki.fi>
4793
4794         * gdk/gdkimage.h
4795         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
4796         shared memory image+pixmap GdkImage type, or
4797         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
4798         I am dropping that.
4799
4800         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
4801         actually call gtk_init_abi_check(), passing also
4802         sizeof(GtkWindow). Ditto for gtk_init_check(). 
4803
4804         * gtk/gtk.def
4805         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
4806         New functions, used to check that the GTK+-using code has been
4807         compiled using the correct compiler and switches. In particular,
4808         with gcc one has to use the -fnative-struct switch as GTK+ is
4809         compiled with that.
4810
4811 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
4812
4813         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
4814         ->prev fields when merging lists. (Found simultaneously
4815         by Pawel Salek and Jakub Jelinek)
4816
4817 2000-08-12  Tor Lillqvist  <tml@iki.fi>
4818
4819         * gdk/gdk.def
4820         * gtk/gtk.def: Add missing entries.
4821
4822         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
4823         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
4824
4825         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
4826         function. Dummy implementation at this point.
4827
4828         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
4829         rules. Undefine GTK_COMPILATION when compiling the test programs.
4830         
4831         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
4832
4833 2000-08-11  Tor Lillqvist  <tml@iki.fi>
4834
4835         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
4836         to convert back and forth from UTF-8 and the "system" (or "current
4837         locale") charset when necessary. Indentation/spacing cleanup.
4838
4839 2000-08-10  Havoc Pennington  <hp@redhat.com>
4840
4841         * Makefile.am (snapshot): Change the format of the snapshot
4842         version to match glib
4843
4844         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
4845         from EXTRA_DIST since it doesn't seem to exist
4846
4847 2000-08-10  Tor Lillqvist  <tml@iki.fi>
4848
4849         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
4850         version of the directory name (not the UTF-8 one) when building
4851         the path name to stat().
4852
4853 2000-08-03  Elliot Lee  <sopwith@redhat.com>
4854
4855         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
4856         PANGO_ATTR_SHAPE set.
4857
4858 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
4859
4860         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
4861         Peter Osterlund to simplify the code while keeping the
4862         functionality the same.
4863
4864 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
4865
4866         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
4867         is_viewable() test further inside the function, since removing the 
4868         window from the redraw list without clearing ->update_area
4869         was also very broken.
4870
4871 2000-08-02  Tor Lillqvist  <tml@iki.fi>
4872
4873         * configure.in: Check for <unistd.h>.
4874
4875 2000-08-01  Martin Baulig  <baulig@suse.de>
4876
4877         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
4878         to display the message that this is a development version of GTK+.
4879
4880 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
4881
4882         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
4883         was depending on widget->allocation instead of the width of text_area,
4884         which was incorrect for subclasses like GtkSpinButton.
4885
4886         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
4887         with width == 1 tests that should be width == -1.
4888
4889 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
4890
4891         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
4892         (broken, Elliot, every single window blank on X) custom code with call
4893         to gdk_window_is_viewable() which a) prevents code duplicate and
4894         b) works. 
4895
4896 2000-07-31  Elliot Lee  <sopwith@redhat.com>
4897
4898         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
4899         to get the GDK_PARENT_ROOT() macro to work.
4900         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
4901         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
4902         of, windows that aren't shown.
4903         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
4904         pointer grab stuff.
4905
4906 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
4907
4908         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
4909           s/gtk_main_iteration/g_main_iteration/
4910
4911           Did this already in change:
4912                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
4913           don't know how it got reverted.
4914
4915 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
4916
4917         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
4918         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
4919
4920         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
4921         not gdk_pixbuf.
4922
4923 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
4924
4925         * configure.in,po/{sp,sr}.po: Added Serbian files
4926
4927 2000-07-30  Tor Lillqvist  <tml@iki.fi>
4928
4929         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
4930
4931         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
4932         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
4933         GIOChannel implementation.
4934
4935         * gdk/win32/gdkinput.c
4936         * gdk/win32/gdkpango-win32.c: Update license name here, too.
4937
4938         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
4939         definition to match prototype.
4940
4941         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
4942
4943 2000-07-27  Elliot Lee  <sopwith@redhat.com>
4944
4945         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
4946         function, to allow handling image formats that cannot be detected
4947         by looking at content alone.
4948
4949 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
4950
4951         * docs/tutorial/*.gif *.jpg *.eps
4952           Update these to the same look-n-feel.
4953           Why does including images in DocBook suck so badly?
4954
4955 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
4956
4957         * gtk/gtktable.c: applied patch from Phil Thompson
4958         <phil@river-bank.demon.co.uk> that enables space settings for
4959         the last row/columns as well.
4960
4961 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
4962
4963         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
4964         updates the license headers to the GNU Lesser General Public License,
4965         as well as updating the copyright year to 2000.
4966
4967 2000-07-26  Robert Brady  <rwb197@zepler.org>
4968
4969         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
4970           and po/Makefile, was installing and looking for them under gtk20
4971           and gtk2 respectively.
4972
4973 2000-07-25  Havoc Pennington  <hp@redhat.com>
4974
4975         * gtk/testtext.c: Comment out some stuff that depends on the rest
4976         of my patches.
4977
4978 2000-07-25  Havoc Pennington  <hp@redhat.com>
4979
4980         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
4981         buffer
4982
4983 2000-07-25  Havoc Pennington  <hp@redhat.com>
4984
4985         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
4986         widget changes.
4987
4988         * gtk/gtktextview.h: To be consistent with usage of "line"
4989         throughout the API to mean "newline-terminated thingy", change
4990         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
4991         to MOVEMENT_LINE.
4992
4993         (GtkTextView): Add flags for default editability, and whether to
4994         show the cursor. Add functions to get/set that. Add 
4995
4996         (gtk_text_view_get_iter_location): new function
4997
4998         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
4999         gtktextlayout.h
5000         (g_convert): Add g_convert temporarily, will go in glib in a bit
5001         
5002         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
5003         GtkTextTagTableForeach instead of brokenly using GHFunc.
5004         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
5005
5006         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
5007         moved to public header.
5008
5009         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
5010         "invisible", since "elide" was a bad name.
5011         (gtk_text_tag_get_priority): Added
5012
5013         (GtkTextStyleValues): put this in public header, along with
5014         functions to use it.
5015
5016         * gtk/gtktextmarkprivate.h: Include more headers, since we no
5017         longer include gtktextbtree.h.
5018
5019         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
5020         gtk_text_mark_deleted
5021
5022         * gtk/gtktextlayout.h: Don't include the "really private" headers,
5023         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
5024         to make this possible. Now we only need to install
5025         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
5026         (However the Makefile.am isn't changed yet because of the
5027         logistics of merging gtk-hp-patches piecemeal)
5028
5029         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
5030         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
5031         gtk_text_iter_get_line is now used in the public API for a
5032         different purpose.
5033
5034         * gtk/gtktextiter.h: Clean up function names to be more
5035         consistent. Always call char offset "offset" and byte index
5036         "index". A "line" is always a line number. 
5037
5038         (gtk_text_iter_is_last): new function, more efficient than 
5039         the existing way to check
5040         (gtk_text_iter_is_first): new function, also more efficient
5041
5042         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
5043
5044         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
5045         gtk_text_iter_forward_char, etc.
5046
5047         (gtk_text_iter_forward_to_tag_toggle): Renamed from
5048         forward_find_tag_toggle, since this isn't a linear search
5049
5050         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
5051
5052         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
5053         New functions, search for a buffer substring.
5054
5055         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
5056         interactive and default editable (since we need to store that info
5057         until we receive the selection data).
5058
5059         Remove all the _at_char and at_line etc. versions of functions;
5060         only have iterator versions.
5061
5062         Add _interactive() versions of functions, that consider the
5063         editability of text. (FIXME add interactive flag to the 
5064         insert/delete signals per Darin's suggestion)
5065
5066         (gtk_text_buffer_get_tag_table): new function, demand-creates the
5067         tag table if necessary
5068
5069         Remove declaration of gtk_text_buffer_get_iter_from_string
5070
5071         (_gtk_text_buffer_get_btree): private/internal function, added.
5072         
5073
5074         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
5075         (gtk_text_line_is_last): new function
5076
5077 2000-07-25  Havoc Pennington  <hp@redhat.com>
5078
5079         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
5080         using GtkProgressBar. See Changes-2.0.txt for details.
5081
5082         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
5083         "pulse_step" which are the equivalent of
5084         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
5085         Implement new API.
5086         
5087         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
5088         (use_text_format) to mark whether text set on the progress bar is
5089         a format string. Deprecate entire GtkProgress interface.
5090
5091         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
5092         (gtk_progress_build_string): make this a no-op if use_text_format
5093         is FALSE
5094
5095         * docs/Changes-2.0.txt: Describe progress bar changes.
5096
5097 2000-07-25  Tor Lillqvist  <tml@iki.fi>
5098
5099         * Makefile.am: Include the build directory.
5100
5101         * configure.in: Generate build/Makefile, build/win32/Makefile,
5102         gdk/, gdk/win32/, and gtk/makefile.mingw.
5103
5104         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
5105         Add GETTEXT_PACKAGE.
5106         
5107         * gdk/gdk.def
5108         * gtk/gtk.def: Updates.
5109
5110         * gdk/gdkfont.h
5111         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
5112         need them any longer.
5113
5114         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
5115
5116         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
5117         PANGOWIN32_LIBS and gdk_pixbuf.
5118
5119         * gdk/win32: Compiles, but no doubt doesn't work at all.
5120
5121         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
5122
5123         * gdk/win32/gdkinput.c: New file, temporarily.
5124         
5125         * gdk/win32/gdkinput-win32.h: New file
5126
5127         * gdk/win32/gdkinputprivate.h: Remove.
5128
5129         * gdk/win32/gdkpango-win32.c: New file.
5130
5131         * gtk/makefile.mingw.in: New file
5132
5133         * gtk/makefile.cygwin: Removed
5134         
5135         * gtk/Makefile.am: Update accordingly.
5136
5137         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
5138         made externally visible.
5139
5140         * gtk/gtkmain.c: Use it.
5141         
5142         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
5143         is enough.
5144
5145         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
5146
5147 2000-07-24 Elliot Lee <sopwith@redhat.com>
5148         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
5149         individual backends already.
5150         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
5151         again. Yes, there really is a good reason for this, if you are using the gdkregion
5152         internals, and if you're not, why do you care?
5153         * gdk/gdkwindow.c: Fix inverted condition
5154         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
5155         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
5156         * gtk/gtkrange.c: Redraw trough when moving.
5157         * gtk/gtktypeutils.c: Fix warning by adding const cast.
5158         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
5159
5160 2000-07-23  Tor Lillqvist  <tml@iki.fi>
5161
5162         * configure.in: Check for mkstemp and sigsetjmp. Output
5163         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
5164
5165         More work on GDK for Win32. Still in an intermediate state.
5166
5167         * gdk/makefile.cygwin
5168         * gdk/win32/makefile.cygwin: Removed.
5169         
5170         * gdk/makefile.mingw.in
5171         * gdk/win32/makefile.mingw.in: New files.
5172
5173         * gdk/Makefile.am
5174         * gdk/win32/Makefile.am: Generate and distribute them.
5175
5176         * gdk/win32/gdkwindow-win32.h
5177         * gdk/win32/gdkdrawable-win32.h
5178         * gdk/win32/gdkpixmap-win32.h: New files.
5179
5180         * gdk/win32/gdkcolor-win32.c
5181         * gdk/win32/gdkcursor-win32.c
5182         * gdk/win32/gdkdrawable-win32.c
5183         * gdk/win32/gdkgc-win32.c
5184         * gdk/win32/gdkimage-win32.c
5185         * gdk/win32/gdkprivate-win32.h
5186         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
5187         Rename fields and variables called xcursor, xid, etc (these names
5188         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
5189
5190 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
5191
5192         * gtk/gtkentry.[ch]: Fix some problems with vertical
5193         alignment.
5194
5195         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
5196         char/byte confusion.
5197
5198 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
5199
5200         * gtk/gtktextview.c (changed_handler): Fix bug where
5201         redraw wasn't being done properly when height of
5202         dirty region changed.
5203
5204         * demos/Makefile.am: Remove various references to
5205         -lgmodule
5206
5207 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
5208
5209         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
5210         PangoAttrShape to reserve space for pixmaps, add 
5211         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
5212         in the display functions.
5213         
5214         * gtk/testgtk.c (create_layout): Set some more exotic
5215         scrolled window options
5216
5217         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
5218         Add function to set the shadow type of a window, to allow
5219         putting a shadow around widgets such as GtkLayout or GnomeCanvas
5220         which don't draw their own frame.
5221
5222 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
5223
5224         * docs/tutorial/package-db-tutorial.sh: New file for
5225           packaging DocBook format tutorial
5226
5227 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
5228
5229         * docs/tutorial/gtk-tut.sgml: Minor updates
5230
5231         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
5232
5233 2000-07-19  Tor Lillqvist  <tml@iki.fi>
5234
5235         * gtk/gtksignal.c: Fix C++ comment.
5236
5237         * gtk/gtkimmulticontext.c
5238         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
5239         don't return value from void functions.
5240
5241         * gtk/gtk.def: Add gtk_rc_style_unref.
5242
5243 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
5244
5245         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
5246         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
5247         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
5248         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
5249         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
5250         gtk/gtktypeutils.h: Include files outside of the extern "C"
5251         block. Makes some C++ compiler happy. Reported by Denis Vakatov
5252         <vakatov@peony.nlm.nih.gov>.
5253
5254 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
5255
5256         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
5257           Completes first pass. Hurrah!
5258
5259 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
5260
5261         * docs/tutorial/gtk-tut.sgml: More clean ups.
5262
5263 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
5264
5265         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
5266         paint the background of the text area which was accidentally
5267         removed at some point.
5268
5269         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
5270           
5271          - Move most of the functionality from the theme vtable
5272            into GtkRcStyleClass and GtkStyleClass. The moved
5273            vtable functions were changed a bit in the move to
5274            work better in their new home.
5275
5276          - Get rid of the engine and engine_data fields from
5277            GtkRcStyle and GtkStyle; instead the theme
5278            engine derives theme-specific subclasses of GtkRcStyle
5279            and GtkStyle
5280
5281          - Add extra dlsym() found entry point to themes,
5282            theme_create_rc_style().
5283
5284         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
5285         in gtk_style_real_copy.
5286
5287         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
5288         to register a type associated with an engine. (The engine
5289         won't be unloaded as there is an instance of the type.)
5290
5291
5292 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
5293
5294         * docs/tutorial/gtk-tut.sgml: Clean ups.
5295
5296 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
5297
5298         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
5299           of cleaning up to do.
5300
5301 2000-07-15  Tor Lillqvist  <tml@iki.fi>
5302
5303         * gdk/testgdk.c: New file, quick hack to test backends for
5304         pixel-by-pixel correctness of the most simple graphic operations.
5305
5306 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
5307
5308         * Really release 1.3.1
5309         
5310         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
5311         include structure.
5312
5313 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
5314
5315         * Released 1.3.1
5316
5317 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
5318
5319         * gtk/gtktextlayout.c: use FALSE for size_only most
5320         of the time when calling gtk_text_layout_get_line_display()
5321         to avoid causing double reshapes when a redraw follows
5322         immediately after.
5323
5324 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
5325
5326         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
5327         appropriate region and gdk_window_process_updates() so trough
5328         updating doesn't lag behind the window being scrolled.
5329
5330         * gdk/gdkgc.c: Make parent_class pointer static.
5331          
5332 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
5333
5334         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
5335         include <string.h>.
5336          
5337         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
5338         cut-and-paste error in computing memory offset for 4 channels.
5339
5340 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
5341
5342         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
5343         gtk_rc_append_default_pixmap_path(), since it wasn't
5344         adding an interesting path and we don't have a meaningful
5345         default for this value.
5346
5347 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
5348
5349         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
5350         gtk-config to gtk-config-2.0 move gtk_.m4 to
5351         gtk-2.0.m4
5352
5353         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
5354         gdk/Makefile.am demos/Makefile.am: Change 
5355         library names to libgtk-1.3.la, etc, so that we
5356         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
5357
5358         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
5359         gdk/Makefile.am gdk/x11/Makfile.am
5360         Move include files into /usr/include/gtk-2.0, 
5361         /usr/lib/gtk-2.0/include/
5362          
5363         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
5364         gtk/gtkintl.h: Change package for gettext from 
5365         gtk+ to gtk20. Put hack in autogen.sh to modify
5366         po/Makefile.in.in after gettextize to make this
5367         possible.
5368
5369         * gtk+.spec: Some updates, not tested.
5370
5371         * gdk-pixbuf/Makefile.am: Move loaders into
5372         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
5373
5374         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
5375         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
5376         to THEMENAME/gtk-2.0/. Move engine directory  to
5377         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
5378         
5379 2000-07-12  Tor Lillqvist  <tml@iki.fi>
5380
5381         Win32 changes, still doesn't build though.
5382
5383         * gdk/makefile.cygwin
5384         * gdk/win32/makefile.cygwin
5385         * gtk/makefile.cygwin: Updates.
5386
5387         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
5388         default values for fg and bg pixel as X11 does (0 and 1), not
5389         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
5390         Use 0 for pen width by default (treated as 1 anyway later, but for
5391         apps that might check the value in the GdkGC).
5392         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
5393         interface to gdk_gc_predraw and _postdraw.
5394
5395         * gdk/win32/gdkwin32.h
5396         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
5397
5398         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
5399         extraneous semicolon.
5400
5401         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
5402
5403         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
5404         not the Win32 bitspixel value.
5405
5406         * gdk/win32/gdkcc-win32.c:
5407         * gdk/win32/gdkcolor-win32.c 
5408         * gdk/win32/gdkprivate-win32.h
5409         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
5410         GDK object structure.
5411
5412 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
5413
5414         * docs/tutorial/gtk_tut_12.es.sgml (name): 
5415         * docs/tutorial/gtk_tut_it.sgml (name): 
5416         * docs/tutorial/gtk_tut_fr.sgml (name): 
5417         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
5418         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
5419
5420 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
5421
5422         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
5423           small changes.
5424
5425 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
5426
5427         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
5428         a bug here, never been here and never fixed anything ;(
5429         (don't segfault if tree->root_tree is NULL, which happens prior
5430         to widget realization, but puke instead).
5431
5432 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
5433
5434         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
5435         add the necessary tokens.
5436
5437         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
5438         (gtk_rc_style_to_style): copy thicknesses.
5439         (gtk_rc_init_style): apply thicknesses.
5440         (gtk_rc_parse_style): parse xthickness and ythickness.
5441
5442         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
5443
5444         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
5445         (gdk_window_new): 
5446         (_gdk_windowing_window_init): 
5447         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
5448         (gdk_pixmap_create_from_data): 
5449         (gdk_bitmap_create_from_data): 
5450         (gdk_pixmap_new): 
5451         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
5452         (gdk_image_new): 
5453         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
5454         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
5455         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
5456         (gdk_colormap_get_system): 
5457         (gdk_colormap_new): 
5458         * gdk/gdkwindow.c (gdk_window_init): 
5459         * gtk/gtkstyle.c (gtk_style_new):
5460         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
5461         * gdk/gdkpixmap.c (gdk_pixmap_init): 
5462         * gtk/gtkrc.c (gtk_rc_style_new):
5463         use g_object_new() instead of g_type_create_instance() which
5464         is a private function for fundamental type implementations.
5465
5466 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
5467
5468         * configure.in: Add check for db2html
5469
5470 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
5471
5472         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
5473         hack to set glib_debug_objects based on gtk_debug_flags.
5474
5475 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
5476
5477         * INSTALL.in: Update the Prerequisites section.
5478
5479         * Makefile.am demos/Makefile.am docs/Makefile.am
5480         docs/tutorial/Makefile.am gdk/x11/Makefile.am
5481         gdk/linux-fb/Makefile.am: Dist fixes
5482
5483 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
5484
5485         * NEWS: 10,000 foot view of 1.3.1 changes.
5486
5487 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
5488
5489         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
5490         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
5491         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
5492         gdk/x11/gdkmain-x11.c: 
5493
5494         Patch from George Lebl to add a GdkGrabStatus enumeration to use
5495         as a return value of gdk_*_grab(). Previously, we just
5496         returned the X11 values directly.
5497
5498 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
5499
5500         * gdk/x11/Makefile.am: Patch from George Lebl to 
5501         install all the headers in the right place.
5502
5503 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
5504
5505         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
5506           initial conversion to DocBook.
5507
5508 2000-07-04  Tor Lillqvist  <tml@iki.fi>
5509
5510         * README.win32: Improve a bit.
5511
5512         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
5513         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
5514         Alt+0nnn on the numpad (used to enter characters by numeric code
5515         from current DOS or ANSI codepage) working correctly, as in other
5516         Windows apps.
5517
5518         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
5519         same argument validity tests as in X11 version.
5520         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
5521
5522         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
5523         definitions in case missing from headers.
5524
5525         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
5526         destroy the window-specific cursor.
5527         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
5528         calling GetModuleHandle(NULL).
5529         (gdk_window_set_cursor): Reworked to always copy the passed cursor
5530         with CopyCursor before setting it as the window-specific
5531         cursor. It is OK for the caller to destroy the GdkCursor (and thus
5532         also its Windows cursor) after calling this function. Destroy any
5533         previous window-specific cursor.
5534
5535 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
5536
5537         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
5538         font charset is iso8859-1, not iso-8859-1.
5539
5540 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
5541
5542         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
5543         Use g_get_charset() instead of g_get_codeset().
5544
5545         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
5546         Comment out some strdup'ing functions to keep timj
5547         happy until we finish fighting this out.
5548
5549 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
5550
5551         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
5552         <= width or height.
5553
5554         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
5555         from 1.2 for parent/child states.
5556
5557         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
5558         of typos.
5559
5560         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
5561         event structures, replace with a generic axes field. Replace 
5562         deviceid/sourec with GdkDevice *device.
5563
5564         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
5565         to extract particular axis use value from event. (Also
5566         can be used for normal X/Y.)
5567
5568         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
5569         allow for arbitrary number of axes, namespace everything
5570         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
5571         everywhere.
5572
5573         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
5574         Get rid of the gdk_input_vtable setup if favor of simply
5575         defining the functions in gdkinput-none/gxi/xfree.c in
5576         a similar fashion to the way that the port structure is 
5577         done.
5578
5579         * gtk/gtkdnd.c: Fix fields of synthesized button press event
5580         for new event structures. 
5581
5582         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
5583         new device interfaces.
5584
5585 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
5586
5587         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
5588         set the initial text.
5589
5590         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
5591         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
5592         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
5593         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
5594
5595         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
5596         pango_layout_set_font_description to simplify.
5597
5598 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
5599
5600         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
5601         pango_layout_set_font_description to simplify.
5602
5603 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
5604
5605         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
5606         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
5607         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
5608
5609         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
5610         PANGO_PIXELS() macro.
5611
5612 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
5613
5614         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
5615         that returns a PangoContext owned by the widget and updated to
5616         match future changes in the widget. Also, make 
5617         gtk_widget_create_pango_layout() use this context. If we ever
5618         add a ::changed signal to PangoContext, this will make things
5619         much more convenient. 
5620
5621         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
5622         in the appropriate places instead of destroying the layouts and
5623         creating new ones.
5624
5625         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
5626         in a few strategic places.
5627
5628 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
5629
5630         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
5631         gtk_widget_size_request() on reparented child, if one. Otherwise,
5632         queue_resize() on the child never results in it getting size-requested
5633         at all.
5634
5635         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
5636         in option menus, so that (with luck) people won't copy it into
5637         their apps in the future.
5638
5639         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
5640         to gtk_option_menu_calc_size. This isn't perfect, but should fix
5641         a lot of problems with changing the size of the menu's menu
5642         items after adding it to the option menu.
5643
5644         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
5645
5646         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
5647         the text direction for a widget changes.
5648
5649         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
5650         ::direction_changed to get rid of various hacks.
5651
5652 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
5653
5654         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
5655         name.
5656
5657 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
5658
5659         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
5660         flag to the structure. Do not call XFreePixmap on pixmaps created
5661         by gdk_pixmap_foreign_new().
5662
5663 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
5664
5665         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
5666         value using GdkRGB functionality given GdkColormap and GdkColor.
5667         (name not final, waiting for inspiration.)
5668         
5669         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
5670         set the foreground/background of a GC using the GC's colormap
5671         and GdkRGB. (name not final, waiting for inspiration.)
5672
5673         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
5674         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
5675
5676         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
5677         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
5678         purely a function of the corresponding colormap. Make
5679         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
5680
5681         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
5682         gdk_pixbuf_*create_from_xpm_* in terms of
5683         gdk_pixbuf_new_from_xpm_data(), move into platform independent
5684         code.
5685
5686         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
5687         advantage of the new draw_rgb_32_image_dithalign.
5688
5689         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
5690
5691         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
5692         on each created GC.
5693
5694         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
5695
5696         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
5697         which we initialize from the drawable when the GC is created,
5698         if the drawable has a colormap.
5699
5700         * gdk/x11/gdkgc-x11.c: include string.h for memset.
5701
5702         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
5703
5704         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
5705
5706 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
5707
5708         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
5709         actually returning expose events, make sure to set
5710         the count field properly.
5711
5712         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
5713         accidentally reintroced bug which always cleared
5714         the graphics_exposures value. 
5715
5716 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
5717
5718         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
5719
5720 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
5721
5722         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
5723
5724 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
5725
5726         * docs/faq/gtk-faq.sgml: Start of Section 6.
5727
5728 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
5729
5730         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
5731         
5732         (Fixes problem with drawing childless frames. Pointed out
5733         by and a first patch from Anders)
5734         
5735         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
5736         compute a child_allocation, even if we don't have a child.
5737
5738         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
5739         Always chain to the parent's impl, even if we don't have a child.
5740
5741 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
5742
5743         * gdk/gdkrgb.c: If possible, create only a single shm segment and
5744         use multiple parts of it instead of creating a bunch of separate
5745         segments, since the maximum number of segments per system is not
5746         large. (This might be worth backporting to GTK+-1.2.x if we make a
5747         new release )
5748
5749         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
5750         structure in preparation for per-colormap GdkRGB.
5751
5752         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
5753         to False when we get EINVAL from shmget so that the caller of
5754         gdk_image_new can retry with a smaller segment size.
5755
5756 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
5757
5758         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
5759
5760 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
5761
5762         * configure.in: make the current version number 1.3.1 (binary age 0,
5763         interface age 0).
5764         
5765         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
5766         gtkcompat.h is all we want.
5767
5768         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
5769         GLib primitive types. fixed g_type_register_fundamental() argument
5770         ordering.
5771
5772         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
5773         compiles.
5774
5775         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
5776         object code cleanup, comment trigraph fixes, etc...
5777
5778 2000-06-23  Havoc Pennington  <hp@redhat.com>
5779
5780         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
5781         instead of making up a bogus name for first_para_mark
5782
5783         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
5784         0 as a context ID
5785
5786 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
5787
5788         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
5789
5790 2000-06-21  Havoc Pennington  <hp@pobox.com>
5791
5792         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
5793         we didn't check window->bg_pixmap != GDK_NO_BG.
5794
5795         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
5796         gdk-pixbuf
5797
5798 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
5799
5800         * docs/faq/gtk-faq.sgm: Move file to here.
5801           TODO: Update Makfile.am 
5802
5803 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
5804
5805         * docs/gtk-faq.sgm: Add Section 2
5806
5807 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
5808
5809         * docs/gtk-faq.sgm: New file. Start of DocBook
5810           version of the FAQ.
5811
5812 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
5813
5814         * configure.in (GDK_PIXBUF_MAJOR): Define version
5815         numbers for GDK_PIXBUF_*, as they get substituted
5816         into a header file. Need to consider versioning
5817         for gdk-pixbuf more carefully later.
5818
5819 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
5820
5821         Work with srcdir != builddir.   
5822         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
5823         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
5824         * demos/testpixbuf.c: Likewise.
5825         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
5826         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
5827         <gdk/x11/gdkx.h>.
5828         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
5829         "gdk-pixbuf.h".
5830         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
5831
5832 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
5833
5834         * TODO.xml: Change 1.4 version numbers to 2.0.
5835
5836 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
5837
5838         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
5839         fixups to GTK+ standard.
5840
5841 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
5842
5843         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
5844         gdk-pixbuf.
5845
5846         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
5847         fixups for GObject.
5848
5849         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
5850         gdk-pixbuf with GDK dependencies moved into GDK.
5851         
5852         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
5853         move gdk-pixbuf-loader here until GObject has signals.
5854
5855         * demos/: New directory of demos. Move demos from
5856         gdk-pixbuf here.
5857
5858         * demos/pixbuf-init.c: Small bit of code to check for
5859         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
5860         set GDK_PIXBUF_MODULEDIR appropriately.
5861
5862         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
5863         define which no longer makes sense.
5864
5865 2000-06-21  Havoc Pennington  <hp@redhat.com>
5866
5867         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
5868         gtk_get_default_language
5869
5870         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
5871         new function to get the default language
5872
5873         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
5874         s/gtk_text_view_style_values/gtk_text_style_values/
5875
5876         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
5877         Add a "language" field to tags.
5878
5879         (gtk_text_tag_set_arg): Fix bug in setting
5880         "bg_full_height_set" tag.
5881
5882 2000-06-21  Havoc Pennington  <hp@redhat.com>
5883
5884         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
5885         in the interfaces
5886
5887         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
5888         stuff instead when possible.
5889
5890         * gtk/gtktexttypes.h: Delete some unused constants
5891
5892         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
5893         testtextbuffer.c: use glib instead of custom unicode routines
5894
5895 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
5896
5897         * docs/es/: Removed mistakenly added generated sgml
5898
5899         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
5900         Remove outdated info files.
5901
5902         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
5903         Moved tutorial files into subdir
5904
5905         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
5906         subdir.
5907
5908         * docs/man/gtk_button.pod: Remove. (contents will be
5909         integrated into gtk-reference button page.)
5910
5911         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
5912         docs/faq/Makefile.am: Adjust for new organization
5913
5914 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
5915
5916         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
5917         not $(MKINSTALLDIRS)
5918
5919 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
5920
5921         * gtk/testgtk.c (create_text): Finish the job Elliot started
5922         of removing font setting test for text widget. (Since text widget
5923         and GdkFont are not deprecated, and cause portability problems.)
5924
5925 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
5926
5927         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
5928         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
5929         Remove use of libunicode in favor of new GLib functions.
5930
5931         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
5932         nano-x, framebuffer. The X11 include is just a hack until we get
5933         the necessary functions in gdkcolor.h, so there is no reason to
5934         add other includes of platforms.
5935
5936         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
5937         window bigger than the screen change.
5938
5939         * gtk/testgtk.c: Revert some random changes from Elliot
5940         that had no particular point and were causing testgtkrc
5941         not to function correctly.
5942         
5943         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
5944         because GdkSegment and GdkRegionBox have the same fields,
5945         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
5946         results in clearer code.
5947
5948         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
5949         gdk_input_translate_coordinates): Fix missed GdkObjectification
5950
5951 2000-06-18  Elliot Lee  <sopwith@redhat.com>
5952
5953         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
5954         * gtk/gtk{plug,socket}.h: Missed commits from previous.
5955
5956 2000-06-20  Havoc Pennington  <hp@redhat.com>
5957
5958         * modules/linux-fb/Makefile.am: Make this compile
5959         without framebuffer enabled
5960
5961         * gdk/linux-fb/Makefile.am: Add conditional to not build
5962         framebuffer unless specified in configure
5963
5964         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
5965         the size of the target instead of source if -1 was passed for
5966         width/height
5967
5968         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
5969         width/height confusion.
5970
5971 2000-06-19  Havoc Pennington  <hp@redhat.com>
5972
5973         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
5974         GDK_DRAWABLE_XID. In the future, we probably want to make it
5975         faster with G_DISABLE_CHECKS turned on.
5976
5977 2000-06-14  Havoc Pennington  <hp@redhat.com>
5978
5979         * gdk/Makefile.am: add gdkpixmap.c
5980
5981         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
5982         s/gdk_image_init/_gdk_windowing_image_init
5983
5984         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
5985         ref/unref
5986
5987         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
5988
5989         * gdk/gdkcompat.h: remove GdkWindowType compat, since
5990         GdkWindowType is now non-deprecated; 
5991         change gdk_window_get_type() compat to be
5992         gdk_window_get_window_type().
5993
5994         * gdk/gdkdnd.h: make GdkDragContext a GObject.
5995
5996         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
5997         virtual GObject. Make all functions call into the vtable.
5998         Move gdk_image_put() guts in here. Remove GdkDrawableType
5999         and gdk_drawable_get_type(), these are now GdkWindow-specific.
6000         draw_image, get_depth, get_size, set_colormap, get_colormap,
6001         get_visual added to the vtable.
6002         
6003         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
6004         GObject. Virtualize everything. 
6005         (gdk_gc_new_with_values): remove check for destroyed window,
6006         because now GdkWindow::create_gc will check this.
6007         (gdk_gc_set_values): New function to set GC values, this 
6008         was already implemented but wasn't in the header
6009
6010         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
6011
6012         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
6013         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
6014         remove _gdk_window_class; add _gdk_window_impl_get_type() and
6015         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
6016         _gdk_windowing_window_init, rename gdk_image_init to
6017         _gdk_windowing_image_init.
6018         
6019         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
6020         (gdk_draw_layout): Remove check for destroyed window, 
6021         because all the drawable methods already check it.
6022         
6023         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
6024         Add gdkpixmap.c which contains implementation of GdkDrawable
6025         virtual table (by chaining to a platform-specific implementation
6026         object).
6027         
6028         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
6029         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
6030         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
6031         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
6032         GdkColormapPrivate. 
6033
6034         * gdk/gdktypes.h: #include <glib-object.h>
6035
6036         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
6037         Move most functionality to platform-specific implementation
6038         object. GdkWindow itself now handles the backing store, then
6039         chains to the platform-specific implementation.
6040         (gdk_window_get_window_type): return GdkWindowType of the window.
6041         (gdk_window_peek_children): New routine, returns the children of 
6042         a GdkWindow
6043         (gdk_window_get_children): Was in X11-specific code and did 
6044         XQueryTree. Changed to simply return a copy of window->children; 
6045         so it can go in cross-platform code.
6046         
6047         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
6048
6049         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
6050         GdkColormap; just changed to use the new private data instead
6051         of casting to GdkColormapPrivate.
6052
6053         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
6054         gdk_cursor_new().
6055
6056         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
6057         (private data member in the GObject). 
6058         (xdnd_manager_source_filter): Function had broken 
6059         error handling, fix it (use gdk_error_trap_push).
6060
6061         * gdk/x11/gdkdrawable-x11.c: This file now implements
6062         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
6063         base class is purely for the convenience of the X port,
6064         and not part of the interface to cross-platform GDK.
6065
6066         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
6067         
6068         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
6069         specific to X, and returned by the create_gc virtual method
6070         of GdkDrawableImplX11. 
6071         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
6072         rather than gchar, this was also changed in the GdkGC vtable.
6073         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
6074         mask is 0, return immediately, instead of checking every flag.
6075         This is faster, and keeps us from segfaulting if values is NULL
6076         and the mask contains some nonzero flags.
6077
6078         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
6079         GdkWindow.
6080
6081         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
6082         GdkWindowPrivate is gone.
6083
6084         * gdk/x11/gdkim-x11.c: rename things that got renamed.
6085
6086         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
6087         remove the image_put stuff that got transferred to GdkDrawable.
6088         
6089         * gdk/x11/gdkinput.c: renamings
6090
6091         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
6092
6093         * gdk/x11/gdkpixmap-x11.c: GObject conversion
6094
6095         * gdk/x11/gdkprivate-x11.h: indentation fixes
6096
6097         * gdk/x11/gdkproperty-x11.c: renamings
6098
6099         * gdk/x11/gdkselection-x11.c: renamings
6100
6101         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
6102         implements the platform-specific "impl" object.
6103         Moved gdk_window_get_children to gdk/gdkwindow.c
6104
6105         * gdk/x11/gdkx.h: Remove all the private structs and private datas
6106         that no longer exist. Add declaration of GdkGCX11 object here.
6107         Fix all the macros to still work. 
6108
6109         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
6110         GdkDragContext from the boxed types since they are now GObjects.
6111
6112         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
6113         moved xthickness/ythickness into the instance. GtkStyleClass
6114         functions are now in the standard vtable for GtkStyle, so you have
6115         to create a GObject subclass to write a theme engine.
6116         (gtk_style_copy): fixed a leaked PangoFontDescription
6117         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
6118         can be the standard GObject function.
6119         
6120         * Throughout GTK:
6121         s/style->klass->[xy]thickness/style->[xy]thickness
6122         s/pango_layout_unref/g_object_unref/
6123
6124         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
6125         
6126         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
6127         accessing GDK internals.
6128
6129         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
6130         accessing GDK internals.
6131
6132 2000-06-18  Elliot Lee  <sopwith@redhat.com>
6133
6134         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
6135
6136         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
6137         problem by calculating event position relative to the trough
6138         rather than the slider.
6139         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
6140
6141         * gdk/gdkgc.h: Add GDK_NOR.
6142
6143         * configure.in, Makefile.am: Add modules top level dir
6144         * configure.in: Only use pangox library if building x11 target.
6145         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
6146
6147 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
6148
6149         * gtk/gtkcolorsel.c: Change private class member to be named
6150         private_data throughout the file.
6151
6152         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
6153         private_data to avoid clashing with keyword.
6154
6155 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
6156
6157         * gdk/gdkdnd.h: Add comment to remove warning.
6158
6159 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
6160
6161         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
6162         Byelorussian language; changed the Makefile and file names 
6163         to reflect that.
6164
6165 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
6166
6167         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
6168         rather than gdk_window_hide; this makes things work
6169         correctly if the window is programmatically hidden while
6170         iconified.
6171
6172 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
6173
6174         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
6175         cut and paste typo where wrong pixmap was being
6176         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
6177
6178 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
6179
6180         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
6181         Add helper function to compute format / bytes 
6182         relationship. Use in a couple places to fix up
6183         errors which assume 8 * format.
6184
6185         * gtk/gtkselection.c (gtk_selection_request): Use 32
6186         rather than 8 * sizeof (GdkAtom), to work correctly
6187         on Alpha.
6188
6189 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
6190
6191         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
6192         libgtk.la
6193         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
6194         versions
6195
6196         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
6197         checking macros return NULL since the function has a return value.
6198
6199 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
6200
6201         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
6202         GTK+ from building at all.
6203
6204         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
6205
6206 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
6207
6208         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
6209         gtk/Makefile.am: make it possible to configure gtk for different
6210         targets on the same platform. The library name is now 
6211         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
6212         flag. Only the x11 target compiles right now.
6213         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
6214         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
6215         * gdk/nanox/gdk*generic*: delete generic region code.
6216         * gdk/linux-fb/gdk*generic*: delete generic region code.
6217         * README.nanox: update information.
6218         
6219 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
6220
6221         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
6222         prepend not append. (Pointed out by Brett Hall.)
6223
6224 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
6225
6226         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
6227
6228 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
6229
6230         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
6231         need this later, and this makes sure that the atexit for
6232         glib gets called after that for GDK, so atexits are
6233         properly ordered for object leak checking.
6234
6235         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
6236
6237         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
6238         pango_x_shutdown_display()
6239
6240         * gtk/simple.c (main): Close window on destroy.
6241
6242 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
6243
6244         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
6245         to treat initial creation different from setting with 
6246         regards to the graphics-exposures parameter, so add a parameter
6247         indicating whether this is initial or not.
6248
6249 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
6250
6251         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
6252         to sort of work by adding an extra return_exposes arg
6253         to gdk_event_translate() - it might be better to simply
6254         deprecate the function altogether and force people to rewrite
6255         without it. gdk_window_scroll() handles most of it, and where
6256         gdk_window_scroll() doesn't work, simply redrawing more does.
6257
6258         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
6259         assertion.
6260
6261         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
6262
6263         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
6264         bunch of pretty much useless /* Print debugging info */ comments 
6265         which had drifted away from the code they were commenting.
6266
6267 2000-06-02  Havoc Pennington  <hp@pobox.com>
6268
6269         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
6270         is in working order.
6271         
6272         * gtk/testtext.c: Change to reflect anonymous mark API
6273
6274         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
6275
6276         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
6277         field, which was unused.
6278
6279         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
6280         saves some typing.
6281
6282         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
6283
6284         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
6285         flag on the insertion point and selection bound
6286
6287         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
6288         make mark-manipulation functions take a GtkTextMark* instead of a
6289         mark name.
6290         
6291         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
6292         GtkTextMarkBody; will be used to detect attempts to delete
6293         the permanent marks (insert and selection bound)
6294
6295         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
6296
6297 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
6298
6299         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
6300         flag to on.
6301
6302         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
6303         Honor DOUBLE_BUFFRED_FLAG
6304
6305         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
6306         function to set the DOUBLE_BUFFERED flag.
6307
6308         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
6309         or not exposes done on the widget should be double-buffered.
6310
6311         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
6312         to be what would be expected. (Fixes problem with a
6313         g_return_if_fail() validating a TextDirection enumeration)
6314
6315 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
6316
6317         * gtk/gtkwidget.c: Remove all references to 
6318         offscreen flag which was no longer used.
6319
6320         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
6321
6322         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
6323         for non-null label_widget->parent.
6324
6325         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
6326         which no longer was used.
6327
6328         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
6329
6330         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
6331         for null arguments.
6332
6333         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
6334         check for destroyed windows.
6335
6336 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
6337
6338         * gtk/gtkimmulticontext.c: Add a finalize method and unref
6339         the slave context there.
6340
6341         * gtk/gtkinvisible.[ch]: Make reference counting behavior
6342         identical to GtkWindow.
6343
6344 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
6345
6346         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
6347         pangox to here, so we can write them independent of rendering
6348         system, using GDK primitives.
6349
6350         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
6351         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
6352         since we have a rendering-system independent implementation in
6353         terms of draw_glyphs().
6354         
6355         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
6356         function to render a single line.
6357
6358         * gdk/x11/gdkpango.c: Move the guts of this file mostly
6359         into ../gdkpango.c, which simplifies things, since we
6360         don't have to deal with raw X gc's.
6361
6362 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
6363
6364         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
6365         get the logical attributes for a given GtkTextLine.
6366
6367 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
6368
6369         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
6370         g_locale_get_codeset() to g_get_codeset() change.
6371
6372 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
6373
6374         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
6375         descriptions.
6376
6377         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
6378         the entry.
6379
6380         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
6381         redoing (vastly simplifying) for Pango. Still needs quite
6382         a bit of work. (Size selection is currently poor. List of 
6383         predefined sizes is not a good idea, since all of these
6384         sizes won't necessarily be distinct.)
6385
6386 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
6387
6388         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
6389         CODESET results for LANG=C.
6390
6391 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
6392
6393         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
6394         which takes a stringized pango font description;
6395         ignore the older 'font' and 'fontset' declarations.
6396
6397         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
6398         field with a GdkFont derived via gdk_font_from_description(),
6399         for compatibility. (Should we just remove it entirely?
6400         Probably too much compatibility breakage, but people
6401         should be migrating to the new Pango stuff as quickly
6402         as possible.)
6403
6404 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
6405
6406         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
6407
6408 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
6409
6410         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
6411         redoing; there are some bugs in size allocation right
6412         now, the semi-existant distinction between header / day
6413         fonts was removed, but, with Pango, could actually
6414         be made functional in a nice way.
6415         
6416         * gtk/testcalender: Move calender from examples into this
6417         directory as a test program. (We really need to restrcture
6418         testgtk into a whole directory full of tests for every
6419         widget or functionality group, separated into multiple .c
6420         files.)
6421
6422 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
6423
6424         * gtk/testgtk.c (file_exists): Fix stupid typo that
6425         was keeping RC file from being loaded.
6426
6427         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
6428         RC file font code.
6429
6430 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
6431
6432         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
6433         Add function to load a GdkFont from a PangoFontDescription.
6434
6435 2000-05-29  Tor Lillqvist  <tml@iki.fi>
6436
6437         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
6438         variable should be of type GdkEventPrivate.
6439
6440 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
6441
6442         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
6443         to have any widget for the label, use a GtkLabel widget
6444         to display the text. (Based partially on a patch from
6445         Anders Carlson.)
6446
6447         (Quite a bit of code reorganization - strip 90% of the
6448         guts out of gtkaspectframe and add a single virtual
6449         func to GtkFrameClass - compute_child_allocation.)
6450
6451 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
6452
6453         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
6454         (Removed clist->row_center_offset field because caching
6455         it wasn't saving time or code, added private function
6456         _gtk_clist_create_cell_layout()).
6457
6458 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
6459
6460         * gtk/gtkaccellabel.c: Pangoized.
6461
6462         * gtk/[hv]ruler.c: Pangoized
6463
6464 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
6465
6466         * gtk/gtkfilesel.c (gtk_file_selection_init):
6467         Use gtk_clist_set_column_auto_resize() to remove need
6468         need for manual column width computations.
6469
6470 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
6471
6472         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
6473         ensuring Pango correctness, and considerably simplifying the
6474         code.
6475         
6476         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
6477
6478         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
6479         getting of numbers of lines.
6480
6481         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
6482         to the actual requested width of the lable, not to the wrap
6483         width we set.
6484
6485         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
6486
6487         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
6488           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
6489
6490         * gtk/gtktextview.c: Fix structure inheritance.
6491
6492         * gtk/gtkprogressbar.c: Pangoize.
6493
6494 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
6495
6496         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
6497         in a function.
6498
6499         * gtk/gtktextlayout.c (find_display_line_above): Fixed
6500         bug with computing line tops.
6501
6502         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
6503
6504 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
6505
6506         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
6507         and y_offset coordinates to do what we need now. (The offset between
6508         buffer and layout coordinates has been reintroduced, but is a 
6509         bit different than before.)
6510
6511         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
6512         handle the adjustments ourselves, and scroll as necessary using
6513         the new gdk_window_scroll().
6514         
6515         The advantage of this is that when we are incrementally revalidating,
6516         we are essentially rearranging things around the visible portion
6517         of the screen. With the old setup, the visible portion of the
6518         screen was moved around in the layout, so scrolling and redrawing
6519         to track that caused jumping of the display. Since we now
6520         control the scrolling ourselves, we can suppress this and
6521         only redraw when things actually change.
6522
6523 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
6524
6525         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
6526         the region not just redisplay it after-all, since we store the
6527         cursors in the LineDisplay. (Ugly interactions here between
6528         GtkLayout and GtkTextBTree here.)
6529         
6530         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
6531
6532 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
6533
6534         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
6535         Added function to scroll contents of a window while keeping the
6536         window constant. Works by XCopyArea or guffaw-scrolling depending
6537         on the details of how the window is set up. (guffaw-scrolling
6538         still needs to be filled in.)
6539
6540 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
6541
6542         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
6543         move the debugging that was tied to a global variable
6544         to that.
6545
6546         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
6547
6548         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
6549         validated flag, in line data instead of setting height/width to
6550         -1. This allows us to perform operations with partially invalid
6551         buffer (using the old size for invalid lines) and thus to do
6552         incremental vaidation. Keep height/width aggregates up to date
6553         when deleting text and rebalancing the tree.
6554
6555         * gtk/gtktextbtree.[ch]: Add functions validate a line
6556         (gtk_text_btree_validate_line), and to validate up
6557         to a number of pixels (gtk_text_btree_validate).
6558
6559         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
6560         that indicates that something is changed and a revalidation
6561         pass is needed. Change ::need_repaint to ::changed, and
6562         make it take old and new yranges instead of a rectangle.
6563
6564         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
6565         the line_data_destroy() function from 
6566         gtk_text_btree_add_view() to a virtual function in 
6567         GtkTextLayout
6568
6569         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
6570         since we are handling partial repaints in a different fashion
6571         now.
6572
6573         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
6574         of the selection instead of queueing a repaint on the
6575         entire widget.
6576
6577         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
6578         get_selection_bounds() down to btree, make the function
6579         in buffer a wrapper around the btree function.
6580
6581         * gtk/gtktextlayout.[ch]: Add functions to check if the
6582         layout is valid and to recompute either a range of pixels
6583         aroudn a line or a certain total number of pixels.
6584
6585         * gtk/gtktextlayout.[ch]: Cache a single line display;
6586         now that we only redraw the needed portions, the hit rate
6587         for this cache is quite high.
6588         
6589         * gtk/gtktextview.[ch]: Keep track of the first paragraph
6590         on the screen so that when re-laying-out the buffer, we can
6591         keep the same place. This requires connecting to ::value_changed
6592         on the adjustments
6593
6594         * gtk/gtktextview.[ch]: Add idle functions to revalidate
6595         the buffer after we receive an ::invalidated signal.
6596         
6597 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
6598
6599         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
6600         to max of allocation and layout size, not just to the
6601         layout size.
6602
6603         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
6604         Invalidate window so it gets redrawn properly.
6605
6606         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
6607         to mean the entire window.
6608
6609         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
6610         into public header.
6611
6612 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
6613
6614         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
6615         to get the name of a mark.
6616
6617         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
6618         to find the paragraph from a y position.
6619
6620 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
6621
6622         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
6623         nodes have width/height >= 0, not > 0.
6624
6625 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
6626
6627         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
6628         Add a size_only flag, so when we only need the size, we don't create
6629         useless appearance attributes.
6630
6631         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
6632         duplicate setting of font description.
6633
6634         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
6635
6636 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
6637
6638         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
6639         EXTRA_DIST. It does not work well when the file that
6640         everything depends on is not in the tarball.
6641
6642 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
6643
6644         * gtk/testgtk.c: Some hacks and fixes so that it basically
6645         works when not sitting in the GTK+ build tree.
6646
6647 2000-05-03  Havoc Pennington  <hp@redhat.com>
6648
6649         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
6650         Properly determine the ordering of the tag root and the current
6651         line within the tree. Previous algorithm only worked if the tag
6652         root's immediate parent was the common root of both the current
6653         line and the tag root.
6654
6655 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
6656
6657         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
6658         alignment.
6659
6660         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
6661         the widget text directional dynamically.
6662
6663         * gtk/gtktextview.[ch]: Added functions to get and set default
6664         wrap mode.
6665
6666 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
6667
6668         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
6669         in cursor location computation.
6670
6671 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
6672
6673         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
6674         vadjusment values properly when layout gets smaller.
6675
6676         * gtk/gtktextview.c (need_repaint_handler): Areas being
6677         passed in are far completely inaccurate, and sometimes
6678         too small, so, for now, just queue a redraw on the
6679         whole visible region.
6680
6681 2000-04-25  Havoc Pennington  <hp@redhat.com>
6682
6683         * gtk/gtktextbtree.c (summary_destroy): new function to 
6684         destroy tag summary nodes
6685         (gtk_text_line_next_could_contain_tag): this function was 
6686         totally broken if the line passed in wasn't below the tag
6687         root. Fix it.
6688         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
6689         "wildcard" case, we have to do a linear scan. Blah.
6690         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
6691         we have to do the linear scan
6692         (tag_removed_cb): When a tag is removed from the tag table, 
6693         remove the GtkTextTagInfo node from the btree.
6694         (gtk_text_btree_spew): Implement the spew function, for 
6695         our debugging pleasure.
6696
6697 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
6698
6699         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
6700         a problem with referring to the wrong buffer.
6701
6702         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
6703
6704         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
6705         font description to gtk_style_new() - otherwise things
6706         don't work without a .gtkrc file.
6707
6708         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
6709         tags table if we create it ourself, too.
6710
6711         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
6712         it was conflicting with XKB modifiers.
6713
6714         * gtk/gtktextview.[ch]: Add simple support for 
6715         GtkIMContext.
6716
6717 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
6718
6719         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
6720         with deletion from last commit.
6721
6722 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
6723
6724         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
6725         in the context from the current locale.
6726         
6727         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
6728         context, not hardcoded value.
6729
6730         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
6731         not logical.
6732
6733 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
6734
6735         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
6736         attributes - that doesn't handle partial-glyph selection
6737         properly. Instead use new pango_layout_line_get_x_ranges()
6738         functionality to draw the selection.
6739
6740         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
6741         now properly handles out-of-range coordinates.
6742
6743         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
6744
6745         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
6746         public.
6747
6748         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
6749         for paragraphs opposite to the base direction of the widget.
6750
6751         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
6752
6753         * gtk/gtktextlayout.c: Don't split segments on marks, since that
6754         causes Arabic words to reshape as you cursor through.
6755
6756         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
6757         cursor position when moving vertically with the arrow keys and
6758         scrolling with page-up/page-down. (Arrow keys save only the X,
6759         scrolling saves both X and Y.)
6760
6761         This means you can line-up / line-down or page-up / page-down
6762         without losing your place, and also that moving vertically
6763         with the cursor keys keeps the same X position, not the same
6764         character count:
6765
6766         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
6767         arrow keys move by display lines, not paragraphs.
6768
6769 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
6770
6771         * gtk/gtklayout.c: Make sure that the bin window is at least
6772         as big as the allocation. (Should we also make sure that the
6773         bin window is big enough to completely cover widget->window?)
6774
6775         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
6776         function to get the onscreen rectangle.
6777
6778         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
6779         for offsets in window coordinates.
6780
6781 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
6782
6783         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
6784         confusion.
6785
6786         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
6787         from the widget direction.
6788
6789         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
6790         Add a "direction" attribute.
6791
6792         * gtk/gtktextview.c: global s/tkxt/text_view/.
6793
6794         * gtk/testtext.c: Added long block of text in Arabic, to test out
6795         the direction attributes. (Some problems with the shaping system
6796         for arabic become obvious - like the fact the cursor splits words
6797         into unjoined pieces.)
6798
6799 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
6800
6801         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
6802
6803         * gtk/gtktextlayout.c: Fix up alignment.
6804
6805         * gtk/testtext.c: Add some tests for centering, wrapping.
6806
6807 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
6808
6809         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
6810         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
6811         If we wrote GTK+-specific layout-render function this could just replace
6812         the draw_layout() operation in the vtable.
6813
6814         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
6815         pango_layout_get_cursor_pos() and use that function.
6816
6817         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
6818         is a non-static symbol.
6819
6820         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
6821         with gtk_text_btree_find_line_by_y()
6822
6823         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
6824         renderer that handles GtkTextAppearance attributes.
6825
6826         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
6827
6828           - Move the values in the style that don't affect geometry into a
6829             GtkTextAppearance structure.
6830           - Change underline to take a PangoUnderline and "font" a string
6831             representation of a font description
6832           - Add a "font_desc" attribute which takes a FontDescription structure.
6833
6834         * gtk/gtktextlayout.[ch]:
6835
6836           - Get rid of the display-line list per each line. Instead, we
6837             generate, on demand, a GtkTextLineDisplay structure which]
6838             contains a PangoLayout * and other necesary information
6839             (offsets, cursor locations) for displaying a paragraph.
6840           - Get rid of the code to wrap lines, create display chunks,
6841             etc. Instead, we just go through a paragraph and convert
6842             it into the necessary inputs to a PangoLayout.
6843           - Implement a new attribute type, GtkTextAttrAppearance. This
6844             holds a GtkTextAppearance, and is used to pass colors, 
6845             stipple, etc, through from the layout to the display without
6846             having to use lots and lots of individual attributes.
6847           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
6848             in terms of PangoLayout functions.
6849         
6850         * gtk/gtktextview.c: 
6851          
6852           - Handle passing the necessary PangoContext to the layout
6853           - Some fixups in painting to deal with the automatic backing store
6854             and offsetting of GTK+-1.4
6855           - Add a style_set handler so that the default style reacts
6856             properly to theme changes.
6857         
6858         * gtk/gtktext?*.[ch]: Random code-style fixes.
6859
6860         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
6861
6862 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
6863
6864         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
6865         in original form preparatory to Pango-ization and gdkimcontext-ization.
6866
6867 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
6868
6869         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
6870         so that we can derive from gtkimcontext in language bindings properly.
6871
6872 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
6873
6874         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
6875         Add a compose table including (almost) all the compose combinations
6876         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
6877         data in the XIM implementation.
6878
6879         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
6880         Moved functions to convert keyvalues from and to unicode here from
6881         the win32 port and made them public.
6882
6883 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
6884
6885         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
6886
6887 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
6888
6889         * gtk/gtkimcontext.[ch]: Base class for new input context system
6890
6891         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
6892         the real input context implementation to be loaded from modules
6893         and switched on the fly.
6894
6895         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
6896         context that just does direct keysymbol => unicode translation.
6897
6898         * gtk/gtkentry.[ch]: Start switching editing over to using
6899         GtkInputContext. (No handling of preedit yet.)
6900
6901 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
6902
6903         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
6904         many substitutions. (klass should not be subsituted.)
6905
6906 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
6907
6908         * configure.in: Add checks for Pango
6909
6910         * configure.in docs/Makefile.am: Add test for sgml2html
6911         and allow 'make dist' without building html, but print out
6912         warnings in that case. (For making snapshots)
6913
6914         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
6915         Add Pango libraries and C flags
6916
6917         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
6918         Add function (gdk_draw_layout) to draw a pango layout.
6919
6920         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
6921         for getting Pango contexts for GDK.
6922
6923         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
6924
6925         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
6926         editing.
6927
6928         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
6929         keysym => unicode translations. More languages can be added
6930         here, but real input-method support is needed.
6931
6932         * docs/Changes-1.4.txt: Added note about entry behavior.
6933         
6934         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
6935         to set the reading direction for a widget and the global direction.
6936         Add test which allows toggling the global direction. Two private
6937         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
6938
6939         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
6940           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
6941
6942         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
6943
6944         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
6945         underlining now handled by Pango.
6946
6947         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
6948         to RCStyle and Style. (Having both this and the old font name and GdkFont 
6949         is temporary.)
6950
6951         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
6952         convenience functions for creating contexts and layouts for widgets.
6953
6954         * gtk/testgtk.c: Enhance label tests with multilingual labels.
6955
6956 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
6957
6958         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
6959         titles to be active, even if they aren't visible.
6960         (gtk_clist_column_titles_passive):  Ditto.
6961
6962 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
6963
6964         * gtkmenu.c:
6965         * gtkmenu.h:
6966         * gtktypeutils.h: Spelling/grammar fixes in comments.
6967
6968 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
6969
6970         * gdk/nanox/*.h: add missing header files.
6971
6972 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
6973
6974         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
6975         send_event to TRUE.
6976         (gtk_drawing_area_size): queue a resize.
6977
6978 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
6979
6980         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
6981         the handlers, also invalidate them. bug nailed down by Karl Nelson
6982         <kenelson@ece.ucdavis.edu>.
6983
6984 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
6985
6986         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
6987         "(nil)" foundries, patch from Grigorios Magklis.
6988
6989         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
6990         on non-available fonts, based on a patch by Grigorios Magklis
6991         <maglis@cs.rochester.edu>.
6992
6993 2000-05-18  Elliot Lee  <sopwith@redhat.com>
6994
6995         * gdk/x11/gdkregion-generic.c: If a region does not have any
6996         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
6997         instead of GDK_OVERLAP_RECTANGLE_IN.
6998
6999 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
7000
7001         * gtk/gtklayout.c (gtk_layout_map): Remove references to
7002         OFFSCREEN, as it is no longer necessary.
7003
7004 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
7005
7006         * gtk/gtkcolorsel.c: Patch from David Santiago
7007         <mrcooger@cyberverse.com> to change things so that the 
7008         indicator of the active palette entry is done independently,
7009         not via the focus, since it should always be visible.
7010
7011 2000-05-17  Tor Lillqvist  <tml@iki.fi>
7012
7013         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
7014         refcount leaks as in the X11 backend.
7015
7016         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
7017         cosmetics.
7018
7019         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
7020         backend. Add _gdk_windowing_window_destroy().
7021
7022         * gtk/gtkcolorsel.c: Include correct backend-specific header.
7023         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
7024         either, but these probably do exist on nanox?)
7025         
7026         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
7027         which isn't necessarily defined by <math.h>.
7028
7029         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
7030         ancestry past GtkObject.
7031
7032         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
7033         from DLL on Win32.
7034
7035         * gtk/gtk.def: Update corresponding to recent changes.
7036
7037         * gtk/makefile.{cygwin,msc}: Updates.
7038
7039 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
7040
7041         * docs/Changes-1.4.txt: A bit of editing.
7042
7043         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
7044         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
7045         to clear the update area for the window, and clear it
7046         when hiding a window.
7047
7048         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
7049         if window destroyed.
7050
7051         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
7052
7053         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
7054         gdk_window_destroy() to the generic code, since there was a lot of 
7055         window-system-independent logic it in. Add a function:
7056         
7057          _gdk_window_destroy() 
7058
7059         to the internal API to destroy a window without unreferencing it.
7060         Add a function:
7061
7062          _gdk_windowing_window_destroy()
7063
7064         That does the windowing-system-dependent part of destroying 
7065         the window.
7066
7067 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
7068
7069         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
7070
7071 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
7072
7073         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
7074         Make gtk_widget_shape_combine_mask() keep a reference count on
7075         the pixmap since it keeps it around.
7076
7077 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
7078
7079         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
7080         leak.
7081
7082         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
7083         leak with event filters.
7084
7085 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
7086
7087         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
7088         signal handlers with the right data arguments. (Fixes
7089         some warnings when a widget was repeatedly set as a drag
7090         destination.)
7091
7092         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
7093         window so we can avoid avoid setting the DND properties on the
7094         toplevel window repeatedly.
7095
7096 2000-05-13  Tor Lillqvist  <tml@iki.fi>
7097
7098         * gdk/win32/gdkwin32.h: Define more message types missing from
7099         mingw headers.
7100
7101         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
7102         call gdk_window_destroy_notify(). It was never called. This
7103         probably meant that the GdkWindow was never freed. Thanks Owen for
7104         noticing (!).
7105
7106         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
7107         window as destroyed before calling DestroyWindow(). DestroyWindow()
7108         causes a call to the window procedure (gdk_WindowProc), which
7109         calls gdk_event_translate(), which calls
7110         gdk_window_destroy_notify(), which gets confused unless the window
7111         is set as destroyed.
7112
7113         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
7114         this function to indicate it's win32 only. Put inside #ifdef
7115         G_ENABLE_DEBUG.
7116
7117         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
7118         debugging function. (gdk_event_translate:) Add a default branch
7119         that uses the above function to print debug messages with all
7120         Windows messages symbolically.
7121
7122         * gdk/win32/gdkprivate-win32.h: Declare it, and
7123         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
7124
7125 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
7126
7127         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
7128         public header file.
7129
7130 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
7131
7132         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
7133
7134         * gtk/gtktext.c: made the adjustments no-construct args, simply
7135         provide default adjustments.
7136         (gtk_text_destroy): release adjustments.
7137
7138         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
7139         adjustment argument non-construct.
7140
7141         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
7142         instead of in finalize.
7143         (gtk_progress_get_text_from_value): 
7144         (gtk_progress_get_current_text): 
7145         (gtk_progress_set_value): 
7146         (gtk_progress_get_percentage_from_value): 
7147         (gtk_progress_get_current_percentage): 
7148         (gtk_progress_set_percentage): 
7149         (gtk_progress_configure): ensure an adjustment is present.
7150
7151 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
7152
7153         * gtk/gtkcolorsel.[hc]:
7154         * gtk/gtkcolorseldialog.[hc]:
7155         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
7156         their parent implementation, use bit fields for boolean values, don't
7157         create unused widgets, usage of glib types, braces go on their own
7158         lines, function argument alignment, #include directives etc. etc. etc..
7159
7160         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
7161
7162 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
7163
7164         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
7165
7166         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
7167         of NULL.
7168
7169         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
7170         to freed data.
7171         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
7172
7173         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
7174         to NULL when the toplevel is getting destroyed.
7175         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
7176         (gtk_menu_destroy): 
7177         (gtk_menu_init): store the information of whether we have to
7178         readd the initial child ref_count during destruction in a new
7179         GtkMenu field needs_destruction_ref_count.
7180
7181         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
7182         here, those reading: learn from my mistake! ;)
7183         in order for set_?adjustment to support a default adjustemnt if
7184         invoked with an adjustment pointer of NULL, the code read (pseudo):
7185         if (v->adjustment) unref (v->adjustment);
7186         if (!adjustment) adjustment = adjustment_new ();
7187         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
7188         now imagine the first unref to actually free the old adjustment and
7189         adjustment_new() creating a new adjustment from the very same memory
7190         portion. here, the latter comparision will unintendedly fail, and
7191         all hell breaks loose.
7192         (gtk_viewport_set_hadjustment):
7193         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
7194         after unreferencing it.
7195
7196         * gtk/gtkcontainer.[hc]: removed toplevel registration
7197         functions: gtk_container_register_toplevel(),
7198         gtk_container_unregister_toplevel() and
7199         gtk_container_get_toplevels() which had wrong semantics
7200         anyways: it didn't reference and copy the list.
7201
7202         * gtk/gtkwindow.c: we take over the container toplevel registration
7203         bussiness now. windows are registered across multiple destructions,
7204         untill they are finalized. the initial implicit reference count
7205         users are holding on windows is removed with the first destruction
7206         though.
7207         (gtk_window_init): ref & sink and set has_user_ref_count, got
7208         rid of gtk_container_register_toplevel() call. add window to
7209         toplevel_list.
7210         (gtk_window_destroy): unref the window if has_user_ref_count
7211         is still set, got rid of call to
7212         gtk_container_unregister_toplevel().
7213         (gtk_window_finalize): remove window from toplevel list.
7214         (gtk_window_list_toplevels): new function to return a newly
7215         created list with referenced toplevels.
7216         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
7217
7218         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
7219         adjustment a non-construct arg.
7220         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
7221         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
7222         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
7223
7224         * gtk/gtkrange.c: added some realized checks.
7225         (gtk_range_destroy): get rid of the h/v adjustments in the
7226         destroy handler instead of finalize. remove timer.
7227         (gtk_range_get_adjustment): demand create adjustment.
7228
7229         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
7230         we simply create them on demand now and get rid of them in
7231         the destroy handler.
7232         (gtk_viewport_destroy): get rid of the h/v adjustments in the
7233         destroy handler instead of finalize.
7234         (gtk_viewport_get_hadjustment): 
7235         (gtk_viewport_get_vadjustment): 
7236         (gtk_viewport_size_allocate): demand create h/v adjustment
7237         if required.
7238
7239         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
7240         gtk_widget_real_destroy () functionality.
7241         (gtk_widget_real_destroy): reinitialize with a new style, instead
7242         of setting widget->style to NULL.
7243
7244 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
7245
7246         * gtk/gtkcalendar.c:
7247         * gtk/gtkbutton.c: ported _get_type() implementation over to
7248         GType, either to preserve memchunks allocation facilities,
7249         or because Gtk+ 1.0 GtkTypeInfo was still being used.
7250
7251         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
7252         over. prepare for ::destroy to be emitted multiple times.
7253         removed reference tracer magic. chain into GObjectClass.shutdown()
7254         to emit ::destroy signal.
7255
7256         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
7257         fundamental.
7258
7259         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
7260         cludge.
7261
7262         * gtk/gtksocket.c:
7263         * gtk/gtkplug.c:
7264         * gtk/gtklayout.c:
7265         * gtk/gtklabel.c:
7266         * gtk/gtkargcollector.c:
7267         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
7268         not being a fundamental anymore, and to work with the new
7269         type system (nuked fundamental type varargs clutter).
7270
7271         * gtk/*.c: install finalize handlers in the GObjectClass
7272         part of the class structure.
7273         changed direct GTK_OBJECT()->klass accesses to
7274         GTK_*_GET_CLASS().
7275         changed direct object_class->type accesses to GTK_CLASS_TYPE().
7276
7277         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
7278         GType. made most of the GTK_*() type macros and Gtk* typedefs
7279         simple wrappers around macros and types provided by GType.
7280         most notably, a significant portion of the old API vanished:
7281         GTK_TYPE_MAKE(),
7282         GTK_TYPE_SEQNO(),
7283         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
7284         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
7285         GTK_TYPE_ARGS,
7286         GTK_TYPE_CALLBACK,
7287         GTK_TYPE_C_CALLBACK,
7288         GTK_TYPE_FOREIGN,
7289         GtkTypeQuery,
7290         gtk_type_query(),
7291         gtk_type_set_varargs_type(),
7292         gtk_type_get_varargs_type(),
7293         gtk_type_check_object_cast(),
7294         gtk_type_check_class_cast(),
7295         gtk_type_describe_tree(),
7296         gtk_type_describe_heritage(),
7297         gtk_type_free(),
7298         gtk_type_children_types(),
7299         gtk_type_set_chunk_alloc(),
7300         gtk_type_register_enum(),
7301         gtk_type_register_flags(),
7302         gtk_type_parent_class().
7303         replacements, where available are described in ../docs/Changes-1.4.txt.
7304         implemented compatibility functions for the remaining API.
7305
7306         * configure.in: depend on glib 1.3.1, use gobject module.
7307
7308 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
7309
7310         * TODO.xml: Various updates to current status.
7311
7312 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
7313
7314         * gtk.m4: Print out version when test succeeds.
7315
7316 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
7317
7318         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
7319         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
7320         
7321         (Original triangle color selector from Simon Budig
7322         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
7323         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
7324         Santiago <mrcooger@cyberverse.com>)
7325
7326         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
7327         out into a separate widget.
7328
7329         * gtk/testgtk.c: Add some checkbuttons for toggling palette
7330         and opacity controls.
7331
7332 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
7333
7334         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
7335         snuck in prematurely.
7336
7337 2000-05-07  Tor Lillqvist  <tml@iki.fi>
7338
7339         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
7340         had deleted a ! operator by mistake, which caused
7341         GDK_SELECTION_CLEAR events never to be generated, which caused
7342         only the first copy to the clipboard from an gtkeditable to
7343         actually cause a copy to the Windows clipboard.
7344
7345 2000-05-06  Tor Lillqvist  <tml@iki.fi>
7346
7347         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
7348         compilation, too. Current mingw gcc distributions include the
7349         necessary headers. Also the necessary IIDs are now in mingw
7350         headers/libraries, and own definitions unnecessary.
7351
7352         More hacking on OLE2 DND, still doesn't work though, and thus
7353         ifdeffed out.
7354
7355         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
7356         here, too.
7357
7358 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
7359
7360         * gdk/nanox/*: nano-X port work in progress.
7361         * gdk/simple.c: simple test for Gdk.
7362         * README.nanox: notes about the port: read this first!
7363         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
7364         with nano-X.
7365
7366 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
7367
7368         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
7369         gdk_window_clear() into common code, implement in terms of
7370         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
7371         not redirected to the backing rectangle.
7372
7373 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
7374
7375         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
7376         EXTRA_DIST. It does not work well when the file that
7377         everything depends on is not in the tarball.
7378
7379 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
7380
7381         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
7382         with recursion where process_updates() is called from
7383         an expose handler. (GtkTextView is highly broken in
7384         doing this, but it should work, so it is a nice test
7385         case.)
7386
7387 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
7388
7389         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
7390         handle the case where updates are queued during processing of
7391         updates.
7392
7393 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
7394
7395         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
7396         window is on gdk_display - use that instead of segfaulting.
7397
7398 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
7399
7400         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
7401         broken and require an empty arg, give it to them.
7402
7403 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
7404
7405         * gtk/gtklabel.h: indentation fixes.
7406
7407 2000-05-02  Tor Lillqvist  <tml@iki.fi>
7408
7409         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
7410         draw too narrow or too low arcs, they seem to fail, at least with
7411         some display drivers.
7412
7413         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
7414
7415         Large changes to the Win32 backend, partially made necessary by
7416         the changes to the backend-independent internal
7417         structures. Attempts to implement similar backing store stuff as
7418         on X11. The current (CVS) version of the Win32 backend is *not* as
7419         stable as it was before the no-flicker branch was merged. A
7420         zipfile with that version is available from
7421         http://www.gimp.org/win32/. That should be use by "production"
7422         code until this CVS version is usable. (But note, the Win32
7423         backend has never been claimed to be "production quality".)
7424
7425         * README.win32: Add the above comment about versions.
7426
7427         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
7428
7429         * gdk/gdk.def: Update.
7430
7431         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
7432         presumably be replaced by some more better mechanism as 1.4 gets
7433         closer to release shape.
7434
7435         * gdk/makefile.{cygwin,msc}: Update.
7436
7437         * gdk/win32/*.c: Correct inclusions of the backend-specific and
7438         internal headers. Change code according to changes in these. Use
7439         gdk_drawable_*, not gdk_window_* where necessary.
7440
7441         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
7442         our old DND.
7443
7444         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
7445         to interpret single characters as UTF-8. Thanks to Hans Breuer.
7446         Use correct function name in warning messages.
7447
7448         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
7449         GSourceFuncs gdk_event_prepare and gdk_event_check.
7450         (gdk_event_get_graphics_expose): Do implement, use
7451         PeekMessage. Thanks to Hans Breuer.
7452         (event_mask_string): Debugging function to print an GdkEventMask.
7453         (gdk_pointer_grab): Use it.
7454
7455         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
7456         (old) book I used claimed was Hangul actually is CJK Unified
7457         Ideographs Extension A. Also, Hangul Syllables were missing.
7458         Improve logging.
7459
7460         * gdk/win32/gdkgc-win32.c: Largish changes.
7461
7462         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
7463         g_win32_getlocale() from GLib, and not setlocale() to get current
7464         locale name.
7465
7466         * gdk/win32/gdkprivate-win32.h
7467         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
7468         gdkwin32.h, similarily as in the X11 backend.
7469
7470         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
7471         assignment was used instead of equals in if test. Thanks to Hans
7472         Breuer.
7473
7474         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
7475         the X11 version.
7476
7477         * gdk/win32/makefile.{cygwin,msc}
7478         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
7479         path to the Win32 headers that works also with the mingw compiler.
7480
7481         * gtk/gtkstyle.c: Include <string.h>.
7482
7483 2000-04-26  Havoc Pennington  <hp@redhat.com>
7484
7485         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
7486         replacing the broken gtk_label_get ()
7487
7488 2000-04-15  Havoc Pennington  <hp@pobox.com>
7489
7490         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
7491         this keeps scanner scripts from getting confused.
7492
7493         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
7494         data, rather than void
7495
7496 2000-04-15  Tor Lillqvist  <tml@iki.fi>
7497
7498         * gtk/gtkclist.c (gtk_clist_motion)
7499         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
7500         with is_hint FALSE, get x and y from the event. They used to be
7501         used uninitialised. The Win32 backend never sends motion events
7502         marked as hints. This for instance fixes the annoying file and
7503         font selector behaviour in the Win32 version.
7504
7505 2000-04-14  Tor Lillqvist  <tml@iki.fi>
7506
7507         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
7508         gtk_private_n_signals variables, they are used by some software,
7509         sigh.
7510
7511         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
7512         installation directory from the Registry, where the installer
7513         should have put it.
7514
7515 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
7516
7517         * gdk/x11/Makefile.am: Fix problem with installation directory for
7518         gdkx.h
7519
7520         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
7521         <mrcooger@cyberverse.com> so that when selecting menus with the
7522         mouse, the first item will not be selected, but when selecting
7523         with an accelerator, or navigating left-right on a menubar with
7524         the menus popped up, the first item will be selected.
7525
7526 2000-04-05  Dan Damian  <dand@dnttm.ro>
7527
7528         * configure.in: Added "ro" to ALL_LINGUAS.
7529
7530 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
7531
7532         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
7533         indentation.
7534
7535         * Makefile.am (EXTRA_DIST): Fix typo.
7536
7537         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
7538         to catch gdkconfig.h
7539
7540         * gtk/gtkitemfactory.c: Added FIXME.
7541
7542 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
7543
7544         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
7545         s/return_if_fail/return_val_if_fail/g and add a return value.
7546
7547 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
7548
7549         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
7550         merge slipup.
7551
7552         * gdk/gdkinput.h: Fix missing line from merge.
7553
7554 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
7555
7556         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
7557         instead of gdkprivate.h.
7558
7559 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
7560
7561         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
7562         parent class to correctly be GtkDialogClass.
7563
7564 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
7565
7566         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
7567         toplevel windows and their immediate children by their parents,
7568         since the size of toplevel windows is out of our immediate
7569         control and we don't get any real benefit from trying to track
7570         this size for clipping.
7571
7572         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
7573         for input_only windows.
7574
7575         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
7576         to fix some hacks and make sure that we don't try to set the
7577         background of input only windows.
7578
7579 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
7580
7581         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
7582         the _really_ internal stuff, and leave gdkprivate.h for the fake private
7583         stuff that we've traditionally exposed.
7584
7585         * gdk/**.c: Use gdkinternals.h where appropriate.
7586
7587         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
7588         not include gdkprivate-x11.h, move all stuff of conceivable public
7589         interest into gdkx.h; keep all really private stuff in
7590         uninstalled header gdkprivate-x11.h.
7591
7592         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
7593         image->image_put on windows through a new function _gdk_window_draw_image()
7594         to allow us to do backing store for images. (Sort of ugly)
7595
7596         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
7597         contexts locally so that we can offset them properly when drawing 
7598         onto backing pixmaps.
7599
7600         * gdk/gdkinput.h: Reindented
7601
7602         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
7603         pixmap or color for the window, so we can properly initialize
7604         our double-buffer pixmaps, and also so that we temporarily set
7605         a background of None while scrolling.
7606
7607         * gdk/gdkregion.h: Revise region boolean operators to have an
7608         interface that is actually convenient - switch from creating new
7609         regions on every op, to "methods" that modify existing regions
7610         (A = A OP B). 3 argument forms which allow dest == src, would also
7611         be possible, but the current interfaces seem to map nicely
7612         onto what needs to be done. (There is quite a lot of region
7613         code in GDK now.)
7614
7615         * gdk/gdkregion.h: Add constructor from rectangle and a copy
7616         operator.
7617
7618         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
7619         gdkpoly-generic.h: Copy region code from Xlib, switch it over
7620         to 32 bit coordinates, modify it to be mostly GTK+ style
7621         and to have interfaces that match gdkregion.h.
7622
7623         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
7624         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
7625         create a backing pixmap and redirect all drawing to
7626         that backing pixmap until a matching gdk_window_end_paint().
7627
7628         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
7629         Create a special drawable class for GtkWindow's that 
7630         redirects the drawing to the backing pixmap as necessary
7631         and then calls the real operations in _gdk_windowing_window_class.
7632
7633         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
7634         Store invalid region for each window. Generate expose events for invalid
7635         region in an idle. This replaces both the expose compression
7636         and the redrawing queuing in GTK+. It is both more efficient and
7637         simpler than either one individually and far more so then the
7638         combination.
7639
7640         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
7641         Emulate 32 bit coordinates for windows with 16 bit coordinates
7642         by offsetting drawing, guffaw scrolling techniques and
7643         mapping/unmapping child windows as necessary.
7644
7645         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
7646         where, when invalid regions are processed, the region is stored,
7647         and if expose events come in that are detectably duplicate
7648         the processed exposes (by comparison of event serial numbers),
7649         the stored region is subtracted out of those exposes.
7650
7651         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
7652         regions newly exposed when scrolling or resizing windows.
7653         This, combined with forcing processesing of queued invalidated
7654         regions, gives nice flicker-free scrolling.
7655
7656         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
7657         invalidated regions after every scroll.
7658
7659         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
7660         emulation in GDK. Its, for all practical purposes just a
7661         GtkViewport/GtkFixed hybrid now.
7662
7663         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
7664         (16-bit) structures as necessary instead of just casting.
7665
7666         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
7667         in terms of the structures from gdkregion-generic.c, using appropriate
7668         offsets from GDK to X11 coordinates. Cache clip mask and
7669         origin and ts origin locally and only flush to the server
7670         when drawing, to avoid constantly setting and resetting these
7671         values when offsetting GC's for scrolling and backing pixmaps.
7672
7673         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
7674
7675         * gtk/gtkcontainer.c: Call process_all_updates at end
7676         of resizing to reduce flicker. (Avoids having redraw
7677         lag arbitrarily behind resize under some circumstances)
7678
7679         * gtk/gtkentry.c: Remove old backing store code, and simply take
7680         advantage of the new backing store capabilities of GDK.
7681
7682         * gtk/gtkmain.c: Simple implementation of widget backing
7683         store - simply push a paint while handling each expose.
7684         (Should really be configurable widget for widget.)
7685         
7686         * gtk/gtkwidget.c: Remove all the old complicated redraw
7687         code, and simply invalidate the GDK windows from
7688         gdk_window_queue_clear(), etc. (Sigh, so much carefully
7689         debugged complexity ... gone to the winds.)
7690
7691         Remove all the code for suppressing expose events while
7692         resizes are pending; this isn't needed since the invalid
7693         areas won't be processed until after the resizes are
7694         processed, since they are in a lower priority idle.
7695
7696 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
7697
7698         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
7699         and height of dest rectangle for non-intersecting rectangles.
7700
7701 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
7702
7703         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
7704         for GdkRectangle.
7705
7706 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
7707
7708         * gdk/gdk{events,image,private,types,window}.h
7709          gdk/x11/gdkinputprivate.h: Change all coordinates
7710          from int16 to int. Also, Change width and height from
7711          unsigned to signed to avoid all the stupid C 
7712          signedness bugs.
7713
7714 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
7715
7716         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
7717         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
7718         Add some more detailed checking.
7719
7720         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
7721         New function to retrieve the depth of a drawable.
7722
7723         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
7724         field, reorder fields to save memory. 
7725
7726 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
7727
7728         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
7729         of the background image instead of scaling the background down to
7730         a line.
7731
7732         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
7733         which temporarily set slider to wrong size.
7734
7735         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
7736         queue_clear().
7737
7738 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
7739
7740 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
7741
7742         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
7743
7744 2000-03-17  Tor Lillqvist  <tml@iki.fi>
7745
7746         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
7747         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
7748
7749         * gdk/win32/gdkfont-win32.c
7750         * gdk/win32/gdkproperty-win32.c
7751         * gdk/win32/gdkselection-win32.c
7752         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
7753         now declared such.
7754
7755 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
7756
7757         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
7758
7759 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
7760
7761         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
7762         is called without trapping X errors.
7763
7764 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
7765
7766         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
7767         way into the fontset lists.
7768
7769 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
7770
7771         * gtk/gtkthemes.h: add extern "C" scope.
7772
7773 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
7774
7775         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
7776         to make appends to the list constant. (gtk-guy-990901-0.patch)
7777
7778 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
7779
7780         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
7781         for the typename hash table.
7782
7783 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
7784
7785         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
7786         to make sure we never divide by zero. 
7787         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
7788
7789 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
7790
7791         * gtk/gtkfontsel.c: Apply patch from
7792         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
7793         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
7794
7795         Also, some cleanups in atom handling.
7796
7797 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
7798
7799         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
7800         not GtkWidget.
7801
7802 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
7803
7804         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
7805         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
7806         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
7807         more guint wrap-around bugs before going to bed.
7808
7809 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
7810
7811         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
7812         guint wrap arounds in allocation.width.
7813
7814         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
7815         process untill we fit the allocation given.
7816
7817 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
7818
7819         * gtk/gtkwidget.c:
7820         (gtk_widget_unrealize): guard widget access with ref/unref
7821         around signal emission.
7822         (gtk_widget_hide): same here, but also check its destroyed
7823         state before queueing a resize.
7824
7825 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
7826
7827         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
7828         of gtk_default_insensitive_bg as insensitive base color.
7829
7830         * gtk/gtktext.c (gtk_text_style_set): set the background color according
7831         to the widget's state.
7832         (gtk_text_realize): same here.
7833         (gtk_text_state_changed): same here.
7834         (draw_bg_rect): compare background color against base[] from
7835         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
7836
7837 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
7838
7839         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
7840         grabs are active, unless a delete event is send to the toplevel
7841         of the currently grab holding widget.
7842
7843 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
7844
7845         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
7846         debugging g_print's.
7847
7848 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
7849
7850         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
7851         ever make the scrolled-window requisition ever depend on the 
7852         visibility state of the scrollbars for the AUTOMATIC policy. 
7853         This breaks the GTK+ requisition model, and causes loops.
7854
7855 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
7856
7857         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
7858         the default font to avoid problems with XFree86-4.0 where the
7859         default charset is iso10646-1, not iso8859-1.
7860
7861 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
7862
7863         * acinclude.m4
7864         * config.guess
7865         * config.sub
7866         * ltconfig
7867         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
7868
7869         * gtk/Makefile.am: minor cosmetic consistency tweak
7870
7871 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
7872
7873         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
7874         the activate_time to 0, so that we handle a quick
7875         press/release press/release properly and don't suppress
7876         the second release. (Red Hat bug #7545)
7877
7878 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
7879
7880         * gtk/gtkctree.c (row_delete):
7881         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
7882         bugs with destruction notifier, *always* update internal
7883         structures *before* calling user code.
7884
7885 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
7886
7887         A few more fixes for bug #5487, #2051, #2677.
7888         * gtk/gtkclist.c : 
7889         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
7890         not GDK_BUTTON_PRESS.
7891         (resync_selection): resync only if selection_mode is
7892         GTK_SELECTION_EXTENDED
7893         * gtk/gtkctree.c (resync_selection): same here
7894
7895 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
7896
7897         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
7898         gdk_drag_get_selection() and gtk_menu_detach().
7899
7900         [ From Jeroen Ruigrok/Asmodai ]
7901
7902 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
7903
7904         * gtk/gtknotebook.c (gtk_notebook_size_request): 
7905         page->tab_label can be NULL.
7906
7907 2000-01-25  Havoc Pennington  <hp@pobox.com>
7908         
7909         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
7910         arg is boolean
7911
7912         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
7913
7914         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
7915
7916         * gdk/gdkproperty.c (gdk_property_get): return boolean
7917
7918         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
7919
7920         * gdk/gdkim.c (gdk_im_ready): return boolean
7921
7922         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
7923
7924         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
7925         glib clash, should fix glib)
7926
7927         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
7928         (gdk_get_show_events): return gboolean, and canonicalize 
7929         to TRUE/FALSE
7930
7931         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
7932         colormap is private
7933         (gdk_colors_alloc): gboolean whether to be contiguous
7934         (gdk_color_equal): return gboolean since we are a predicate
7935         and not a qsort() (this looks semi-wrong due to glib breakage,
7936         IMO glib should be fixed)
7937         
7938         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
7939         (gdk_get_use_xshm): return gboolean
7940         (gdk_pointer_is_grabbed): return gboolean
7941
7942         * gdk/gdk.h: Change prototypes to match all the above changes,
7943         and re-run egtk-format-protos as required.
7944
7945 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
7946
7947         * gtk/gtkctree.c (resync_selection): 
7948         * gtk/gtkclist.c (resync_selection):
7949
7950         Return immediately if clist->drag_pos < 0. This is a workaround
7951         for the corrupt state that the clist gets into when a
7952         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
7953
7954         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
7955         
7956         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
7957         variable from recent commit.
7958
7959 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
7960
7961         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
7962
7963 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
7964
7965         * gtk/Makefile.am: prefix all autogenerated source that get build in
7966         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
7967         in builddir. since we subsequently cd into srcdir for autogeneration,
7968         the paths have to be stripped from the target file names, thusly we
7969         use $(@F) as target names now.
7970         put a comment about configure.in's --disable-rebuilds option,
7971         which can be used for non-writable source directories, for development
7972         setups though, srcdir has to be *writable*.
7973
7974 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
7975
7976         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
7977           Finish the job of allowing event to be NULL.
7978           (Fixes bug #4283, reported by Chris Blizzard)
7979
7980         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
7981           things so that the cursor appears on screen, properly
7982           take into account INNER_BORDER.
7983           (Fixes bug #4754, reported by Antonio Campos)
7984
7985 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
7986
7987         * gtk/gtknotebook.c (gtk_notebook_map): Don't
7988           show the tab_label unless it itself is visible.
7989
7990           gtk/gtknotebook.c (gtk_notebook_size_request):
7991           Do a better job of making sure that the visibility
7992           of the tab label corresponds to whether it should
7993           be mapped or not.
7994
7995 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
7996
7997         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
7998           Use the requisition, not the allocation, since the
7999           allocation has not necessarily been computed yet.
8000           (Pointed out by Eugene Osintsev)
8001
8002 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
8003
8004         * gtk/gtkstyle.c (gtk_style_new): Dont' set
8005           style/base[GTK_STATE_INSENSITIVE] both to
8006           gtk_default_insensitive_bg!
8007           (Bug #2187, reported by Jonathan Blandford)
8008
8009         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
8010           Add Alt_L, Alt_R to list of invalid accelerators.
8011           (Bug #3736, reported by Vlad Harchev)
8012
8013 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
8014
8015         * gtk/gtkfilesel.c (open_ref_dir): Fix several
8016         bugs which occured after an attempt to open 
8017         invalid home directory left cmpl_state->reference_dir == NULL.
8018
8019          - completion on files in home directory didn't work
8020          - completion on an empty string caused  segfault
8021
8022          (Bug #3678, reported by Steve Ratcliffe)
8023
8024         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
8025         cut and paste error that was causing scales to
8026         be incorrectly positioned.
8027         (Bug #2956,
8028          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
8029
8030 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
8031
8032         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
8033         when checking for dcgettext, if we've found we needed
8034         it for dgettext.
8035 +
8036 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
8037
8038         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
8039         queue_clear on NO_WINDOW widgets during a reparent,
8040         since at that point the window and widget heirarchies
8041         are out of sync. This stops crashing in some cases
8042         (the scrolled window reparent test, for instance), and
8043         _probably_ won't cause drawing errors.
8044
8045         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
8046         test do what it was supposed to do and be robust against
8047         window closings, etc. (Bug #2443)
8048
8049 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
8050
8051         * gtk/gtkentry.c: Fix return values on mouse events.
8052         (Bug #2686, Sky <seb_sky@yahoo.com>)
8053
8054         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
8055         (pointed out by George Lebl)
8056
8057         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
8058         (From Ettore Perazzoli  <ettore@helixcode.com>)
8059  
8060 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
8061
8062         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
8063         clicks between rows or outside calender area correctly.
8064         (Patch from Damon Chaplin)
8065
8066         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
8067         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
8068           Call destroy function when overwriting existing data. 
8069           (Pointed out by Damon Chaplin)
8070
8071 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
8072
8073         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
8074           which was causing problems on various systems with Xmu.
8075           This hasn't been needed for a very long time.
8076           (Fixes #1185 3167)
8077
8078 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
8079
8080         * gdk/gdki18n.h: Include <ctype.h> when defining
8081           gdk_isw* in terms of is* as a fallback.
8082           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
8083
8084 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
8085
8086         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
8087           realize the widget when it is size allocated!
8088           (old, old bug)
8089
8090         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
8091           Removed unused call to gdk_window_get_size() that
8092           showed up when the above was fixed.
8093
8094 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
8095
8096         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
8097           fix up widget->window when the widget is a
8098           NO_WINDOW container widget.
8099
8100 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
8101
8102         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
8103           to account for the fact that feof() does _not_ 
8104           return TRUE on errors, and thus avoid infinite loops
8105           when trying to use gdk_pixmap_create_from_xpm()
8106           on unreadable values.
8107
8108 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
8109
8110         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
8111
8112 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
8113
8114         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
8115           gdk_gc_set_dashes to take gint8 instead of gchar to
8116           make it clearer that it is _not_ a NULL terminated string.
8117
8118         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
8119           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
8120           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
8121           arguments.
8122
8123 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
8124
8125         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
8126         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
8127         background size relative to our allocation, guard against small
8128         allocations, we may have not yet been size allocated.
8129
8130 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
8131
8132         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
8133         not just version == 3. We implement all 3 + most of 4 - 
8134         (we don't support matching text/plain;charset=iso-8859-1
8135         to a dest that expects text/plain). We'll still advertise
8136         3 to be safe, but any client implementing version >= 3
8137         must interoperate with 3.
8138         
8139 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
8140
8141         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
8142         background and gc members, add a warning in gtk_tooltips_set_color()
8143         indicating that this function is deprecated.
8144
8145 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
8146
8147         * docs/gtkfaq.sgml: FAQ Update:
8148           - Minor cleanups (Emmanuel, me)
8149           - New questions:
8150                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
8151                 How can I retrieve the text from a GtkMenuItem? (timj)
8152                 How do I validate/limit/filter the input to a GtkEntry? (me)
8153                 Memory does not seem to be released when I free the list
8154                         nodes I've allocated (timj)
8155
8156 2000-03-07  Tor Lillqvist  <tml@iki.fi>
8157
8158         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
8159         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
8160         for which it is no use to call GetLastError onWin9x.
8161         (gdk_other_api_failed) New function, for general error
8162         reporting without calling GetLastError.
8163         (gdk_win32_api_failed) OTOH, this function always calls
8164         GetLastError. (gdk_win32_last_error_string) Remove this function,
8165         GLib has the equivalent now.
8166
8167         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
8168         call them with function name, file name and line number in the
8169         arguments.
8170
8171         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
8172         functions.
8173         
8174         * gtk/gtk.def: Add some missing entry points.
8175
8176         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
8177         gtk_paned_set_gutter_size, which don't exist any longer, as void.
8178         
8179         Fixes by Hans Breuer:
8180
8181         * gdk/makefile.msc: Update for debugging.
8182
8183         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
8184         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
8185         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
8186         in the dash_list.
8187
8188         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
8189         the x11 backend.
8190
8191         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
8192
8193         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
8194
8195 2000-03-04  Tor Lillqvist  <tml@iki.fi>
8196
8197         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
8198         just pixel value of background colour.
8199
8200         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
8201         containing code snippet previously duplicated in a couple of
8202         places.
8203         
8204         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
8205         gdk_colormap_color.
8206
8207         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
8208         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
8209         events for autorepeated Shift, Control and Alt keys. Use
8210         gdk_colormap_color.
8211
8212         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
8213         pointer is inside the window the cursor of which we are setting,
8214         call SetCursor immediately.
8215
8216         * gdk/win32/makefile.cygwin
8217         * gtk/makefile.cygwin: If we don't have the build number stamp
8218         file, use zero.
8219
8220         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
8221         gtk_paned_set_gutter_size as empty.
8222
8223         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
8224         
8225 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
8226
8227         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
8228           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
8229           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
8230           docs/gtk_tut.sgml docs/gtk.texi TODO:
8231
8232           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
8233
8234 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
8235
8236         * gtk/gtkcalendar.c: Implement num_marked_dates,
8237           and don't emit mutiple day_selected signals on
8238           month_prev.
8239
8240 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
8241
8242         * docs/make-todo (lineno): let title and logo be configurable so
8243         that GNOME can use this script too.
8244
8245         * TODO.xml: added logourl and a title
8246
8247 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
8248
8249         * TODO.xml: Added some UI items, and an explanatory
8250         comment at the top of the file.
8251
8252 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
8253
8254         * TODO.xml: some updates, added abunch of new entries.
8255         a note for those fiddeling with this file, when done
8256         with it, invoke:
8257         $ ./docs/make-todo TODO.xml >/dev/null
8258         and correct output errors before comitting changes.
8259
8260 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
8261
8262         * TODO.xml: Added XML-structured TODO file.
8263         * docs/make-todo: python script to turn TODO.xml into
8264           pretty XML output. 
8265
8266 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
8267
8268         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
8269         the function to let it draw the seven dots, instead of the old,
8270         much maligned, method.
8271         (draw_dot): New function to draw a dot.
8272
8273         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
8274         to draw the handle inside the border width as opposed to outside.
8275         Use paint function instead of gdk_draw_point.
8276
8277         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
8278         to draw the handle inside the border width as opposed to outside.
8279         Use paint function instead of gdk_draw_point.
8280
8281         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
8282         Change indenting to be more GTK like.
8283
8284 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
8285
8286         * docs/gtk_tut.sgml: New section on GtkCalendar
8287         * examples/calendar: Update example code
8288
8289 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
8290
8291         * docs/gtkfaq.sgml: FAQ Update
8292
8293 2000-02-19  Anders Carlsson  <andersca@gnu.org>
8294
8295         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
8296         to prevent the scroll event to be propagated upwards.
8297
8298 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
8299
8300         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
8301         OwnerGrabButtonMask from button entries for
8302         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
8303
8304         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
8305         to the event mask (which will result in button/press release
8306         being added to the event mask on Unix) so scrolling works
8307         for layouts in scroll windows.
8308
8309         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
8310
8311         Patch from Anders Carlsson  <andersca@gnu.org> to add
8312         a scroll event.
8313
8314         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
8315         scrolling to the "Test Scrolling" part of testgtk.
8316  
8317         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
8318  
8319         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
8320         it against GDK_SCROLL.
8321  
8322         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
8323         way of mouse wheel scrolling.
8324  
8325         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
8326  
8327         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
8328  
8329         * gtk/gtkmain.c: Removed previous mouse wheel hack.
8330  
8331         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
8332         gdk_event_mask_table.
8333  
8334         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
8335         GdkEventScroll handler.
8336  
8337         * gdk/gdkevents.h: Added GdkEventScroll structure.
8338  
8339 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
8340
8341         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
8342         and Anders Carlsson to change the Paned widgets so that they
8343         can be dragged from anywhere along the length. Also change
8344         the way that this is drawn to make this apparent.
8345
8346         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
8347         from George Lebl to check that option_menu->menu is present
8348         before getting history.
8349
8350 2000-02-14  Tor Lillqvist  <tml@iki.fi>
8351
8352         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
8353         before the assertion for non-NULL segment list.
8354
8355         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
8356         Seems that pattern brushes *must* be 8x8 pixels! At least on my
8357         machine, but it might be display driver dependent. Sigh, so make
8358         sure the stipple is that size. Does Windows suck or what?
8359
8360         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
8361         places.
8362
8363 2000-02-13  Havoc Pennington  <hp@pobox.com>
8364
8365         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
8366         refcount to 1
8367         (gdk_cursor_new): init refcount to 1
8368
8369         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
8370
8371 2000-02-13  Tor Lillqvist  <tml@iki.fi>
8372
8373         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
8374         so that we don't have to do unnecessary settings to the HDC.
8375
8376         * gdk/win32/gdkdrawable-win32.c
8377         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
8378         gdk_gc_predraw.
8379
8380         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
8381         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
8382         GDI paths, call WidenPath to get the outline of the stroken path,
8383         and then fill the outline (with the brush that was built from the
8384         stipple).
8385
8386         * gdk/win32/gdkgc-win32.c: Factor out common code from
8387         _gdk_win32_gc_new and gdk_win32_gc_set_values into
8388         gdk_win32_gc_values_to_win32values. Use correct colour for
8389         SetBkColor() (Until now the code actually used a random colour in
8390         the call to SetBkColor()... but that didn't show up as not many
8391         GDI APIs use the background colour. Pattern (opaque stippled)
8392         brushes do.)
8393
8394         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
8395         gdk_win32_api_failed): New functions for error logging.
8396
8397         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
8398         WIN32_API_FAILED to call them, passing function or file name and
8399         line number.
8400
8401         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
8402
8403         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
8404         GdkColor for foreground and background in GdkGCWin32Data.
8405
8406         * gdk/makefile.cygwin: Link in the resource object separately.
8407
8408         * gdk/win32/rc/gdk.rc
8409         * gtk/gtk.rc (New file)
8410         * gdk/win32/makefile.cygwin
8411         * gtk/makefile.cygwin: Update build number in DLLs automatically,
8412         as in GLib.
8413
8414 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
8415
8416         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
8417         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
8418         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
8419         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
8420         parameters given and cursor->ref_count. coding style fixups.
8421
8422         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
8423         not GtkWidget.
8424         
8425         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
8426         fix up widget macros and add _GET_CLASS() variant.
8427         
8428         * gtk/*.c: some GtkType fixups.
8429
8430 2000-02-09  Tor Lillqvist  <tml@iki.fi>
8431
8432         * gdk/win32/gdkproperty-win32.c
8433         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
8434         were reversed.
8435
8436 2000-02-04  Tor Lillqvist  <tml@iki.fi>
8437
8438         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
8439         g_filename_to_utf8 to convert the font names Windows gives us from
8440         whatever is the default codepage to UTF-8.
8441         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
8442         in the other direction.
8443
8444         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
8445         error in debugging output.
8446
8447 2000-02-02  Tor Lillqvist  <tml@iki.fi>
8448
8449         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
8450         and height parameters to gdk_window_clear_area(). Not minus one.
8451
8452 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
8453
8454         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
8455         checks if the widget passed to gtk_drag_get_data() was not the
8456         dest widget.
8457
8458 2000-02-01  Tor Lillqvist  <tml@iki.fi>
8459
8460         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
8461         g_filename_from_utf8 functions (which were added a moment ago to
8462         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
8463         size buffers.
8464
8465         gtk_file_selection_get_filename returns the filename in the C
8466         runtime encoding. It calls g_filename_from_utf8, but copies the
8467         returned string to a static buffer, which is returned. I think
8468         this is better than returning the result from g_filename_from_utf8
8469         directly, which would mean all apps that use it would have to free
8470         the return value. Or should this function care about this issue at
8471         all? Maybe a new function with clearly defined semantics.
8472
8473         * gtk/gtkfilesel.h: Add comment about
8474         gtk_file_selection_get_filename returning the filename in the C
8475         runtime's encoding.
8476
8477         * README.win32
8478         * gdk/gdk.def
8479         * gdk/makefile.{cygwin,msc}
8480         * gtk/gtk.def: Updates.
8481
8482         * gdk/gdkcursor-win32.c: Initialise refcount.
8483
8484 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
8485
8486         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
8487
8488 2000-01-30  Havoc Pennington  <hp@pobox.com>
8489
8490         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
8491         destroy
8492
8493         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
8494
8495         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
8496         implemented in platform-specific code
8497
8498         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
8499
8500         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
8501         underscore in front
8502
8503         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
8504         put an underscore in front
8505
8506         * gdk/gdkcursor.c: new file, implements
8507         gdk_cursor_ref/gdk_cursor_unref
8508
8509         * gdk/gdkcursor.h: Refcount GdkCursor
8510
8511         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
8512
8513 2000-01-29  Tor Lillqvist  <tml@iki.fi>
8514
8515         * gdk/gdkwindow.h
8516         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
8517
8518 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
8519
8520         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
8521         structures to properly inherit from GtkWidget not GtkBin.
8522
8523 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
8524
8525         * gtk+.spec.in: Added lib/gtk+/include/* to %files
8526         (bug #5178 - Peter Wainright)
8527         
8528         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
8529         so that it will be installed.
8530         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
8531
8532 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
8533
8534         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
8535         for the GtkStyleClass vtable const.
8536
8537         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
8538         take a const string argument like GtkTranslateFunc. This will
8539         require changes in use code.
8540
8541 2000-01-19  Tor Lillqvist  <tml@iki.fi>
8542
8543         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
8544         semantics (to mimic the X11 backend, which just calls XClearArea)
8545         is to check for zero width (and height), and in that case use the
8546         window's width minus x (height minus y). This fixes for instance
8547         some redraw problems with gtkclist, which were easily noticeable
8548         in the gtk file selection widget.
8549
8550         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
8551         windows.
8552
8553 2000-01-13  Tor Lillqvist  <tml@iki.fi>
8554
8555         * configure.in
8556         * gdk/Makefile.am
8557         * gdk/x11/Makefile.am
8558         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
8559         (bug #5177).
8560         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
8561         out later.
8562
8563 2000-01-09  Tor Lillqvist  <tml@iki.fi>
8564
8565         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
8566         WM_MOVE for iconified or invisible windows. This fixes various
8567         problems when minimising windows. Thanks to Bernd Herd.
8568
8569 2000-01-05  Tor Lillqvist  <tml@iki.fi>
8570
8571         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
8572         backend's draw_lines method, not draw_points.
8573
8574 2000-01-02  Tor Lillqvist  <tml@iki.fi>
8575
8576         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
8577         before Owen's reorganisation: Don't have queued_events and
8578         queued_tail statics in this file, but use gdk_queued_events and
8579         gdk_queued_tail. This makes exposure event compression work again.
8580
8581         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
8582         seem to be needed?
8583
8584 1999-12-30  Tor Lillqvist  <tml@iki.fi>
8585
8586         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
8587         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
8588         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
8589         doesn't do anything.
8590
8591         * gdk/gdk.def: Add gdk_xid_table_insert.
8592
8593         * gdk/win32/gdkprivate-win32.h
8594         * gdk/win32/gdkevents-win32.c
8595         * gdk/win32/gdkinput-win32.c
8596         
8597         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
8598         extension_events field in the GdkWindowWin32Data struct. Use only
8599         the extension_events field in GdkWindowPrivate. Previously one was
8600         set, and the other one tested, which broke tablet
8601         functionality. Thanks to Keishi Suenaga for pointing this out.
8602
8603 1999-12-18  Tor Lillqvist  <tml@iki.fi>
8604
8605         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
8606         When handling a single character (text length == 1), don't handle
8607         it as if it was UTF-8.
8608
8609 1999-12-11  Tor Lillqvist  <tml@iki.fi>
8610
8611         * Makefile.am: Distribute README.win32.
8612         
8613         * gdk/Makefile.am
8614         * gdk/win32/Makefile.am: Distribute Win32 files.
8615
8616         * gdk/makefile.msc: New file.
8617
8618         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
8619         after label).
8620
8621         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
8622         gdk_error_code as GDKVAR, as they are referred outside GDK.
8623
8624         * gdk/win32/makefile.msc: Update.
8625
8626         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
8627         tweaks. Check only if at least one of those Unicode subrange bits
8628         we care for is set. If no code page bits are set, guess (wildly)
8629         based on the charset.
8630
8631         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
8632
8633         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
8634         non-NULL.
8635
8636         * gtk/gtkdnd.c
8637         * gtk/gtklayout.c
8638         * gtk/gtkplug.c
8639         * gtk/gtkselection.c
8640         * gtk/gtksocket.c
8641         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
8642         appropriate. There must be a cleaner way to handle this?
8643
8644         * gtk/gtkrc.c: Must include windows.h on Win32.
8645
8646         * gtk/testgtk.c: No need to include gdkx.h.
8647
8648         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
8649
8650 1999-12-07  Tor Lillqvist  <tml@iki.fi>
8651
8652         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
8653         the rbearing is set to the same as the width, but this should be
8654         fixed.
8655
8656 1999-12-06  Tor Lillqvist  <tml@iki.fi>
8657
8658         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
8659         function. If Windows doesn't tell us what Unicode subranges a font
8660         covers, guesstimate based on the codepages it covers. This will
8661         hopefully help those Windows versions or fonts that don't give us
8662         any useful Unicode subrange information with GetTextCharsetInfo.
8663         Call this function in gdk_font_load_internal.
8664
8665         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
8666         minor changes.
8667
8668 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
8669
8670         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
8671         New function, long needed.
8672
8673 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
8674
8675         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
8676         only_if_exists argument of gdk_atom_intern to
8677         bool.
8678
8679 1999-11-25  Tor Lillqvist  <tml@iki.fi>
8680
8681         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
8682         Fix two copy&paste errors.
8683
8684         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
8685         win32 has changed.
8686
8687         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
8688         GdkWin32SingleFont struct.
8689
8690         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
8691         subranges of loaded fonts. Clear font signature first, in case
8692         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
8693         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
8694
8695         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
8696         Unoffset clip region.
8697
8698 1999-11-23  Tor Lillqvist  <tml@iki.fi>
8699
8700         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
8701         event->any.window before calling filter functions.
8702
8703 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
8704
8705         * gtk/gtkgamma.h: Adapt cast macros to standard.
8706
8707 [ Merges from 1.2 ]
8708
8709 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
8710
8711         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
8712         If translation does not include a '/', use entire
8713         translation instead of crashing.
8714
8715 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
8716
8717         * docs/gtk_tut.sgml:
8718         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
8719
8720 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
8721
8722         * gtk/gtkselection.c (gtk_target_list_remove): Use
8723         g_list_remove_link, not g_list_remove.
8724
8725         [ From Geert Bevin <gbevin@thunderstorms.org> ]
8726         
8727 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
8728
8729         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
8730         statement upon unselection (how the heck did that slip in?).
8731
8732 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
8733
8734         * gtk/gtktext.c (gtk_text_freeze): 
8735         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
8736         in frozen state (and aparently crashes). patch provided by Anders
8737         Melchiorsen <and@kampsax.dtu.dk>.
8738
8739 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
8740
8741         * fix insensitive default/focus widget activation,
8742         reported by Matt Goodall <mgg@isotek.co.uk>.
8743
8744         * gtk/gtkwindow.c (gtk_window_key_press_event): 
8745         (gtk_window_activate_default):
8746         (gtk_window_activate_focus):
8747         return handled=FALSE for actiavtion of insensitive default
8748         widgets. return handled=TRUE for activation of insensitive
8749         focus widgets. don't activate in either case.
8750
8751 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
8752
8753         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
8754         and $glib_cflags to match library order and in the
8755         theory that an old version of GLib is more likely to
8756         be in the include directory for X then vice-versa.
8757         (Bug #2776)
8758
8759 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
8760
8761         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
8762         to determine the locale for fontsets, not LC_MESSAGES;
8763         the user may want English messages with a handling
8764         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
8765         will still be broken) (Bug #2891)
8766
8767 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
8768
8769         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
8770
8771 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
8772
8773         * gtk/gtkrc.ko: Changed the Korean default fontset.
8774
8775 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
8776
8777         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
8778         where when scrolling to the left or top double exposes
8779         were done, causing major slowdowns.
8780
8781 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
8782
8783         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
8784         names to lowercase and alphanumeric, before looking
8785         them up.
8786
8787         * gtk/Makefile.am: Install codeset variant gtkrc files
8788         with normalized names.
8789
8790 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
8791
8792         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
8793         popup menus when the menu is already visible, but its parent
8794         is still hidden, (happens after tornoff window got hidden).
8795
8796 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
8797
8798         * gtk/Makefile.am (install-data-local): Fix
8799         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
8800         deleted, causing error messages on install.
8801
8802 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
8803
8804         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
8805         the handle as well, since we now sometimes ignore
8806         exposes on the handle while resizing.
8807
8808 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
8809
8810         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
8811         extra g_free introduced in one of the last one or two 
8812         commits.
8813
8814 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
8815
8816         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
8817         consistent, put each style that a gtkrc.* file creates
8818         in a unique namespace, remove old files before installing.
8819
8820 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
8821
8822         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
8823         gtk_rc_init is called multiple times. (Yes, people who
8824         do that have bugs in their code.)
8825
8826 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
8827
8828         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
8829         Remove it since it's generated by the Makefile anyway
8830
8831 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
8832
8833         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
8834         device->info.axes for core pointer.
8835
8836 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
8837
8838         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
8839         idle_id, to deal with obsolete, broken C libraries.
8840
8841 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
8842
8843         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
8844         allocation->x/y twice!
8845
8846         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
8847         consistent with gtk_vscale_pos_trough().
8848
8849 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
8850
8851         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
8852         be queueing a resize on a toplevel container between
8853         the time we show it and when we map it. So, we need
8854         to test GTK_WIDGET_VISIBLE() for toplevels, and only
8855         use GTK_WIDGET_DRAWABLE() for child windows.
8856
8857 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
8858
8859         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
8860         (fixes bug #2144)
8861
8862 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
8863
8864         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
8865         container DRAWABLE (instead of VISIBLE), so we don't queue
8866         resizes on non-toplevel containers.
8867
8868 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
8869
8870         * gtk/gtkselection.[ch]: Make the data argument
8871         const guchar *.
8872
8873 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
8874
8875         * gtk/gtkwindow.c: Try to behave sensibly if 
8876         the focus widget is the window itself. (Should
8877         we allow this at all?)
8878
8879 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
8880
8881         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
8882         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
8883         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
8884         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
8885         in prototypes and implementations consistent (Tomas Ogren).
8886
8887         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
8888         before the widget is unparented (reported by damon).
8889
8890         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
8891         since we provide unsigned data anyways.
8892
8893 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
8894
8895         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
8896         the call to gtk_tooltips_layout_text() until later.
8897
8898         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
8899         Call gtk_widget_ensure_style() before using the style.
8900
8901 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
8902
8903         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
8904         for old widgets that don't propagate draws to all
8905         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
8906
8907 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
8908
8909         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
8910         for a redraw but just the widget that requested the resize.
8911
8912 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
8913
8914         * gtk/gtkcontainer.c: added new widget level method
8915         gtk_container_set_reallocate_redraws() and a GtkContainer flag
8916         reallocate_redraws : 1 to reflect the setting, exported this through
8917         the argument system as a boolean ::reallocate_redraws.
8918
8919         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
8920         on the widget because the allocation changes, do so as well for
8921         widget->parent if the parent has reallocate_redraws set to TRUE.
8922         with that containers requesting reallocation redraws get automatically
8923         redrawn if their children changed allocation (this unfortunately
8924         affects also other children that didn't change allocation, but we
8925         cannot work around that before 1.3).
8926
8927 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
8928
8929         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
8930         _and_ height are >0 (not _or_).
8931
8932         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
8933         instead of gtk_container_queue_resize(), which is a core gtk internal
8934         function (must have been on crack when i queued that).
8935
8936         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
8937         we can check more reliably if we want to discard expose events.
8938         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
8939         flag.
8940         
8941         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
8942         we simply trust these events. for deciding whether to discard exposes,
8943         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
8944         
8945 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
8946
8947         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
8948         queues of areas that are completely off screen.
8949
8950         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
8951         logic for handleboxes.
8952
8953         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
8954         check on width/height.
8955
8956 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
8957
8958         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
8959         we are fine with using $@ the way we do (if we actually encounter
8960         brokeness with $@ in VPATH builds because of additional path prefixes,
8961         we need to use $(@F) actually).
8962
8963 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
8964
8965         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
8966         short lived bugs, that would allow language bindings to do surgeries
8967         to our guts.
8968
8969 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
8970
8971         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
8972         where comparison was being done against an uninitialized
8973         value causing intermittant results depending on
8974         compiler flags. Also make it clearer that we aren't
8975         ever initializing the child as 0x0 (though this will
8976         be caught in gtk_widget_size_allocate())
8977
8978 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
8979
8980         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
8981         gtk_window_unset_transient_for() call after we do checks
8982         involving the old transient parent.
8983         [ From Lance Capser <lmc@cyberhighway.net> ]
8984
8985 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
8986
8987         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
8988         an empty file.
8989
8990 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
8991
8992         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
8993         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
8994
8995 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
8996
8997         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
8998         `$@' is valid only in the build dir, not after we've done 
8999         `cd $srcdir'.  Also use `test -f' instead of less portable
9000         `test -e'.
9001
9002 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
9003
9004         * gtk/gtktext.c (correct_cache_insert): Rewrite
9005          for simplicity, and hopefully correctness.
9006          (Fixes bug #1322, which was a segfault when
9007           on some insertions with the properties around
9008           the insertion set up just wrong.)
9009
9010         * gtk/gtktext.c (gtk_text_adjustment): When we receive
9011          a "changed" signal, clamp the new value to the adjustment
9012          bounds to avoid segfaulting if someone tries to change
9013          the adjustment to a bogus value. (Bug #1795)
9014
9015 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
9016
9017         * gtk/gtkmain.c: Ignore unexpected destroy notifies
9018         for children, for toplevel windows handle them
9019         like delete_event.
9020
9021         * gtk/gtkplug.c: Add an unrealize handler so that
9022         we unref plug->socket_window when we are done
9023         with it.
9024
9025 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
9026
9027         * gtk/gtktext.c (clear_area): Fix stupid signedness
9028          problem that was causing background to sometimes
9029          be misaligned.
9030
9031 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
9032
9033         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
9034         
9035         * gtk/gtkmenu.c (gtk_menu_position): Make
9036          sure we never position menus with negative x, y,
9037          since gtk_widget_set_uposition() can't handle that.
9038
9039         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
9040          Modify the positioning code a bit so that we always
9041          put the top-left corner onscreen. (This is for
9042          UI reasons, gtk_menu_position() now takes care of
9043          gtk_widet_set_uposition() brokeness.)
9044
9045 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
9046
9047         * gtk/Makefile.am: fixed up things for -jx, x > 1.
9048
9049 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
9050
9051         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
9052           RC style that is passed in. The lack of the ref
9053           before was a bug. If people worked around this
9054           bug, this will introduce a slight memory leak
9055           in their code. The code should typically look like:
9056
9057             rc_style = gtk_rc_style_new ();
9058             [...]
9059             gtk_widget_modify_style (widget, rc_style);
9060             gtk_rc_style_unref (rc_style);
9061
9062         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
9063           the style if it was already set.
9064
9065         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
9066           style if it was set before.
9067
9068 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
9069
9070         * gtk/testgtk.c (main): Add a check to see if we
9071           are being run from the correct directory and
9072           to quit nicely if we are not.
9073
9074         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
9075           static.
9076
9077 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
9078
9079         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
9080
9081         * gtk/gtkwindow.c:
9082         queue resizes unconditionally (gtk_widget_queue_resize will figure
9083         what to do if the window is not realized).
9084         (gtk_window_move_resize): only recenter the window
9085         for GTK_WIN_POS_CENTER_ALWAYS.
9086         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
9087         the same way as GTK_WIN_POS_CENTER.
9088
9089 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
9090
9091         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
9092         with (!(info->last_flags & GDK_HINT_POS)) instead of
9093         (!info->last_flags & GDK_HINT_POS).
9094
9095         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
9096         new_height unconditionally, because we use these values even if
9097         !default_size_changed && !hints_changed.
9098         comented the (default_size_changed || hints_changed) case with
9099         respect to resize rejects from the window manager.
9100
9101         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
9102         in the zvt condition hack, since this includes the window hints, set
9103         the hints after the handling_resize case.
9104
9105         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
9106         window is initially shown with to the geometry.
9107
9108 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
9109
9110         * gtk/gtkwindow.c (gtk_window_move_resize):
9111         s/size_changed/default_size_changed/g so i know what's
9112         really going on (frying brain on smaller flame now).
9113
9114 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
9115
9116         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
9117         we have size_changed upon handling_resize. this is a gross
9118         workaround for the broken zvt widget and should be removed in
9119         1.3 again (search for FIXME).
9120         Owen provided an accurate comment for this:
9121
9122         /* We could be here for two reasons
9123          *  1) We coincidentally got a resize while handling
9124          *     another resize.
9125          *  2) Our computation of size_changed was completely
9126          *     screwed up, probably because one of our children
9127          *     is broken. It's probably a zvt widget.
9128          *
9129          * For 1), we could just go ahead and ask for the
9130          * new size right now, but doing that for 2)
9131          * might well be fighting the user (and can even
9132          * trigger a loop). Since we really don't want to
9133          * do that, we requeue a resize in hopes that
9134          * by the time it gets handled, the child has seen
9135          * the light and is willing to go along with the
9136          * new size. (this happens for the zvt widget, since
9137          * the size_allocate() above will have stored the
9138          * requisition corresponding to the new size in the
9139          * zvt widget)
9140          *
9141          * This doesn't buy us anything for 1), but it shouldn't
9142          * hurt us too badly, since it is what would have
9143          * happened if we had gotten the configure event before
9144          * the new size had been set.
9145          */
9146
9147 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
9148
9149         * gtk/gtkrc.c: deal properly with the fact that RC
9150           style lists may include rc styles more than once.
9151
9152         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
9153           unused static function.
9154
9155         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
9156           stack of directories of RC files currently being
9157           parsed and implicitely add them to pixmap path.
9158           
9159           This fixes a bug where the directory would get
9160           appended then overwritten by pixmap_path declarations.
9161
9162           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
9163
9164         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
9165           theme's exit function. (Patch from Peter Wainwright,
9166           bug #1454)
9167
9168         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
9169           Add a destroy() handler to take care of removing
9170           group for menu item. (Fixes bug #1197)
9171
9172         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
9173           in warning message.
9174
9175 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
9176
9177         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
9178         roundtrip to figure window's width and height, since we know that
9179         anyways from widget->allocation.
9180
9181 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
9182
9183         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
9184           the hints after we request the new size.
9185
9186 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
9187
9188         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
9189           GTK_WIDGET_REALIZED() assertion - we can compute the
9190           hints before we are realized.
9191
9192         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
9193           hint changing so that we have a value of hints_changed
9194           when we decide whether to constrain the window size.
9195
9196         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
9197
9198         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
9199         change back to G_MAXINT.
9200
9201 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
9202
9203         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
9204         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
9205         contain uncluttered values.
9206         (gtk_window_compute_hints): simply assert that window is realized
9207         and that geometry_info is valid, since we rely on this anyways.
9208         (gtk_window_constrain_size): major cleanups to the code.
9209         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
9210         for the base size, instead of the minimums. use 32767 as max width
9211         and height (like in gtkwindow.c) instead of G_MAXINT.
9212
9213 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
9214
9215         * cleaned up the GtkContainer.need_resize flag handling mess, we
9216         only need to force resize requests when we were prematurely
9217         realized, or our widget tree was modified when we were temporarily
9218         hidden. handling these cases directly upon showing the window (i.e.
9219         while the GdkWindow is still unmapped) avoids the need to wait for
9220         a configure event response and therefore makes the GUI more snappier
9221         and avoids blank windows during the roundtrip.
9222
9223         * gtk/gtkwidget.c:
9224         (gtk_widget_hide): 
9225         (gtk_widget_show): don't queue resizes on toplevels, they know how
9226         to deal with matters.
9227
9228         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
9229         flag directly for not visible resize containers and spare us unecessary
9230         signal emissions.
9231
9232         * gtk/gtkwindow.c:
9233         (gtk_window_realize): if we need to enforce premature size allocation,
9234         queue a container resize so we are correctly resized later on.
9235         (gtk_window_init):
9236         (gtk_window_size_request):
9237         don't freak around with the ->need_resize flag,
9238         gtk_container_queue_resize() will care about that.
9239         (gtk_window_show):
9240         handle initial resizing issues here, we can handle matters better in
9241         this place, especially since we know that our GdkWindow is still
9242         unmapped.
9243         (gtk_window_move_resize):
9244         don't care about ->need_resize at all.
9245         handle size changes properly that occoured while we waited for a
9246         configure event.
9247
9248 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
9249
9250         * gtk/gtkwidget.c (gtk_widget_set_uposition):
9251         * gtk/gtkwindow.[hc] (gtk_window_reposition):
9252         Move the hint setting code from gtk_widget_set_uposition
9253         to here; set the hints so that we respect any previously
9254         set geometry hints.
9255
9256         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
9257         change the window hints here or move the window here,
9258         let that happen in gtk_window_move_resize().
9259
9260 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
9261
9262         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
9263         to already queued resizes (and therefore redraws) on a widget, check
9264         its anchestry as well.
9265
9266         * gtk/gtkcontainer.c:
9267         (gtk_container_queue_resize): clear resize widgets for resize
9268         containers before aborting prematurely. this is especially important
9269         for toplevels which may need imemdiate processing or their resize
9270         handler to be queued.
9271         (gtk_container_dequeue_resize_handler): added new internal function for
9272         gtkwindow.c.
9273
9274         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
9275         configure event, take possible changes in window position into account
9276         as well.
9277         if we request a new window size, queue up a resize handler that will
9278         last until the configure event response arrives.
9279         combined the ->need_resize case (initial show) with the general size
9280         (hints) changed case and added even more comments.
9281         if !auto_shrink, only revert to the old allocation if the new size
9282         is smaller than the current allocation.
9283
9284 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
9285
9286         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
9287                            gtk_window_set_geometry_hints
9288                            gtk_window_set_default_size):
9289         When hints are set, queue a resize so that the hints will
9290         be eventually reset on the toplevel.
9291
9292         * gtk/gtkwindow.c (gtk_window_show): Use
9293         gtk_window_compute_default_size(). Clear the need_resize flag
9294         on the initail map so that we don't unnecessarily trigger the
9295         resize code.
9296
9297         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
9298         into separate functions. Compare the hints we are setting
9299         with what we set last time so that we can accurately
9300         tell when we need to reset the hints.
9301
9302         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
9303         function to figure out the size from requisition
9304         and default_size.
9305
9306         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
9307         from fvwm to constrain a size to the geometry hints.
9308
9309         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
9310         to compare two sets of geometry hints.
9311
9312         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
9313         from gtk_window_set_hints(), just compute the hints,
9314         don't set them.
9315
9316         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
9317         code from gtk_window_move_resize() to separate function,
9318         rationalize a bit.
9319
9320 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
9321
9322         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
9323         structure into a new private structure.
9324
9325         * gtkrc.c: Split GtkRcStyle into public/private.
9326         In the private part, add a list of pointers to the
9327         RcStyle lists this RcStyle participates in.
9328
9329         * gtkrc.c: When a RcStyle is free, remove all
9330         lists referencing it from the 
9331         realized_style_ht hash, and free those lists.
9332         
9333         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
9334         gtk_rc_init(), since that adds the default styles
9335         to the list of parsed RC files again.
9336
9337         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
9338         
9339 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
9340
9341         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
9342         checks that ensure that a widget's allocation is at least 1 in width
9343         and height. (GNOME note: this doesn't affect old panel code anymore,
9344         because GtkSocket will request width and height of at least 1 since
9345         Fri Jul 23).
9346
9347         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
9348         allocated yet (happens if the user realizes the window prematurely),
9349         size request and allocate it.
9350         (gtk_window_size_allocate): guard against guint underflows.
9351
9352 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
9353
9354         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
9355         in gtk_built_sources, so gtk.defs gets built prior to all other
9356         sources.
9357
9358 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
9359
9360         * gtk/Makefile.am:
9361         invoke indent on gtkmarshal.*. 
9362         rewrote source generation rules, use COPYING as oldest source tag for
9363         a piggyback rule to generate all sources from (don't touch it ;).
9364         major cleanups, strip spaces on build rules for GNU Make.
9365
9366         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
9367         source and target files from commandline arguments. don't invoke indent.
9368
9369 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
9370
9371         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
9372         notebook after switch to avoid drawing problems.
9373         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
9374         
9375         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
9376         show them instead. 
9377         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
9378
9379 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
9380
9381         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
9382         notebook after switch to avoid drawing problems.
9383         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
9384         
9385         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
9386         show them instead. 
9387         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
9388
9389 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
9390
9391         * gtk/gtkwindow.c:
9392         we use window->need_resize from configure_event now, to indicate that
9393         the gtkwindow should keep its allocation (e.g. because the user resized
9394         the window through window manager handles). resize_count is now reliably
9395         used to figure whether we got the allocation we requested from the
9396         window manager.
9397         configure events get queued as resizes now, the real stuff (size
9398         computation and allocation) now only goes on in gtk_window_move_resize().
9399         GtkWindow's requisition now contains its *real* requisition (like all
9400         other widgets), *not* taking usize into account.
9401         geometry_info->last_{width|height} is now updated from set_hints() only
9402         so it always contains the last hints we set for the window manager.
9403         made some event handlers return TRUE instead of FALSE.
9404         the overall code should be much more straight forward now, and the
9405         significant code portions are accompanied by comments now.
9406         (gtk_window_set_hints):
9407         removed requisition argument and made it
9408         fetch the requisition through gtk_widget_get_child_requisition.
9409         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
9410         does that now.
9411         (gtk_window_show):
9412         ensure that the widget is realized before calling 
9413         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
9414         ensure that we got properly size requested and allocated before
9415         realization.
9416         (gtk_window_configure_event):
9417         ignore plain window moves, or reallocate the widget tree through the
9418         resize queue otherwise.
9419         (gtk_window_move_resize):
9420         mostly rewrote this function to figure window manager hints more
9421         reliably, coalesce window moves and resizes to reduce configure events
9422         and do actuall size allocations.
9423
9424 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
9425
9426         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
9427         that have a resize pending, because a redraw is already queued for them.
9428
9429         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
9430         hack to clear resize_widgets.
9431
9432         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
9433         for resize containers prior to size allocation. (this is also a bit
9434         ugly, but avoids side effects for stopped emissions and is thus more
9435         reliable).
9436         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
9437
9438         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
9439         function from gtk_tooltips_expose, as we connect to ::expose_event
9440         *and* ::draw now.
9441
9442 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
9443
9444         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
9445         checks.
9446         (gtk_target_list_unref): Likewise.
9447
9448         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
9449
9450 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
9451
9452         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
9453         guard against division by zero. (Fixes bug #1339)
9454
9455 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
9456
9457         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
9458         Prevent the trivial leak of information of allowing
9459         word motion when the entry is not visible.
9460
9461 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
9462
9463         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
9464         modality to error dialog as well as confirmation dialogs.
9465         (Bug #1803, reported by Rosanna Wing Sze Yuen)
9466
9467 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
9468
9469         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
9470         tree->view_lines.
9471         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
9472
9473         * gtk/Makefile.am (install-data-local): Solaris apparently
9474         has various troubles with ln -f; use rm first instead.
9475         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
9476
9477 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
9478
9479         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
9480         use `cp' followed by `rm' (the `rm' was already there).
9481
9482 July 30, 1999 Elliot Lee <sopwith@redhat.com>
9483         
9484         * configure.in: Fix autoconf warnings about cross compilation by
9485         trying to provide sane defaults for AC_TRY_RUN.
9486         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
9487         put them into $(srcdir) when generated. Also add a dependency of
9488         gtksignal.h on gtkmarshal.h for -j builds. 
9489         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
9490
9491 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
9492
9493         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
9494         GDK_THREADS_{LEAVE,ENTER} pair.
9495         (From Paul Fisher <pnfisher@redhat.com>)
9496
9497 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
9498
9499         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
9500         width and height are always >0 (owen).
9501
9502 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
9503
9504         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
9505         change that assured that a widget's allocated with and height are
9506         always >1, since this breaks *buggy* panel code. unfortunately this
9507         back-breaks the gimp's color selector.
9508
9509         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
9510         allocation is always >0 in width and height, before sending the
9511         configure event; this is a *gross* hack to get the gimp back to work.
9512         
9513         * marked both cases with TODO-1.3
9514
9515 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
9516
9517         * gtk/gtktext.c: Don't display wrap indicators when
9518         text is not editable and word wrap is on.
9519
9520 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
9521
9522         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
9523         option menus here as they are not derived from menu shell, assure that
9524         the option menu has a menu we can add items to.
9525
9526 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
9527
9528         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
9529         width/height to (gint) before calculations and check against < 0 to
9530         avoid guint wraparounds.
9531
9532 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
9533
9534         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
9535         width and height is never zero. sanity check both dimensions against
9536         32767 and issue a warning if the allocation is greater than that.
9537
9538 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
9539
9540         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
9541         to g_main_pending() as well.
9542
9543 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
9544
9545         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
9546         call to g_main_iteration() - since that will regrab
9547         GTK+ lock to process events.
9548
9549 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
9550
9551         * gtk/gtkwindow.c
9552         - Regularize with the rest of GTK+ by making widget->requisition
9553           not reflect the set_usize()
9554         - Always recompute geometry hints, then check if they
9555           changed before sending them to the X server. The
9556           previous checks for changes would fail in a number
9557           of circumstances. 
9558
9559 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
9560
9561         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
9562
9563 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
9564
9565         * gtk/gtkdnd.c:
9566         - Code cleanups
9567         - Instantaneously update on modifier key presses
9568         - Allow cancellation of the drag with Escape.
9569
9570 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
9571
9572         * gtk/testgtk.c (create_handle_box): Set the policy
9573         to auto_shrink - otherwise the appearance is rather
9574         strange when flipping between horizontal and vertical.
9575
9576 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
9577
9578         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
9579         (gtk_window_set_default_size): don't change a value if it's < 0.
9580         queue a resize.
9581
9582 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
9583
9584         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
9585
9586 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
9587
9588         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
9589         add an extra "/" when concating "/" + filename.
9590         (From Matt Grossman <mattg@oz.net>)
9591
9592 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
9593
9594         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
9595         for fg_gc if we set it for drawing pixmap.
9596
9597 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
9598
9599         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
9600         
9601         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
9602         already set, call old engine's destroy function and
9603         unref the old engine.
9604
9605 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
9606
9607         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
9608
9609 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
9610
9611         * gtk/gtkaccelgroup.h: mark certain functions as internal.
9612
9613 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
9614
9615         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
9616         expand behaviour changed.
9617
9618         * gtk/gtklabel.c (gtk_label_set_pattern):
9619         (gtk_label_set_justify):
9620         (gtk_label_set_line_wrap):
9621         don't bother invoking queue_clear, the reallocation does
9622         that for us, always free_words so the upcoming resize will
9623         relayout the label's contents.
9624
9625 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
9626
9627         * applied argument implementation patches from Elena Devdariani
9628         <elena@cogent.ca>.
9629
9630         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
9631         ::space_style, ::relief
9632         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
9633         * gtk/gtkpreview.c: ::expand
9634         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
9635         * gtk/gtknotebook.c: ::homogeneous
9636         * gtk/gtklabel.c: ::wrap
9637         * gtk/gtklist.c: ::selection_mode
9638         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
9639         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
9640         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
9641         * gtk/gtkclist.c: ::sort_type
9642         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
9643         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
9644
9645 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
9646
9647         * gtk/gtkstyle.c: Removed ill-thought-out part of last
9648         comment.
9649
9650 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
9651
9652         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
9653         counting right when we have to attach a new style
9654         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
9655
9656         * gtk/gtkstyle.c: Documented the refcounting
9657         peculularities of gtk_style_attach.
9658
9659 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
9660
9661         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
9662         window types.
9663
9664         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
9665         of GTK_TOPLEVEL for creating the window.
9666
9667 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
9668
9669         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
9670         the last argument (reported by Per Winkvist).
9671         
9672 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
9673
9674         Fixes for invisible XOR lines (Frank Loemker
9675         <floemker@TechFak.Uni-Bielefeld.DE>)
9676         
9677         * gtk/gtkclist.c (gtk_clist_realize): Always use
9678         a non-zero pixel for GDK_XOR.
9679
9680         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
9681         Use GDK_INVERT instead of GDK_XOR.
9682
9683 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
9684
9685         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
9686         signals if h/voffsets differ from adjustment values.
9687         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
9688
9689 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
9690
9691         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
9692         ::selection-done emissions up to the topmost menu shell.
9693
9694 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
9695
9696         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
9697         the user data on the window before destroying it.
9698
9699         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
9700         unrealize handler to take care of destroying 
9701         notebook->panel properly. 
9702         (Bug #1198 - Morten Welinder <terra@diku.dk>)
9703
9704         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
9705         of g_new and g_realloc to stop memory leak. (Actually,
9706         we could just use g_realloc(), but I'm not 100% sure
9707         that is portable).
9708         (Bug #1196 - Morten Welinder <terra@diku.dk>)
9709
9710 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
9711
9712         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
9713
9714         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
9715         for fontsets.
9716
9717         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
9718         with bin/button confusion.
9719
9720 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
9721
9722         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
9723         and show how preselection of radio items is done.
9724
9725 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
9726
9727         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
9728         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
9729         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
9730         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
9731         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
9732         * gtk/gtktable.c (gtk_table_attach): 
9733         * gtk/gtklist.c (gtk_list_insert_items): 
9734         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
9735         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
9736         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
9737         * gtk/gtkbin.c (gtk_bin_add): 
9738         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
9739         * gtk/gtkfixed.c (gtk_fixed_put): 
9740         * gtk/gtklayout.c (gtk_layout_put):
9741         general fixups to container_add logic. always realize child if
9742         child->parent is realized, only map the child and queue a resize
9743         if child and child->parent are both visible.
9744
9745 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
9746
9747         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
9748         instead of gtk_container_foreach to walk and unrealize children, so
9749         composite children get also unrealized.
9750         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
9751         (gtk_widget_map): assert that the widget is visible (basic constrain).
9752         (gtk_widget_real_map): assert that the widget is realized (basic
9753         constrain).
9754
9755 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
9756
9757         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
9758
9759 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
9760
9761         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
9762         file for iso-8859-2 locales.
9763
9764         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
9765
9766 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
9767
9768         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
9769          (Pointed out by andy@rz.uni-karlsruhe.de and others).
9770          Remove some suspicious and useless lines. 
9771
9772 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
9773
9774         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
9775         width,height = 0, 0 to mean - here to edge of window,
9776         instead of -1, -1, since the former is all we support.
9777
9778 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
9779
9780         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
9781         when removing from quit_functions list.
9782
9783 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
9784
9785         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
9786
9787 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
9788
9789         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
9790          When redrawing characters on non-visible entry, use appropriate
9791          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
9792
9793 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
9794
9795         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
9796         from drag coordinates.
9797         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
9798         use drag_dest_cell.
9799
9800         * gtk/gtktree (drag_dest_cell)
9801         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
9802         (Bug #1129)
9803
9804 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
9805
9806         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
9807         translate_* fields.
9808         (gtk_item_factory_finalize): invoke translate_notify independant from
9809         translate_data.
9810         (gtk_item_factory_set_translate_func): likewise.
9811         (gtk_item_factory_destroy): only remove ifactory pointer from those
9812         widgets that belong to us (stupid me).
9813
9814 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
9815
9816         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
9817         rc_style list when lookup succeeeds.
9818
9819 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
9820
9821         * gtk/gtkctree.c (resync_selection): 
9822         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
9823         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
9824         bug.
9825
9826 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
9827
9828         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
9829         Add some missing GDK_THREADS_ENTER()/LEAVE around
9830         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
9831
9832 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
9833
9834         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
9835         rather than emit_by_name.
9836
9837         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
9838         on the widget across multiple signal emissions.
9839         (gtk_editable_delete_text): same here.
9840         (gtk_editable_class_init): set widget_class->activate_signal after
9841         editable_signals[ACTIVATE] has been created.
9842
9843 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
9844
9845         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
9846         position here prematurely -- we might not have the
9847         right ->min_position and ->max_position yet.
9848
9849 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
9850
9851         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
9852         Add error traps so if the other end of the connection
9853         dies, we survive.
9854
9855         * gtk/gtkselection.c (gtk_selection_notify): Clean
9856         up properly when selection property retrieval fails.
9857         
9858         * gtk/gtkselection.c (gtk_selection_request): Correctly
9859         reject SelectionRequest notifies where the handler
9860         returns no data.
9861
9862 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
9863
9864         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
9865         when we've previously highlighted.
9866
9867         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
9868         emit two "drag_leave" signals for Motif drops.
9869
9870         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
9871         back the correct status messages when dropping from
9872         Motif onto a proxy window that is rejecting the
9873         drop.
9874
9875 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
9876
9877         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
9878         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
9879         to compare two argument values. added gtk_arg_to_valueloc() to set a
9880         variable from an arg through its location (pointer).
9881
9882         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
9883         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
9884         as gfloat*, uchars are collected as guchar*, ints are collected as
9885         gint*, etc...
9886
9887 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
9888
9889         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
9890         Include <string.h> instead of <strings.h>.
9891
9892         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
9893         (actually, a lot more duplicate includes occur if
9894          you trace through the sequence of #include's)
9895         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
9896         
9897 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
9898
9899         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
9900         gtk-a-higuti-990322-[0-3]
9901
9902         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
9903         that was causing -DX_LOCALE not to work.
9904
9905         * gtk/gtkrc.c (gtk_rc_init):
9906         X_LOCALE will never have LC_MESSAGES defined
9907
9908 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
9909
9910         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
9911         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
9912
9913         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
9914         left/right as well (gtk-michael-980726-0.patch.gz).
9915
9916         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
9917         for pointer values, use gchar instead of char. fixed uline allocation
9918         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
9919         chunks instead of G_ALLOC_ONLY.
9920         (gtk_label_size_request): always alter requisition as passed and leave
9921         widget->requisition alone.
9922         (gtk_label_set_text): allow NULL strings.
9923         (gtk_label_new): likewise.
9924
9925 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
9926
9927         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
9928
9929 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
9930
9931         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
9932         *and* mapped (i.e. drawable).
9933         (gtk_bin_expose): only send exposes to drawable children.
9934
9935         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
9936         (gtk_box_expose): only send exposes to drawable children.
9937
9938         * gtk/gtkhscale.c (gtk_hscale_draw): 
9939         * gtk/gtkvscale.c (gtk_vscale_draw):
9940         hm, this is an ugly one. we first compute the size of our trough area
9941         here (window relative) and then check intersection with the draw_area
9942         which is parent relative because we're a NO_WINDOW widget, so we need
9943         to offset the trough area by allocation.x and allocation.y before the
9944         check. (this must not be done for the background area though, since
9945         that's already computed parent relative).
9946
9947 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
9948
9949         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
9950         unrealize title buttons.
9951
9952 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
9953
9954         * gtk/gtkclist.c (gtk_clist_column_title_passive)
9955         (gtk_clist_column_title_active): 
9956         only connect/disconnect to GtkWidgetClass::event to block mouse events.
9957
9958         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
9959         zero initialize event, removed superfluous gdk_window_get_pointer call
9960
9961         * gtk/gtklist.c (gtk_list_vertical_timeout)
9962         (gtk_list_horizontal_timeout): removed superfluous
9963         gdk_window_get_pointer call
9964
9965 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
9966
9967         * plugging problems reported by "Bruce Mitchener, Jr."
9968         <bruce@puremagic.com> due to a purify session.
9969
9970         * gtk/gtkstyle.c:
9971         (gtk_style_ref): 
9972         (gtk_style_unref): assert ref_count to be > 0.
9973
9974         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
9975         the requisition.
9976         (gtk_clist_set_shift): likewise.
9977
9978         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
9979         adjustments.
9980
9981         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
9982         event before sending it and set send_event to TRUE (which needs to
9983         be done for *all* synthesized events).
9984         (gtk_list_vertical_timeout): likewise.
9985
9986         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
9987         leaks.
9988
9989         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
9990         to TRUE when synthesizing events.
9991
9992 [ *** end of merges from 1.2 *** ]      
9993         
9994 1999-11-21  Tor Lillqvist  <tml@iki.fi>
9995
9996         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
9997         (or copied from gdkconfig.h.win32 on Win32, sigh).
9998
9999         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
10000
10001         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
10002
10003         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
10004
10005         * gdk/gdkconfig.h.win32: New file.
10006
10007         * gdk/win32/makefile.cygwin: Build just a static archive here.
10008
10009         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
10010         for the DLL from the static archive built above.
10011
10012         * gdk/gdk.def: Moved here from the win32 subdirectory.
10013
10014         * gdk/win32/*: Adapt for the changed private struct organisation.
10015
10016         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
10017
10018 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
10019
10020         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
10021         for wheel mice (buttons 4 and 5).
10022
10023 1999-11-18  Tor Lillqvist  <tml@iki.fi>
10024
10025         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
10026         drawables use just the pixel field in the foreground and
10027         background GdkColor of the GdkGC.
10028
10029         gdk_gc_set_{fore,back}ground() are called in the GIMP with
10030         GdkColors containing uninitialized (red,green,blue) fields, and
10031         just the pixel field filled in, and furthermore in the
10032         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
10033         It thus turns out that we really don't need to have the full
10034         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
10035         it later to have just the pixel values.
10036
10037 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
10038
10039         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
10040
10041 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
10042
10043         * docs/gtkfaq.sgml: threads example from Erik Mouw.
10044         New question on GtkLabel background colors.
10045
10046         * docs/gtk_tut.sgml:
10047           - Correct the example code callback
10048             function definitions.
10049           - Update the gtkdial example code, from Frans van Schaik.
10050           - Update setselection.c to current API.
10051
10052         * examples/Makefile examples/*/*.c: Update to code
10053         listed in tutorial.
10054
10055 1999-11-10  Tor Lillqvist  <tml@iki.fi>
10056
10057         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
10058         subrange table (from the "Developing International Software for
10059         WIndows 95 and Windows NT" book) was missing the Hangul syllable
10060         block... Get the loaded font's charset correctly.
10061
10062         (Note that this, and the other *-win32.c files, still really are
10063         the old ones, the win32 subdirectory is not ready for compilation
10064         yet after the reorg.)
10065
10066 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
10067
10068         * gtk/gtkclist.c: Fix off-by-one bug in parameter
10069         check.
10070
10071 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
10072
10073         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
10074         on results of XQueryDeviceState().
10075
10076 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
10077
10078         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
10079         we need to accesss only ->children. We need an accessor
10080         for the children.
10081
10082         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
10083         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
10084         to get rid of gdkx.h include.
10085         
10086         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
10087         and random references to 'None'.
10088
10089         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
10090         Get rid of unused #include <gdk/gdkx.h>
10091
10092         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
10093         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
10094         gdkconfig.h.
10095
10096 1999-11-08  Tor Lillqvist  <tml@iki.fi>
10097
10098         * gdk/win32/gdkdraw.c
10099         * gdk/win32/gdkfont.c
10100         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
10101         following yesterday's changes. (Unrelated to Owen's reorg.)
10102
10103 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
10104
10105         * gdk/x11/gdkinput-gxi.c: Add missing include,
10106           fix GdkWindowPrivate => GdkDrawablePrivate.
10107
10108         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
10109
10110         * gdk/x11/Makefile.am (xinput_sources): Add missing
10111         backslash to fix building with --with-xinput=none
10112
10113 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
10114
10115         Move all X specific code into the x11/ directory.
10116         Aside from shuffling things around, did the following:
10117
10118        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
10119          gdk_arg_context_* - a simple argument parsing system
10120          in the style of popt.
10121
10122        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
10123          gdk/x11/gdkprivate-x11.h:
10124          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
10125          add ->klass and ->klass_data fields. The klass_data
10126          field points to an auxilliary structure that is
10127          windowing system dependent.
10128
10129        * gdk/gdkfont.c: Make most of the measurement functions
10130          simply wrappers around gdk_text_extents().
10131
10132        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
10133          _gdk_font_strlen() function that hides the weird
10134          behavior in gtk+-1.[02] where a string is interpreted
10135          differently for 8-bit and 16-bit fonts.
10136
10137        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
10138          to store common code for synthesizing double/triple
10139          press events.
10140         
10141        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
10142          Make all the function that modify an existing GC
10143          simply wrappers around gdk_gc_set_values().
10144          
10145        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
10146          for throwing out later.
10147
10148        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
10149          GdkImagePrivate and GdkColormapPrivate to have a
10150          windowing system dependent part (GdkFontPrivateX etc.)
10151          that "derives" from the system-independent part.
10152
10153        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
10154          Got rid of the included-source-files for XInput in
10155          favor of automake conditionals. (Which didn't exist
10156          when XInput support was originally added.)
10157
10158        * gdk/gdkrgb.c: Remove the visual id from the debugging
10159          statements since that is X11 specific; print out
10160          type/depth info instead.
10161          
10162
10163 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
10164
10165         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
10166         loading duplicates of hashed fonts.
10167
10168         * gdk/gdk.c (gdk_keysym_convert_case): rename
10169         gdk_XConvertCase to gdk_keysym_convert_case, allow
10170         results to be NULL in the GTK+ style.
10171
10172         * gdk/gdkcompat.h: Started compatibility header
10173         for renames.
10174
10175 1999-11-07  Tor Lillqvist  <tml@iki.fi>
10176
10177         * gdk/win32/gdkprivate.h: New font private structures, related to
10178         fontsets.
10179
10180         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
10181         gdk_font_list_free(). On X11, will just be wrappers to
10182         XListFonts() and XFreeFontNames(). On Win32, the code previously
10183         in gtkfontsel.c is now here.
10184
10185         New function gdk_font_xlfd_create(). On X11 will get the FONT
10186         property of the font (for GDK_FONT_FONTs), or call
10187         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
10188         builds a XLFD style name from the font information in the LOGFONT
10189         struct(s).
10190
10191         New function gdk_font_xlfd_free(), which correspondingly frees the
10192         string returned by gdk_font_xlfd_create().
10193
10194         Implement fontsets on Win32. Add a function that iterates over a
10195         wide char string and calls a callback function for each substring
10196         of wide chars from the same Unicode subrange (and thus probably
10197         available in the same real font).
10198
10199         Improve the XLFD emulation a bit.
10200
10201         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
10202
10203         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
10204         Beta3, WM_IME_CHAR messages don't seem to contain the composed
10205         multi-byte char as with the Active IMM on Win9x. Oh well, handle
10206         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
10207         ImmGetCompositionStringW() to get the composed Unicode chars.
10208
10209         * gdk/win32/gdkgc.c
10210         * gdk/win32/gdkdraw.c: Changes needed because of the font private
10211         struct changes.
10212
10213         * gdk/win32/gdk.def: Add the new functions.
10214
10215 1999-11-04  Tor Lillqvist  <tml@iki.fi>
10216
10217         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
10218         get the Platform SDK to get <dimm.h>.
10219
10220         * gdk/win32/gdkevents.c: More event handling fixes and
10221         simplification. Never generate motion events with is_hint true. We
10222         used to do that on bogus grounds earlier. Windows sends
10223         WM_MOUSEMOVE messages on button events even if the mouse hasn't
10224         moved, ignore these.
10225
10226         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
10227
10228         * gdk/win32/gdkglobals.c
10229         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
10230         the TrackMouseEvent function, and use it.
10231
10232         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
10233         char before calling WideCharToMultiByte in order to get a string
10234         for the window title.
10235
10236         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
10237
10238         * gdk/win32/gdk.def: Remove obsolete functions.
10239
10240         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
10241         /nodefaultlib and /defaultlib switches.
10242
10243         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
10244
10245 1999-10-31  Tor Lillqvist  <tml@iki.fi>
10246
10247         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
10248         EuroSign).
10249
10250         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
10251         same type as GdkWChar, especially on Win32.
10252
10253         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
10254
10255         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
10256         before passing to Windows GDI for drawing etc. Convert to the
10257         system default codepage before passing to Windows as window
10258         titles.
10259
10260         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
10261         support changing input locale on the fly.
10262
10263         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
10264         on-the-fly changes. Convert incoming characters from the current
10265         codepage to Unicode (and then to a UTF-8 multi-byte string) based
10266         on the current input language. Use keysym<->Unicode mapping tables
10267         and functions borrowed from xterm sources.
10268
10269         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
10270         editions of Win9x, use the ActiveX-based Active IMM (Input Method
10271         Manager) if available. IMEs and the Active IMM are available under
10272         the disguise of Chinese, Korean and Japanese support for IE and
10273         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
10274         support is present in all editions (as long as you install it).
10275
10276         Call DispatchMessage from gdk_events_queue() (and thus
10277         gdk_WindowProc()), instead of duplicating the code in
10278         gdk_WindowProc().
10279
10280         Reworked the grab handling and propagation code, factored out
10281         duplicated code snippets into separate functions. Other cleanups,
10282         too.
10283
10284         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
10285         the <dimm.h> header describing the Active IMM.
10286
10287         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
10288         just do the same as for "single" fonts.
10289
10290         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
10291         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
10292         the new keysyms from gdkkeysyms.h.
10293
10294         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
10295         fontset, so that gtkentry uses wide characters.
10296
10297         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
10298         GTk+'s system directory "gtk+", not "gtk".
10299
10300 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
10301
10302         * docs/gtkfaq.sgml: FAQ update
10303
10304 1999-10-21  Tor Lillqvist  <tml@iki.fi>
10305
10306         * gdk/win32/gdkprivate.h: Add more font private data.
10307
10308         * gdk/win32/gdkfont.c
10309         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
10310         fonts and strings. Now works much better. You still have to
10311         have a correct font selected, though. No fontset emulation yet.
10312
10313 1999-10-19  Tor Lillqvist  <tml@iki.fi>
10314
10315         * gtk/maketypes.awk: Use G_OS_WIN32.
10316
10317         * gtk/gtk.def: Add some missing entry points. Also some non-public
10318         ones, but PyGTK porter claims to need them.
10319
10320         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
10321         built-in type generation.
10322
10323 1999-10-14  Tor Lillqvist  <tml@iki.fi>
10324
10325         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
10326         GDK_FONT_FONT fonts (which is all we have for now, we don't
10327         emulate fontsets). The X11 version uses plain XDrawString in that
10328         case, too. The string passed to gdk_draw_text_wc seems to be in
10329         fact (at least, when used by gtkentry and gtktext) either in a
10330         single-byte charset, or a DBCS. Not Unicode.
10331
10332         This fixes the problem in gtkfontsel, where even if you had
10333         selected a font with a non-Latin1 charset (windows-greek, for
10334         instance), the preview still used Latin-1 glyphs.
10335
10336         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
10337         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
10338         (gdk_font_load): Recognize the demibold etc weights, even if we
10339         don't have the corresponding constants in the headers.
10340         (gdk_font_hash_insert): Use same hash mechanism as in the X11
10341         version. Should save font resources a bit, when we don't have
10342         multiple HFONTs for the same font.
10343
10344         * gdk/win32/gdkprivate.h: Add the names field as in the X11
10345         version.
10346
10347 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
10348
10349         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
10350         X values
10351
10352 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
10353
10354         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
10355         layout support (as mentioned on
10356         http://www.jcinteractive.com/gnome-ui/software/widgets/)
10357
10358 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
10359
10360         * gtk/fnmatch.c
10361         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
10362
10363 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
10364
10365         * configure.in (ALL_LINGUAS): Added Galician (gl)
10366
10367 1999-10-05  Tor Lillqvist  <tml@iki.fi>
10368
10369         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
10370
10371         * gdk/win32/gdkcompat.c: New file, actually provide an
10372         implementation for the deprecated functions. (Just temporarily.)
10373
10374         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
10375
10376         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
10377
10378         * gdk/win32/gdk.def gtk/gtk.def: Updates.
10379
10380 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
10381
10382         * configure.in: Added "uk" to ALL_LINGUAS.
10383         
10384 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
10385
10386         * configure.in: correct checking for BeOS check
10387
10388         * gdk/gdktypes.h
10389         * gtk/fnmatch.c
10390         * gtk/gtkfilesel.c
10391         * gtk/gtkitemfactory.c
10392         * gtk/gtkmain.[ch]
10393         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
10394
10395 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
10396
10397         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
10398         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
10399         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
10400         by Bulgarian). 
10401
10402 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
10403
10404         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
10405         Fix a reference to window_private->destroyed.   
10406
10407         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
10408         (ugly) setting of an internal GdkWindow member to use
10409         a _slightly_ cleaner macro.
10410
10411         * gdk/gdkprivate.h: Split GdkWindowPrivate into
10412         GdkDrawablePrivate and GdkWindowPrivate.
10413         Add extra macros for accessing GDK_DRAWABLE_ components.
10414
10415         * *.[ch]: Massive adjustments for the above, use the
10416         new macros in a lot of places.
10417
10418 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
10419
10420         * gdk/gdktypes.h: Make GdkDrawable the base type,
10421         not GdkWindow.
10422
10423 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
10424
10425         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
10426
10427 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
10428
10429         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
10430
10431 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
10432
10433         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
10434         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
10435
10436         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
10437
10438         * docs/gtk-config.1: Now autogenerated.
10439         * docs/Changes-1.4.txt: started
10440         
10441 1999-10-03  Tor Lillqvist  <tml@iki.fi>
10442
10443         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
10444         to #ifdef also here.
10445
10446         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
10447         Owen did to the X11 backend.
10448
10449         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
10450         ScrollWindowEx when blitting inside a window, it can't be correct
10451         in the general case.
10452
10453         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
10454         WM_GETMINMAXINFO is easier.
10455
10456         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
10457         depth equal to the bitspixel value, not the visual's depth.
10458
10459         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
10460         to 24 even if the bitspixel value is 32.
10461
10462         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
10463         need to check for depth==32 when bpp==32, depth will always be 24.
10464
10465 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
10466
10467         * docs/Changes-1.4.txt: Started
10468         
10469         * gtk/Makefile.am (gdk_headers): Include all the new headers.
10470
10471         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
10472         
10473         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
10474         into C file.
10475         
10476         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
10477         header to gdkinputprivate.h.
10478
10479         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
10480         unused since before 1.2.
10481
10482 1999-09-30  Tor Lillqvist  <tml@iki.fi>
10483
10484         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
10485         expand possible hex escapes in the font family (put there by
10486         logfont_to_xlfd if the font name isn't a legal XLFD font family,
10487         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
10488         On Win32, add hex escapes here, too.
10489
10490 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
10491
10492         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
10493         to #ifdef GDK_WINDOWING_X11.
10494
10495 [ Merges from gtk-1-2 ]
10496
10497 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
10498
10499         * configure.in: fixed "GNU Make" check to pass with new make version
10500         3.77.95.
10501
10502 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
10503
10504         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
10505         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
10506         AM_PATH_GTK() macros don't get confused by the -pre1.
10507
10508 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10509
10510         * configure.in (REBUILD): Change check for perl5
10511           to check explicitely for v >= 5.002. (5.001
10512           does not work with our scripts.)
10513
10514 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
10515
10516         * configure.in: evaluate $PERL for the perl version check. added
10517         --disable-rebuilds to give the user an option to completely disable
10518         any source autogeneration rules.
10519
10520 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
10521
10522         * configure.in: evaluate $ac_make when checking for GNU Make.
10523
10524 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10525
10526         * docs/Makefile.am: added generation.txt.
10527
10528         * Makefile.am: require automake 1.4, build README from README.in and
10529         INSTALL from INSTALL.in in dist-hook.
10530         
10531         * README.in:
10532         * INSTALL.in: new files to autogenerate README and INSTALL from.
10533
10534         * configure.in: figure whether we have GNU Make
10535
10536         * docs/generation.txt: minor additions/corrections.
10537
10538 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
10539
10540         * docs/gtkfaq.sgml: FAQ Update
10541
10542 July 30, 1999 Elliot Lee <sopwith@redhat.com>
10543         
10544         * configure.in: Fix autoconf warnings about cross compilation by
10545         trying to provide sane defaults for AC_TRY_RUN.
10546
10547 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
10548
10549         * ltconfig
10550         * ltmain.sh: upgrade to libtool 1.3.3
10551
10552 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
10553
10554         * INSTALL: Indicate that the --with-glib= configure
10555         time flag is unsupported.
10556
10557 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
10558
10559         * docs/generation.txt: Added a file that gives
10560         documenation about the autogeneration process for
10561         various autogenerated files.
10562         
10563 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
10564
10565         * configure.in (LIBS): Look for libgmodule in the
10566         right location.
10567
10568 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
10569
10570         * docs/gtk_tut.sgml: Removed references to
10571         code examples in my directory on gtk.org as
10572         they should all be in the tutorial now.
10573
10574         * docs/gtk_tut.sgml: Added sources for dial-test
10575         and scribble-xinput programs that were previously
10576         missing.
10577
10578 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
10579
10580         * TODO: Added entry about menu keyboard navigation, removed
10581         some finished items.
10582
10583 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
10584
10585         * acinclude.m4: Standardize on func_dgettext
10586         not func_gettext, so that the checks for dgettext
10587         actually are paid attention to.
10588
10589 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
10590
10591         * configure.in (LIBS): Add $INTLLIBS into $LIBS
10592         directly, rather than repeating the checks for
10593         gettext.
10594
10595         * INSTALL: Added information about gettext and
10596         NLS support.
10597
10598         * acinclude.m4 (LIBM): Check for dgettext, not
10599         just gettext. This should hopefully fix things wrt
10600         systems with old versions of GNU gettext installed.
10601
10602 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
10603
10604         * configure.in (LIBS): Look for libgmodule in the
10605         right location.
10606
10607 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
10608
10609         * autogen.sh: add --enable-maintainer-mode
10610
10611         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
10612
10613 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
10614
10615         * docs/gtk-config.1.in:
10616           docs/Makefile.am:
10617           configure.in: gtk-config is now generated.
10618
10619         * docs/gtk-config.1: Removed, now generated.
10620
10621 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
10622
10623         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
10624         handle CreateNotify itself, still put out a debuging message for
10625         --gdk-debug=events. made the ReparentNotify debugging message more
10626         verbose.
10627         wrap xcoords translation for ConfigureEvents into an error trap,
10628         a destroy event may already be pending, and in that case, the
10629         actuall coordinate values are not at all critical.
10630
10631 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
10632
10633         * gdk/gdkcc.c: Stop leaking the color_hash all over
10634         the place. Simplify and improve the logic.
10635
10636 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
10637
10638         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
10639         for prototypes and function implementations consistent (reported
10640         by Tomas Ogren).
10641
10642 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
10643
10644         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
10645         send_event set in debugging output.
10646         (gdk_compress_exposures): default initialize the event so we don't
10647         operate on bogus values (namely send_event).
10648
10649 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
10650
10651         * gdk/gdkwindow.c: When we receive an unexpected
10652         destroy notify on one of our windows, don't just
10653         warn about it, also mark our windows as destroyed.
10654
10655 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
10656
10657         * gdk/gdkfont.c (gdk_font_hash_insert): Add
10658           name => font and name => fontset hashes. The 
10659           name => fontset hash is a _big_ win since we
10660           weren't previously caching fontsets at all and loading
10661           fontsets is expensive. The name => font hash
10662           is less of a win, but it does save us from doing
10663           repeated XQueryFont calls on the same font.
10664
10665         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
10666           list so we can remove font/fontset from hash.
10667
10668 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
10669
10670         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
10671           and slightly confusing test. [ XInternAtom (,,TRUE)
10672           will never return None ].
10673
10674 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
10675
10676         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
10677           gdk/gdkwindow.c (gdk_window_set_hints):
10678
10679         Don't omit setting the properties if flags == 0 -
10680         there may be an existing set of properties there
10681         already. (Very old bug. Would it be better to
10682         delete the property instead?)
10683
10684         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
10685           spelling error in comment.
10686
10687 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
10688
10689         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
10690           to avoid stomping over gdk_error_warnings.
10691
10692         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
10693           as (bits_per_pixel + 7) / 8. This gives the same
10694           result as before for multiples of 8, but actually
10695           a "reasonable" value for 1bit or 4bit displays.
10696
10697 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
10698
10699         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
10700         GNU Make.
10701
10702 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
10703
10704         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
10705         discarding configure events.
10706
10707 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
10708
10709         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
10710         refcount is greater than zero.
10711
10712         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
10713
10714         * gdk/gdkfont.c (gdk_font_unref): Likewise.
10715
10716         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
10717
10718         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
10719
10720 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
10721
10722         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
10723         that format 32 => sizeof(item) == 4. It really is
10724         sizeof(long).
10725
10726 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
10727
10728         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
10729         core dump at all on X IO errors, only core dump
10730         if --enable-debug for X errors.
10731
10732 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
10733
10734         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
10735         unknown window:" message. disabled ConfigureNotify discarding code,
10736         because it led to events being processed out of order.
10737
10738 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
10739
10740         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
10741
10742         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
10743         we export this function, supress error warnings and don't reset the
10744         error code in the first half of this function.
10745
10746         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
10747         code (instead of just -1) so gdk_error_trap_pop() reveals something
10748         actually informative about the error that happened.
10749
10750         * gdk/*.c:
10751         don't rely on gdk_error_code being -1 if an error occoured, but just
10752         gdk_error_code != 0.
10753
10754 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
10755
10756         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
10757         pointer *before* invoking the filter function, so we at least don't
10758         crash if a filter is removed that is currently executed. window filters
10759         *really* need to be made truely reentrant at some point.
10760
10761 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
10762
10763         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
10764         PropertyNotify debug messages.
10765
10766 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
10767         
10768         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
10769         
10770         * gdk/gdkim.c: Fix cut-and-paste errors for 
10771         x/y and PreeditAttributes/StatusAttributes.
10772
10773 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
10774
10775         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
10776         G_MAXINT to 2^16 to alleviate overflow problems in
10777         various window managers.
10778
10779 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
10780
10781         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
10782         for fontsets.
10783
10784 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
10785
10786         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
10787         Initialize size_hints.x and size_hints.y because kwm
10788         brokenly pays attention to them.
10789         (Bug #1181 -  Lars Heete <hel@admin.de>)
10790
10791 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
10792
10793         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
10794         return value of gdk_list_visuals(). 
10795         (Bug #1193 - Morten Welinder <terra@diku.dk>)
10796
10797 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
10798
10799         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
10800         XSetIMValues to (void *) when comparing to NULL, to workaround
10801         the problem of some compilers barfing since older X headers don't
10802         have the prototype for it.
10803
10804 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
10805
10806         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
10807         for pseudocolor where colormap->colors was double
10808         allocated.
10809
10810         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
10811         color value in the hash table with the pixel filled
10812         in so when we do later hash table lookups, the color
10813         value is correct.
10814         
10815 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
10816
10817         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
10818         making the call
10819
10820 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
10821
10822         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
10823         pointed out by Morten Welinder <terra@diku.dk>.
10824
10825 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
10826
10827         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
10828           default filter from the list
10829
10830 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
10831
10832         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
10833           default filter from the list
10834
10835 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
10836
10837         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
10838
10839         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
10840         g_strdup_printf instead of calcing the length separately
10841
10842 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
10843
10844         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
10845         that we don't do in many other places. (Fixing duplicate 
10846         #include of config.h)
10847
10848         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
10849         Otherwise, #ifndef XINPUT_NONE check in the latter
10850         doesn't work. (Bug #546)
10851
10852 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
10853
10854         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
10855         "None" case insensitive.
10856
10857 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
10858
10859         * gdk/gdkselection.c: 
10860         Add error traps so if the other end of the connection
10861         dies, we survive.
10862
10863 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
10864
10865         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
10866         dest_xid field into two fields - one for the window
10867         to send in messages, one to indicate the last looked
10868         up window for caching purposes. This is needed, so
10869         that Leave messages get the correct window.
10870
10871 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
10872
10873         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
10874         Fix warning created by people mucking around
10875         with the gsource API.
10876
10877         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
10878         Change mapping between GIOCondition and GdkInputCondition
10879         to match the way the Linux kernel does it. This should
10880         fix problems where closed pipes were no longer signalling
10881         GDK_INPUT_READ on systems with a native poll().
10882
10883 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
10884
10885         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
10886         explicitly for the string "None" - it is in the XPM
10887         spec and some servers treat unknown colors in odd ways
10888         (like asking the user!)
10889
10890 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
10891
10892         * gdk/gdkevents.c: made "->" into a "." of previous change so
10893         it compiles
10894
10895 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
10896
10897         * gdk/gdkevents.c (gdk_compress_exposures): Set the
10898         window field of the event structure before calling
10899         user filters.
10900
10901 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
10902
10903         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
10904         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
10905
10906 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
10907
10908         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
10909         intermediate text property - prevents major memory
10910         leak when gdk_use_mb.
10911         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
10912
10913 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
10914
10915         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
10916         gtk-a-higuti-990322-[0-3]
10917
10918         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
10919         sizeof(wchar_t) != sizeof (GdkWChar)
10920
10921         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
10922         that was causing -DX_LOCALE not to work.
10923
10924         * gtk/gtkrc.c (gtk_rc_init):
10925         X_LOCALE will never have LC_MESSAGES defined
10926
10927         * gdk/gdk.c (gdk_init_check):
10928         Remove --xim-preedit and --xim-status from argv properly.
10929
10930         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
10931         that the client window is present on the X server
10932         before we pass it to the input method.
10933
10934 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
10935
10936         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
10937         if --display is specified on the command line, than
10938         the drag window will not be created on that display.
10939         
10940 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
10941
10942         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
10943         lookups with only_if_exists == TRUE were inserting
10944         bogus values into the atom cache.
10945
10946 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
10947
10948         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
10949         then reset it to NULL.
10950
10951         * gdk/gdkcolor.c:
10952         (gdk_colors_free): 
10953         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
10954         key for g_hash_table_remove() in both functions, this prevents us
10955         from accessing possibly uninitialized portions of a GdkColor structure
10956         where we are only interested in its pixel value.
10957
10958 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
10959
10960         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
10961         font hash table, if we have a GdkFontPrivate entry for this font
10962         already, simply increment its reference count, provided by Olaf Dietsche
10963         <olaf.dietsche+list.gtk@netcologne.de>.
10964
10965 1999-09-21  Tor Lillqvist  <tml@iki.fi>
10966
10967         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
10968         just to be sure.
10969
10970         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
10971         unused variables, leftovers from the X11 version.
10972
10973         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
10974
10975         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
10976         downcase fields on X11.
10977
10978 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
10979         
10980         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
10981         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
10982
10983 1999-09-17  Tor Lillqvist  <tml@iki.fi>
10984
10985         * gdk/win32/gdk.def: Add gdk_threads_mutex.
10986
10987         * gtk/makefile.msc: Correct path to libintl.
10988
10989         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
10990         use of gint vs. int, and gint vs. gboolean in headers and
10991         definitions. Use GtkType for the *_get_type functions. Note that
10992         these changes preserve binary compatibility.
10993
10994         * gdk/gdk.c
10995         * gdk/win32/gdk.c
10996         * gdk/gdk.h: Fix inconsistencies: gint vs int.
10997
10998         * gtk/gtkmain.c
10999         * gtk/gtkclist.c
11000         * gtk/gtkmenufactory.c
11001         * gtk/gtknotebook.c
11002         * gtk/gtkwidget.c: Fix inconsistencies, also gint
11003         vs. gboolean.
11004
11005         * gtk/gtkcolorsel.[ch]
11006         * gtk/gtkcombo.[ch]
11007         * gtk/gtkdrawingarea.[ch]
11008         * gtk/gtkgamma.[ch]
11009         * gtk/gtkhandlebox.[ch]
11010         * gtk/gtkhpaned.[ch]
11011         * gtk/gtkhruler.[ch]
11012         * gtk/gtkplug.[ch]
11013         * gtk/gtkpreview.[ch]
11014         * gtk/gtkruler.[ch]
11015         * gtk/gtksocket.[ch]
11016         * gtk/gtkstatusbar.[ch]
11017         * gtk/gtktoolbar.[ch]
11018         * gtk/gtkvbbox.[ch]
11019         * gtk/gtkvpaned.[ch]
11020         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
11021         functions.
11022
11023         * gtk/gtkgamma.h: Fix bug, missing () in call of
11024         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
11025
11026 1999-09-14  Tor Lillqvist  <tml@iki.fi>
11027
11028         * gdk/gdkcolor.c (gdk_colormap_new)
11029         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
11030         colormap->colors was allocated twice.
11031
11032         * gdk/win32/gdk.c: Remove some unused stuff.
11033
11034         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
11035         colormap.
11036
11037         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
11038         * gtk/gtklabel.h (gtk_label_get_type)
11039         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
11040         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
11041         in a couple of places, not guint.
11042
11043 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
11044
11045         * configure.in,po/et.po: added Estonian language file
11046
11047 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
11048
11049         * configure.in,po/da.po: added Danish file
11050
11051 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
11052
11053         * docs/gtkfaq.sgml: Minor FAQ Update
11054
11055 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
11056
11057         * docs/gtkfaq.sgml: FAQ update
11058
11059 1999-08-27  Tor Lillqvist  <tml@iki.fi>
11060
11061         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
11062         way to get window contents continually refreshed while resizing. I
11063         didn't like the effects myself, so it's not on by default.
11064
11065         * gdk/win32/gdkprivate.h: New flag variable
11066         gdk_event_func_from_window_proc, FALSE by default.
11067
11068         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
11069         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
11070         are passed --gdk-event-func-from-window-proc.
11071
11072         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
11073         and we have am event_func, call it instead of enqueing the event.
11074
11075 1999-08-23  Tor Lillqvist  <tml@iki.fi>
11076
11077         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
11078         Kelley: Set expose_count in GdkEventExposes correctly.
11079
11080         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
11081         MULTIPLE_WINDOW_CLASSES).
11082
11083         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
11084         for bug in NT, apparently NT *does* draw the end pixel, too, in
11085         LineTo with a one-pixel pen, so we don't have to do it ourselves.
11086
11087 1999-08-21  Tor Lillqvist  <tml@iki.fi>
11088
11089         Improvements by Hans Breuer: 
11090
11091         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
11092
11093         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
11094         CS_?REDRAW flags as they cause lots of (late) redraws when "show
11095         window contents while dragging" is turned on. Allocate at least
11096         one unique class for every GdkWindowType. If support for single
11097         window-specific icons is ever needed (eg. Dialog specific), every
11098         such window should get its own class.
11099
11100 1999-08-19  Tor Lillqvist  <tml@iki.fi>
11101
11102         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
11103         error that caused crashes.
11104
11105 1999-08-17  Tor Lillqvist  <tml@iki.fi>
11106
11107         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
11108         window, use ScrollWindowEx, and call UpdateWindow. This prevents
11109         bugs when for instance part of the window was outside the
11110         display. Thanks to Philippe Colantoni for finding and fixing this.
11111
11112 1999-08-16  Tor Lillqvist  <tml@iki.fi>
11113
11114         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
11115         endpoint calculations which were totally wrong. (A little RTFMing
11116         helps a lot ;-)
11117
11118         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
11119         from a separate directory, not from gettext, because of licensing
11120         issues (we want to use the LGPL version).
11121
11122         * README.win32: Mention the intl from glibc vs from gettext issue.
11123
11124 1999-08-13  Tor Lillqvist  <tml@iki.fi>
11125
11126         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
11127         in the key event handling: Now AltGr chars work again. Also,
11128         now Alt-digits are passed up as well as Control-digits.
11129         Pass keypad plus and minus as normal plus and minus.
11130
11131 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
11132
11133         * docs/gtkfaq.sgml: FAQ Update
11134
11135 1999-07-25  Tor Lillqvist  <tml@iki.fi>
11136
11137         * README.win32
11138         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
11139         the Wintab SDK.
11140
11141         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
11142         OK, but getting closer. Guard against bogus tilt data from Wacom
11143         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
11144         enable easier building without Wintab.
11145
11146         * gdk/win32/gdkinput.h
11147         * gdk/win32/gdkevents.c 
11148         * gdk/win32/gdkwindow.c: Minor changes related related to above.
11149         
11150         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
11151         code. As we have just one visual on Win32, no sense to have it in a
11152         table, and no need for the hash table.
11153
11154         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
11155         better on white background.
11156
11157 1999-07-21  Tor Lillqvist  <tml@iki.fi>
11158
11159         * README.win32: Update gcc build instructions. Mention gettext is
11160         GPL.
11161
11162         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
11163         supported cursor size with GetSystemMetrics.
11164
11165         * gdk/win32/gdkfont.c
11166         * gtk/gtkfontsel.c: Guard against some font weight and charset
11167         symbols being undefined (in mingw32 headers).
11168
11169         * gdk/win32/makefile.cygwin
11170         * gtk/makefile.cygwin
11171         * gtk/gtkthemes.c: No longer need to have differently named
11172         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
11173
11174 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
11175
11176         * docs/gtkfaq.sgml: Long awaited FAQ update.
11177
11178 1999-07-15  Tor Lillqvist  <tml@iki.fi>
11179
11180         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
11181         it. Obscure bit manipulation needed.
11182
11183         * gdk/win32/gdkevents.c: Logging.
11184         
11185         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
11186         style (file name include compiler name) for theme engines.
11187
11188 1999-07-13  Tor Lillqvist  <tml@iki.fi>
11189
11190         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
11191
11192         * gdk/win32/gdkevents.c: Fix long-standing bug in key
11193         events. The key.string wasn't zero-terminated, still we strdup'ed
11194         it in gdk_event_copy(). Synthesize crossing events for button
11195         events before possible propagation.
11196
11197         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
11198
11199         * gdk/win32/makefile.cygwin
11200         * gtk/makefile.cygwin: Use new DLL naming style for the
11201         GCC-compiled ones.
11202
11203         * gdk/win32/makefile.msc
11204         * gtk/makefile.msc: Cosmetics mostly.
11205
11206         * gtk/gtk.def: Add missing entry points.
11207
11208         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
11209
11210 1999-07-09  Tor Lillqvist  <tml@iki.fi>
11211
11212         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
11213         or height is zero. Don't print a warning if Pie or Arc fails, they
11214         always fail (?) for very narrow ellipses.
11215
11216         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
11217         the part or the destination window corresponding to source area
11218         outside of the source drawable's boundary.
11219
11220         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
11221         anything if less than two points.
11222
11223         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
11224         return NULL. Gtk cut-and-paste inside a single program works
11225         better this way. (It always gets the clipboard contents from
11226         Windows, not from its own copy, which is cleared anyway. I can't
11227         say I fully understand what happens... Emulating the X selection
11228         and property stuff is a bit of a mess.)
11229
11230         * gdk/win32/gdkevents.c
11231         * gdk/win32/gdkproperty.c: A bit more verbose logging.
11232
11233         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
11234         that never got deleted). Revamp gdk_region_shrink.
11235
11236         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
11237         after use.
11238
11239         * gtk/gtk.def: Add some missing entry points.
11240
11241         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
11242         component.
11243
11244 1999-07-04  Tor Lillqvist  <tml@iki.fi>
11245
11246         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
11247         Control-digits specially.
11248
11249 1999-07-03  Tor Lillqvist  <tml@iki.fi>
11250
11251         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
11252
11253 1999-06-28  Tor Lillqvist  <tml@iki.fi>
11254
11255         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
11256         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
11257         finding this.)
11258
11259 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
11260
11261         * gtk+.spec.in: Corrected some typos in files section.
11262         
11263 1999-06-15  Tor Lillqvist  <tml@iki.fi>
11264
11265         * README.win32: Mention using GNU gettext.
11266         * config.h.win32: Enable NLS stuff.
11267         * gtk/makefile.msc: Use GNU gettext.
11268         * gdk/win32/gdkdnd.c: Minor header reorg.
11269         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
11270         cosmetics.
11271         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
11272         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
11273
11274 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
11275
11276         * acinclude.m4
11277         * config.guess
11278         * config.status
11279         * ltconfig
11280         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
11281
11282 1999-05-30  Tor Lillqvist  <tml@iki.fi>
11283
11284         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
11285         SafeAdjustWindowRectEx. Don't override all calls to
11286         AdjustWindowRectEx by it, but use it only in two places: When
11287         creating a new top-level window and when moving a top-level
11288         window.
11289
11290         Use screen coordinate rectangle, not client rectangle, in
11291         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
11292         when we try to place a window so that the decoration (mainly,
11293         title bar) isn't visible.
11294
11295         These changes fix the bug that showed up for instance as the
11296         GIMP's saved top-level windows moving right and down (by an amount
11297         equal to the window decoration) for each session. This bug showed
11298         up also in testgtk's "Saved Position".
11299
11300         gdk_window_resize also redone a bit.
11301
11302 1999-05-25  Tor Lillqvist  <tml@iki.fi>
11303
11304         * gtk/testgtkrc: Add (commented out) Windows-style theme
11305         include line.
11306
11307         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
11308
11309 1999-05-18  Tor Lillqvist  <tml@iki.fi>
11310
11311         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
11312         gdkx.h to a gdk subdirectory, so that applications can include
11313         these with <gdk/*.h> without trouble.
11314
11315         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
11316         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
11317         have their bitmap destroyed.
11318
11319         * gdk/win32/gdk.def: Add gdk_root_parent.
11320
11321 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
11322
11323         * configure.in
11324           gtk-config.in
11325           ltconfig
11326           ltmain.sh     
11327           gtk/Makefile.am: changes to compile nicely (with xlib) 
11328           on BeOS
11329
11330 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
11331
11332         * acinclude.m4
11333         * config.guess
11334         * config.sub
11335         * ltconfig
11336         * ltmain.sh: upgrade to libtool 1.3
11337
11338 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
11339
11340         * gtk/gtkclist.c:
11341         * gtk/gtkctree.c: merges from gtk-1-2
11342
11343 1999-04-25  Tor Lillqvist  <tml@iki.fi>
11344
11345         Support added for building using a GNU toolchain on Win32,
11346         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
11347
11348         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
11349         * config.h.win32: Changes for gcc.
11350         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
11351         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
11352         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
11353         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
11354         Protect shl stuff unavaiilable with mingw32 headers.
11355         * gdk/win32/gdkevents.c: Fix typo.
11356         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
11357         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
11358         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
11359         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
11360         the mingw32 headers.
11361         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
11362         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
11363         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
11364         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
11365         Test for NATIVE_WIN32, not _MSC_VER.
11366         * gtk/gtkmain.c: No use warning about developer version on Win32,
11367         there aren't any non-developer versions anyhow.
11368         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
11369         * gtk/makefile.msc: Use pthread from another directory. Minor other
11370         changes. 
11371
11372 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
11373
11374         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
11375           default filter from the list
11376
11377 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
11378
11379         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
11380          when gtk_widget_grab_default() is called for a widget that
11381          is not within a GtkWindow.
11382
11383 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
11384
11385         * docs/gtk_tut.sgml, examples/clist.c: use a
11386           scrolled window in the clist example. Minor
11387           tutorial fixes.
11388
11389 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
11390
11391         * docs/gtk_tut.sgml: Style check from David King
11392           <dking@youvegotmail.net>
11393
11394 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
11395
11396         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
11397         compile with unknown value of GDK_WINDOWING
11398
11399 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
11400
11401         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
11402         after the rule is fired.
11403         (install-exec-local): Install gdkconfig.h only if the contents are
11404         different from the currently installed gdkconfig.h.
11405
11406 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
11407
11408         * gdk/Makefile.am (configexecincludedir): Rename from 
11409         configincludedir so that gdkconfig.h will be installed 
11410         as part of `make install-exec'. 
11411
11412 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
11413
11414         * acinclude.m4
11415         * config.guess
11416         * config.sub
11417         * ltconfig
11418         * ltmain.sh: upgrade to libtool 1.2f
11419
11420         * autogen.sh: libtool is not required to autogen gtk+
11421
11422         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
11423         needed)
11424
11425 1999-03-18  Tor Lillqvist  <tml@iki.fi>
11426
11427         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
11428         declaring gdk variables exported/imported from the DLL. New image
11429         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
11430         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
11431         GDK_DRAG_PROTO_OLE2.
11432
11433         * gdk/gdk.h: Merge in Win32 version: Two new functions,
11434         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
11435         declared only for the Win32 version, but could be in the X11
11436         version as well. (Needed for a Xlib-less gdk_imlib.)
11437         gdk_color_hash should have only one parameter. Declare
11438         gdk_threads_mutex with GDKVAR.
11439         
11440         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
11441         just one parameter.
11442
11443         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
11444         per pixel, not bits.
11445
11446         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
11447         Fetch bpp (which means bits-per-pixel here) from another place on
11448         Win32. Accept also depth==32 (which we might get on Win32) with
11449         bpp==32.
11450
11451         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
11452         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
11453         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
11454         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
11455         in the backend-dependent directory, not in the common gdk
11456         directory.
11457
11458         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
11459         headers.
11460
11461 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
11462
11463         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
11464         want to use the Gtk+ devel version (which is true, and yes - even i am
11465         currently working with the 1.2.x branch). so everyone reading this, you
11466         probably want to issue
11467         cvs checkout -r glib-1-2 glib
11468         and
11469         cvs checkout -r gtk-1-2 gtk+
11470         as your next two comands.
11471
11472 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
11473
11474         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
11475         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
11476
11477         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
11478         file. strongly deprecated the GTK_HAVE_* macros, we provide
11479         GTK_CHECK_VERSION() for people that need to check for certain
11480         Gtk+ versions.
11481
11482         * gtk/gtkcompat.h: removed this from CVS.
11483         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
11484         idea right from the start, it just didn't seem like that back then.
11485
11486 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
11487
11488         * merges from gtk-1-2:
11489
11490 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
11491
11492         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
11493         item factory class has been created.
11494         (gtk_item_factory_parse_rc): likewise.
11495
11496         * gtk/gtkmenu.c:
11497         keep proper references for old_active_menu_item.
11498         (gtk_menu_reparent): unset the usize of the new parent,
11499         so the menu can sanely be size requested and we don't get nasty screen
11500         artefacts upon next reparentation.
11501         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
11502         enter notify. only synthesize enter notifies if the pointer really is
11503         inside the event window.
11504         (gtk_menu_popdown): use gtk_menu_shell_deselect().
11505         (gtk_menu_popup): move the background setting stuff into
11506         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
11507
11508         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
11509         gtk_menu_shell_select_item() to select the new item.
11510         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
11511         do the right thing for deselection as well.
11512
11513 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
11514
11515         * gtk/gtkwidget.[hc]:
11516         (gtk_widget_accelerators_locked): return whether a widget's accelerators
11517         are locked.
11518
11519         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
11520         existing accelerators if the widget's accelerators are locked.
11521
11522 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
11523
11524         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
11525
11526         * gtk/gtkmenu.c: truely forward key press and key release events to
11527         the menu widget from the toplevel or tearoff window. we can't simply
11528         connect to that, we need to stop further processing of the events as
11529         well.
11530
11531 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
11532
11533         * gtk/gtkmenu.c:
11534         (gtk_menu_key_press): pass event->keyval, event->state to
11535         gtk_accelerator_valid, instead of event->keyval twice.
11536         refuse to install single letter accelerators for menus that use
11537         single letter shortcuts.
11538
11539         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
11540         gtk_menu_ensure_uline_accel_group().
11541
11542         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
11543         which will always return an uline accel group, made
11544         gtk_menu_get_uline_accel_group() return NULL if the group isn't
11545         yet created.
11546
11547 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
11548
11549         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
11550
11551         * gtk/gtkclist.c (gtk_clist_column_title_passive):
11552         Leave button sensitive, trap  button_press, button_release,
11553         motion_notify, enter_notify and leave_notify events instead.
11554         (gtk_clist_column_title_active): disconnect event handler.
11555         (gtk_clist_drag_data_get): fixed memory leak. Reported by
11556         Guillaume Laurent <glaurent@worldnet.fr>
11557
11558 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
11559
11560         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
11561         width/height mixups.
11562
11563         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
11564         if needed.
11565
11566 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
11567
11568         * gtk/testgtk.c (create_item_factory): unref the item factory after
11569         window's destruction.
11570
11571         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
11572         count on the menu shell around the menu item's activation, since the
11573         signal emission may cause menu shell destruction.
11574
11575         * gtk/gtkitemfactory.c:
11576         the previous code leaked one accel group per menu. we use
11577         gtk_menu_get_uline_accel_group() now to fix that, and with that
11578         also create the underline accelerator group of the menus only if
11579         required (i.e. an underline accelerator has been specified).
11580         (gtk_item_factory_construct):
11581         (gtk_item_factory_create_item): removed code that would create an
11582         extra accel group for the menu (and leak references).
11583         (gtk_item_factory_create_item): adapted the underline accelerator
11584         installation code to properly feature gtk_menu_get_uline_accel_group().
11585
11586         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
11587         menu->accel_group, this may return NULL if the accelerator group
11588         hasn't been set yet.
11589         added gtk_menu_get_uline_accel_group() to retrive the underline
11590         accelerator group of the menu, this will be created on demand
11591         and proper care is taken about its reference count.
11592
11593         * gtk/gtkitemfactory.h:
11594         * gtk/gtkitemfactory.c:
11595         dumped the approach of keeping a widgets by action list on the
11596         factory since the factory<->widget destroy negotiation didn't work
11597         and would be hard to get going at all. instead we keep a list of
11598         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
11599         persistant throughout a program's life time).
11600         also, i removed the static const gchar *key_* variables, and made
11601         them inline strings (they weren't actually used anyways).
11602         (gtk_item_factory_add_item): update ifactory->items.
11603         (gtk_item_factory_destroy): destroy ifactory->items (and remove
11604         the item factory pointer from the remaining ifactory widgets).
11605         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
11606         list to find the widget.
11607         (gtk_item_factory_get_item): new function that works around
11608         gtk_item_factory_get_widget() limitations, this function will only
11609         return menu items, even for <Branch> entries.
11610
11611 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
11612
11613         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
11614         font hash table, if we have a GdkFontPrivate entry for this font
11615         already, simply increment its reference count, provided by Olaf Dietsche
11616         <olaf.dietsche+list.gtk@netcologne.de>.
11617
11618         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
11619         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
11620
11621 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
11622
11623         * gtk/gtkcontainer.c:
11624         (gtk_container_add_with_args):
11625         (gtk_container_addv):
11626         (gtk_container_add): before adding a child to a conatiner, make sure
11627         it is (default) constructed, this is neccessary because under certain
11628         circumstances the child will get relized and mapped immediatedly, in
11629         which case it has to be constructed already.
11630
11631 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
11632
11633         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
11634         values > 1 as TRUE also.
11635
11636 1999-03-16  Tor Lillqvist  <tml@iki.fi>
11637
11638         * README.win32: New file.
11639                 
11640         * configure.in: Check for lstat.
11641
11642         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
11643         completeness.
11644
11645         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
11646
11647         * gtk/gtk.def: Removed CRs.
11648
11649         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
11650         ..\gdk\win32).
11651
11652         * gdk/win32/makefile.msc: Correct upwards relative paths.
11653         
11654 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
11655
11656         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
11657           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
11658           it was connecting a void function to expose_event and the int
11659           returning function to the draw signal
11660
11661 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
11662
11663         * configure.in:
11664         Use correct path to libgmodule.la when ref'ing uninstalled copy
11665         of glib.  (Already in stable branch, Bug #417)
11666
11667 1999-03-15  Tor Lillqvist  <tml@iki.fi>
11668
11669         Win32 merge and general portability stuff:
11670                 
11671         * acconfig.h,configure.in: Check for <sys/time.h>.
11672
11673         * gdk/win32: New directory (actually, been there for a while).
11674         
11675         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
11676         NATIVE_WIN32, and use these. Always case fold on Win32. No
11677         backslashed escapes on native Win32.
11678
11679         * gtk/{gtk.def,makefile.msc}: New files.
11680
11681         * gtk/Makefile.am: Add above new files.
11682         
11683         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
11684         instead of <strings.h>.
11685
11686         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
11687         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
11688         <unistd.h> appropriately.
11689
11690         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
11691         Use ABS() (from <glib.h>) instead of abs().
11692         
11693         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
11694         of gtk (and thus glib) headers, so that WIN32 will be
11695         defined. With MS C, include <direct.h> for mkdir prototype.
11696
11697         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
11698         some casts, needed by MS C.
11699
11700         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
11701         implemented).
11702
11703         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
11704         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
11705         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
11706
11707         * gtk/gtkmain.h: Mark variables for export/import on Win32.
11708                 
11709         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
11710         the event is not a hint, or its window is not the slider. Needed
11711         on Win32, at least.
11712
11713         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
11714         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
11715         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
11716         a subdirectory of the Windows directory as gtk system
11717         configuration directory.
11718
11719         * gtk/gtkselection.c: No chunks on Win32.
11720
11721         * gtk/gtksocket.c: Not implemented on Win32.
11722
11723         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
11724
11725         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
11726
11727         * gtk/maketypes.awk: Declare variables with a macro that expands to
11728         necessary export/import magic in the case of Win32.
11729                 
11730         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
11731
11732 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
11733
11734         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
11735         since those were meant only for gdki18n.h.  
11736         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
11737         for widechar tests.
11738         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
11739
11740 1999-03-13  Tor Lillqvist  <tml@iki.fi>
11741
11742         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
11743         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
11744
11745         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
11746         installed) to CFLAGS.
11747
11748         * gdk/Makefile.am: Add rules for gdkconfig.h.
11749
11750         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
11751         APIs.
11752
11753         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
11754         gdkx.h anyway when compiling for X11.
11755         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
11756         general): Merge in Win32 version.
11757         
11758         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
11759         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
11760         expansion (if we don't have HAVE_PWD_H), allow for drive
11761         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
11762         included code from Craig Setera's port to Win32 (the one that uses
11763         X11, and the cygwin dll), even if it probably will be abandoned.
11764
11765         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
11766         the user entered one herself.  This way one can complete *.h and
11767         don't get matches on any .help files, for instance.
11768         
11769 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
11770
11771         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
11772         font hash table, if we have a GdkFontPrivate entry for this font
11773         already, simply increment its reference count, provided by Olaf Dietsche
11774         <olaf.dietsche+list.gtk@netcologne.de>.
11775
11776         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
11777         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
11778
11779 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
11780
11781         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
11782         the number of calls to gdk_draw_point() (and thus to X) by
11783         clipping the points by hand.
11784
11785         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
11786         the clip parameter.
11787         (gtk_handle_box_paint): Only paint the handle if the expose area
11788         intersects it.
11789
11790 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
11791
11792         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
11793
11794 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
11795
11796         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
11797         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
11798
11799 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
11800
11801         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
11802          textmode (O_TEXT) for OS/2 version.
11803
11804 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
11805
11806         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
11807         GtkSpinButton, "input" and "output", to make the output more flexible.
11808         The user has to provide a mapping between adjustment->value and the
11809         output string (and vice versa, if the spin button is editable). 
11810         See testgtk for examples.
11811
11812 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
11813
11814         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
11815         new one.
11816         
11817         * configure.in: set gtk+ version to 1.3.0.