]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-0
add gdkkeys.[hc]
[~andy/gtk] / ChangeLog.pre-2-0
1 2000-12-03  Havoc Pennington  <hp@pobox.com>
2
3         * gdk/Makefile.am: add gdkkeys.[hc]
4
5         * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
6         files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
7
8         * acconfig.h, configure.in: add checks and command line options
9         for XKB
10
11         * gdk/x11/gdkkeys-x11.c: Implement the above functions
12         
13         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
14         and group in the key event
15
16         * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
17         field with the low-level hardware key code, and a group
18         field with the keyboard group
19
20         * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
21         and declare a couple globals used for keymap handling
22         
23         * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
24         hold down Shift-Control and type a hex number to get a Unicode 
25         character corresponding to the hex number
26         (gtk_im_context_simple_get_preedit_string): Fix cursor position
27         (return bytes not chars)
28
29 2000-12-05  Elliot Lee  <sopwith@redhat.com>
30         * gdk/gdkcolor.h: Make GdkColor specify element sizes
31         to avoid waste on 64-bit platforms.
32
33 Tue Dec  5 15:49:31 2000  Owen Taylor  <otaylor@redhat.com>
34
35         * INSTALL: Fix link to PNG home, remove reference
36         to fribidi.
37
38         * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
39         
40         * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
41         tested.)
42
43         * gtk/gtkcheckmenuitem.c: Permanently turn on
44         always_show_toggle.
45
46         * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to 
47         be NULL. (Vladimir Klebanov, #26545)
48
49         * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix 
50         some signed/unsigned comparison problems. (#6510,
51         David Kaelbling)
52
53         * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
54         return type to boolean (Oskar Liljeblad, #18648)
55
56 2000-12-05  Alexander Larsson  <alexl@redhat.com>
57
58         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
59         Remove bogus colormap setting.
60
61 2000-12-05  Alexander Larsson  <alexl@redhat.com>
62
63         * gdk/linux-fb/gdkcolor-fb.c:
64         More complete colormap handling. Now GdkRGB work in 8 bpp modes.
65
66         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
67         Must set colormap.
68         
69 Tue Dec  5 13:17:53 GMT 2000  Tony Gale <gale@gtk.org>
70
71         * docs/tutorial/gtk-tut.sgml: DND updates
72
73 2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
74
75         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
76         Remove old debug g_warning().
77         (gdk_fb_draw_drawable): The src argument can be either a wrapper
78         or an implementation, just pass the implementation to draw_drawable_2.
79         
80         * gdk/linux-fb/gdkprivate-fb.h:
81         Added GDK_IS_DRAWABLE_IMPL_FBDATA()
82
83         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
84         clear and invalidate area when window is destroyed.
85         (send_map_events): Remove old commented out code.
86
87 2000-12-05  Alexander Larsson  <alexl@redhat.com>
88
89         * gdk/linux-fb/gdkpango-fb.c:
90         Use italic instead of oblique in font aliases.
91         
92         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
93         _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
94         other unsupported functions.
95
96 2000-12-04  Havoc Pennington  <hp@redhat.com>
97
98         * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
99
100         * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
101
102         * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
103
104         * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary 
105         hack to avoid infinite loops (synthetic expose event) - 
106         Owen has more appropriate fixes in a branch he'll check in later.
107
108         * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
109         separator, CR, and CRLF as line ends
110
111         * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
112         into lines using pango_find_paragraph_boundary(); other bits of
113         the widget are still going to be broken if the boundary isn't '\n'
114         though
115
116 2000-12-04  Alexander Larsson  <alexl@redhat.com>
117
118         * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
119         multiply.
120
121         * gdk/linux-fb/gdkpango-fb.c:
122         Copied some 26.6 scaling macros from pango to clean up the rounding.
123         (pango_fb_font_get_glyph_info): Correct sign on x value.
124
125         * gdk/linux-fb/gdkprivate-fb.h:
126         Removed unreferenced external functions.
127
128         * modules/linux-fb/Makefile.am: Use ` instead of '.
129
130         * modules/linux-fb/basic.c:
131         Remove dead code. In particular the dummy lang engine which broke all
132         pango layouts in GtkFB. Don't include tables-big.i anymore.
133
134         * modules/linux-fb/tables-big.i:
135         Upgrade to latest version from pango. Left for reference, basic_ranges
136         moved to basic.c.
137         
138 2000-12-04  Havoc Pennington  <hp@redhat.com>
139
140         Fix bugs Alex found:
141         
142         * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
143         to "draw"
144
145         * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
146
147         * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
148
149         * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw() 
150         implementation in here, apparently the expose() implementation was
151         dead code.
152
153 2000-12-04  Alexander Larsson  <alexl@redhat.com>
154
155         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
156         Return positive descent.
157
158 2000-12-02  Havoc Pennington  <hp@pobox.com>
159
160         * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
161         method and signal
162         
163         * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
164         calls gdk_window_process_updates() to push the exposes through
165         (gtk_widget_class_init): No more draw signal, no
166         gtk_widget_real_draw()  
167         
168         * gtk/gtkbin.c (gtk_bin_draw): remove
169
170         * gtk/gtkbox.c (gtk_box_draw): remove
171
172         * gtk/gtkbutton.c (gtk_button_draw): remove
173
174         * gtk/gtkcalendar.c (gtk_calendar_draw): remove
175
176         * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
177
178         * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
179
180         * gtk/gtkclist.c (gtk_clist_draw): remove
181
182         * gtk/gtkentry.c (gtk_entry_draw): remove
183
184         * gtk/gtkeventbox.c (gtk_event_box_draw): remove
185
186         * gtk/gtkfixed.c (gtk_fixed_draw): remove
187
188         * gtk/gtkframe.c (gtk_frame_draw): remove
189
190         * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
191
192         * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
193
194         * gtk/gtklayout.c (gtk_layout_draw): remove
195
196         * gtk/gtklist.c (gtk_list_draw): remove
197
198         * gtk/gtklistitem.c (gtk_list_item_draw): remove
199
200         * gtk/gtkmenu.c (gtk_menu_draw): remove
201
202         * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
203
204         * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
205
206         * gtk/gtknotebook.c (gtk_notebook_draw): remove
207
208         * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
209
210         * gtk/gtkpacker.c (gtk_packer_draw): remove
211
212         * gtk/gtkrange.c (gtk_range_draw): remove
213
214         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
215
216         * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
217
218         * gtk/gtktable.c (gtk_table_draw): remove
219
220         * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
221
222         * gtk/gtktext.c (gtk_text_draw): remove
223
224         * gtk/gtktextview.c (gtk_text_view_draw): remove
225
226         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
227
228         * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
229
230         * gtk/gtktree.c (gtk_tree_draw): remove
231
232         * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
233
234         * gtk/gtktreeview.c (gtk_tree_view_draw): remove
235
236         * gtk/gtkviewport.c (gtk_viewport_draw): remove
237
238         * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
239
240         * gtk/gtkvscale.c (gtk_vscale_draw): remove
241
242         * gtk/gtkwindow.c (gtk_window_draw): remove
243
244 2000-20-01  Anders Carlsson  <andersca@gnu.org>
245
246         * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
247         a GtkToggleButton is both insensitive and active, it was being
248         drawn by the GtkButton draw handler which doesn't check the
249         state. Now it's calling gtk_toggle_button_paint instead.
250         
251 2000-12-01  Havoc Pennington  <hp@redhat.com>
252
253         * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
254         dangling pointers to the appearance attributes from the 
255         line display
256
257         * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
258         width/height to mean "full width/height of drawable"
259
260         * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
261         click to select word/line
262         
263         * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters 
264         when getting log attrs. Get a slice, so that pixmaps and stuff
265         are properly handled.
266
267         * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
268         paste into the selection (replaces selection now, previously
269         crashed or added to selection). Reveals longstanding btree bug -
270         select multiple lines, middle-click on the selection, boom. This
271         isn't related to my changes though.
272
273         * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
274         PangoLogAttrs changes
275         (gtk_entry_move_backward_word): ditto
276
277         * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
278         functions return bool whether the iter moved onto a
279         dereferenceable position.
280  
281         * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
282         functions for motion in terms of display lines.
283
284         * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
285         get the buffer a mark is inside
286         
287 2000-12-01  Alexander Larsson  <alexl@redhat.com>
288
289         * gdk/linux-fb/Makefile.am:
290         * modules/linux-fb/Makefile.am:
291         Freetype 2 final uses freetype-config
292
293         * gdk/linux-fb/gdkpango-fb.c:
294         Upgrade to use Freetype 2 final.
295         More flexible support for font aliases, this also fixes a bug with
296         GtkFontSelector, as the aliases must be visible in the font/family list,
297         or GtkFontSelector reads uninitialized memory.
298
299 2000-11-30 Hidetoshi Tajima  <tajima@eng.sun.com>
300
301         * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
302         XGetIMValues to properly terminate variable argument list, and do
303         NULL return check for ic_values and xim_styles.
304
305         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
306         Restore preedit state after XmbResetIC().
307         
308         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
309         XvaCreateNestedList() should take XvaNestedList, but not
310         XvaNestedList*.
311
312         * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
313         preedit_draw_callback, preedit_caret_callback): Match
314         "preedit-changed" signal name to "preedit_changed" to be
315         consistent to the spec.
316
317         * gtk/gtkimcontextsimple.c (check_table):
318         Match "preedit-changed" to "preedit_changed" to be consistent
319         to the spec.
320
321 Thu Nov 30 23:03:04 2000  Owen Taylor  <otaylor@redhat.com>
322
323         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
324         gc->clip_region == NULL>
325
326 2000-11-30  Tor Lillqvist  <tml@iki.fi>
327
328         Changes by Hans Breuer:
329         
330         * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
331         Dont't use negative width and height as max_hints. This fixes
332         Owen's recent testgtk changes for win32.
333
334         * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
335         gdk_win32_hdc_release): These are exported and may be called with
336         other drawable types than our GdkDrawableImplWin32 (?).
337
338         * gdk/gdkwindow.c: Backing store appears to work on Windows now,
339         so always #define USE_BACKING_STORE.
340
341         * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
342         of printf for debugging output.
343
344         * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
345         
346         * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
347
348         * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
349         declaration.
350
351         * gtk/gtktexttypes.h: Ditto.
352
353         * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
354         (GDK_VoidSymbol) also if in case of arg check failure.
355
356         * gtk/gtkimcontextsimple.c
357         (gtk_im_context_simple_get_preedit_string): Don't assign cursor
358         position to the pointer, but to the variable it points to.
359
360         * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
361
362         * gtk/gtk.def: Updates.
363
364 2000-11-29  Elliot Lee  <sopwith@redhat.com>
365
366         * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
367         GTK_TYPE_TREE_MODEL.
368
369 2000-11-29  Alexander Larsson  <alexl@redhat.com>
370
371         * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
372         Set the size of the font from the description.
373         (gdk_text_width): Gross hack that calculates the width
374         of text by text_length * size/2. This is necessary because
375         GtkLabel does some ugly gtk_string_width call to calculate
376         an good size.
377         (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
378
379 Wed Nov 29 13:39:19 GMT 2000  Tony Gale <gale@gtk.org>
380
381         * docs/tutorial/gtk-tut.sgml: DND updates
382
383 2000-11-29  Alexander Larsson  <alexl@redhat.com>
384
385         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
386         If you pass width or height == 0 to gdk_window_clear_area they
387         should be calculated from the window size.
388
389 2000-11-29  Alexander Larsson  <alexl@redhat.com>
390
391         * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
392         a grab, but no grab-cursor, use the cursor from the grabbed
393         window. (gdk_fb_window_send_crossing_events): Send normal
394         enter/leave notifications if grab and owner_events == TRUE.
395
396 2000-11-29  Alexander Larsson  <alexl@redhat.com>
397
398         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
399         Do implicit button grabs, even if the window doesn't
400         want the event.
401         (gdk_fb_window_send_crossing_events): If there is a
402         grab, only the grabbed window gets normal enter/leave
403         notifications. On ungrab go from grabbed window to current.
404         Don't send any notification to b when propagating from c -> b.
405         If setting a grab on window, don't set prev_window.
406         (handle_mouse_input): Send enter/leave events to the window the
407         mouse is over, not the grabbed one.
408         
409 2000-11-28  Elliot Lee  <sopwith@redhat.com>
410
411         * gdk/gdkregion-generic.c: Zap warning.
412         * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
413         * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
414
415 2000-11-28  Alexander Larsson  <alla@lysator.liu.se>
416
417         * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
418         The cursor should be hidden if it is part of either the
419         source or destination region. Not only if it is in both.
420         (gdk_window_set_transient_for): Silence warnings.
421
422 2000-11-28  Alexander Larsson  <alexl@redhat.com>
423
424         * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
425         The default mode in X is Pie Arcs, therefore that is
426         what Gtk+ uses.
427
428 2000-11-28  Alexander Larsson  <alexl@redhat.com>
429
430         * gdk/linux-fb/gdkinput-ps2.c:
431         Implement correct EnterNotify/LeaveNotify:
432         (gdk_fb_window_send_crossing_events): New function that sends
433         all GdkCrossingEvents from the last mouse-window to the specified
434         destination.
435         (gdk_fb_window_visibility_crossing): Removed function.
436         (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
437         (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
438         instead of gdk_window_get_pointer() for better readability.
439
440         * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
441         gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
442
443         * gdk/linux-fb/gdkprivate-fb.h:
444         removed gdk_fb_window_visibility_crossing, added
445         gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
446
447         gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
448         New function that finds the least common ancestor of two windows.
449         (gdk_window_show, gdk_window_hide):
450         Use gdk_fb_window_send_crossing_events.
451         (gdk_fb_window_move_resize): Send configure events to toplevel
452         windows. Use gdk_fb_window_send_crossing_events.
453
454 2000-11-27  Havoc Pennington  <hp@redhat.com>
455
456         * gtk/gtkprivate.h (enum): Remove a trailing comma
457
458 2000-11-27  Federico Mena Quintero  <federico@helixcode.com>
459
460         * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
461         the "changed" callback of the adjustment.  We need to redraw the
462         spin button's arrows when the adjustment's range changes.
463         (adjustment_changed_cb): Draw the arrows.
464         (gtk_spin_button_value_changed): Draw the arrows.
465
466 2000-11-23  Alexander Larsson  <alexl@redhat.com>
467
468         * gdk/linux-fb/gdkselection-fb.c:
469         Initial selection implementation.
470
471         * gtk/gtkselection.c:
472         if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
473         requestor in gtk_selection_request.
474         
475         * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
476         Added gdk_selection_property atom.
477
478         * gdk/linux-fb/gdkprivate-fb.h:
479         Export _gdk_selection_window_destroyed.
480         Removed mask_off_x/y from GdkCursorPrivateFB.
481         Removed hbearing, added top, left to PangoFBGlyphInfo.
482
483         * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
484         Call _gdk_selection_window_destroyed
485         (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
486         the root window has been created.
487         (static_dx_hack, static_dy_hack, compare_draw_rects,
488         gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
489         in region. They are already sorted. Instead just traverse them in
490         reverse if draw_direction < 0.
491         
492         * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
493         Double-clicks must be sent after the normal button_press.
494         (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
495         
496         * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
497         Pass _gdk_fb_screen_gc instead of NULL.
498
499         * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
500         Initialize gdk_selection_property.
501         (gdk_event_make): Remove unused code.
502
503         * gdk/linux-fb/gdkcursor-fb.c:
504         Make the pixmap for the cursor the same size as the mask. Also remove
505         the mask_off_x/y fields in GdkCursorPrivateFB and combine
506         _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
507         Now the whole cursor is visible.
508
509         * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
510         Fix bug where xdest+height instead of ydest+height was used
511         to calculate if the source and dest overlapped. This fixes the
512         redraw bug when the main window in testgtk was scrolled when
513         partially covered by a tall window.
514         Copy rectangles in region in order depending on draw_direction.
515         Also moved the draw_direction flipping of start_y and end_y into
516         the gc functions, as this might not be what all of them want.
517         (gdk_fb_draw_lines): Support dashed lines.
518         (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
519         so that the text is positioned correctly (was 1 pixel high).
520
521         gdk/linux-fb/gdkgc-fb.c:
522         Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
523         all lines were drawn a pixel to short. Also checked the default of
524         the rest of the values, and they're the same as X now.
525
526         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
527         Clean up pixel positioning of the glyphs. Just use bgy->top and
528         bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
529         to all divisions to get correct rounding behaviour.
530
531         * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
532         gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
533         Moved start_y/end_y flip into draw_drawable implementations.
534         Flip also x rendering when draw_direction < 0.
535         Remove unneccesary multiply with draw_direction.
536
537 Wed Nov 22 14:11:19 GMT 2000  Tony Gale <gale@gtk.org>
538
539         * docs/tutorial/gtk-tut.sgml:
540           - get rid of gtk_toggle_button_toggled FUD
541           - start DND section - needs work - based on:
542                 http://wolfpack.twu.net/docs/gtkdnd/
543
544 2000-11-22  Alexander Larsson  <alexl@redhat.com>
545
546         * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
547         Correct calculation of font metrics. Now GtkEntrys have sane
548         size.
549
550 2000-11-22  Alexander Larsson  <alexl@redhat.com>
551
552         * gdk/gdktypes.h:
553         Add new type GdkSpan
554         
555         * docs/reference/gdk/gdk-sections.txt,
556         docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
557         gdk/gdkregion.h:
558         Implement and document gdk_region_spans_intersect_foreach.
559
560         * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
561         Add new file gdkrender-fb.c which contains all core
562         rendering code.
563         Add gdk_fb_fill_rectangle_generic (old rectangle code) and
564         gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
565         (optimized rectangle fillers).
566
567         * gdk/linux-fb/gdkdrawable-fb2.c:
568         Move all rendering code to gdkrender-fb.c.
569         Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
570         Use the new span intersection functions in gdk_fb_fill_spans.
571         gdk_fb_draw_rectangle() clips filled rectangles and calls
572         gc->fill_rectangle with the result.
573         gdk_fb_fill_spans() gets extra argument "sorted".
574
575         * gdk/linux-fb/gdkevents-fb.c:
576         Remove unused includes and defines.
577         New function gdk_fb_get_time() to get correct time for events.
578
579         * gdk/linux-fb/gdkinput-ps2.c:
580         Use gdk method of generating multiple-clicks (gdk_event_button_generate)
581         Make sure to set the time of all events.
582
583         * gdk/linux-fb/gdkmain-fb.c:
584         Use gdk_fb_get_time ().
585
586         * gdk/linux-fb/gdkprivate-fb.h:
587         New virtual GC calls: fill_span & fill_rectangle.
588         Export gdk_fb_get_time().
589         gdk_fb_fill_spans() gets extra argument "sorted".
590
591         * gdk/linux-fb/mi*.c:
592         Use GdkSpan instead of GdkRectangle.
593         Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
594         from XFree 4 source)
595         
596 2000-11-22    <jrb@redhat.com>
597
598         * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
599         reversing the order in an if statement will do.  Doing so managed
600         to make the treemodelsort half work.  Other half will follow after
601         I get the insert function fully fixed.
602
603 2000-11-21  Elliot Lee  <sopwith@redhat.com>
604         * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
605         more than 2 bits. Besides, I need to implement an evil hack. :)
606
607 Tue Nov 21 14:17:51 GMT 2000  Tony Gale <gale@gtk.org>
608
609         * docs/tutorial/gtk-tut.sgml: minor corrections
610
611 2000-11-20  Jonathan Blandford <jrb@redhat.com>
612         * gtk/gtktreemodelsort.h: Add convertion functions to let you
613           convert to and from relative path's and iters.
614
615         * gtk/treestoretest.c: move to having a sorted/unsorted view.  Start
616           testing sorting functions a bit better.  Currently broken -- will
617           fix in morning.
618
619 2000-11-20  Havoc Pennington  <hp@redhat.com>
620
621         * gtk/gtkwidget.c: Documented a bunch of functions in here
622         (gtk_widget_realize): Warn if you try to realize
623         a widget with no parent that isn't a toplevel
624         (gtk_widget_intersect): return a gboolean
625
626 2000-11-20  Havoc Pennington  <hp@redhat.com>
627
628         * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
629         gtk/testtext.c: Semi-finish widget embedding. Need guffaw
630         scrolling to be implemented in GDK to finish. Also, right now
631         we just size_allocate all children on every layout change,
632         which is pretty lame. Test commented out of testtext.c, 
633         until it works better.
634
635 2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
636
637         * gdk/linux-fb/gdkdrawable-fb2.c:
638         Removed unused arguments from gdk_fb_drawable_get_pixel().
639
640         * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
641         Renamed fidur specific mouse packet data in MouseDevice to
642         generic. Used it in ps2 mouse handling code to avoid blocking
643         reads.
644
645 Sat Nov 18 18:00:17 2000  Jonathan Blandford  <jrb@redhat.com>
646
647         * demos/gtk-demo/main.c: Changed to have the list become
648         non-italic when the demo window is destroyed through an external
649         event (like a close button).  Doing so found three bugs in the
650         widget.
651
652         * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
653
654         * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
655         we actually set the cell.
656
657         * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
658
659         * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
660         free a leaked path.  Thanks memprof.
661
662 Sat Nov 18 11:58:17 2000  Owen Taylor  <otaylor@redhat.com>
663
664         * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix 
665         off-by-one error when destroying allocated segments
666         on failure. (Elliot)
667
668 Sat Nov 18 11:45:09 2000  Owen Taylor  <otaylor@redhat.com>
669
670         * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
671         memleaks found by Evan Martin.
672
673 Fri Nov 17 20:14:20 2000  Owen Taylor  <otaylor@redhat.com>
674
675         * Released 1.3.2
676         
677         * NEWS: Updates for 1.3.2
678
679 2000-11-17  Tor Lillqvist  <tml@iki.fi>
680
681         * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
682         but in general for window system specific events.
683
684         * gtk/gtk.def
685         * gtk/makefile.mingw.in
686         * gtk/makefile.msc.in: Update.
687         
688         * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
689
690 Thu Nov 16 16:11:39 2000  Owen Taylor  <otaylor@redhat.com>
691
692         * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
693         distribute gtk.immodules.
694
695         * gtk/Makefile.am (install-data-local): Don't install the
696         gtk.immodules file created for the uninstalled modules;
697         instead run gtk-query-immodules after install
698
699 Wed Nov 15 21:51:31 2000  Owen Taylor  <otaylor@redhat.com>
700
701         * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
702         -rpath to the right install location.
703
704         * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
705         -export-dynamic.
706
707         * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
708         properly.
709
710 2000-11-15  Havoc Pennington  <hp@pobox.com>
711
712         * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
713         patch from Mikael Hermansson to temporarily stop blinking while
714         the user is using the keyboard to type or navigate. 
715
716         Also, when blinking, stay on for longer than we stay off. Also,
717         return from start_cursor_blink if !cursor_visible, to save
718         checking that flag all over the place before we call
719         start_cursor_blink.
720
721 Thu Nov 16 01:25:51 2000  Robert Brady  <robert@suse.co.uk>
722
723         * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
724         only contain a "fontset" line, which is now ignored.
725
726         * gtk/gtkentry.c (gtk_entry_button_release): Make 
727         double-click-to-select-word work.
728         
729 Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
730
731         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
732         Don't move back one char when we are actually at the end of the 
733         paragraph.
734
735 2000-11-15  Robert Brady  <robert@suse.co.uk>
736
737         * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
738         'o' < 'p'.
739         
740         * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
741         bind_textdomain_codeset.
742
743         (gtk_init_check): Make the warning about translating default:LTR
744         sterner.
745         
746 Wed Nov 15 18:39:40 2000  Owen Taylor  <otaylor@redhat.com>
747
748         * **/Makefile.am : remove unecessary rules for win32-specific
749         config-substituted targets. If you want these rules, use
750         --enable-maintainer-mode (called automatically by autogen.sh).
751         Stops a lot of unneccessary make-time warnings.
752
753         * gtk/gtktext{layout,display}.c: Factor in total width as
754         well as screen when figuring alignment for word-wrap as well as
755         no wrap; this is necessary to handle lines that cannot be wrapped
756         at all.
757
758 2000-11-15  Havoc Pennington  <hp@redhat.com>
759
760         * gtk/testtext.c: Implement essential color cycling feature
761
762 2000-11-15  Havoc Pennington  <hp@redhat.com>
763
764         * gtk/gtktextview.c (changed_handler): Invalidate the side windows
765         when we invalidate the main window.
766
767         * gtk/testtext.c (create_view): Get rid of text_changed_callback,
768         GtkTextView will now invalidate the side windows for us when text
769         changes.
770
771 Wed Nov 15 16:02:20 2000  Owen Taylor  <otaylor@redhat.com>
772
773         * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
774         unconditionally, since we may need to update the horizontal
775         scrollbars even if the height didn't change.
776
777         * gtk/gtktextlayout.c (add_preedit_attrs): Always get
778         the extra attrs, since some of them affect size.
779
780         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
781         x_offset correctly.
782
783 2000-11-15  Havoc Pennington  <hp@redhat.com>
784
785         * gtk/gtktextlayout.c (set_para_values): If indent is negative,
786         don't move the first line out into the margin, instead move the
787         whole paragraph in order to make space for the first line within 
788         the margin
789
790 2000-11-15  Havoc Pennington  <hp@redhat.com>
791
792         * gtk/gtktextview.c (changed_handler): offset redraw rect by
793         xoffset in addition to yoffset, so horizontal scrolling doesn't
794         break redraws
795
796 2000-11-15  Havoc Pennington  <hp@redhat.com>
797
798         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
799         from the cursor
800         (render_layout_line): fix reversed test that caused weird
801         underlines to get drawn
802
803 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
804
805         * gdk/linux-fb/gdkprivate-fb.h:
806         Fix debug macros.
807         
808 2000-11-15  Alexander Larsson  <alla@lysator.liu.se>
809
810         * gdk/linux-fb/gdkprivate-fb.h:
811         Added virtual functions set_pixel, get_color,
812         fill_span and draw_drawable to the GC.
813         Added global _gdk_fb_screen_gc to use instead of
814         NULL when drawing to the screen.
815         Added _gdk_fb_gc_calc_state() prototype.
816
817         * gdk/linux-fb/gdkgc-fb.c:
818         Call _gdk_fb_gc_calc_state() on any gc state change.
819
820         * gdk/linux-fb/gdkglobals-fb.c:
821         Add _gdk_fb_screen_gc
822                 
823         * gdk/linux-fb/gdkdrawable-fb2.c:
824         _gdk_fb_gc_calc_state() calculates best functions
825         for the GC state and depth.
826         Moved bpp specialized code to separate functions.
827         Added optimized 24 bpp AA draw_drawable.
828
829         * gdk/linux-fb/gdkevents-fb.c:
830         Silence gcc warning.
831
832         * gdk/linux-fb/gdkimage-fb.c:
833         Use _gdk_fb_screen_gc
834
835         * gdk/linux-fb/gdkwindow-fb.c:
836         Init and use _gdk_fb_screen_gc
837
838         * gdk/linux-fb/mitypes.h:
839         Remove unused types.
840
841 2000-11-14  Havoc Pennington  <hp@pobox.com>
842
843         * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
844         to pixels
845
846 2000-11-14  Havoc Pennington  <hp@pobox.com>
847
848         * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
849
850         * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
851         unknown char, no real reason we were using a variable. 
852         Remove gtk_text_unknown_char variable. Fix all the text widget
853         files accordingly.
854
855         * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC, 
856         since the Unicode spec seems to prefer that character for our
857         purposes.
858
859 Wed Nov 15 02:18:01 2000  Robert Brady  <robert@suse.co.uk>
860
861         * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return 
862         value of g_getenv() isn't freeable, so g_strdup it.
863
864         * modules/input/inuktitut.c: Inuktitut input method.
865
866         * modules/input/Makefile.am: Build this.
867         
868 2000-11-14  Elliot Lee  <sopwith@redhat.com>
869
870         * gtk/Makefile.am: Install gtk.immodules, needed for operation
871         of gtk programs.
872
873 Tue Nov 14 20:13:06 2000  Owen Taylor  <otaylor@redhat.com>
874
875         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
876         reversed > that was causing Home to go to end of previous line.
877
878         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
879         modified-keypresses (leave for bindings.)
880
881         * modules/input/Makefile.am: Remove useless -export-dynamic
882         from module LDFLAGS.
883
884 2000-11-14  Havoc Pennington  <hp@redhat.com>
885
886         * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
887         higher.
888
889         * gtk/gtktextdisplay.c (render_layout_line): Take rise into
890         account. Also, render rise, underline, background, etc. for
891         pixbufs as well as text. Also, draw underlines one pixel higher.
892
893         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
894         PangoAttribute for the rise, so it gets drawn properly. Also,
895         add the GtkTextAppearance attribute for pixbuf/widget segments
896         as well; we should go ahead and have rise, underline, background,
897         stipple work for those
898
899         * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
900         Pango
901
902 2000-11-15  Tor Lillqvist  <tml@iki.fi>
903
904         * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
905
906         * gtk/gtk.def: Update.
907
908         * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
909         included.
910         (gtk_rc_get_im_module_file): Use run-time installation directory
911         on Win32.
912
913         * gdk/win32/rc/gdk.rc: Remove.
914         * gdk/win32/rc/gdk.rc.in: New file.
915         * gdk/win32/rc/Makefile.am: New file
916         * gdk/win32/Makefile.am: Corresponding changes.
917
918         * gtk/gtk.rc: Remove.
919         * gtk/gtk-win32.rc.in: New file.
920         * gtk/Makefile.am: Corresponding changes.
921
922         * configure.in: Corresponding changes.
923
924         * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
925         has a built gtkcompat.h. Developers using CVS code on Win32 can
926         hand-edit it from gtkcompat.h.in.
927
928         * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
929         gtkcompat.h from gtkcompat.h.win32.
930
931 2000-11-14  Havoc Pennington  <hp@redhat.com>
932
933         * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
934         to default to GDK_ACTION_MOVE if the drag is within a single
935         widget. Defaults to GDK_ACTION_COPY between widgets.
936
937 Mon Nov 13 14:43:48 2000  Owen Taylor  <otaylor@redhat.com>
938
939         * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
940
941         * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
942
943         * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
944         srcdir != builddir
945
946         * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
947
948         * configure.in (GTK_VERSION): Up to 1.3.2
949
950         * modules/input/Makefile.am (im_xim_la_SOURCES): Add 
951         gtkimcontextxim.h
952
953         * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
954         missing doc comment.
955
956 2000-11-14  Alexander Larsson  <alexl@redhat.com>
957
958         * modules/linux-fb/basic.c:
959         Use the glib iconv wrappers.
960
961 2000-11-13  Havoc Pennington  <hp@pobox.com>
962
963         * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
964         still more bugs.
965
966         * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
967         scroll the GdkWindows before realization.
968
969 2000-11-13  Havoc Pennington  <hp@redhat.com>
970
971         * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug 
972         where GC didn't always get updated properly
973
974         * demos/gtk-demo/textview.c (create_tags): Use subattributes
975         of fonts instead of setting the entire font
976
977         * gtk/testtext.c (fill_example_buffer): Use "size" instead of
978         setting entire font
979
980         * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
981
982         * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into 
983         a bunch of individually-settable font attributes. You can still 
984         use the "font" and "font_desc" args, they just set all the font
985         attributes at once.
986
987 2000-11-13 Elliot Lee <sopwith@redhat.com>
988
989         * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
990
991 Mon Nov 13 14:29:32 2000  Jonathan Blandford  <jrb@redhat.com>
992
993         * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
994         * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
995
996         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
997         work better.
998
999 2000-11-13  Havoc Pennington  <hp@redhat.com>
1000
1001         * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of 
1002         the module file.
1003
1004         * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
1005         dest->language
1006
1007         * gtk/testtext.c: Test pixels above/below/inside paragraphs
1008         settings
1009
1010         * gtk/gtktextview.c: Implement object args and setters/getters for
1011         all the aspects of the GtkTextAttributes that are not set from
1012         GtkWidget attributes. This is spacing, justification, margins,
1013         etc.
1014
1015         (gtk_text_view_set_arg)
1016         (gtk_text_view_get_arg): implement get/set for editable, wrap mode
1017         args
1018         (gtk_text_view_class_init): Add args for justify, left_margin,
1019         right_margin, indent, and tabs
1020         
1021
1022         * gtk/gtktextlayout.c (set_para_values): fix to display indent
1023         attribute properly
1024
1025         * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute, 
1026         replace with indent attribute
1027
1028         * gtk/gtktextlayout.c (set_para_values): multiply indent by
1029         PANGO_SCALE
1030
1031         * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
1032         rearranging code to do that
1033         (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
1034         i.e. don't subtract the top_margin first, just to keep
1035         all margin-futzing in one place.
1036
1037         * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
1038
1039         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
1040         special case of last line, Pango now handles this itself.
1041         (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the 
1042         Y coordinate
1043         (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
1044         (find_display_line_above): wasn't moving the byte index as it
1045         iterated over lines, so always returned byte 0. Also, port to use
1046         PangoLayoutIter.
1047         (find_display_line_below): same problem as
1048         find_display_line_above. Also, port to use PangoLayoutIter.
1049
1050 2000-11-13  Alexander Larsson  <alexl@redhat.com>
1051
1052         * gdk/linux-fb/*.[ch]:
1053         Massive reindent to gtk+ standard. My hands hurt.
1054
1055         * gdk/linux-fb/gdkcolor-fb.c:
1056         Move GdkColorPrivateFB from inherited to windowing_data
1057
1058         * gdk/linux-fb/gdkcursor-fb.c:
1059         _gdk_cursor_new_from_pixmap made static
1060
1061         * gdk/linux-fb/gdkdnd-fb.c:
1062         GdkDragContextPrivate moved to windowing_data
1063
1064         * gdk/linux-fb/gdkdrawable-fb2.c:
1065         Removed endian.h, use glib endianness macros instead
1066         Some cleanups in the usage of GDK_DRAWABLE_FBDATA
1067         and GDK_DRAWABLE_IMPL_FBDATA
1068
1069         * gdk/linux-fb/gdkfont-fb.c:
1070         Add empty gdk_font_load(). Needed for linking of Gtk+.
1071
1072         * gdk/linux-fb/gdkimage-fb.c:
1073         Removed endian.h, use glib endianness macros instead
1074         Moved GdkImagePrivateFB to windowing_data
1075         gdk_image_new_bitmap didn't always allocate enough
1076         memory.
1077
1078         * gdk/linux-fb/gdkinput-ps2.c:
1079         Added semi-working support for MS serial mice.
1080
1081         * gdk/linux-fb/gdkprivate-fb.h:
1082         s/GdkWindowPrivate/GdkWindowObject/
1083         Removed GdkWindowPrivate typedef
1084         s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
1085         Removed GDK_DRAWABLE_P
1086         Move GdkColorPrivateFB from inherited to windowing_data
1087         Moved GdkImagePrivateFB to windowing_data
1088
1089         * gdk/linux-fb/gdkvisual-fb.c:
1090         Removed some unused debug code.
1091
1092         * gdk/linux-fb/gdkwindow-fb.c:
1093         Use stock cursors instead of including X headers.
1094         s/GdkWindowPrivate/GdkWindowObject/
1095
1096         * gdk/linux-fb/mitypes.h:
1097         Removed unused types.
1098
1099         * modules/linux-fb/basic.c:
1100         Use the pango fribidi wrappers.
1101
1102 2000-11-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
1103
1104         * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
1105         gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
1106         gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
1107         gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
1108         GEqualFunc where applicable.
1109         
1110         * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
1111         pango_font_description_equal as changed in pango.
1112         
1113         * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
1114
1115         * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
1116
1117         * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
1118
1119         * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
1120
1121         * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
1122
1123         * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
1124
1125         * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
1126         gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
1127
1128         * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
1129         gtk_rc_styles_compare -> gtk_rc_styles_equal.
1130
1131 2000-11-12  Havoc Pennington  <hp@pobox.com>
1132
1133         * demos/gtk-demo/Makefile.am (democodedir): change demo install
1134         dir to datadir/gtk+-2.0/demo
1135
1136         * demos/gtk-demo/textview.c: Text widget demo; reveals all 
1137         sorts of text widget and Pango font bugs. Urgh.
1138
1139         * demos/gtk-demo/Makefile.am (demos): Add textview.c
1140
1141         * demos/gtk-demo/main.c (create_tree): Add instructions at top of
1142         tree that you should double click to see the demo. Fix 
1143         types of variables to reflect changed return values from 
1144         GtkTreeStore and GtkTreeViewColumn constructors.
1145
1146         * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
1147         newly-created buffer to prepare for GObject semantics
1148
1149         * gtk/testtext.c: don't leak the buffer with GObject semantics
1150
1151         * gtk/testtextbuffer.c: ditto
1152         
1153 2000-11-12  Havoc Pennington  <hp@pobox.com>
1154
1155         Rename this testgtk to gtk-demo to avoid confusion, and 
1156         install it so people can use it as a supplement to 
1157         the documentation.
1158         
1159         * demos/gtk-demo: Moved from demos/testgtk
1160
1161         * demos/testgtk: Removed
1162
1163         * configure.in: make Makefile in gtk-demo
1164         
1165         * demos/gtk-demo/Makefile.am: Install sample source to 
1166         datadir/gtk-demo (maybe there's a better place?), and 
1167         rename the binary to gtk-demo
1168         
1169         * demos/gtk-demo/main.c (load_file): Load installed sample
1170         source if source isn't found in pwd.
1171
1172 2000-11-09  Havoc Pennington  <hp@pobox.com>
1173
1174         * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" 
1175         argument to set the char displayed when visibility == FALSE
1176         (gtk_entry_create_layout): If !entry->visible, replace 
1177         all chars with the "invisible char"
1178
1179         * gtk/testgtk.c: Test the invisible_char deal
1180         
1181 Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
1182
1183         * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
1184         can't get a native font in the right encoding.
1185
1186 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
1187
1188         * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
1189         respectively.
1190
1191 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
1192
1193         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
1194         Fix warning when moving between paragraphs.
1195
1196         * gtk/gtkentry.[ch]: Change move => move_cursor, 
1197         delete => delete_from_cursor, insert => insert_at_cursor
1198
1199 Sun Nov 12 22:52:51 2000  Robert Brady  <robert@suse.co.uk>
1200
1201         * modules/input/imviqr.c: A vietnamese VIQR-based input method.
1202
1203         * modules/input/imthai-broken.c: A Thai input method for use if
1204         Thai keys are really generating Latin1 keysyms.
1205
1206         * modules/input/Makefile.am: Build these.
1207
1208 Sun Nov 12 22:15:35 2000  Robert Brady  <robert@suse.co.uk>
1209
1210         * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c: 
1211         g_filename_{to,from}_utf8 now takes an extra parameter.
1212
1213         * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
1214         strftime into UTF-8.
1215
1216         (column_from_x, gtk_calendar_paint_day_names): Support RTL
1217         calendars.
1218
1219         (gtk_calendar_paint_day_names): Draw day names in the right 
1220         place.
1221         
1222 Sun Nov 12 14:10:09 2000  Owen Taylor  <otaylor@redhat.com>
1223
1224         * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
1225         problem with using result of g_get_charset() backwards -
1226         pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
1227
1228         * gtk/gtkwindow.c (gtk_window_compute_hints): Support
1229         negative min_width/height and max_width/height to
1230         mean "requisition"; this allows setting a window
1231         to be user-resizable in only one direction easily.
1232
1233         * gtk/testgtk.c (create_main_window): Remove hard-coded
1234         usize - set a default size in the vertical direction.
1235
1236 Sun Nov 12 13:33:01 2000  Owen Taylor  <otaylor@redhat.com>
1237
1238         * gtk/gtkrange.c: Add some missing casts. Support 
1239         2 and 3 button clicks on the arrows to mean 
1240         "move by pages" and "jump to end". (Like gtkspinbutton)
1241
1242 2000-11-12 Hans Breuer <Hans@Breuer.Org>
1243
1244         * gdk/win32/makefile.msc : reflect build module changes
1245
1246         * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
1247         from GdkPixmap*, cast implementation member instead.
1248
1249         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
1250         passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src 
1251         maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
1252         more Gdi functions return value checking. 
1253         (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
1254         GdkImagePrivateWin32 *.
1255
1256         * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
1257         menus useable again. Add #pragma message to keep reminded on this issue.
1258         (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
1259         windows. This allows to enable backing store on Win32!
1260
1261         * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
1262         in drawable is of impl type. Correct specific type checks appropriate.
1263  
1264         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check 
1265         GDK_WINDOW_DESTROYED before allocating new resources.
1266
1267         * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
1268
1269         * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
1270         (gdk_window_foreign_new) initialize parent handle.
1271         (gdk_window_destroy_notify) add GDK_IS_WINDOW check
1272
1273         * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
1274         Let the GDI invalidate the window on MoveWindow call to fix scrolling
1275         problems (e.g. main buttons in testgtk). 
1276
1277 Sat Nov 11 23:07:30 2000  Owen Taylor  <otaylor@redhat.com>
1278
1279         * gtk/gtkentry.c (gtk_entry_key_press): Call 
1280         gtk_widget_activate for GDK_Return.
1281
1282         * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
1283         of preedit cursor position.
1284
1285 Sun Nov  5 04:24:53 2000  Owen Taylor  <otaylor@redhat.com>
1286
1287         * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
1288         static.
1289
1290 Tue Sep 19 10:54:22 2000  Owen Taylor  <otaylor@redhat.com>
1291
1292         * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
1293         out support for multiple locales; that simple doesn't
1294         work reliably with current Xlib
1295
1296         * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
1297         gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c: 
1298         Add support for positioning the cursor within the preedit string.
1299
1300 Mon Sep 18 23:56:32 2000  Owen Taylor  <otaylor@redhat.com>
1301
1302         * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
1303         at XIM input method module.
1304
1305         * gtk/gtktextview.c: Check for bindings after passing
1306         events to im context filter.
1307
1308 Mon Sep 18 11:50:51 2000  Owen Taylor  <otaylor@redhat.com>
1309
1310         * gtk/gtktextlayout.c (add_preedit_attrs): Handle
1311         empty attribute lists properly.
1312
1313 Sun Sep 17 10:08:16 2000  Owen Taylor  <otaylor@redhat.com>
1314
1315         * gtk/queryimmodules.c (main): Return non-zero exit
1316         status if errors were encountered querying any
1317         modules.
1318
1319         * modules/input/Makefile.am (moduledir): remove
1320         leftover bin program target.
1321
1322         * docs/make-todo: Fix typo in error message.
1323
1324 Sat Sep 16 14:04:30 2000  Owen Taylor  <otaylor@redhat.com>
1325
1326         * configure.in: Add modules/input/Makefile
1327
1328 Sat Sep 16 14:01:52 2000  Owen Taylor  <otaylor@redhat.com>
1329
1330         * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
1331         don't include gtkthemes.h.
1332
1333         * gtk/testgtk.c gtk/testtext.c: Set environment variables
1334         to point
1335
1336         * gtk/Makefile.am: Add new .c and .h files, build 
1337         gtk-query-immodules and use it to create a gtk.immodules
1338         file for use of test programs.
1339
1340         * gtk/gtkpreview.c: remove extra blank line.
1341
1342 Sat Sep 16 13:21:04 2000  Owen Taylor  <otaylor@redhat.com>
1343
1344         * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table): 
1345         Add the ability to add extra tables beyond the default
1346         one, and also the ability to have compose sequences 
1347         that are prefixes of other compose sequences. 
1348
1349         * gtk/gtkimcontextsimple.c: Export a preedit string which
1350         consists of possible candidates for keystrokes that have
1351         been entered but not yet committed.
1352
1353         * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
1354         gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
1355
1356         * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems): 
1357         Add a function to add input-method switching menu items
1358         to a menu.
1359
1360         * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
1361         when switching input methods.
1362
1363         * gtk/gtkimcontextsimple.[ch]: Change the format of
1364         the compose table to allow compose tables of different
1365         lengths / sequence.
1366
1367 Sat Sep 16 13:05:48 2000  Owen Taylor  <otaylor@redhat.com>
1368
1369         * gtk/gtkimmodule.[ch]: Support routines for loading
1370         GtkIMContext implementations dynamically at runtime.
1371
1372         * modules/input/imcyrillic-translit.c: A sample input
1373         method (based on GtkIMContextSimple with an extra table),
1374         which demonstrates preedit strings and the module
1375         system for input modules
1376
1377         * gtk/queryimmodules.c: Program to query the available
1378         input modules and write the results into a file.
1379          
1380         * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
1381         extra config options "im_module_file" (cache file for
1382         input method modules), and "im_module_path" - path
1383         to look for modules when generating cache file.
1384
1385         This doesn't scale.
1386
1387 Sat Sep 16 13:09:06 2000  Owen Taylor  <otaylor@redhat.com>
1388
1389         * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the 
1390         generic code from gtkthemes into a new abstraction
1391         GtkModule which has the logic for implementing
1392         a loadable module which implements a number of 
1393         GObject types.
1394
1395 Sat Sep 16 13:07:13 2000  Owen Taylor  <otaylor@redhat.com>
1396
1397         * gtk/gtkeditable.[ch]: Convert GtkEditable from
1398         a class into an interface  
1399         
1400         * gtk/gtkoldeditable.[ch]: Move the old editable
1401         implementation into here, so legacy widgets can
1402         still rely on the implemenation. GtkOldEditable
1403         exports GtkEditable. Make selection handling
1404         code use new text conversion functions (and
1405         handle UTF-8 as a side-effect). Use GtkClipboard
1406         for CLIPBOARD.
1407
1408         * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
1409         Adopt to match above changes.
1410
1411         * gtk/gtkentry.[ch]: Implement GtkEditable directly,
1412         avoid GtkOldEditable implementation. Restructure
1413         to reduce number of places that modify state directly.
1414         Move to GtkBindingSet. Display the preedit string.
1415         Queue recomputation of PangoLayout and scroll position
1416         to improve effiency of doing complex changes naively.
1417         Add a menu with cut/copy/paste and input method selection.
1418
1419 Thu Sep 14 22:11:05 2000  Owen Taylor  <otaylor@redhat.com>
1420
1421         * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
1422         to set preedit string and attributes; display preedit string by
1423         inserting string and attributes at cursor when creating the
1424         GtkTextLineDisplay.
1425
1426         * gtk/gtktextlayout.c: Move all conversions between byte
1427         positions in PangoLayout and GtkTextIter into new functions
1428         line_display_iter_to_index/index_to_iter that properly
1429         handle the preedit string.
1430
1431         * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
1432         it to return const char * (eventually will end up
1433         as GCONST char *, most likely.)
1434
1435         * gtk/gtktextview.[ch]: Handle the preedit string, call
1436         gtk_im_context_reset() as necessary, add a menu to switch
1437         input methods.
1438         
1439         * gtk/gtktextlayout.[ch]: Remove useless
1440         gtk_text_layout_get_log_attrs() function.
1441
1442 2000-11-11  Tor Lillqvist  <tml@iki.fi>
1443
1444         * gdk/gdk.def
1445         * gtk/gtk.def: Update.
1446
1447         * gdk/win32/*.c: Add last argument to g_type_register_static()
1448         calls.
1449
1450         * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
1451
1452         * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
1453         generated by older wheel mouse drivers. Get the correct y
1454         coordinate from WM_MOUSEWHEEL messages.
1455
1456         * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
1457         gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
1458         gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
1459         Debugging functions.
1460
1461         * gdk/win32/gdkprivate-win32.h: Declare them.
1462
1463         * gdk/win32/gdkinput-win32.h: Add declaration for
1464         gdk_input_window_destroy().
1465
1466         * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
1467
1468 Fri Nov 10 19:06:41 2000  Jonathan Blandford  <jrb@redhat.com>
1469
1470         * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
1471         function to help handle keeping things in sync.
1472
1473 Fri Nov 10 12:10:34 2000  Jonathan Blandford  <jrb@redhat.com>
1474
1475         * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
1476         BOXED marshallers.
1477
1478         * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
1479         (gtk_list_store_class_init): use the new BOXED marshallers.
1480
1481         * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
1482         new_with_values to new_with_types.
1483         (gtk_tree_store_get_column_type): add this.
1484         (gtk_tree_store_class_init): use the new BOXED marshallers.
1485
1486         * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
1487         mirror some POINTER marshallers.
1488
1489 Thu Nov  9 11:23:22 2000  Jonathan Blandford  <jrb@redhat.com>
1490
1491         * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
1492         allow more interesting iterators.  Also, made the lifecycle of
1493         iterators more explicit.
1494
1495         * gtk/gtktreemodelsort.[ch]: New model for sorting.
1496
1497         * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
1498         types.
1499
1500 2000-11-09  Alexander Larsson  <alexl@redhat.com>
1501
1502         * demos/testgtk/menus.c:
1503         Changes to make the new testgtk compile after
1504         gtk_menu_append was removed.
1505
1506         * gdk/linux-fb/gdkdrawable-fb2.c
1507         (gdk_fb_get_depth, gdk_fb_get_visual,
1508         gdk_drawable_impl_fb_class_init): Implement
1509         these drawable functions. Now GtkImages work again.
1510
1511         * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
1512
1513         * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
1514         
1515         * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
1516         gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
1517         Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
1518         GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
1519
1520 2000-11-08  Havoc Pennington  <hp@pobox.com>
1521
1522         * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
1523         visible_set args, don't know where these had gone, I thought they
1524         used to be there
1525
1526         * gtk/testtext.c: Add a menu item to apply invisibility tag;
1527         now we can test the feature and see that it's totally broken.
1528
1529 2000-11-08  Havoc Pennington  <hp@pobox.com>
1530
1531         Make DND copy pixbufs and tags when source and target share a 
1532         tag table.
1533         
1534         * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
1535         in-process GTK_TEXT_BUFFER_CONTENTS target
1536         (gtk_text_view_drag_data_received): Paste from
1537         GTK_TEXT_BUFFER_CONTENTS if we receive it.
1538
1539 2000-11-08  Alexander Larsson  <alexl@redhat.com>
1540
1541         * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
1542         API changes.
1543
1544         * gtk/gtkmenu.c: Add support for scrolling menus.
1545         Remove gtk_menu_append/prepend/insert, these have been moved to
1546         gtkcompat.h as #defines.
1547
1548         * gtk/gtkcompat.h.in:
1549         Add compatibility #defines for gtk_menu_append/prepend/insert
1550
1551         * gtk/gtkmenu.h: Add data needed for scrolling menus.
1552         GtkMenuPositionFunc gets an extra argument push_in.
1553         gtk_menu_append/prepend/insert removed.
1554         
1555         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
1556         positioning behaviour to fit to scrolling menus.
1557
1558         * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
1559         into menuitem->submeny. That is wrong, and broke torn
1560         off submenus of torn off menus, since they were unrealized
1561         when the first menu was unrealized.
1562
1563         * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
1564         gtk_menu_shell_select_item() since these need to be overridden in
1565         GtkMenu.
1566
1567         * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
1568         positioning behaviour to fit to scrolling menus.
1569         (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
1570         the current item so that it is prelighted when the menu pops up.
1571         This is a workaround to the fact that the menu doesn't get the
1572         initial enter event (due to grabs).
1573
1574         * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
1575         s/gtk_menu_append/gtk_menu_shell_append/
1576
1577         * gtk/gtknotebook.c:
1578         s/gtk_menu_insert/gtk_menu_shell_insert/
1579
1580         * gtk/testgtk.c (create_menu, create_menus):
1581         Create the first menu with 50 items so that menu scrolling
1582         can be tested.
1583         
1584         
1585         Patch from Jonathan Blandford  <jrb@redhat.com>
1586
1587         * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
1588         system to handle size requests.  First, we ask what the size of
1589         the toggle is.  Then, when allocating the size, we allocate the
1590         toggle_size first.  This way we can have multiple menu-item
1591         classes w/o needing a seperate class for each.
1592
1593         * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
1594         * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
1595
1596         * gtk/gtkcheckmenuitem.c
1597         (gtk_check_menu_item_toggle_size_request): New function to handle
1598         the toggle size-request.
1599
1600 2000-11-07  Havoc Pennington  <hp@redhat.com>
1601
1602         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
1603         Half-ass somewhat fix this function, so that scrolling to the
1604         insertion point works. Pango hacking is in the future to really
1605         fix it.
1606
1607         * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
1608         length of data, no longer used.
1609
1610         * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
1611         method contents in here, get rid of destroy method
1612         (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
1613         that were backward. Remove debug spew.
1614         (cut_or_copy): Make the clipboard work with insert_range to
1615         preserve tags and pixbufs, not just the primary selection.
1616
1617 2000-11-07  Havoc Pennington  <hp@redhat.com>
1618
1619         * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename 
1620         to gtk_text_mark_get_visible
1621
1622         * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
1623         bug that was generating an invalid iterator
1624
1625         * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
1626         ensure_char_offsets() in front of code placing the iter in an
1627         invalid state.
1628
1629         * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
1630         make override_location arg const
1631         (paste): Replace the selection if we paste into the 
1632         current selection
1633
1634         * gtk/gtkselection.h: Remove "GtkSelectioData"
1635         (struct _GtkSelectionData): move the definition here.
1636
1637         * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
1638         Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
1639
1640         * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
1641
1642         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
1643         (gtk_text_buffer_insert_range_interactive): implement
1644         (gtk_text_buffer_get_tags): Remove, replaced by
1645         gtk_text_iter_get_tags()
1646
1647         * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
1648         limit parameter, to avoid infinite linear scan.
1649         (gtk_text_iter_backward_search): Add search limit
1650         (gtk_text_iter_forward_find_char): Add search limit
1651         (gtk_text_iter_backward_find_char): Add search limit
1652
1653 2000-11-07  Alexander Larsson  <alla@lysator.liu.se>
1654
1655         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
1656         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
1657         gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
1658         gdk/linux-fb/gdkwindow-fb.c:
1659         use g_object_new() instead of g_type_create_instance() which
1660         is a private function for fundamental type implementations.
1661
1662         * gdk/linux-fb/gdkinput-ps2.c:
1663         Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
1664         instead just store the current modifier state. Add a (somewhat broken)
1665         keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
1666         Rename exported function gdk_input_ps2_get_mouseinfo to
1667         gdk_input_get_mouseinfo.
1668
1669         * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
1670         gdk/linux-fb/gdkwindow-fb.c:
1671         gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
1672         
1673
1674 2000-11-02  Havoc Pennington  <hp@redhat.com>
1675
1676         * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
1677         use stock buttons. Should be 100% source compatible, appropriate
1678         filesel fields now point to dialog->vbox and dialog->action_area.
1679         On the bizarre side, dialog->action_area and filesel->action_area
1680         are not the same widget.
1681         (gtk_file_selection_init): Put some padding around the selection
1682         entry, so it isn't touching the GtkDialog separator.    
1683
1684         * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog, 
1685         use stock buttons, etc. Should also be source compatible.
1686         Set the dialog default title in _init not _new().
1687         
1688         * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): 
1689         Use stock buttons; don't put a button box inside the existing
1690         dialog button box. Don't bother with push/pop colormap anymore.
1691
1692         * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more 
1693         specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
1694         for message dialog, and necessary for the font selection and color
1695         selection with help and apply buttons.
1696         
1697         * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer 
1698         to the created button widget. Set GTK_CAN_DEFAULT on the button.
1699         (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
1700         between buttons, put less padding around the action area.
1701         (gtk_dialog_run): Exit on unmap rather than on destroy. 
1702         This will also exit the loop if the widget is hidden.
1703         (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
1704         instead of GTK_RESPONSE_NONE; since we're already adding a bunch
1705         of GTK_RESPONSE_* stuff, this seems cleaner, and lets you 
1706         special-case delete event.
1707
1708         * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
1709         formatting
1710         
1711 Sun Nov  5 05:32:39 2000  Tim Janik  <timj@gtk.org>
1712
1713         * gtk/testgtk.c (uposition_stop_configure): provide a toggle
1714         button to temporarily disable position recording in the
1715         "saved position" test.
1716
1717 Sat Nov  4 05:37:17 2000  Tim Janik  <timj@gtk.org>
1718
1719         * gtk/gtkthemes.c: added compat code that temporarily implements
1720         GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
1721         going to be revamped by owen's upcoming GtkModule patches, but
1722         untill then people want gtk to build, right? ;)
1723
1724 2000-11-04  Havoc Pennington  <hp@pobox.com>
1725
1726         * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
1727         list
1728
1729         * docs/Changes-2.0.txt: Add note about
1730         gtk_container_get_toplevels()
1731
1732         * gtk/gtktextview.h: formatting
1733         
1734         * gtk/gtktextview.c: don't start descriptions with "Returns",
1735         confuses gtk-doc
1736
1737 Sat Nov  4 10:12:27 2000  Owen Taylor  <otaylor@redhat.com>
1738
1739         * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
1740         look for glib-2.0.m4 not glib.m4. (Ali Abdin)
1741
1742 2000-11-03  Havoc Pennington  <hp@redhat.com>
1743
1744         * gtk/gtktexttagtable.c: Docs
1745         (gtk_text_tag_table_size): return a signed int
1746
1747         * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
1748         (gtk_text_tag_event): make the event_object a GObject
1749
1750         * gtk/gtktextview.c: Write API docs for all functions.
1751
1752         * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
1753         for gtk_text_view_get_window_type() called on one of the private
1754         windows.
1755
1756         * gtk/gtktextview.c: Instead of accessing text_view->buffer
1757         directly, call get_buffer() which demand-creates a default
1758         buffer. So gtk_text_view_new() can be used to create a view with a
1759         default buffer in it, if you just want an empty text box users can
1760         put data in. Useful for GUI builders also.
1761
1762 2000-11-03  Pablo Saratxaga <pablo@mandrakesoft.com>
1763
1764         * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
1765         the charset encodign portion MUST be in lowercase.
1766         * gtk/gtkrc.az: added file for Azeri language
1767
1768 2000-11-03  Havoc Pennington  <hp@redhat.com>
1769
1770         Get widgets working on the btree/buffer side. Display of them 
1771         still doesn't work.
1772         
1773         * gtk/gtktextview.c: start implementing child widget stuff
1774
1775         * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
1776
1777         * gtk/gtktextlayout.c: handle embedded widgets
1778
1779         * gtk/gtktextdisplay.c: handle embedded widgets
1780
1781         * gtk/gtktextchild.c: Implement all the child anchor goo
1782
1783         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
1784         function
1785
1786         * gtk/gtktextbtree.c: Add child anchor table to the btree struct
1787         (insert_pixbuf_or_widget_segment): abstract out common portions of 
1788         creating a child anchor or a pixbuf segment.
1789         (gtk_text_btree_create_child_anchor): new function
1790         (gtk_text_btree_unregister_child_anchor): new function
1791
1792         * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
1793         allocate_child signal on GtkTextLayout
1794
1795         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
1796         values
1797         (gtk_text_iter_get_child_anchor): new function
1798
1799         * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
1800         default handler for the changed signal, which calls
1801         gtk_text_buffer_set_modified(), instead of just always emitting
1802         changed then calling set_modified() manually. I guess this is
1803         maybe more flexible. It seems logical.
1804
1805 Fri Nov  3 08:58:38 2000  Tim Janik  <timj@gtk.org>
1806
1807         * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
1808         now.
1809
1810         * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
1811
1812 Thu Nov  2 14:10:51 2000  Owen Taylor  <otaylor@redhat.com>
1813
1814         * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
1815         been marked static.
1816
1817 2000-11-02  Havoc Pennington  <hp@redhat.com>
1818
1819         * gtk/testgtk.c (create_labels): had a test backward
1820
1821         * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
1822         fields, so the dest GC ends up with the correct clip origin, 
1823         etc. Fixes a bug where colored labels didn't redraw 
1824         properly.
1825
1826 2000-11-02  Alexander Larsson  <alexl@redhat.com>
1827
1828         * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
1829         gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
1830         gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
1831         Add last argument to t_type_register_static call.
1832         
1833         * gdk/linux-fb/gdkdrawable-fb2.c:
1834         Add last argument to t_type_register_static call.
1835         export the get_image drawable virtual function.
1836
1837         * gdk/linux-fb/gdkimage-fb.c:
1838         Add last argument to t_type_register_static call.
1839         rename gtk_image_get to _gdk_fb_get_image and
1840         export it for use by gdkdrawable-fb2.
1841
1842         * gdk/linux-fb/gdkprivate-fb.h:
1843         export _gdk_fb_get_image.
1844
1845         * gdk/linux-fb/gdkselection-fb.c:
1846         Add new api call stubs.
1847
1848         * gtk/Makefile.am:
1849         Missing ( in linux-fb part.
1850
1851         * modules/linux-fb/Makefile.am:
1852         Must link with gdk_pixbuf or get unresolved symbol.
1853
1854 2000-11-01  Havoc Pennington  <hp@pobox.com>
1855
1856         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use 
1857         GTK_TYPE_TEXT_ITER and BOXED marshallers
1858
1859         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
1860
1861         * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
1862         
1863         * gtk/gtk-boxed.defs: add GtkTextIter
1864
1865         * gtk/gtkmarshal.list: Add marshallers for text widget that 
1866         properly use OBJECT and BOXED
1867
1868 2000-11-01  Havoc Pennington  <hp@redhat.com>
1869
1870         * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
1871
1872         * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
1873         before returning it. 
1874         
1875 2000-11-01  Havoc Pennington  <hp@redhat.com>
1876
1877         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1878         Clip the rectangle to be rendered to the drawable, since
1879         get_from_drawable() requires a region within the drawable
1880
1881 2000-11-01  Havoc Pennington  <hp@redhat.com>
1882
1883         * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
1884         from coordinates.
1885
1886 Wed Oct 25 20:10:57 2000  Owen Taylor  <otaylor@redhat.com>
1887
1888         * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
1889         it isn't NULL.
1890
1891 2000-11-01  Havoc Pennington  <hp@pobox.com>
1892
1893         * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
1894         on a label
1895         (gtk_label_finalize): unref the attr list if any.
1896
1897         * gtk/testgtk.c (create_get_image): close test on second click
1898         (make_message_dialog): close dialog if it exists
1899
1900         * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
1901
1902         * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
1903         gdk-pixbuf
1904
1905         * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
1906         from Pango markup format
1907         (gtk_label_set_markup_with_accel): ditto but with accelerator
1908         parsing
1909
1910         * gtk/gtkimage.c (gtk_image_expose): reformatting.
1911
1912         * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
1913         reflect current state of GDK - use gdk_drawable_get_colormap, etc.
1914         Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to 
1915         call gdk_window_get_origin().
1916
1917         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
1918         implement GDK_PIXBUF_ALPHA_FULL
1919         
1920 Wed Nov  1 03:43:42 2000  Tim Janik  <timj@gtk.org>
1921
1922         * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
1923         g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
1924         g_signal_handlers_disconnect_matched to block/unblock and disconnect
1925         multiple handlers respectively, instead of only treating the
1926         first handler found (bug reported by owen).
1927
1928 Mon Oct 30 19:23:50 2000  Jonathan Blandford  <jrb@redhat.com>
1929
1930         * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
1931
1932         * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
1933
1934         * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
1935         gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
1936         gtk/gtktreeviewcolumn.h: Fixed inline docs.
1937
1938         * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
1939         widget.  Needs writing someday.
1940
1941         * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
1942         the docs.
1943
1944 2000-10-30  Havoc Pennington  <hp@redhat.com>
1945
1946         * gtk/gtktextview.h, gtk/gtktextview.c:
1947         Rename delete_at_cursor delete_from_cursor, and 
1948         move to move_cursor.
1949
1950 2000-10-30  Havoc Pennington  <hp@redhat.com>
1951
1952         * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
1953         gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
1954         gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
1955         gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
1956         gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
1957         gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
1958         gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
1959         gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
1960         gtktexttypes.h, gtktextview.c, gtktextview.h:
1961
1962         Massive reindentation and reformatting. Arg alignment and comments
1963         still need fixing in various places.
1964
1965 2000-10-30  Havoc Pennington  <hp@redhat.com>
1966
1967         * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
1968         to be named insert_at_cursor and delete_at_cursor so C++ can
1969         handle them.
1970
1971 2000-10-28  Tor Lillqvist  <tml@iki.fi>
1972
1973         * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
1974         to get a double directory separator in case the home directory
1975         ends with one. This would cause trouble especially on Windows,
1976         where the path will be confused with the syntax for an an UNC
1977         (network share) path \\server\share\path.
1978         (gtk_rc_add_initial_default_files): Ditto.
1979
1980 Sat Oct 28 02:33:09 2000  Robert Brady  <robert@suse.co.uk>
1981
1982         * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
1983
1984         * gtk/gtktextview.c: Use correct marshallers.
1985
1986 Fri Oct 27 17:56:26 2000  Jonathan Blandford  <jrb@redhat.com>
1987
1988         * gtk/gtkliststore.c: Not sure how this ever worked.  Fixed it to
1989         use new iter stuff, and added all the appropriate signals et al.
1990
1991         * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
1992         code is internal to gtk only.
1993
1994 2000-10-28  Tor Lillqvist  <tml@iki.fi>
1995
1996         * gtk/gtk.def
1997         * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
1998         glib-genmarshal etc.
1999
2000 Fri Oct 27 20:15:00 2000  Tim Janik  <timj@gtk.org>
2001
2002         * gtk/Makefile.am: added dependancies for testtextbuffer which broke
2003         parallel builds.
2004
2005 Fri Oct 27 18:51:44 2000  Tim Janik  <timj@gtk.org>
2006
2007         * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
2008
2009 2000-10-27  Robert Brady  <robert@suse.co.uk>
2010
2011         * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic), 
2012         en_GB (British), ia (Interlingua).
2013
2014 2000-10-26  Havoc Pennington  <hp@redhat.com>
2015
2016         * gtk/gtktextiter.c (my_strrstr): fix constness warning
2017
2018         Fixed output of:
2019         nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
2020         
2021         * gtk/gtktextsegment.c (char_segment_new): rename
2022         (_char_segment_new_from_two_strings): rename
2023         (_toggle_segment_new): rename
2024         
2025         * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
2026         (make_clipboard_widget): make it static
2027         (text_get_func): static
2028         (text_clear_func): static
2029
2030         * gtk/gtkcolorsel.c (adjustment_changed): make this function
2031         static
2032         (hex_changed): make it static
2033         (hsv_changed): make it static
2034         (opacity_entry_changed): make it static
2035
2036         * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
2037         (toggle_segment_check_func): rename with _gtk
2038
2039         * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
2040         (_widget_segment_new): rename
2041         (_widget_segment_add): rename
2042         (_widget_segment_remove): rename
2043         (_widget_segment_ref): rename
2044         (_widget_segment_unref): rename
2045
2046         * gtk/gtktextmark.c (_mark_segment_new): Rename
2047         _gtk_mark_segment_new   
2048
2049 2000-10-26  Havoc Pennington  <hp@redhat.com>
2050
2051         * gtk/gtkmarshal.list: add new marshallers used by the text widget
2052         * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
2053         types
2054
2055         * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
2056         marshaller types
2057
2058         * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
2059         gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
2060         license on these files.
2061
2062         * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
2063         work.
2064
2065         * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to 
2066         runtime random number different for each tree, instead of 
2067         a constant I made up.
2068
2069 Thu Oct 26 07:36:16 2000  Tim Janik  <timj@gtk.org>
2070
2071         * gtk/Makefile.am: buncha cleanups, kludged build sources
2072         dependencies with a Makefile: oldest-source-stamp dependancy
2073         for the moment. automake is really fighting us here, with
2074         intentionally not allowing user-defined rules or dependancies
2075         prior to it's -include $(DEP_FILES) statement. sucks rocks!
2076
2077         * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
2078         to public headers. tehy have a comment stating that they are
2079         "semi-public" aren't included by gtk.h and if enums popup there,
2080         they can be /*< skip >*/-ed.
2081
2082         * gtk/gtktextlayout.h: 
2083         * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
2084         added LGPL... <SIGH>
2085
2086 Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
2087
2088         * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
2089         GtkTreeIter.  Added iterators everywhere.
2090
2091         * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
2092
2093         * gtk/gtktreeviewselection.c: Changed to use the iterators.
2094
2095         * gtk/gtktreestore.c: Changed to use the iterators.
2096
2097         * gtk/gtkliststore.c: Commented out the code.  Will convert to
2098         iterators tomorrow.
2099
2100         * gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
2101         iterators tomorrow.
2102
2103         * gtk/treestoretest.c: Changed to use iterators.
2104
2105         * demos/testgtk/main.c: Moved to use the new iterator system.
2106
2107 Thu Oct 26 02:10:32 2000  Tim Janik  <timj@gtk.org>
2108
2109         * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
2110         localization misbehaviour.
2111
2112         * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
2113         a useless type without copy/free.
2114
2115         * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
2116         of GTK_TYPE_CTREE_NODE.
2117
2118 Thu Oct 26 00:51:52 2000  Tim Janik  <timj@gtk.org>
2119
2120         * gtk/gtksignal.c:
2121         (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
2122         applicable.
2123
2124         * gtk/gtk-boxed.defs (GtkSelectionData): specify
2125         gtk_selection_data_copy and gtk_selection_data_free
2126         do GtkSelectionData work as params in signals.
2127
2128 Wed Oct 25 20:47:41 2000  Tim Janik  <timj@gtk.org>
2129
2130         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
2131         implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
2132         couldn't they at least give it a non-standard name?
2133         
2134         * gtk/gtktextlayout.c: arg! yet another implementation of
2135         gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
2136
2137         * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
2138         gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
2139         home. now i know this _is_ a conspiracy.
2140
2141         * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
2142         ::state-changed.
2143
2144         * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove): 
2145         (gtk_accel_group_create_add): marshaller signature fixups.
2146
2147         * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
2148         pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
2149
2150         * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
2151         anymore.
2152
2153 Tue Oct 24 23:59:21 2000  Tim Janik  <timj@gtk.org>
2154
2155         * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
2156         due to the signal system changes, it wouldn't build currently. to
2157         be fixed soon.
2158
2159         * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
2160
2161         * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
2162         so it needs gtk_marshal_VOID__ENUM() instead of
2163         gtk_marshal_NONE__UINT().
2164
2165         * gdk/gdk*.c: adapted type registration functions.
2166
2167         * gtk/gtkbindings.c:
2168         * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
2169         gone.
2170
2171         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
2172
2173         * gtk/gtkobject.c:
2174         (gtk_object_destroy):
2175         (gtk_object_shutdown): fixed recursion guards. basically we have to
2176         catch the case where any of GObject.shutdown() or gtk_object_destroy()
2177         is called during ::destroy, and avoid recursion there.
2178
2179         * gtk/gtktypeutils.c:
2180         * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
2181         boxed_copy/boxed_free. this needs a more general solution based on a
2182         publically installed code-generator utility.
2183
2184         * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
2185         glib's gobject has support for that now.
2186         define GtkSignalMarshaller in terms of GSignalCMarshaller.
2187
2188 Mon Oct 23 09:36:42 2000  Tim Janik  <timj@gtk.org>
2189
2190         * gtk/gtksignal.[hc]:
2191         * gtk/gtkmarshal.[hc]:
2192         * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
2193         compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
2194         removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
2195         care of that.
2196
2197         * *.c: marshaller name fixups.
2198
2199         * gtk/gtkmarshal.list: added a comment briefing the format.
2200
2201 Sun Oct 22 23:14:39 2000  Tim Janik  <timj@gtk.org>
2202
2203         * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
2204         compatibility macros here now. more specifically, most of
2205         the API is preserved (yes, _most_, nonwithstanding the
2206         following exceptions listed, the API is stil lHUGE ;)
2207         things that got removed completely:
2208         GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
2209         gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
2210         gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
2211         gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
2212         gtk_signal_remove_emission_hook().
2213         non-functional functions variants:
2214         gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
2215         the GtkCallbackMarshal argument to gtk_signal_connect_full() is
2216         not supported anymore.
2217         (gtk_signal_compat_matched): new internal function to aid
2218         implementation of the compatibility macros, it  provides
2219         functionality to block/unblock/disconnect handlers based
2220         on func/data.
2221
2222         * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
2223
2224         * *.c: adaptions to new type registration API signatures.
2225
2226 Fri Oct 20 15:26:33 2000  Tim Janik  <timj@gtk.org>
2227
2228         * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
2229
2230 2000-10-25  Robert Brady  <robert@suse.co.uk>
2231
2232         * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
2233         gdk_property_delete): If window == NULL, assume the root window.
2234         (restoring the behaviour that was in 1.2).
2235         
2236         * gtk/testtext.c (save_buffer): Allow creation of new files when
2237         saving.
2238
2239         (fill_file_buffer): Don't die if a UTF-8 sequence is split across
2240         calls to read().
2241
2242 2000-10-25  Tor Lillqvist  <tml@iki.fi>
2243
2244         * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
2245
2246         * gdk/win32/gdkdrawable-win32.c
2247         * gdk/win32/gdkimage-win32.c
2248         * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
2249         X11 backend.
2250
2251         * gdk/win32/gdkcc-win32.c
2252         * gdk/win32/gdkcolor-win32.c
2253         * gdk/win32/gdkfont-win32.c
2254         * gdk/win32/gdkinput-win32.c
2255         * gdk/win32/gdkmain-win32.c
2256         * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
2257
2258 2000-10-24  Havoc Pennington  <hp@redhat.com>
2259
2260         * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
2261         it a static function
2262
2263         * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
2264         redraw text when a tag is applied to it.
2265
2266         * gtk/gtktexttag.c (gtk_text_tag_affects_size)
2267         (gtk_text_tag_affects_nonsize_appearance): private functions to
2268         see if a tag requires various kinds of redraw/layout to be queued
2269         up.
2270
2271         * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
2272
2273         * gtk/testtext.c (fill_example_buffer): Put the cursor 
2274         at the start of the buffer, so search works by default
2275
2276         * gtk/gtktextiter.c (lines_match): init match_start always
2277
2278         * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
2279         function, get iter at a line + a byte index
2280
2281         * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
2282         to set byte position within a line
2283         (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
2284
2285 2000-10-23  Havoc Pennington  <hp@redhat.com>
2286
2287         * gtk/testtext.c: Re-enable the "find" dialog
2288
2289         * gtk/testgtk.c: Add test for gdk_drawable_get_image
2290         
2291         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
2292         the arguments to gdk_draw_drawable were in the wrong order
2293         (gdk_window_paint_init_bg): This function was ignoring the
2294         init_region, instead of clipping to it, so the entire backing
2295         pixmap was cleared on every begin_paint()
2296         (gdk_window_begin_paint_region): Hmm, the same list-walking bug
2297         was in here again, the loop kept using the same GtkWindowPaint
2298         over and over.
2299         (gdk_window_begin_paint_region): Fix a bug where we had two
2300         x_offset instead of x_offset and y_offset
2301
2302         * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
2303         before we get the image.
2304         (gdk_draw_drawable): get the composite before we draw the drawable.
2305         (gdk_drawable_real_get_composite_drawable): default
2306         get_composite_drawable implementation that returns the drawable 
2307         itself
2308
2309         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
2310         get_composite_drawable virtual function
2311
2312         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
2313         list-walking bug
2314
2315         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
2316         make this work if the source drawable is a GdkDrawableImplX11
2317         instead of a public drawable type. This is really broken; the
2318         problem is that GdkDrawable needs a virtual method get_xid(), but
2319         of course that doesn't work in practice. Enter RTTI.
2320
2321         Also, improve mismatched depth message.
2322
2323         * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
2324         GdkPixmap
2325
2326         * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
2327         install _gdk_x11_get_image as our implementation of get_image
2328         
2329         * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
2330         _gdk_x11_get_image and export for use in gdkdrawable-x11.c
2331
2332         * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
2333         gdk_drawable_get_image
2334
2335         * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
2336
2337         * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
2338         get_image
2339
2340         * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
2341         trailing semicolon after for loop
2342
2343 Mon Oct 23 12:07:57 2000  Owen Taylor  <otaylor@redhat.com>
2344
2345         * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
2346         where font_desc for widget's context lagged widget's font_desc by
2347         one step.
2348
2349 2000-10-22  Tor Lillqvist  <tml@iki.fi>
2350
2351         * gdk/win32/gdkgc-win32.c
2352         * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
2353
2354         * gtk/makefile.mingw.in
2355         * gtk/gtk.def: Updates.
2356
2357         * gtk/testgtk.c: sleep() is called _sleep in MS's C
2358         library.
2359
2360         * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
2361
2362         * gtk/makefile.msc: Remove
2363
2364         * gtk/makefile.msc.in: New file, like makefile.mingw.in.
2365
2366         * gtk/Makefile.am: Add it.
2367
2368         * configure.in: Generate it.
2369
2370         * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
2371         * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
2372         something even if not implemented, to satisfy picky MSVC.
2373
2374         Patches by Hans Breuer:
2375         
2376         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
2377         SetBkMode() and SetTextAlign() before calling
2378         pango_win32_render().
2379
2380         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
2381         Set hcliprgn to NULL after destroying it.
2382         (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
2383
2384         * gdk/win32/gdkgeometry-win32.c
2385         (_gdk_windowing_window_queue_antiexpose): More effective
2386         implementation.
2387
2388         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
2389         depth as default, not the visual's.
2390
2391         * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
2392         against empty title.
2393
2394         * gdk/win32/gdkprivate-win32.h: Define a helper macro,
2395         IMAGE_PRIVATE_DATA.
2396
2397         * gdk/win32/gdkimage-win32.c: Use it.
2398
2399 2000-10-22  Robert Brady  <robert@suse.co.uk>
2400
2401         * configure.in: Check for bind_textdomain_codeset
2402
2403         * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset 
2404         present, make use of it.
2405
2406         Add a translatable string "default:LTR" which, if translated
2407         to "default:RTL", will cause the default direction to be
2408         Right-to-Left.
2409
2410         * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget 
2411         direction if marked as flippable.
2412
2413         * gtk/gtkhscale.c: Mark widget as flippable.
2414         
2415 2000-10-04  Havoc Pennington  <hp@redhat.com>
2416
2417         * gtk/testgtk.c (create_buttons): create some stock buttons
2418         with the default accel group
2419         (create_image): test some new GtkImage features
2420         (make_message_dialog): test GtkMessageDialog
2421         (create_modal_window): fix someone's bizzarro indentation
2422
2423         * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement 
2424         GTK_WIN_POS_CENTER_ON_PARENT. 
2425         Add "destroy with parent" setting, which means the window goes
2426         away with its transient parent.
2427         (gtk_window_get_default_accel_group): get the default accel group
2428         for the window.
2429         (gtk_window_set_destroy_with_parent): set/unset destroy with
2430         parent flag
2431         (gtk_window_read_rcfiles): invalidate icon set caches
2432         after reloading rcfiles 
2433
2434         * gtk/gtkenums.h (GtkWindowPosition): add
2435         GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog 
2436         on its parent window when the dialog is mapped for the first time.
2437
2438         * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add 
2439         a simple message dialog class
2440         
2441         * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event 
2442         handler to emit response signal, and maybe later it would
2443         honor a hide_on_delete flag - though that isn't there yet.
2444         Set border width on the vbox to 2, so we get some padding.      
2445         Use a button box for the action area.
2446         (gtk_dialog_key_press): synthesize a delete event if Esc
2447         is pressed and the GtkWidget key press handler didn't 
2448         handle the escape key.
2449         (gtk_dialog_new_with_buttons): new function creates a dialog
2450         with some default buttons in it.
2451         (gtk_dialog_add_action_widget): add an activatable widget
2452         as a button in the dialog - you can also add a non-activatable
2453         widget by accessing the action area directly.
2454         (gtk_dialog_add_button): add a simple button - stock ID or 
2455         label - to the action area
2456         (gtk_dialog_response): emit response signal
2457         (gtk_dialog_run): block waiting for the dialog, return 
2458         the response. Override normal delete_event behavior, so that 
2459         delete_event does nothing inside gtk_dialog_run().
2460
2461         * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
2462         emitted when an action widget is clicked or the dialog gets
2463         delete_event
2464
2465         * gtk/gtk.h: add gtkmessagedialog.h
2466
2467         * gtk/Makefile.am: add gtkmessagedialog.[hc]
2468
2469 2000-10-18  Havoc Pennington  <hp@redhat.com>
2470
2471         * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug 
2472         where any number of empty lines would get skipped
2473
2474         * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
2475         edge.
2476
2477         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
2478         warning about invalid iterators (explain more thoroughly)
2479         (gtk_text_iter_in_region): rename gtk_text_iter_in_range
2480
2481         * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
2482         big
2483
2484         * demos/*.c: Add error handling
2485
2486         * gtk/gtktextbuffer.c: don't modify const iterators
2487
2488         * gtk/gdk-pixbuf-loader.c: Add full error handling here
2489
2490         * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
2491         on file load
2492
2493         * gtk/gtkiconfactory.c: Update to reflect addition of error
2494         handling to gdk-pixbuf loaders
2495
2496 Wed Oct 18 11:14:05 2000  Owen Taylor  <otaylor@redhat.com>     
2497
2498         * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
2499         move to new modularized testgtk.
2500
2501 2000-10-17  Jonathan Blandford  <jrb@redhat.com>
2502
2503         * gtk/gtktreeview.c: Draw the arrows correctly.
2504
2505         * gtk/gtktreemodel.c: Added user docs.
2506
2507         * gtk/gtk.h: remove gtktreedatalist.h.
2508
2509         * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
2510         parent when generating my type.
2511
2512         * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
2513         POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
2514
2515 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
2516
2517         * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
2518         GtkTreeModel from object to interface.
2519
2520 2000-10-16  Havoc Pennington  <hp@redhat.com>
2521
2522         * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing 
2523         compilation
2524
2525 2000-10-16  Jonathan Blandford  <jrb@redhat.com>
2526
2527         * gtk/gtktreeselection.c: Add API documentation to all public
2528         functions.
2529
2530         * gtk/gtktreeviewcolumn.c: Added API documentation to all public
2531         functions.
2532
2533 2000-10-15  Jonathan Blandford  <jrb@redhat.com>
2534
2535         * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
2536         proposed by Guy Harris <gharris@flashcom.net>.  Also, added API
2537         docs to all public functions.
2538
2539         * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
2540         gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
2541         gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
2542         gtk/gtktreemodel.h, gtk/gtktreeselection.c,
2543         gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
2544         issue.
2545
2546 2000-10-14  Robert Brady  <robert@suse.co.uk>
2547
2548         * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
2549
2550 2000-10-12  Jonathan Blandford  <jrb@redhat.com>
2551
2552         * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
2553         values other then G_TYPE_STRING.
2554         * gtk/gtktreeselection.c: Minor commenting updates.
2555         * gtk/gtktreeview.c: Format updates.
2556
2557 2000-10-09  Tor Lillqvist  <tml@iki.fi>
2558
2559         * README.win32: Update.
2560
2561         * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
2562         lines that had been deleted by mistake (?).
2563
2564         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
2565         also the case fg==white and bg==black (but still not randomly
2566         coloured cursors). Thanks to Wolfgang Sourdeau.
2567
2568         * gdk/win32/*.c: Silence gcc -Wall.
2569
2570         * gtk/gtk.def: Add missing entry points.
2571
2572         Fixes by Hans Breuer:
2573
2574         * gdk/makefile.msc
2575         * gdk/win32/makefile.msc: Update.
2576
2577         * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
2578         some MSVC thing, presumably), cause breakpoint on failures. Add
2579         GDK_NOR case. Call g_log_set_always_fatal.
2580
2581         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
2582         should be pased by reference.
2583         
2584         * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
2585         
2586         * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
2587
2588         * gdk/win32/gdkevents-win32.c
2589         * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
2590
2591         * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
2592         implementation object.
2593
2594         * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
2595         not just windows.
2596         
2597         * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
2598         Use the wrapper object.
2599         
2600 2000-10-06  Havoc Pennington  <hp@redhat.com>
2601
2602         * Makefile.am (SRC_SUBDIRS): contrib subdir
2603
2604         * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
2605         so it can be used in Xlib version
2606
2607         * demos/testpixbuf.c (update_timeout): error checking from 1.0
2608         tree
2609
2610         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
2611         change from 1.0 tree that returns first frame of animation
2612         if the loaded file is an animation.
2613
2614         * contrib: add new directory to hold stuff that comes with GTK+
2615         but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
2616         
2617         * configure.in: add contrib/*
2618
2619 2000-10-05  Havoc Pennington  <hp@redhat.com>
2620
2621         * demos/testpixbuf-save.c: add pixbuf save test
2622
2623         * demos/Makefile.am: add testpixbuf-save.c
2624
2625 2000-10-05  Jonathan Blandford  <jrb@redhat.com>
2626
2627         * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
2628         GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
2629         * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
2630         * gtk/gtktreeselection.[ch]: Replaced
2631         "node_selected"/"node_unselected" signal with "selection_changed"
2632         signal.
2633
2634 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
2635
2636         * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
2637         tree widget.
2638
2639 2000-10-04  Jonathan Blandford  <jrb@redhat.com>
2640
2641         * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
2642         drawing.
2643
2644 Wed Oct  4 15:52:15 2000 Owen Taylor  <otaylor@redhat.com>
2645
2646         * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
2647         Move list pointer forwards before removing item from
2648         list. (Crash reported by Salmaso Raffaele)
2649
2650         * gdk/gdkwindow.h: Remove spurious trailing ,
2651
2652         * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
2653         dependencies on uninstalled libraries, sorry folks.
2654
2655 2000-10-04  Havoc Pennington  <hp@redhat.com>
2656
2657         * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
2658         gtk/gtkiconfactory.c: Fix copyrights    
2659
2660         * demos/testpixbuf.c: add inline pixbuf test
2661         
2662 Mon Sep 25 15:05:17 2000  Owen Taylor  <otaylor@redhat.com>
2663
2664         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
2665         Add gdk_window_iconify.
2666
2667         * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
2668         (gdk_window_set_geometry_hints): Add win_gravity
2669         to geometry structure.
2670
2671         * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
2672         Implement _NET_WM_PING.
2673
2674         * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
2675         Set _NET_WM_PID on the client leader.
2676
2677         * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
2678         Handle UTF-8 better.
2679
2680         * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
2681         UTF-8 better, set _NET_WM_NAME as well. Only set
2682         icon name if it hasn't previously been explicitely 
2683         set.
2684
2685 2000-10-03  Havoc Pennington  <hp@redhat.com>
2686
2687         * gtk/testtextbuffer.c: clean up trailing whitespace,
2688         add extensive tests for tag toggle iteration.
2689         
2690         * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan 
2691         distance
2692
2693         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
2694         optimize case where the tag root is on level 1
2695         (gtk_text_line_previous_could_contain_tag): attempt to implement
2696         (gtk_text_line_next_could_contain_tag): Abstract out node_compare
2697         functionality
2698
2699         * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
2700         Implement this, though not very efficiently.
2701
2702         * gtk/gtktextiterprivate.h: reformat
2703
2704         * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
2705         iterator
2706
2707         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
2708         this to properly revalidate the iterators.
2709
2710         * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
2711         properly at the end of the line (and therefore on empty lines)
2712
2713         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
2714         maybe we should return a value...
2715
2716 2000-10-03  Tor Lillqvist  <tml@iki.fi>
2717
2718         * config.h.win32: Guard definition of alloca(). glib.h now handles
2719         that.
2720
2721         * gdk/gdk.def
2722         * gtk/gtk.def: Add new entry points.
2723
2724         Changes just to make GTK+ build without errors on Win32. No hope
2725         of it working in its current state, though...:
2726         
2727         * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings.  Add
2728         some functions from the X11 backend, just to make GTK+ build.
2729
2730         * gdk/makefile.mingw.in
2731         * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
2732         number. Add new object files.
2733
2734         * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
2735         GetMessageTime to get timestamp (where on X11 uses
2736         gdk_x11_get_server_time()).
2737
2738 2000-10-02  Havoc Pennington  <hp@pobox.com>
2739
2740         * gtk/gtktextview.c: text_window_* weren't static and should have
2741         been.
2742         Start work on child widgets; not yet complete, syncing to 
2743         office computer.
2744
2745         * gtk/gtktextchild.h: change this to contain a public interface,
2746         starting work on child interfaces.
2747         * gtk/gtktextchildprivate.h: move private interfaces here
2748
2749         * gtk/Makefile.am: update to reflect gtktextchildprivate.h
2750
2751         * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
2752         gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c, 
2753         gtk/gtktextmark.c: copyright notices
2754
2755         * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
2756         internal functions      
2757
2758         * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
2759         internal function
2760
2761         * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
2762         Reformatting    
2763
2764 2000-09-30  Havoc Pennington  <hp@pobox.com>
2765
2766         * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
2767         NULL start/end pointers
2768
2769         * gtk/gtktextbuffer.c: Write some docs
2770         (gtk_text_buffer_get_selection_bounds): Allow start/end to be
2771         NULL, so you can just check whether there's a selection.        
2772
2773         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to 
2774         cleanup_line or segments_changed ourselves, it gets done 
2775         in unlink_segment
2776
2777         * gtk/gtktextmark.h:
2778         s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
2779         
2780         * gtk/gtktextsegment.h: Clean up some indentation and naming mess
2781
2782         * gtk/gtktextmark.c: delete some more old Tk cruft
2783
2784         * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
2785         mark before removing it, so we can emit MARK_DELETED with a valid
2786         pointer.
2787         (gtk_text_buffer_mark_set): hold ref across signal emission
2788
2789         * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
2790         whining about attempts to delete special marks
2791
2792         * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
2793         underscore, since it's internal.
2794
2795         * gtk/gtktextbuffer.h: Remove find_string prototype, this is 
2796         now implemented in terms of iterators in gtktextiter.h
2797
2798         * gtk/gtktextbuffer.c (gtk_text_buffer_set_text): 
2799         New function, destructively sets contents of buffer. Also 
2800         a convenient way to clear the buffer by setting text to ""
2801
2802         * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
2803         multiline string literal
2804
2805         * gtk/testtext.c (text_changed_callback): Redraw line numbers if
2806         text changes.
2807
2808         * gtk/gtktextiter.c (forward_char): Return FALSE if new location 
2809         is not dereferenceable
2810         (gtk_text_iter_forward_lines): fix return value
2811
2812 2000-09-29  Havoc Pennington  <hp@redhat.com>
2813
2814         * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
2815
2816         * gtk/gtktextview.c: Implement drag thresholding; change functions 
2817         that set border window size to have nicer name
2818         (gtk_text_view_mark_set_handler):  Fix this to have the 
2819         right signature.
2820
2821         * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
2822
2823         * gtk/testtext.c: Update with API changes, put line numbers on 
2824         both sides.
2825         
2826         * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
2827         with this
2828
2829         * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
2830         pixbuf; delete a big block of #if 0 Tk code
2831
2832         * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace 
2833         insert_pixmap with insert_pixbuf
2834
2835 2000-09-29  Martin Baulig  <baulig@suse.de>
2836
2837         * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
2838         confusion with the GdkPixbuf of the GNOME 1.x platform.
2839
2840 2000-09-29  Havoc Pennington  <hp@pobox.com>
2841
2842         * gtk/gtktextview.c: Implement the side windows.
2843
2844         * gtk/testtext.c: Implement simple line numbering in the 
2845         left side window; seems to make scrolling sloooow. Oops.
2846         Also, cursor blink is for some reason causing redraws
2847         of the line numbers. Should investigate...
2848
2849 2000-09-28  Havoc Pennington  <hp@redhat.com>
2850
2851         * gtk/gtktextview.c: Set up infrastructure to deal with lots of 
2852         scrolling child windows, and draw focus rectangle properly.
2853         
2854         (gtk_text_view_buffer_to_window_coords):
2855         Coordinate transformation to deal with all these freaking windows
2856         and offsets
2857         (gtk_text_view_window_to_buffer_coords): transform the other way
2858
2859         * gtk/testtext.c (create_buffer): Update to match Pango API change
2860
2861         * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
2862         anonymous tags
2863         (foreach_unref): don't emit remove signal from finalize, just
2864         set tag's parent to NULL
2865
2866 2000-09-26  Havoc Pennington  <hp@redhat.com>
2867
2868         * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
2869         Fix some warnings       
2870
2871 2000-09-26  Havoc Pennington  <hp@redhat.com>
2872
2873         * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
2874         headers into the private header list
2875
2876         * Makefile.am (pkgconfig_DATA): install pkg-config files
2877
2878         * configure.in: add pkg-config files
2879
2880         * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
2881
2882         * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
2883         outstanding icon caches on theme change.
2884
2885         * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three 
2886         important types:
2887
2888         (GtkIconSource): Specification for creating a pixbuf 
2889         appropriate for a direction/state/size triplet from 
2890         a source pixbuf or filename
2891
2892         (GtkIconSet): List of GtkIconSource objects that are used to
2893         create the "same" icon (e.g. an OK button icon), and cache for
2894         rendered icons
2895
2896         (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
2897         up the icon set for a given stock ID.  GTK maintains a stack of
2898         GtkIconFactory to search, and applications or libraries can add
2899         additional icon factories on top of the stack
2900         
2901         * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse 
2902         the set of GtkIconSource specified for a given stock ID into 
2903         a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the 
2904         RcStyle, under the specified stock ID.
2905
2906         * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
2907         render_icon used to derive a GdkPixbuf from a GtkIconSource.
2908         This allows people to theme how prelight, insensitive, etc. are
2909         done.
2910
2911         (gtk_style_lookup_icon_set): Look up a stock ID in the list of
2912         icon factories for a style, and return the resulting 
2913         icon set if any.
2914
2915         (gtk_style_render_icon): Render an icon using the render_icon 
2916         method in the GtkStyleClass.
2917
2918         * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon): 
2919         Use the style for a given widget to look up a stock ID, get the
2920         icon set, and render an icon using the render_icon method 
2921         of the style
2922
2923         * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
2924         (contains information about a stock item), the built-in stock item
2925         IDs, and functions to add/lookup stock items.
2926
2927         * gtk/stock-icons/*: Stock icons that come with GTK
2928
2929         * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
2930         a button based on a GtkStockItem
2931         (gtk_button_new_accel): Takes a uline string and accel group, and
2932         installs the accelerator.
2933
2934         * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
2935         image-display widget.
2936
2937 2000-09-25  Havoc Pennington  <hp@redhat.com>
2938
2939         * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
2940
2941         * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data): 
2942         Fix a bug when removing node data, we didn't properly 
2943         re-splice the linked list after removing the data.
2944
2945         * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through 
2946         GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
2947
2948         * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
2949
2950         * gtk/gtktextlayout.c (set_para_values): Set tab array 
2951         for the layout from the GtkTextTag.
2952
2953         * gtk/gtktexttypes.h: delete tab and search cruft, 
2954         remove g_convert() in favor of GLib version
2955
2956         * gtk/gtktexttypes.c: remove tab implementation from here,
2957         move to Pango
2958
2959         * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement 
2960         tab stuff using new PangoTabArray from Pango
2961
2962         * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
2963         unused border_width stuff
2964
2965 Thu Sep 14 12:21:12 2000  Owen Taylor  <otaylor@redhat.com>
2966
2967         * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
2968         glib) and now useless utf_to_latin1() latin1_to_utf()
2969
2970         * gtk/gtktextview.[ch]: Change ::move_insert and
2971         ::delete_text action signals to ::move and ::delete;
2972         create the signals with the right enumeration type,
2973         not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
2974         C-v bindings, change Home, End to move to beginning/end
2975         of line, Add C-Home C-End to move to beginning/end
2976         of buffer. Change ::cut_text to ::cut_clipboard, etc;
2977         combine ::scroll_text into ::move; use new GtkSelectionData
2978         functions to simplify DND text handling.
2979         
2980         * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
2981         deletion enumerations here, rename enumeration values to 
2982         be consistently plural.
2983
2984         * gtk/gtktextbuffer.c: Use new clipboard interfaces
2985         for cut/copy/paste and primary selection.
2986
2987         * gtk/gtktextbuffer.[ch]: Remove excess time and
2988         'interactive' arguments from cut/copy/paste;
2989         rename cut to cut_clipboard, etc; remove
2990         gtk_text_buffer_get_clipboard_contents().
2991
2992         * gtk/gtktextlayout.[ch]: Add 
2993         gtk_text_layout_move_iter_to_line_end() to move the iter to 
2994         line ends.
2995
2996         * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
2997         Functions to set or get a UTF-8 string on the selection
2998         data.
2999
3000         * gtk/gtkclipboard.[ch]: New, simplified selection handling
3001         interfaces.
3002
3003         * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
3004         created widgets - one of these is useless if we don't.
3005
3006         * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
3007         a public function clear all targets registered for the
3008         widget.
3009
3010         * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
3011         Never call gtk_widget_realize() - that was just asking
3012         for bizarre side-effects.
3013
3014         * gtk/gtkselection.c (gtk_selection_owner_set): Call
3015         gdk_selection_owner_set even if the widget is the
3016         same so that we reliably update the timestamp on
3017         the server.
3018
3019         * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a 
3020         gdk_x11_get_server_time() function.
3021         
3022         * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
3023         gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
3024         Add some tricky filtering on serial numbers for
3025         selection clear events to fix up long-standard
3026         race condition FIXME's in gtkselection.c.
3027
3028         * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
3029         routines to convert from utf8 to compound text or
3030         STRING and from a text property to UTF-8.
3031
3032         * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add 
3033         a convenience function gdk_get_current_event_time().
3034
3035         * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
3036         and free selection_data->data properly
3037
3038 Sat Sep  9 10:23:53 2000  Owen Taylor  <otaylor@redhat.com>
3039
3040         * gtk/gtkthemes.c: Remove some unecessary includes.
3041
3042 2000-09-08  Jonathan Blandford  <jrb@redhat.com>
3043
3044         * gtk/gtktextdisplay.c
3045         * gtk/gtktextlayout.c
3046         * gtk/gtktexttag.c
3047         * gtk/gtktexttag.h
3048         * gtk/testtext.c: Change the overstrike property to strikethrough,
3049         to closer match pango.
3050
3051 Fri Sep  8 14:28:00 2000  Owen Taylor  <otaylor@redhat.com>
3052
3053         * gtk/gtktextview.c: Fix up visibility so that focus,
3054         cursor_visible and blink interact properly.  Reenable cursor blink
3055         which had been roughly disabled. Make blink and focus
3056         properly per-view.
3057
3058         * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
3059         Add a flag for whether to display insertion cursor and
3060         a function to set the flag.
3061
3062         * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
3063         get_line_y() to get_line_yrange(), to be a bit more generally
3064         useful.
3065
3066 Thu Sep 07 20:54:33 2000  George Lebl <jirka@5z.com>
3067
3068         * gtk/gtkmenu.c:  in gtk_menu_set_submenu_navigation_region
3069           do stop_navigating_submenu, to clear last timeout properly.
3070           Also in gtk_menu_motion_notify move ignore_enter above
3071           the conditional to make it always happen as suggested by Owen
3072
3073 2000-09-07  Tor Lillqvist  <tml@iki.fi>
3074
3075         * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
3076
3077         * gdk/win32/gdkwin32.h: Add more definitions missing from the free
3078         w32api headers.
3079
3080         * gdk/win32/gdkprivate-win32.h: Add a couple of missing
3081         declarations.
3082
3083         * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
3084         (gdk_win32_get_colormap): A line had been deleted by mistake.
3085
3086         * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
3087         (gdk_event_translate): Handle more virtual keycodes to be able to
3088         generate GDK events for Control-comma, Control-period, etc.
3089
3090         * gtk/gtk.def: Add some missing entry points.
3091
3092 Thu Sep  7 11:47:02 2000  Owen Taylor  <otaylor@redhat.com>
3093
3094         * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
3095         Doc comment fixing. (Mostly non-matching parameter names.)
3096
3097         * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
3098         comments a little to avoid looking like a doc comment.
3099
3100         * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
3101         GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
3102         conversions be changed to GError?)
3103
3104         * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT): 
3105         Move private #defines into .c file.
3106
3107         * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
3108         order of argument addition, remove duplicates.
3109
3110         * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
3111         parent class is FrameClass, not BinClass.
3112
3113         * gtk/gtk.h: Add gtkinvisible, which was missing.
3114         (It's occasionalyl useful for client apps, if seldom.)
3115
3116         * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
3117         #define.
3118
3119 Wed Sep  6 09:53:15 2000  Owen Taylor  <otaylor@redhat.com>
3120
3121         * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
3122         coordinates when creating window, instead of GDK-space
3123         coordinates. (Avoid BadValue on too large windows.)
3124
3125 2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3126
3127         * configure.in (use_mmx_asm): Remove conftest* after use along the
3128         lines of AC_TRY_COMPILE.        
3129         
3130         * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
3131         of g_dirname, which is deprecated.
3132         (gtk_rc_parse_any): Removed calls to
3133         g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
3134
3135         * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
3136         Removed calls to g_hash_table_{freeze,thaw}, as they are
3137         deprecated now.
3138
3139         * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
3140         instead of g_basename.
3141         
3142 2000-09-04 Elliot Lee <sopwith@redhat.com>
3143         
3144         * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
3145         ANSI warning.
3146
3147 Sun Sep 03 00:47:08 2000  George Lebl <jirka@5z.com>
3148
3149         * gtk/gtkwidget.h:  Add some documenting comments about 
3150           GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
3151           just as owen said on irc.
3152
3153         * gtk/gtkwindow.c (gtk_window_set_default):  Don't blindly
3154           set HAS_DEFAULT.  Only set it if there isn't another window
3155           holding it (a focus window which RECEIVES_DEFAULT) and only unset
3156           it if the widget is not the focused window with RECEIVES_DEFAULT.
3157           This fixes weird double default bugs in dialogs which has things
3158           call gtk_window_set_default at times.
3159
3160 Fri Sep  1 22:39:07 2000  Owen Taylor  <otaylor@redhat.com>
3161
3162         * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
3163         Nils Barth and David Santiago to improve submenu
3164         navigation. The patch does this by creating a triangular
3165         region from the point where the pointer leaves the
3166         menu to the submenu.  While the pointer is in
3167         that region and a timeout has not expired, events 
3168         that would cause the active submenu to change are
3169         ignored.
3170
3171 Fri Sep  1 15:34:46 2000  Owen Taylor  <otaylor@redhat.com>
3172
3173         * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
3174         moving a toplevel window immediately after sizing it would
3175         result in it being sized back to the old size since 
3176         impl->width, impl->height aren't updated until we hear
3177         back from the server. There is still a (longstanding) bug
3178         here that gdk_window_get_size() will give the wrong size
3179         until we do hear back.
3180
3181 2000-08-31  Havoc Pennington  <hp@redhat.com>
3182
3183         * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h, 
3184         gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c, 
3185         gtk/gtktexttagprivate.h, gtk/gtktextview.c:
3186         Rename GtkTextStyleValues to GtkTextAttributes
3187
3188 2000-08-31  Havoc Pennington  <hp@pobox.com>
3189
3190         * gtk/gtktextbtree.c (GtkTextBTree): cache end line, 
3191         for rapid testing whether an iterator is the end iterator
3192         (gtk_text_btree_new): init end line cache
3193         (gtk_text_line_is_last): use fast cached line to 
3194         see if we're the last line.
3195         (get_last_line): use cached line here too, should 
3196         speed up some random unrelated code.
3197         
3198 2000-08-30  Havoc Pennington  <hp@pobox.com>
3199
3200         * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
3201         signals.
3202
3203         * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
3204         delete_text signals. This allows the signals to be used for
3205         implementing undo.
3206
3207         * gtk/gtktextbuffer.c: Change signal handler signatures; 
3208         provide "interactive" argument when emitting insert_text or
3209         delete_text signal.
3210         
3211 2000-08-30  Havoc Pennington  <hp@pobox.com>
3212
3213         * gtk/gtktextbuffer.c: Docs
3214
3215 Fri Aug 25 12:16:15 2000  Owen Taylor  <otaylor@redhat.com>
3216
3217         * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
3218         from switch statements, since Tor removed the enumeration
3219         value.
3220         
3221         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
3222         s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
3223
3224 2000-08-29 Elliot Lee <sopwith@redhat.com>
3225         * */*.h: Use G_GNUC_CONST.
3226
3227 2000-08-27  Havoc Pennington  <hp@pobox.com>
3228
3229         * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
3230         minor indentation fixes, inserted some FIXME about stuff I
3231         realized was broken while documenting it.
3232         (gtk_text_iter_get_pixmap): allow out params to be NULL, following
3233         GTK convention  
3234
3235 Tue Aug 22 12:33:24 2000  Owen Taylor  <otaylor@redhat.com>
3236
3237         * gtk/testgtk.c (create_styles): Fix double free of
3238         font desc.
3239
3240 Mon Aug 21 22:39:18 2000  Owen Taylor  <otaylor@redhat.com>
3241
3242         * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
3243         
3244         * gtk/testgtk.c (create_styles): Add a test for modifying
3245         the style through gtk_widget_modify_*.
3246
3247         * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
3248         a function to get the current modifier style.
3249
3250         * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
3251         of the passed in GtkRcStyle instead of ref'ing it.
3252
3253         * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
3254
3255 2000-08-20  Tor Lillqvist  <tml@iki.fi>
3256
3257         * gdk/gdkimage.h
3258         * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
3259         shared memory image+pixmap GdkImage type, or
3260         gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
3261         I am dropping that.
3262
3263         * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
3264         actually call gtk_init_abi_check(), passing also
3265         sizeof(GtkWindow). Ditto for gtk_init_check(). 
3266
3267         * gtk/gtk.def
3268         * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
3269         New functions, used to check that the GTK+-using code has been
3270         compiled using the correct compiler and switches. In particular,
3271         with gcc one has to use the -fnative-struct switch as GTK+ is
3272         compiled with that.
3273
3274 Fri Aug 18 17:27:46 2000  Owen Taylor  <otaylor@redhat.com>
3275
3276         * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
3277         ->prev fields when merging lists. (Found simultaneously
3278         by Pawel Salek and Jakub Jelinek)
3279
3280 2000-08-12  Tor Lillqvist  <tml@iki.fi>
3281
3282         * gdk/gdk.def
3283         * gtk/gtk.def: Add missing entries.
3284
3285         * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
3286         OUT_TT_ONLY_PRECIS, try to get a TrueType font.
3287
3288         * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
3289         function. Dummy implementation at this point.
3290
3291         * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
3292         rules. Undefine GTK_COMPILATION when compiling the test programs.
3293         
3294         * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
3295
3296 2000-08-11  Tor Lillqvist  <tml@iki.fi>
3297
3298         * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
3299         to convert back and forth from UTF-8 and the "system" (or "current
3300         locale") charset when necessary. Indentation/spacing cleanup.
3301
3302 2000-08-10  Havoc Pennington  <hp@redhat.com>
3303
3304         * Makefile.am (snapshot): Change the format of the snapshot
3305         version to match glib
3306
3307         * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
3308         from EXTRA_DIST since it doesn't seem to exist
3309
3310 2000-08-10  Tor Lillqvist  <tml@iki.fi>
3311
3312         * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
3313         version of the directory name (not the UTF-8 one) when building
3314         the path name to stat().
3315
3316 2000-08-03  Elliot Lee  <sopwith@redhat.com>
3317
3318         * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
3319         PANGO_ATTR_SHAPE set.
3320
3321 Thu Aug  3 09:17:06 2000  Owen Taylor  <otaylor@redhat.com>
3322
3323         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
3324         Peter Osterlund to simplify the code while keeping the
3325         functionality the same.
3326
3327 Wed Aug  2 14:57:38 2000  Owen Taylor  <otaylor@redhat.com>
3328
3329         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
3330         is_viewable() test further inside the function, since removing the 
3331         window from the redraw list without clearing ->update_area
3332         was also very broken.
3333
3334 2000-08-02  Tor Lillqvist  <tml@iki.fi>
3335
3336         * configure.in: Check for <unistd.h>.
3337
3338 2000-08-01  Martin Baulig  <baulig@suse.de>
3339
3340         * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
3341         to display the message that this is a development version of GTK+.
3342
3343 Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
3344
3345         * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
3346         was depending on widget->allocation instead of the width of text_area,
3347         which was incorrect for subclasses like GtkSpinButton.
3348
3349         * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
3350         with width == 1 tests that should be width == -1.
3351
3352 Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
3353
3354         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken, 
3355         (broken, Elliot, every single window blank on X) custom code with call
3356         to gdk_window_is_viewable() which a) prevents code duplicate and
3357         b) works. 
3358
3359 2000-07-31  Elliot Lee  <sopwith@redhat.com>
3360
3361         * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
3362         to get the GDK_PARENT_ROOT() macro to work.
3363         * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
3364         * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
3365         of, windows that aren't shown.
3366         * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
3367         pointer grab stuff.
3368
3369 Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
3370
3371         * docs/gtkfaq.sgml docs/gtk-faq.sgml:
3372           s/gtk_main_iteration/g_main_iteration/
3373
3374           Did this already in change:
3375                 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
3376           don't know how it got reverted.
3377
3378 2000-07-31  Stanislav Brabec  <utx@penguin.cz>
3379
3380         * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
3381         gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
3382
3383         * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
3384         not gdk_pixbuf.
3385
3386 2000-07-30  Pablo Saratxaga <pablo@mandrakesoft.com>
3387
3388         * configure.in,po/{sp,sr}.po: Added Serbian files
3389
3390 2000-07-30  Tor Lillqvist  <tml@iki.fi>
3391
3392         * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
3393
3394         * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
3395         Remove the g_pipe_readable_msg stuff. Not needed with new GLib
3396         GIOChannel implementation.
3397
3398         * gdk/win32/gdkinput.c
3399         * gdk/win32/gdkpango-win32.c: Update license name here, too.
3400
3401         * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
3402         definition to match prototype.
3403
3404         * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
3405
3406 2000-07-27  Elliot Lee  <sopwith@redhat.com>
3407
3408         * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
3409         function, to allow handling image formats that cannot be detected
3410         by looking at content alone.
3411
3412 Thu Jul 27 13:13:21 BST 2000  Tony Gale <gale@gtk.org>
3413
3414         * docs/tutorial/*.gif *.jpg *.eps
3415           Update these to the same look-n-feel.
3416           Why does including images in DocBook suck so badly?
3417
3418 Thu Jul 27 05:06:29 2000  Tim Janik  <timj@gtk.org>
3419
3420         * gtk/gtktable.c: applied patch from Phil Thompson
3421         <phil@river-bank.demon.co.uk> that enables space settings for
3422         the last row/columns as well.
3423
3424 Wed Jul 26 12:59:31 2000  Tim Janik  <timj@gtk.org>
3425
3426         * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
3427         updates the license headers to the GNU Lesser General Public License,
3428         as well as updating the copyright year to 2000.
3429
3430 2000-07-26  Robert Brady  <rwb197@zepler.org>
3431
3432         * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
3433           and po/Makefile, was installing and looking for them under gtk20
3434           and gtk2 respectively.
3435
3436 2000-07-25  Havoc Pennington  <hp@redhat.com>
3437
3438         * gtk/testtext.c: Comment out some stuff that depends on the rest
3439         of my patches.
3440
3441 2000-07-25  Havoc Pennington  <hp@redhat.com>
3442
3443         * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
3444         buffer
3445
3446 2000-07-25  Havoc Pennington  <hp@redhat.com>
3447
3448         * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
3449         widget changes.
3450
3451         * gtk/gtktextview.h: To be consistent with usage of "line"
3452         throughout the API to mean "newline-terminated thingy", change
3453         MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
3454         to MOVEMENT_LINE.
3455
3456         (GtkTextView): Add flags for default editability, and whether to
3457         show the cursor. Add functions to get/set that. Add 
3458
3459         (gtk_text_view_get_iter_location): new function
3460
3461         * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
3462         gtktextlayout.h
3463         (g_convert): Add g_convert temporarily, will go in glib in a bit
3464         
3465         * gtk/gtktexttagtable.h: include gtktexttag.h, and define
3466         GtkTextTagTableForeach instead of brokenly using GHFunc.
3467         Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
3468
3469         * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
3470         moved to public header.
3471
3472         * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
3473         "invisible", since "elide" was a bad name.
3474         (gtk_text_tag_get_priority): Added
3475
3476         (GtkTextStyleValues): put this in public header, along with
3477         functions to use it.
3478
3479         * gtk/gtktextmarkprivate.h: Include more headers, since we no
3480         longer include gtktextbtree.h.
3481
3482         * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
3483         gtk_text_mark_deleted
3484
3485         * gtk/gtktextlayout.h: Don't include the "really private" headers,
3486         only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
3487         to make this possible. Now we only need to install
3488         gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
3489         (However the Makefile.am isn't changed yet because of the
3490         logistics of merging gtk-hp-patches piecemeal)
3491
3492         * gtk/gtktextiterprivate.h: include btree header, so it compiles;
3493         rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
3494         gtk_text_iter_get_line is now used in the public API for a
3495         different purpose.
3496
3497         * gtk/gtktextiter.h: Clean up function names to be more
3498         consistent. Always call char offset "offset" and byte index
3499         "index". A "line" is always a line number. 
3500
3501         (gtk_text_iter_is_last): new function, more efficient than 
3502         the existing way to check
3503         (gtk_text_iter_is_first): new function, also more efficient
3504
3505         (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
3506
3507         (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from 
3508         gtk_text_iter_forward_char, etc.
3509
3510         (gtk_text_iter_forward_to_tag_toggle): Renamed from
3511         forward_find_tag_toggle, since this isn't a linear search
3512
3513         (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
3514
3515         (gtk_text_iter_forward_search, gtk_text_iter_backward_search): 
3516         New functions, search for a buffer substring.
3517
3518         * gtk/gtktextbuffer.h: Add fields to store whether a paste is
3519         interactive and default editable (since we need to store that info
3520         until we receive the selection data).
3521
3522         Remove all the _at_char and at_line etc. versions of functions;
3523         only have iterator versions.
3524
3525         Add _interactive() versions of functions, that consider the
3526         editability of text. (FIXME add interactive flag to the 
3527         insert/delete signals per Darin's suggestion)
3528
3529         (gtk_text_buffer_get_tag_table): new function, demand-creates the
3530         tag table if necessary
3531
3532         Remove declaration of gtk_text_buffer_get_iter_from_string
3533
3534         (_gtk_text_buffer_get_btree): private/internal function, added.
3535         
3536
3537         * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
3538         (gtk_text_line_is_last): new function
3539
3540 2000-07-25  Havoc Pennington  <hp@redhat.com>
3541
3542         * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
3543         using GtkProgressBar. See Changes-2.0.txt for details.
3544
3545         * gtk/gtkprogressbar.c: Add object arguments "fraction" and
3546         "pulse_step" which are the equivalent of
3547         gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
3548         Implement new API.
3549         
3550         * gtk/gtkprogress.h (struct _GtkProgress): Add a field
3551         (use_text_format) to mark whether text set on the progress bar is
3552         a format string. Deprecate entire GtkProgress interface.
3553
3554         * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
3555         (gtk_progress_build_string): make this a no-op if use_text_format
3556         is FALSE
3557
3558         * docs/Changes-2.0.txt: Describe progress bar changes.
3559
3560 2000-07-25  Tor Lillqvist  <tml@iki.fi>
3561
3562         * Makefile.am: Include the build directory.
3563
3564         * configure.in: Generate build/Makefile, build/win32/Makefile,
3565         gdk/, gdk/win32/, and gtk/makefile.mingw.
3566
3567         * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
3568         Add GETTEXT_PACKAGE.
3569         
3570         * gdk/gdk.def
3571         * gtk/gtk.def: Updates.
3572
3573         * gdk/gdkfont.h
3574         * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
3575         need them any longer.
3576
3577         * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
3578
3579         * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
3580         PANGOWIN32_LIBS and gdk_pixbuf.
3581
3582         * gdk/win32: Compiles, but no doubt doesn't work at all.
3583
3584         * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION. 
3585
3586         * gdk/win32/gdkinput.c: New file, temporarily.
3587         
3588         * gdk/win32/gdkinput-win32.h: New file
3589
3590         * gdk/win32/gdkinputprivate.h: Remove.
3591
3592         * gdk/win32/gdkpango-win32.c: New file.
3593
3594         * gtk/makefile.mingw.in: New file
3595
3596         * gtk/makefile.cygwin: Removed
3597         
3598         * gtk/Makefile.am: Update accordingly.
3599
3600         * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
3601         made externally visible.
3602
3603         * gtk/gtkmain.c: Use it.
3604         
3605         * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
3606         is enough.
3607
3608         * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
3609
3610 2000-07-24 Elliot Lee <sopwith@redhat.com>
3611         * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
3612         individual backends already.
3613         * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
3614         again. Yes, there really is a good reason for this, if you are using the gdkregion
3615         internals, and if you're not, why do you care?
3616         * gdk/gdkwindow.c: Fix inverted condition
3617         * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
3618         * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
3619         * gtk/gtkrange.c: Redraw trough when moving.
3620         * gtk/gtktypeutils.c: Fix warning by adding const cast.
3621         * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
3622
3623 2000-07-23  Tor Lillqvist  <tml@iki.fi>
3624
3625         * configure.in: Check for mkstemp and sigsetjmp. Output
3626         gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
3627
3628         More work on GDK for Win32. Still in an intermediate state.
3629
3630         * gdk/makefile.cygwin
3631         * gdk/win32/makefile.cygwin: Removed.
3632         
3633         * gdk/makefile.mingw.in
3634         * gdk/win32/makefile.mingw.in: New files.
3635
3636         * gdk/Makefile.am
3637         * gdk/win32/Makefile.am: Generate and distribute them.
3638
3639         * gdk/win32/gdkwindow-win32.h
3640         * gdk/win32/gdkdrawable-win32.h
3641         * gdk/win32/gdkpixmap-win32.h: New files.
3642
3643         * gdk/win32/gdkcolor-win32.c
3644         * gdk/win32/gdkcursor-win32.c
3645         * gdk/win32/gdkdrawable-win32.c
3646         * gdk/win32/gdkgc-win32.c
3647         * gdk/win32/gdkimage-win32.c
3648         * gdk/win32/gdkprivate-win32.h
3649         * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
3650         Rename fields and variables called xcursor, xid, etc (these names
3651         were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
3652
3653 Sat Jul 22 17:41:26 2000  Owen Taylor  <otaylor@redhat.com>
3654
3655         * gtk/gtkentry.[ch]: Fix some problems with vertical
3656         alignment.
3657
3658         * gtk/gtkentry.c (gtk_entry_find_position): Fix 
3659         char/byte confusion.
3660
3661 Sat Jul 22 11:16:05 2000  Owen Taylor  <otaylor@redhat.com>
3662
3663         * gtk/gtktextview.c (changed_handler): Fix bug where
3664         redraw wasn't being done properly when height of
3665         dirty region changed.
3666
3667         * demos/Makefile.am: Remove various references to
3668         -lgmodule
3669
3670 Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
3671
3672         * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
3673         PangoAttrShape to reserve space for pixmaps, add 
3674         GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
3675         in the display functions.
3676         
3677         * gtk/testgtk.c (create_layout): Set some more exotic
3678         scrolled window options
3679
3680         * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
3681         Add function to set the shadow type of a window, to allow
3682         putting a shadow around widgets such as GtkLayout or GnomeCanvas
3683         which don't draw their own frame.
3684
3685 Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
3686
3687         * docs/tutorial/package-db-tutorial.sh: New file for
3688           packaging DocBook format tutorial
3689
3690 Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
3691
3692         * docs/tutorial/gtk-tut.sgml: Minor updates
3693
3694         * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
3695
3696 2000-07-19  Tor Lillqvist  <tml@iki.fi>
3697
3698         * gtk/gtksignal.c: Fix C++ comment.
3699
3700         * gtk/gtkimmulticontext.c
3701         * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
3702         don't return value from void functions.
3703
3704         * gtk/gtk.def: Add gtk_rc_style_unref.
3705
3706 2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3707
3708         * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
3709         gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
3710         gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
3711         gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
3712         gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
3713         gtk/gtktypeutils.h: Include files outside of the extern "C"
3714         block. Makes some C++ compiler happy. Reported by Denis Vakatov
3715         <vakatov@peony.nlm.nih.gov>.
3716
3717 Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
3718
3719         * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
3720           Completes first pass. Hurrah!
3721
3722 Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
3723
3724         * docs/tutorial/gtk-tut.sgml: More clean ups.
3725
3726 Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
3727
3728         * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
3729         paint the background of the text area which was accidentally
3730         removed at some point.
3731
3732         * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]: 
3733           
3734          - Move most of the functionality from the theme vtable
3735            into GtkRcStyleClass and GtkStyleClass. The moved
3736            vtable functions were changed a bit in the move to
3737            work better in their new home.
3738
3739          - Get rid of the engine and engine_data fields from
3740            GtkRcStyle and GtkStyle; instead the theme
3741            engine derives theme-specific subclasses of GtkRcStyle
3742            and GtkStyle
3743
3744          - Add extra dlsym() found entry point to themes,
3745            theme_create_rc_style().
3746
3747         * gtk/gtkstyle.c: Copy xthickness, ythickness fields
3748         in gtk_style_real_copy.
3749
3750         * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
3751         to register a type associated with an engine. (The engine
3752         won't be unloaded as there is an instance of the type.)
3753
3754
3755 Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
3756
3757         * docs/tutorial/gtk-tut.sgml: Clean ups.
3758
3759 Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@gtk.org>
3760
3761         * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
3762           of cleaning up to do.
3763
3764 2000-07-15  Tor Lillqvist  <tml@iki.fi>
3765
3766         * gdk/testgdk.c: New file, quick hack to test backends for
3767         pixel-by-pixel correctness of the most simple graphic operations.
3768
3769 Fri Jul 14 20:30:25 2000  Owen Taylor  <otaylor@redhat.com>
3770
3771         * Really release 1.3.1
3772         
3773         * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
3774         include structure.
3775
3776 Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
3777
3778         * Released 1.3.1
3779
3780 Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
3781
3782         * gtk/gtktextlayout.c: use FALSE for size_only most
3783         of the time when calling gtk_text_layout_get_line_display()
3784         to avoid causing double reshapes when a redraw follows
3785         immediately after.
3786
3787 Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
3788
3789         * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
3790         appropriate region and gdk_window_process_updates() so trough
3791         updating doesn't lag behind the window being scrolled.
3792
3793         * gdk/gdkgc.c: Make parent_class pointer static.
3794          
3795 Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
3796
3797         * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
3798         include <string.h>.
3799          
3800         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
3801         cut-and-paste error in computing memory offset for 4 channels.
3802
3803 Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
3804
3805         * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
3806         gtk_rc_append_default_pixmap_path(), since it wasn't
3807         adding an interesting path and we don't have a meaningful
3808         default for this value.
3809
3810 Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
3811
3812         * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
3813         gtk-config to gtk-config-2.0 move gtk_.m4 to
3814         gtk-2.0.m4
3815
3816         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
3817         gdk/Makefile.am demos/Makefile.am: Change 
3818         library names to libgtk-1.3.la, etc, so that we
3819         can distinguish gtk-1.2 and gtk-2.0 on the linkline.
3820
3821         * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
3822         gdk/Makefile.am gdk/x11/Makfile.am
3823         Move include files into /usr/include/gtk-2.0, 
3824         /usr/lib/gtk-2.0/include/
3825          
3826         * autogen.sh acconfig.h configure.in gtk/gtkmain.c
3827         gtk/gtkintl.h: Change package for gettext from 
3828         gtk+ to gtk20. Put hack in autogen.sh to modify
3829         po/Makefile.in.in after gettextize to make this
3830         possible.
3831
3832         * gtk+.spec: Some updates, not tested.
3833
3834         * gdk-pixbuf/Makefile.am: Move loaders into
3835         $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
3836
3837         * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
3838         $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
3839         to THEMENAME/gtk-2.0/. Move engine directory  to
3840         $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
3841         
3842 2000-07-12  Tor Lillqvist  <tml@iki.fi>
3843
3844         Win32 changes, still doesn't build though.
3845
3846         * gdk/makefile.cygwin
3847         * gdk/win32/makefile.cygwin
3848         * gtk/makefile.cygwin: Updates.
3849
3850         * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
3851         default values for fg and bg pixel as X11 does (0 and 1), not
3852         black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
3853         Use 0 for pen width by default (treated as 1 anyway later, but for
3854         apps that might check the value in the GdkGC).
3855         (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
3856         interface to gdk_gc_predraw and _postdraw.
3857
3858         * gdk/win32/gdkwin32.h
3859         * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
3860
3861         * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
3862         extraneous semicolon.
3863
3864         * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
3865
3866         * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
3867         not the Win32 bitspixel value.
3868
3869         * gdk/win32/gdkcc-win32.c:
3870         * gdk/win32/gdkcolor-win32.c 
3871         * gdk/win32/gdkprivate-win32.h
3872         * gdk/win32/gdkwin32.h: Changes to make compilable, with new
3873         GDK object structure.
3874
3875 Tue Jul 11 20:59:35 2000  Tim Janik  <timj@gtk.org>
3876
3877         * docs/tutorial/gtk_tut_12.es.sgml (name): 
3878         * docs/tutorial/gtk_tut_it.sgml (name): 
3879         * docs/tutorial/gtk_tut_fr.sgml (name): 
3880         * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
3881         outdated email adress: s/timj@psynet.net/timj@gtk.org/.
3882
3883 Tue Jul 11 13:10:57 BST 2000  Tony Gale <gale@gtk.org>
3884
3885         * docs/faq/gtk-faq.sgml: Cleanup indenting and various
3886           small changes.
3887
3888 Tue Jul 11 08:04:58 2000  Tim Janik  <timj@gtk.org>
3889
3890         * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
3891         a bug here, never been here and never fixed anything ;(
3892         (don't segfault if tree->root_tree is NULL, which happens prior
3893         to widget realization, but puke instead).
3894
3895 Tue Jul 11 06:38:42 2000  Tim Janik  <timj@gtk.org>
3896
3897         * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
3898         add the necessary tokens.
3899
3900         * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
3901         (gtk_rc_style_to_style): copy thicknesses.
3902         (gtk_rc_init_style): apply thicknesses.
3903         (gtk_rc_parse_style): parse xthickness and ythickness.
3904
3905         * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
3906
3907         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): 
3908         (gdk_window_new): 
3909         (_gdk_windowing_window_init): 
3910         * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new): 
3911         (gdk_pixmap_create_from_data): 
3912         (gdk_bitmap_create_from_data): 
3913         (gdk_pixmap_new): 
3914         * gdk/x11/gdkimage-x11.c (gdk_image_get): 
3915         (gdk_image_new): 
3916         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): 
3917         * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new): 
3918         * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
3919         (gdk_colormap_get_system): 
3920         (gdk_colormap_new): 
3921         * gdk/gdkwindow.c (gdk_window_init): 
3922         * gtk/gtkstyle.c (gtk_style_new):
3923         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
3924         * gdk/gdkpixmap.c (gdk_pixmap_init): 
3925         * gtk/gtkrc.c (gtk_rc_style_new):
3926         use g_object_new() instead of g_type_create_instance() which
3927         is a private function for fundamental type implementations.
3928
3929 Thu Jul  6 16:12:14 2000  Owen Taylor  <otaylor@redhat.com>
3930
3931         * configure.in: Add check for db2html
3932
3933 Thu Jul  6 14:53:05 2000  Owen Taylor  <otaylor@redhat.com>
3934
3935         * gtk/gtktypeutils.c (gtk_type_init): Add a temporary 
3936         hack to set glib_debug_objects based on gtk_debug_flags.
3937
3938 Thu Jul  6 14:12:13 2000  Owen Taylor  <otaylor@redhat.com>
3939
3940         * INSTALL.in: Update the Prerequisites section.
3941
3942         * Makefile.am demos/Makefile.am docs/Makefile.am
3943         docs/tutorial/Makefile.am gdk/x11/Makefile.am
3944         gdk/linux-fb/Makefile.am: Dist fixes
3945
3946 Thu Jul  6 12:26:03 2000  Owen Taylor  <otaylor@redhat.com>
3947
3948         * NEWS: 10,000 foot view of 1.3.1 changes.
3949
3950 Thu Jul  6 11:54:03 2000  Owen Taylor  <otaylor@redhat.com>
3951
3952         * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
3953         gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
3954         gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
3955         gdk/x11/gdkmain-x11.c: 
3956
3957         Patch from George Lebl to add a GdkGrabStatus enumeration to use
3958         as a return value of gdk_*_grab(). Previously, we just
3959         returned the X11 values directly.
3960
3961 Thu Jul  6 11:27:44 2000  Owen Taylor  <otaylor@redhat.com>
3962
3963         * gdk/x11/Makefile.am: Patch from George Lebl to 
3964         install all the headers in the right place.
3965
3966 Tue Jul  4 13:13:01 BST 2000  Tony Gale <gale@gtk.org>
3967
3968         * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
3969           initial conversion to DocBook.
3970
3971 2000-07-04  Tor Lillqvist  <tml@iki.fi>
3972
3973         * README.win32: Improve a bit.
3974
3975         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
3976         WM_SYSCHAR, and other changes to get handling of Alt+nnn or
3977         Alt+0nnn on the numpad (used to enter characters by numeric code
3978         from current DOS or ANSI codepage) working correctly, as in other
3979         Windows apps.
3980
3981         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
3982         same argument validity tests as in X11 version.
3983         (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
3984
3985         * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
3986         definitions in case missing from headers.
3987
3988         * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
3989         destroy the window-specific cursor.
3990         (RegisterGdkClass): Use the global gdk_ProgInstance instead of
3991         calling GetModuleHandle(NULL).
3992         (gdk_window_set_cursor): Reworked to always copy the passed cursor
3993         with CopyCursor before setting it as the window-specific
3994         cursor. It is OK for the caller to destroy the GdkCursor (and thus
3995         also its Windows cursor) after calling this function. Destroy any
3996         previous window-specific cursor.
3997
3998 Mon Jul  3 17:54:49 2000  Owen Taylor  <otaylor@redhat.com>
3999
4000         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): 
4001         font charset is iso8859-1, not iso-8859-1.
4002
4003 Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
4004
4005         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
4006         Use g_get_charset() instead of g_get_codeset().
4007
4008         * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
4009         Comment out some strdup'ing functions to keep timj
4010         happy until we finish fighting this out.
4011
4012 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
4013
4014         * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
4015         <= width or height.
4016
4017         * gtk/gtktable.c (gtk_table_attach): Fix missed merge
4018         from 1.2 for parent/child states.
4019
4020         * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
4021         of typos.
4022
4023         * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
4024         event structures, replace with a generic axes field. Replace 
4025         deviceid/sourec with GdkDevice *device.
4026
4027         * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
4028         to extract particular axis use value from event. (Also
4029         can be used for normal X/Y.)
4030
4031         * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
4032         allow for arbitrary number of axes, namespace everything
4033         as gdk_device_*. Replace guint32 deviceid with GdkDevice *
4034         everywhere.
4035
4036         * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}: 
4037         Get rid of the gdk_input_vtable setup if favor of simply
4038         defining the functions in gdkinput-none/gxi/xfree.c in
4039         a similar fashion to the way that the port structure is 
4040         done.
4041
4042         * gtk/gtkdnd.c: Fix fields of synthesized button press event
4043         for new event structures. 
4044
4045         * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
4046         new device interfaces.
4047
4048 Sun Jul  2 18:19:50 2000  Owen Taylor  <otaylor@redhat.com>
4049
4050         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
4051         set the initial text.
4052
4053         * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
4054         gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
4055         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
4056         gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
4057
4058         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
4059         pango_layout_set_font_description to simplify.
4060
4061 Sun Jul  2 17:43:41 2000  Owen Taylor  <otaylor@redhat.com>
4062
4063         * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
4064         pango_layout_set_font_description to simplify.
4065
4066 Sun Jul  2 17:06:40 2000  Owen Taylor  <otaylor@redhat.com>
4067
4068         * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
4069         gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
4070         pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
4071
4072         * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
4073         PANGO_PIXELS() macro.
4074
4075 Sun Jul  2 15:24:41 2000  Owen Taylor  <otaylor@redhat.com>
4076
4077         * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
4078         that returns a PangoContext owned by the widget and updated to
4079         match future changes in the widget. Also, make 
4080         gtk_widget_create_pango_layout() use this context. If we ever
4081         add a ::changed signal to PangoContext, this will make things
4082         much more convenient. 
4083
4084         * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
4085         in the appropriate places instead of destroying the layouts and
4086         creating new ones.
4087
4088         * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
4089         in a few strategic places.
4090
4091 Sun Jul  2 14:37:58 2000  Owen Taylor  <otaylor@redhat.com>
4092
4093         * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call 
4094         gtk_widget_size_request() on reparented child, if one. Otherwise,
4095         queue_resize() on the child never results in it getting size-requested
4096         at all.
4097
4098         * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
4099         in option menus, so that (with luck) people won't copy it into
4100         their apps in the future.
4101
4102         * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
4103         to gtk_option_menu_calc_size. This isn't perfect, but should fix
4104         a lot of problems with changing the size of the menu's menu
4105         items after adding it to the option menu.
4106
4107         * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
4108
4109         * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
4110         the text direction for a widget changes.
4111
4112         * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
4113         ::direction_changed to get rid of various hacks.
4114
4115 Sun Jul  2 13:19:12 2000  Owen Taylor  <otaylor@redhat.com>
4116
4117         * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
4118         name.
4119
4120 Sun Jul  2 13:06:26 2000  Owen Taylor  <otaylor@redhat.com>
4121
4122         * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
4123         flag to the structure. Do not call XFreePixmap on pixmaps created
4124         by gdk_pixmap_foreign_new().
4125
4126 Sun Jul  2 12:45:50 2000  Owen Taylor  <otaylor@redhat.com>
4127
4128         * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
4129         value using GdkRGB functionality given GdkColormap and GdkColor.
4130         (name not final, waiting for inspiration.)
4131         
4132         * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
4133         set the foreground/background of a GC using the GC's colormap
4134         and GdkRGB. (name not final, waiting for inspiration.)
4135
4136         * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from 
4137         gdk_rgb_get_cmap(), put #define in gdkcompat.h.
4138
4139         * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
4140         gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
4141         purely a function of the corresponding colormap. Make
4142         gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
4143
4144         * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
4145         gdk_pixbuf_*create_from_xpm_* in terms of
4146         gdk_pixbuf_new_from_xpm_data(), move into platform independent
4147         code.
4148
4149         * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
4150         advantage of the new draw_rgb_32_image_dithalign.
4151
4152         * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
4153
4154         * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
4155         on each created GC.
4156
4157         * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
4158
4159         * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
4160         which we initialize from the drawable when the GC is created,
4161         if the drawable has a colormap.
4162
4163         * gdk/x11/gdkgc-x11.c: include string.h for memset.
4164
4165         * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
4166
4167         * gtk/gtklayout.[ch]: Remove unsed configure serial member.
4168
4169 Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
4170
4171         * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
4172         actually returning expose events, make sure to set
4173         the count field properly.
4174
4175         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
4176         accidentally reintroced bug which always cleared
4177         the graphics_exposures value. 
4178
4179 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
4180
4181         * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
4182
4183 Wed Jun 28 17:49:05 BST 2000  Tony Gale <gale@gtk.org>
4184
4185         * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
4186
4187 Wed Jun 28 13:31:55 BST 2000  Tony Gale <gale@gtk.org>
4188
4189         * docs/faq/gtk-faq.sgml: Start of Section 6.
4190
4191 Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
4192
4193         * configure.in: Put 1.3.1 in warning message, not 1.3.0.
4194         
4195         (Fixes problem with drawing childless frames. Pointed out
4196         by and a first patch from Anders)
4197         
4198         * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
4199         compute a child_allocation, even if we don't have a child.
4200
4201         * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
4202         Always chain to the parent's impl, even if we don't have a child.
4203
4204 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
4205
4206         * gdk/gdkrgb.c: If possible, create only a single shm segment and
4207         use multiple parts of it instead of creating a bunch of separate
4208         segments, since the maximum number of segments per system is not
4209         large. (This might be worth backporting to GTK+-1.2.x if we make a
4210         new release )
4211
4212         * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
4213         structure in preparation for per-colormap GdkRGB.
4214
4215         * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
4216         to False when we get EINVAL from shmget so that the caller of
4217         gdk_image_new can retry with a smaller segment size.
4218
4219 Mon Jun 26 13:01:16 BST 2000  Tony Gale <gale@gtk.org>
4220
4221         * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
4222
4223 Fri Jun 23 17:54:23 2000  Tim Janik  <timj@gtk.org>
4224
4225         * configure.in: make the current version number 1.3.1 (binary age 0,
4226         interface age 0).
4227         
4228         * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
4229         gtkcompat.h is all we want.
4230
4231         * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
4232         GLib primitive types. fixed g_type_register_fundamental() argument
4233         ordering.
4234
4235         * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
4236         compiles.
4237
4238         * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
4239         object code cleanup, comment trigraph fixes, etc...
4240
4241 2000-06-23  Havoc Pennington  <hp@redhat.com>
4242
4243         * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark 
4244         instead of making up a bogus name for first_para_mark
4245
4246         * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow 
4247         0 as a context ID
4248
4249 Thu Jun 22 17:43:51 BST 2000  Tony Gale <gale@gtk.org>
4250
4251         * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
4252
4253 2000-06-21  Havoc Pennington  <hp@pobox.com>
4254
4255         * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
4256         we didn't check window->bg_pixmap != GDK_NO_BG.
4257
4258         * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
4259         gdk-pixbuf
4260
4261 Thu Jun 22 14:02:19 BST 2000  Tony Gale <gale@gtk.org>
4262
4263         * docs/faq/gtk-faq.sgm: Move file to here.
4264           TODO: Update Makfile.am 
4265
4266 Thu Jun 22 13:41:09 BST 2000  Tony Gale <gale@gtk.org>
4267
4268         * docs/gtk-faq.sgm: Add Section 2
4269
4270 Thu Jun 22 08:43:45 BST 2000  Tony Gale <gale@gtk.org>
4271
4272         * docs/gtk-faq.sgm: New file. Start of DocBook
4273           version of the FAQ.
4274
4275 Wed Jun 21 23:04:17 2000  Owen Taylor  <otaylor@redhat.com>
4276
4277         * configure.in (GDK_PIXBUF_MAJOR): Define version
4278         numbers for GDK_PIXBUF_*, as they get substituted
4279         into a header file. Need to consider versioning
4280         for gdk-pixbuf more carefully later.
4281
4282 2000-06-21  Raja R Harinath  <harinath@cs.umn.edu>
4283
4284         Work with srcdir != builddir.   
4285         * demos/testanimation.c: Don't include "gdk-pixbuf.h".  Use
4286         <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
4287         * demos/testpixbuf.c: Likewise.
4288         * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
4289         * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h".  Use
4290         <gdk/x11/gdkx.h>.
4291         * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h".  Don't include
4292         "gdk-pixbuf.h".
4293         * demos/Makefile.am (INCLUDES): Remove unneeded directories.
4294
4295 Wed Jun 21 19:45:02 2000  Owen Taylor  <otaylor@redhat.com>
4296
4297         * TODO.xml: Change 1.4 version numbers to 2.0.
4298
4299 Wed Jun 21 19:29:08 2000  Owen Taylor  <otaylor@redhat.com>
4300
4301         * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
4302         fixups to GTK+ standard.
4303
4304 Wed Jun 21 16:38:13 2000  Owen Taylor  <otaylor@redhat.com>
4305
4306         * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
4307         gdk-pixbuf.
4308
4309         * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
4310         fixups for GObject.
4311
4312         * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of 
4313         gdk-pixbuf with GDK dependencies moved into GDK.
4314         
4315         * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
4316         move gdk-pixbuf-loader here until GObject has signals.
4317
4318         * demos/: New directory of demos. Move demos from
4319         gdk-pixbuf here.
4320
4321         * demos/pixbuf-init.c: Small bit of code to check for
4322         loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
4323         set GDK_PIXBUF_MODULEDIR appropriately.
4324
4325         * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
4326         define which no longer makes sense.
4327
4328 2000-06-21  Havoc Pennington  <hp@redhat.com>
4329
4330         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
4331         gtk_get_default_language
4332
4333         * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language): 
4334         new function to get the default language
4335
4336         * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c: 
4337         s/gtk_text_view_style_values/gtk_text_style_values/
4338
4339         * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
4340         Add a "language" field to tags.
4341
4342         (gtk_text_tag_set_arg): Fix bug in setting
4343         "bg_full_height_set" tag.
4344
4345 2000-06-21  Havoc Pennington  <hp@redhat.com>
4346
4347         * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
4348         in the interfaces
4349
4350         * gtk/gtktexttypes.c: Remove UTF functions, use glib 
4351         stuff instead when possible.
4352
4353         * gtk/gtktexttypes.h: Delete some unused constants
4354
4355         * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
4356         testtextbuffer.c: use glib instead of custom unicode routines
4357
4358 Wed Jun 21 12:50:58 2000  Owen Taylor  <otaylor@redhat.com>
4359
4360         * docs/es/: Removed mistakenly added generated sgml
4361
4362         * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
4363         Remove outdated info files.
4364
4365         * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
4366         Moved tutorial files into subdir
4367
4368         * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
4369         subdir.
4370
4371         * docs/man/gtk_button.pod: Remove. (contents will be
4372         integrated into gtk-reference button page.)
4373
4374         * configure.in docs/Makefile.am docs/tutorial/Makefile.am
4375         docs/faq/Makefile.am: Adjust for new organization
4376
4377 2000-06-21 Christopher Blizzard  <blizzard@redhat.com>
4378
4379         * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
4380         not $(MKINSTALLDIRS)
4381
4382 Wed Jun 21 12:24:28 2000  Owen Taylor  <otaylor@redhat.com>
4383
4384         * gtk/testgtk.c (create_text): Finish the job Elliot started
4385         of removing font setting test for text widget. (Since text widget
4386         and GdkFont are not deprecated, and cause portability problems.)
4387
4388 Wed Jun 21 11:41:43 2000  Owen Taylor  <otaylor@redhat.com>
4389
4390         * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
4391         gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
4392         Remove use of libunicode in favor of new GLib functions.
4393
4394         * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
4395         nano-x, framebuffer. The X11 include is just a hack until we get
4396         the necessary functions in gdkcolor.h, so there is no reason to
4397         add other includes of platforms.
4398
4399         * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert 
4400         window bigger than the screen change.
4401
4402         * gtk/testgtk.c: Revert some random changes from Elliot
4403         that had no particular point and were causing testgtkrc
4404         not to function correctly.
4405         
4406         * gdk/gdkregion-generic.h: Revert change from Elliot. Just
4407         because GdkSegment and GdkRegionBox have the same fields,
4408         it doesn't mean that 'typedef GdkSegment GdkRegionBox'
4409         results in clearer code.
4410
4411         * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
4412         gdk_input_translate_coordinates): Fix missed GdkObjectification
4413
4414 2000-06-18  Elliot Lee  <sopwith@redhat.com>
4415
4416         * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
4417         * gtk/gtk{plug,socket}.h: Missed commits from previous.
4418
4419 2000-06-20  Havoc Pennington  <hp@redhat.com>
4420
4421         * modules/linux-fb/Makefile.am: Make this compile
4422         without framebuffer enabled
4423
4424         * gdk/linux-fb/Makefile.am: Add conditional to not build
4425         framebuffer unless specified in configure
4426
4427         * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
4428         the size of the target instead of source if -1 was passed for
4429         width/height
4430
4431         * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix 
4432         width/height confusion.
4433
4434 2000-06-19  Havoc Pennington  <hp@redhat.com>
4435
4436         * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
4437         GDK_DRAWABLE_XID. In the future, we probably want to make it
4438         faster with G_DISABLE_CHECKS turned on.
4439
4440 2000-06-14  Havoc Pennington  <hp@redhat.com>
4441
4442         * gdk/Makefile.am: add gdkpixmap.c
4443
4444         * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
4445         s/gdk_image_init/_gdk_windowing_image_init
4446
4447         * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
4448         ref/unref
4449
4450         * gdk/gdkcolor.h: make GdkColormap a GObject subclass
4451
4452         * gdk/gdkcompat.h: remove GdkWindowType compat, since
4453         GdkWindowType is now non-deprecated; 
4454         change gdk_window_get_type() compat to be
4455         gdk_window_get_window_type().
4456
4457         * gdk/gdkdnd.h: make GdkDragContext a GObject.
4458
4459         * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
4460         virtual GObject. Make all functions call into the vtable.
4461         Move gdk_image_put() guts in here. Remove GdkDrawableType
4462         and gdk_drawable_get_type(), these are now GdkWindow-specific.
4463         draw_image, get_depth, get_size, set_colormap, get_colormap,
4464         get_visual added to the vtable.
4465         
4466         * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual 
4467         GObject. Virtualize everything. 
4468         (gdk_gc_new_with_values): remove check for destroyed window,
4469         because now GdkWindow::create_gc will check this.
4470         (gdk_gc_set_values): New function to set GC values, this 
4471         was already implemented but wasn't in the header
4472
4473         * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
4474
4475         * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
4476         _gdk_window_draw_image(), remove _gdk_windowing_window_class,
4477         remove _gdk_window_class; add _gdk_window_impl_get_type() and
4478         _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
4479         _gdk_windowing_window_init, rename gdk_image_init to
4480         _gdk_windowing_image_init.
4481         
4482         * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
4483         (gdk_draw_layout): Remove check for destroyed window, 
4484         because all the drawable methods already check it.
4485         
4486         * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
4487         Add gdkpixmap.c which contains implementation of GdkDrawable
4488         virtual table (by chaining to a platform-specific implementation
4489         object).
4490         
4491         * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP, 
4492         GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
4493         GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
4494         GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
4495         GdkColormapPrivate. 
4496
4497         * gdk/gdktypes.h: #include <glib-object.h>
4498
4499         * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
4500         Move most functionality to platform-specific implementation
4501         object. GdkWindow itself now handles the backing store, then
4502         chains to the platform-specific implementation.
4503         (gdk_window_get_window_type): return GdkWindowType of the window.
4504         (gdk_window_peek_children): New routine, returns the children of 
4505         a GdkWindow
4506         (gdk_window_get_children): Was in X11-specific code and did 
4507         XQueryTree. Changed to simply return a copy of window->children; 
4508         so it can go in cross-platform code.
4509         
4510         * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
4511
4512         * gdk/x11/gdkcolor-x11.c: implement X-specific parts of 
4513         GdkColormap; just changed to use the new private data instead
4514         of casting to GdkColormapPrivate.
4515
4516         * gdk/x11/gdkcursor-x11.c: added a couple typechecks to 
4517         gdk_cursor_new().
4518
4519         * gdk/x11/gdkdnd-x11.c: Change the way we access private fields 
4520         (private data member in the GObject). 
4521         (xdnd_manager_source_filter): Function had broken 
4522         error handling, fix it (use gdk_error_trap_push).
4523
4524         * gdk/x11/gdkdrawable-x11.c: This file now implements
4525         a base class for GdkWindowImplX11/GdkPixmapImplX11. This 
4526         base class is purely for the convenience of the X port,
4527         and not part of the interface to cross-platform GDK.
4528
4529         * gdk/x11/gdkevents-x11.c: Reflect various renamings.
4530         
4531         * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
4532         specific to X, and returned by the create_gc virtual method
4533         of GdkDrawableImplX11. 
4534         (gdk_x11_gc_set_dashes): Change this to take an array of gint8
4535         rather than gchar, this was also changed in the GdkGC vtable.
4536         (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
4537         mask is 0, return immediately, instead of checking every flag.
4538         This is faster, and keeps us from segfaulting if values is NULL
4539         and the mask contains some nonzero flags.
4540
4541         * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
4542         GdkWindow.
4543
4544         * gdk/x11/gdkglobals-x11.c: change type of grab window, since 
4545         GdkWindowPrivate is gone.
4546
4547         * gdk/x11/gdkim-x11.c: rename things that got renamed.
4548
4549         * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and 
4550         remove the image_put stuff that got transferred to GdkDrawable.
4551         
4552         * gdk/x11/gdkinput.c: renamings
4553
4554         * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
4555
4556         * gdk/x11/gdkpixmap-x11.c: GObject conversion
4557
4558         * gdk/x11/gdkprivate-x11.h: indentation fixes
4559
4560         * gdk/x11/gdkproperty-x11.c: renamings
4561
4562         * gdk/x11/gdkselection-x11.c: renamings
4563
4564         * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now 
4565         implements the platform-specific "impl" object.
4566         Moved gdk_window_get_children to gdk/gdkwindow.c
4567
4568         * gdk/x11/gdkx.h: Remove all the private structs and private datas
4569         that no longer exist. Add declaration of GdkGCX11 object here.
4570         Fix all the macros to still work. 
4571
4572         * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
4573         GdkDragContext from the boxed types since they are now GObjects.
4574
4575         * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
4576         moved xthickness/ythickness into the instance. GtkStyleClass
4577         functions are now in the standard vtable for GtkStyle, so you have
4578         to create a GObject subclass to write a theme engine.
4579         (gtk_style_copy): fixed a leaked PangoFontDescription
4580         (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
4581         can be the standard GObject function.
4582         
4583         * Throughout GTK:
4584         s/style->klass->[xy]thickness/style->[xy]thickness
4585         s/pango_layout_unref/g_object_unref/
4586
4587         * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
4588         
4589         * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of 
4590         accessing GDK internals.
4591
4592         * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of 
4593         accessing GDK internals.
4594
4595 2000-06-18  Elliot Lee  <sopwith@redhat.com>
4596
4597         * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
4598
4599         * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
4600         problem by calculating event position relative to the trough
4601         rather than the slider.
4602         * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
4603
4604         * gdk/gdkgc.h: Add GDK_NOR.
4605
4606         * configure.in, Makefile.am: Add modules top level dir
4607         * configure.in: Only use pangox library if building x11 target.
4608         * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
4609
4610 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
4611
4612         * gtk/gtkcolorsel.c: Change private class member to be named
4613         private_data throughout the file.
4614
4615         * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
4616         private_data to avoid clashing with keyword.
4617
4618 Fri Jun 16 22:24:22 2000  Christopher Blizzard  <blizzard@redhat.com>
4619
4620         * gdk/gdkdnd.h: Add comment to remove warning.
4621
4622 Sun Jun 18 15:35:35 2000  Pablo Saratxaga <pablo@mandrakesoft.com>
4623
4624         * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
4625         Byelorussian language; changed the Makefile and file names 
4626         to reflect that.
4627
4628 Mon Jun 12 16:58:40 2000  Owen Taylor  <otaylor@redhat.com>
4629
4630         * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
4631         rather than gdk_window_hide; this makes things work
4632         correctly if the window is programmatically hidden while
4633         iconified.
4634
4635 Sun Jun 11 12:46:19 2000  Owen Taylor  <otaylor@redhat.com>
4636
4637         * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
4638         cut and paste typo where wrong pixmap was being
4639         unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
4640
4641 Sun Jun 11 10:22:36 2000  Owen Taylor  <otaylor@redhat.com>
4642
4643         * gtk/gtkselection.c (gtk_selection_bytes_per_item):
4644         Add helper function to compute format / bytes 
4645         relationship. Use in a couple places to fix up
4646         errors which assume 8 * format.
4647
4648         * gtk/gtkselection.c (gtk_selection_request): Use 32
4649         rather than 8 * sizeof (GdkAtom), to work correctly
4650         on Alpha.
4651
4652 Thu Jun  8 21:54:51 2000 Christopher Blizzard  <blizzard@redhat.com>
4653
4654         * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
4655         libgtk.la
4656         (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
4657         versions
4658
4659         * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
4660         checking macros return NULL since the function has a return value.
4661
4662 Wed Jun  7 15:44:42 2000  Owen Taylor  <otaylor@redhat.com>
4663
4664         * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
4665         GTK+ from building at all.
4666
4667         * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
4668
4669 Mon Jun  5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
4670
4671         * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
4672         gtk/Makefile.am: make it possible to configure gtk for different
4673         targets on the same platform. The library name is now 
4674         libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
4675         flag. Only the x11 target compiles right now.
4676         * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
4677         gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
4678         * gdk/nanox/gdk*generic*: delete generic region code.
4679         * gdk/linux-fb/gdk*generic*: delete generic region code.
4680         * README.nanox: update information.
4681         
4682 Tue Jun  6 10:53:59 2000  Owen Taylor  <otaylor@redhat.com>
4683
4684         * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
4685         prepend not append. (Pointed out by Brett Hall.)
4686
4687 Tue Jun  6 01:59:57 2000  Owen Taylor  <otaylor@redhat.com>
4688
4689         * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
4690
4691 Mon Jun  5 16:00:09 2000  Owen Taylor  <otaylor@redhat.com>
4692
4693         * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
4694         need this later, and this makes sure that the atexit for
4695         glib gets called after that for GDK, so atexits are
4696         properly ordered for object leak checking.
4697
4698         * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
4699
4700         * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call 
4701         pango_x_shutdown_display()
4702
4703         * gtk/simple.c (main): Close window on destroy.
4704
4705 Mon Jun  5 11:50:02 2000  Owen Taylor  <otaylor@redhat.com>
4706
4707         * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
4708         to treat initial creation different from setting with 
4709         regards to the graphics-exposures parameter, so add a parameter
4710         indicating whether this is initial or not.
4711
4712 Mon Jun  5 13:29:31 2000  Owen Taylor  <otaylor@redhat.com>
4713
4714         * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
4715         to sort of work by adding an extra return_exposes arg
4716         to gdk_event_translate() - it might be better to simply
4717         deprecate the function altogether and force people to rewrite
4718         without it. gdk_window_scroll() handles most of it, and where
4719         gdk_window_scroll() doesn't work, simply redrawing more does.
4720
4721         * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
4722         assertion.
4723
4724         * gtk-config.in: Include PANGO_CFLAGS/LIBS.
4725
4726         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a 
4727         bunch of pretty much useless /* Print debugging info */ comments 
4728         which had drifted away from the code they were commenting.
4729
4730 2000-06-02  Havoc Pennington  <hp@pobox.com>
4731
4732         * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
4733         is in working order.
4734         
4735         * gtk/testtext.c: Change to reflect anonymous mark API
4736
4737         * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
4738
4739         * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
4740         field, which was unused.
4741
4742         * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
4743         saves some typing.
4744
4745         * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*   
4746
4747         * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
4748         flag on the insertion point and selection bound
4749
4750         Throughout, use GtkTextMark instead of GtkTextLineSegment, and 
4751         make mark-manipulation functions take a GtkTextMark* instead of a
4752         mark name.
4753         
4754         * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to 
4755         GtkTextMarkBody; will be used to detect attempts to delete
4756         the permanent marks (insert and selection bound)
4757
4758         * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer 
4759
4760 Fri Jun  2 12:56:01 2000  Owen Taylor  <otaylor@redhat.com>
4761
4762         * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
4763         flag to on.
4764
4765         * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event): 
4766         Honor DOUBLE_BUFFRED_FLAG
4767
4768         * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
4769         function to set the DOUBLE_BUFFERED flag.
4770
4771         * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
4772         or not exposes done on the widget should be double-buffered.
4773
4774         * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
4775         to be what would be expected. (Fixes problem with a
4776         g_return_if_fail() validating a TextDirection enumeration)
4777
4778 Thu Jun  1 23:05:13 2000  Owen Taylor  <otaylor@redhat.com>
4779
4780         * gtk/gtkwidget.c: Remove all references to 
4781         offscreen flag which was no longer used.
4782
4783         * gtk/gtkprivate.h (enum): Remove unused flags and compress.
4784
4785         * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
4786         for non-null label_widget->parent.
4787
4788         * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute 
4789         which no longer was used.
4790
4791         * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
4792
4793         * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
4794         for null arguments.
4795
4796         * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
4797         check for destroyed windows.
4798
4799 Thu Jun  1 13:48:45 2000  Owen Taylor  <otaylor@redhat.com>
4800
4801         * gtk/gtkimmulticontext.c: Add a finalize method and unref
4802         the slave context there.
4803
4804         * gtk/gtkinvisible.[ch]: Make reference counting behavior
4805         identical to GtkWindow.
4806
4807 Thu Jun  1 01:54:11 2000  Owen Taylor  <otaylor@redhat.com>
4808
4809         * Makefile.am gdk/gdkpango.c: Copy the layout render function from
4810         pangox to here, so we can write them independent of rendering
4811         system, using GDK primitives.
4812
4813         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
4814         gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
4815         since we have a rendering-system independent implementation in
4816         terms of draw_glyphs().
4817         
4818         * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
4819         function to render a single line.
4820
4821         * gdk/x11/gdkpango.c: Move the guts of this file mostly
4822         into ../gdkpango.c, which simplifies things, since we
4823         don't have to deal with raw X gc's.
4824
4825 Fri May 19 04:28:16 2000  Owen Taylor  <otaylor@redhat.com>
4826
4827         * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
4828         get the logical attributes for a given GtkTextLine.
4829
4830 Tue May 30 16:05:39 2000  Owen Taylor  <otaylor@redhat.com>
4831
4832         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
4833         g_locale_get_codeset() to g_get_codeset() change.
4834
4835 Tue May 30 15:03:19 2000  Owen Taylor  <otaylor@redhat.com>
4836
4837         * gtk/testcalendar.c (calendar_font_selection_ok): Use font
4838         descriptions.
4839
4840         * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
4841         the entry.
4842
4843         * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
4844         redoing (vastly simplifying) for Pango. Still needs quite
4845         a bit of work. (Size selection is currently poor. List of 
4846         predefined sizes is not a good idea, since all of these
4847         sizes won't necessarily be distinct.)
4848
4849 Tue May 30 13:50:19 2000  Owen Taylor  <otaylor@redhat.com>
4850
4851         * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
4852         CODESET results for LANG=C.
4853
4854 Mon May 29 15:49:10 2000  Owen Taylor  <otaylor@redhat.com>
4855
4856         * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
4857         which takes a stringized pango font description;
4858         ignore the older 'font' and 'fontset' declarations.
4859
4860         * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
4861         field with a GdkFont derived via gdk_font_from_description(),
4862         for compatibility. (Should we just remove it entirely?
4863         Probably too much compatibility breakage, but people
4864         should be migrating to the new Pango stuff as quickly
4865         as possible.)
4866
4867 Mon May 29 15:47:41 2000  Owen Taylor  <otaylor@redhat.com>
4868
4869         * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
4870
4871 Mon May 29 15:44:46 2000  Owen Taylor  <otaylor@redhat.com>
4872
4873         * gtk/gtkcalender.c: Roughly pango-ized. Really needs 
4874         redoing; there are some bugs in size allocation right
4875         now, the semi-existant distinction between header / day
4876         fonts was removed, but, with Pango, could actually
4877         be made functional in a nice way.
4878         
4879         * gtk/testcalender: Move calender from examples into this
4880         directory as a test program. (We really need to restrcture
4881         testgtk into a whole directory full of tests for every
4882         widget or functionality group, separated into multiple .c
4883         files.)
4884
4885 Mon May 29 15:19:56 2000  Owen Taylor  <otaylor@redhat.com>
4886
4887         * gtk/testgtk.c (file_exists): Fix stupid typo that
4888         was keeping RC file from being loaded.
4889
4890         * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
4891         RC file font code.
4892
4893 Mon May 29 14:31:27 2000  Owen Taylor  <otaylor@redhat.com>
4894
4895         * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
4896         Add function to load a GdkFont from a PangoFontDescription.
4897
4898 2000-05-29  Tor Lillqvist  <tml@iki.fi>
4899
4900         * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
4901         variable should be of type GdkEventPrivate.
4902
4903 Fri May 26 17:16:40 2000  Owen Taylor  <otaylor@redhat.com>
4904
4905         * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
4906         to have any widget for the label, use a GtkLabel widget
4907         to display the text. (Based partially on a patch from
4908         Anders Carlson.)
4909
4910         (Quite a bit of code reorganization - strip 90% of the
4911         guts out of gtkaspectframe and add a single virtual
4912         func to GtkFrameClass - compute_child_allocation.)
4913
4914 Fri May 26 12:00:02 2000  Owen Taylor  <otaylor@redhat.com>
4915
4916         * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
4917         (Removed clist->row_center_offset field because caching
4918         it wasn't saving time or code, added private function
4919         _gtk_clist_create_cell_layout()).
4920
4921 Wed May 24 15:59:37 2000  Owen Taylor  <otaylor@redhat.com>
4922
4923         * gtk/gtkaccellabel.c: Pangoized.
4924
4925         * gtk/[hv]ruler.c: Pangoized
4926
4927 Mon May 22 19:23:59 2000  Owen Taylor  <otaylor@redhat.com>
4928
4929         * gtk/gtkfilesel.c (gtk_file_selection_init):
4930         Use gtk_clist_set_column_auto_resize() to remove need
4931         need for manual column width computations.
4932
4933 Mon May 22 18:50:26 2000  Owen Taylor  <otaylor@redhat.com>
4934
4935         * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel, 
4936         ensuring Pango correctness, and considerably simplifying the
4937         code.
4938         
4939         * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
4940
4941         * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
4942         getting of numbers of lines.
4943
4944         * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
4945         to the actual requested width of the lable, not to the wrap
4946         width we set.
4947
4948         * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
4949
4950         * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
4951           gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
4952
4953         * gtk/gtktextview.c: Fix structure inheritance.
4954
4955         * gtk/gtkprogressbar.c: Pangoize.
4956
4957 Mon May 22 15:47:30 2000  Owen Taylor  <otaylor@redhat.com>
4958
4959         * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
4960         in a function.
4961
4962         * gtk/gtktextlayout.c (find_display_line_above): Fixed
4963         bug with computing line tops.
4964
4965         * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
4966
4967 Thu May 18 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
4968
4969         * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
4970         and y_offset coordinates to do what we need now. (The offset between
4971         buffer and layout coordinates has been reintroduced, but is a 
4972         bit different than before.)
4973
4974         * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
4975         handle the adjustments ourselves, and scroll as necessary using
4976         the new gdk_window_scroll().
4977         
4978         The advantage of this is that when we are incrementally revalidating,
4979         we are essentially rearranging things around the visible portion
4980         of the screen. With the old setup, the visible portion of the
4981         screen was moved around in the layout, so scrolling and redrawing
4982         to track that caused jumping of the display. Since we now
4983         control the scrolling ourselves, we can suppress this and
4984         only redraw when things actually change.
4985
4986 Thu May 18 18:47:25 2000  Owen Taylor  <otaylor@redhat.com>
4987
4988         * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
4989         the region not just redisplay it after-all, since we store the
4990         cursors in the LineDisplay. (Ugly interactions here between
4991         GtkLayout and GtkTextBTree here.)
4992         
4993         * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
4994
4995 Thu May 18 18:43:21 2000  Owen Taylor  <otaylor@redhat.com>
4996
4997         * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
4998         Added function to scroll contents of a window while keeping the
4999         window constant. Works by XCopyArea or guffaw-scrolling depending
5000         on the details of how the window is set up. (guffaw-scrolling
5001         still needs to be filled in.)
5002
5003 Wed May 17 22:36:53 2000  Owen Taylor  <otaylor@redhat.com>
5004
5005         * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
5006         move the debugging that was tied to a global variable
5007         to that.
5008
5009         * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
5010
5011         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
5012         validated flag, in line data instead of setting height/width to
5013         -1. This allows us to perform operations with partially invalid
5014         buffer (using the old size for invalid lines) and thus to do
5015         incremental vaidation. Keep height/width aggregates up to date
5016         when deleting text and rebalancing the tree.
5017
5018         * gtk/gtktextbtree.[ch]: Add functions validate a line
5019         (gtk_text_btree_validate_line), and to validate up
5020         to a number of pixels (gtk_text_btree_validate).
5021
5022         * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
5023         that indicates that something is changed and a revalidation
5024         pass is needed. Change ::need_repaint to ::changed, and
5025         make it take old and new yranges instead of a rectangle.
5026
5027         * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
5028         the line_data_destroy() function from 
5029         gtk_text_btree_add_view() to a virtual function in 
5030         GtkTextLayout
5031
5032         * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
5033         since we are handling partial repaints in a different fashion
5034         now.
5035
5036         * gtk/gtktextbtree.[ch]: Only repaint the changed portion
5037         of the selection instead of queueing a repaint on the
5038         entire widget.
5039
5040         * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
5041         get_selection_bounds() down to btree, make the function
5042         in buffer a wrapper around the btree function.
5043
5044         * gtk/gtktextlayout.[ch]: Add functions to check if the
5045         layout is valid and to recompute either a range of pixels
5046         aroudn a line or a certain total number of pixels.
5047
5048         * gtk/gtktextlayout.[ch]: Cache a single line display;
5049         now that we only redraw the needed portions, the hit rate
5050         for this cache is quite high.
5051         
5052         * gtk/gtktextview.[ch]: Keep track of the first paragraph
5053         on the screen so that when re-laying-out the buffer, we can
5054         keep the same place. This requires connecting to ::value_changed
5055         on the adjustments
5056
5057         * gtk/gtktextview.[ch]: Add idle functions to revalidate
5058         the buffer after we receive an ::invalidated signal.
5059         
5060 Wed May 17 22:10:47 2000  Owen Taylor  <otaylor@redhat.com>
5061
5062         * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
5063         to max of allocation and layout size, not just to the
5064         layout size.
5065
5066         * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size): 
5067         Invalidate window so it gets redrawn properly.
5068
5069         * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
5070         to mean the entire window.
5071
5072         * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
5073         into public header.
5074
5075 Mon May 15 14:51:31 2000  Owen Taylor  <otaylor@redhat.com>
5076
5077         * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
5078         to get the name of a mark.
5079
5080         * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
5081         to find the paragraph from a y position.
5082
5083 Thu May 11 12:57:20 2000  Owen Taylor  <otaylor@redhat.com>
5084
5085         * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
5086         nodes have width/height >= 0, not > 0.
5087
5088 Tue May  9 21:29:06 2000  Owen Taylor  <otaylor@redhat.com>
5089
5090         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
5091         Add a size_only flag, so when we only need the size, we don't create
5092         useless appearance attributes.
5093
5094         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
5095         duplicate setting of font description.
5096
5097         * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000 
5098
5099 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
5100
5101         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
5102         EXTRA_DIST. It does not work well when the file that
5103         everything depends on is not in the tarball.
5104
5105 Wed Apr 26 00:56:14 2000  Owen Taylor  <otaylor@redhat.com>
5106
5107         * gtk/testgtk.c: Some hacks and fixes so that it basically
5108         works when not sitting in the GTK+ build tree.
5109
5110 2000-05-03  Havoc Pennington  <hp@redhat.com>
5111
5112         * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
5113         Properly determine the ordering of the tag root and the current
5114         line within the tree. Previous algorithm only worked if the tag
5115         root's immediate parent was the common root of both the current
5116         line and the tag root.
5117
5118 Wed Apr 26 00:43:00 2000  Owen Taylor  <otaylor@redhat.com>
5119
5120         * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
5121         alignment.
5122
5123         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
5124         the widget text directional dynamically.
5125
5126         * gtk/gtktextview.[ch]: Added functions to get and set default
5127         wrap mode.
5128
5129 Tue Apr 25 23:47:38 2000  Owen Taylor  <otaylor@redhat.com>
5130
5131         * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
5132         in cursor location computation.
5133
5134 Tue Apr 25 23:22:59 2000  Owen Taylor  <otaylor@redhat.com>
5135
5136         * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
5137         vadjusment values properly when layout gets smaller.
5138
5139         * gtk/gtktextview.c (need_repaint_handler): Areas being
5140         passed in are far completely inaccurate, and sometimes
5141         too small, so, for now, just queue a redraw on the
5142         whole visible region.
5143
5144 2000-04-25  Havoc Pennington  <hp@redhat.com>
5145
5146         * gtk/gtktextbtree.c (summary_destroy): new function to 
5147         destroy tag summary nodes
5148         (gtk_text_line_next_could_contain_tag): this function was 
5149         totally broken if the line passed in wasn't below the tag
5150         root. Fix it.
5151         (gtk_text_btree_first_could_contain_tag): In the tag == NULL 
5152         "wildcard" case, we have to do a linear scan. Blah.
5153         (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
5154         we have to do the linear scan
5155         (tag_removed_cb): When a tag is removed from the tag table, 
5156         remove the GtkTextTagInfo node from the btree.
5157         (gtk_text_btree_spew): Implement the spew function, for 
5158         our debugging pleasure.
5159
5160 Tue Apr 25 19:40:18 2000  Owen Taylor  <otaylor@redhat.com>
5161
5162         * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
5163         a problem with referring to the wrong buffer.
5164
5165         * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
5166
5167         * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
5168         font description to gtk_style_new() - otherwise things
5169         don't work without a .gtkrc file.
5170
5171         * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
5172         tags table if we create it ourself, too.
5173
5174         * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
5175         it was conflicting with XKB modifiers.
5176
5177         * gtk/gtktextview.[ch]: Add simple support for 
5178         GtkIMContext.
5179
5180 Mon Apr 24 19:34:18 2000  Owen Taylor  <otaylor@redhat.com>
5181
5182         * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
5183         with deletion from last commit.
5184
5185 Mon Apr 24 19:29:40 2000  Owen Taylor  <otaylor@redhat.com>
5186
5187         * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
5188         in the context from the current locale.
5189         
5190         * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
5191         context, not hardcoded value.
5192
5193         * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
5194         not logical.
5195
5196 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
5197
5198         * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
5199         attributes - that doesn't handle partial-glyph selection
5200         properly. Instead use new pango_layout_line_get_x_ranges()
5201         functionality to draw the selection.
5202
5203         * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
5204         now properly handles out-of-range coordinates.
5205
5206         * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
5207
5208         * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
5209         public.
5210
5211         * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
5212         for paragraphs opposite to the base direction of the widget.
5213
5214         * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
5215
5216         * gtk/gtktextlayout.c: Don't split segments on marks, since that
5217         causes Arabic words to reshape as you cursor through.
5218
5219         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
5220         cursor position when moving vertically with the arrow keys and
5221         scrolling with page-up/page-down. (Arrow keys save only the X,
5222         scrolling saves both X and Y.)
5223
5224         This means you can line-up / line-down or page-up / page-down
5225         without losing your place, and also that moving vertically
5226         with the cursor keys keeps the same X position, not the same
5227         character count:
5228
5229         * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
5230         arrow keys move by display lines, not paragraphs.
5231
5232 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
5233
5234         * gtk/gtklayout.c: Make sure that the bin window is at least
5235         as big as the allocation. (Should we also make sure that the
5236         bin window is big enough to completely cover widget->window?)
5237
5238         * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
5239         function to get the onscreen rectangle.
5240
5241         * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
5242         for offsets in window coordinates.
5243
5244 Sun Apr 16 16:13:27 2000  Owen Taylor  <otaylor@redhat.com>
5245
5246         * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
5247         confusion.
5248
5249         * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
5250         from the widget direction.
5251
5252         * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg): 
5253         Add a "direction" attribute.
5254
5255         * gtk/gtktextview.c: global s/tkxt/text_view/.
5256
5257         * gtk/testtext.c: Added long block of text in Arabic, to test out
5258         the direction attributes. (Some problems with the shaping system
5259         for arabic become obvious - like the fact the cursor splits words
5260         into unjoined pieces.)
5261
5262 Fri Apr 14 12:54:34 2000  Owen Taylor  <otaylor@redhat.com>
5263
5264         * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
5265
5266         * gtk/gtktextlayout.c: Fix up alignment.
5267
5268         * gtk/testtext.c: Add some tests for centering, wrapping.
5269
5270 Fri Apr 14 09:26:22 2000  Owen Taylor  <otaylor@redhat.com>
5271
5272         * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
5273         Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
5274         If we wrote GTK+-specific layout-render function this could just replace
5275         the draw_layout() operation in the vtable.
5276
5277         * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to 
5278         pango_layout_get_cursor_pos() and use that function.
5279
5280         * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
5281         is a non-static symbol.
5282
5283         * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
5284         with gtk_text_btree_find_line_by_y()
5285
5286         * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
5287         renderer that handles GtkTextAppearance attributes.
5288
5289         * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h: 
5290
5291           - Move the values in the style that don't affect geometry into a
5292             GtkTextAppearance structure.
5293           - Change underline to take a PangoUnderline and "font" a string
5294             representation of a font description
5295           - Add a "font_desc" attribute which takes a FontDescription structure.
5296
5297         * gtk/gtktextlayout.[ch]:
5298
5299           - Get rid of the display-line list per each line. Instead, we
5300             generate, on demand, a GtkTextLineDisplay structure which]
5301             contains a PangoLayout * and other necesary information
5302             (offsets, cursor locations) for displaying a paragraph.
5303           - Get rid of the code to wrap lines, create display chunks,
5304             etc. Instead, we just go through a paragraph and convert
5305             it into the necessary inputs to a PangoLayout.
5306           - Implement a new attribute type, GtkTextAttrAppearance. This
5307             holds a GtkTextAppearance, and is used to pass colors, 
5308             stipple, etc, through from the layout to the display without
5309             having to use lots and lots of individual attributes.
5310           - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
5311             in terms of PangoLayout functions.
5312         
5313         * gtk/gtktextview.c: 
5314          
5315           - Handle passing the necessary PangoContext to the layout
5316           - Some fixups in painting to deal with the automatic backing store
5317             and offsetting of GTK+-1.4
5318           - Add a style_set handler so that the default style reacts
5319             properly to theme changes.
5320         
5321         * gtk/gtktext?*.[ch]: Random code-style fixes.
5322
5323         * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
5324
5325 Mon Apr 10 10:33:45 2000  Owen Taylor  <otaylor@redhat.com>
5326
5327         * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
5328         in original form preparatory to Pango-ization and gdkimcontext-ization.
5329
5330 Thu Apr  6 19:25:39 2000  Owen Taylor  <otaylor@redhat.com>
5331
5332         * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
5333         so that we can derive from gtkimcontext in language bindings properly.
5334
5335 Thu Apr  6 16:02:52 2000  Owen Taylor  <otaylor@redhat.com>
5336
5337         * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
5338         Add a compose table including (almost) all the compose combinations
5339         from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
5340         data in the XIM implementation.
5341
5342         * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
5343         Moved functions to convert keyvalues from and to unicode here from
5344         the win32 port and made them public.
5345
5346 Wed Apr  5 16:37:29 2000  Owen Taylor  <otaylor@redhat.com>
5347
5348         * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
5349
5350 Wed Apr  5 16:27:45 2000  Owen Taylor  <otaylor@redhat.com>
5351
5352         * gtk/gtkimcontext.[ch]: Base class for new input context system
5353
5354         * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
5355         the real input context implementation to be loaded from modules
5356         and switched on the fly.
5357
5358         * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
5359         context that just does direct keysymbol => unicode translation.
5360
5361         * gtk/gtkentry.[ch]: Start switching editing over to using
5362         GtkInputContext. (No handling of preedit yet.)
5363
5364 Wed Apr  5 15:48:41 2000  Owen Taylor  <otaylor@redhat.com>
5365
5366         * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
5367         many substitutions. (klass should not be subsituted.)
5368
5369 Wed Apr  5 00:18:14 2000  Owen Taylor  <otaylor@redhat.com>
5370
5371         * configure.in: Add checks for Pango
5372
5373         * configure.in docs/Makefile.am: Add test for sgml2html
5374         and allow 'make dist' without building html, but print out
5375         warnings in that case. (For making snapshots)
5376
5377         * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
5378         Add Pango libraries and C flags
5379
5380         * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
5381         Add function (gdk_draw_layout) to draw a pango layout.
5382
5383         * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
5384         for getting Pango contexts for GDK.
5385
5386         * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
5387
5388         * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
5389         editing.
5390
5391         * gtk/gtkentry.c: Hack in simple Hebrew input with direct
5392         keysym => unicode translations. More languages can be added
5393         here, but real input-method support is needed.
5394
5395         * docs/Changes-1.4.txt: Added note about entry behavior.
5396         
5397         * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
5398         to set the reading direction for a widget and the global direction.
5399         Add test which allows toggling the global direction. Two private
5400         flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
5401
5402         * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
5403           gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c 
5404
5405         * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
5406
5407         * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
5408         underlining now handled by Pango.
5409
5410         * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
5411         to RCStyle and Style. (Having both this and the old font name and GdkFont 
5412         is temporary.)
5413
5414         * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added 
5415         convenience functions for creating contexts and layouts for widgets.
5416
5417         * gtk/testgtk.c: Enhance label tests with multilingual labels.
5418
5419 2000-05-29  Jonathan Blandford  <jrb@redhat.com>
5420
5421         * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
5422         titles to be active, even if they aren't visible.
5423         (gtk_clist_column_titles_passive):  Ditto.
5424
5425 2000-05-21  Nils Barth  <nils_barth@post.harvard.edu>
5426
5427         * gtkmenu.c:
5428         * gtkmenu.h:
5429         * gtktypeutils.h: Spelling/grammar fixes in comments.
5430
5431 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
5432
5433         * gdk/nanox/*.h: add missing header files.
5434
5435 Fri May 19 11:52:59 2000  Tim Janik  <timj@gtk.org>
5436
5437         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
5438         send_event to TRUE.
5439         (gtk_drawing_area_size): queue a resize.
5440
5441 Sun Mar 26 03:21:28 2000  Tim Janik  <timj@gtk.org>
5442
5443         * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
5444         the handlers, also invalidate them. bug nailed down by Karl Nelson
5445         <kenelson@ece.ucdavis.edu>.
5446
5447 Fri May 19 06:49:23 2000  Tim Janik  <timj@gtk.org>
5448
5449         * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
5450         "(nil)" foundries, patch from Grigorios Magklis.
5451
5452         * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
5453         on non-available fonts, based on a patch by Grigorios Magklis
5454         <maglis@cs.rochester.edu>.
5455
5456 2000-05-18  Elliot Lee  <sopwith@redhat.com>
5457
5458         * gdk/x11/gdkregion-generic.c: If a region does not have any
5459         rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
5460         instead of GDK_OVERLAP_RECTANGLE_IN.
5461
5462 2000-05-17  Jonathan Blandford  <jrb@redhat.com>
5463
5464         * gtk/gtklayout.c (gtk_layout_map): Remove references to
5465         OFFSCREEN, as it is no longer necessary.
5466
5467 Wed May 17 10:52:12 2000  Owen Taylor  <otaylor@redhat.com>
5468
5469         * gtk/gtkcolorsel.c: Patch from David Santiago
5470         <mrcooger@cyberverse.com> to change things so that the 
5471         indicator of the active palette entry is done independently,
5472         not via the focus, since it should always be visible.
5473
5474 2000-05-17  Tor Lillqvist  <tml@iki.fi>
5475
5476         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
5477         refcount leaks as in the X11 backend.
5478
5479         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
5480         cosmetics.
5481
5482         * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
5483         backend. Add _gdk_windowing_window_destroy().
5484
5485         * gtk/gtkcolorsel.c: Include correct backend-specific header.
5486         Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
5487         either, but these probably do exist on nanox?)
5488         
5489         * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
5490         which isn't necessarily defined by <math.h>.
5491
5492         * gtk/gtkobject.c (gtk_object_init): Don't go up the class
5493         ancestry past GtkObject.
5494
5495         * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
5496         from DLL on Win32.
5497
5498         * gtk/gtk.def: Update corresponding to recent changes.
5499
5500         * gtk/makefile.{cygwin,msc}: Updates.
5501
5502 Fri May 12 18:46:51 2000  Owen Taylor  <otaylor@redhat.com>
5503
5504         * docs/Changes-1.4.txt: A bit of editing.
5505
5506         * gdk/gdkwindow.c (_gdk_window_clear_update_area) 
5507         * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
5508         to clear the update area for the window, and clear it
5509         when hiding a window.
5510
5511         * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
5512         if window destroyed.
5513
5514         * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
5515
5516         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move 
5517         gdk_window_destroy() to the generic code, since there was a lot of 
5518         window-system-independent logic it in. Add a function:
5519         
5520          _gdk_window_destroy() 
5521
5522         to the internal API to destroy a window without unreferencing it.
5523         Add a function:
5524
5525          _gdk_windowing_window_destroy()
5526
5527         That does the windowing-system-dependent part of destroying 
5528         the window.
5529
5530 Fri May 12 11:07:41 2000  Owen Taylor  <otaylor@redhat.com>
5531
5532         * gtk/testgtk.c: Fix various memory leaks of pixmaps.
5533
5534 Fri May 12 11:06:10 2000  Owen Taylor  <otaylor@redhat.com>
5535
5536         * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask): 
5537         Make gtk_widget_shape_combine_mask() keep a reference count on
5538         the pixmap since it keeps it around.
5539
5540 Fri May 12 10:53:29 2000  Owen Taylor  <otaylor@redhat.com>
5541
5542         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
5543         leak.
5544
5545         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
5546         leak with event filters.
5547
5548 Thu May 11 14:29:44 2000  Owen Taylor  <otaylor@redhat.com>
5549
5550         * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
5551         signal handlers with the right data arguments. (Fixes
5552         some warnings when a widget was repeatedly set as a drag
5553         destination.)
5554
5555         * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
5556         window so we can avoid avoid setting the DND properties on the
5557         toplevel window repeatedly.
5558
5559 2000-05-13  Tor Lillqvist  <tml@iki.fi>
5560
5561         * gdk/win32/gdkwin32.h: Define more message types missing from
5562         mingw headers.
5563
5564         * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
5565         call gdk_window_destroy_notify(). It was never called. This
5566         probably meant that the GdkWindow was never freed. Thanks Owen for
5567         noticing (!).
5568
5569         * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
5570         window as destroyed before calling DestroyWindow(). DestroyWindow()
5571         causes a call to the window procedure (gdk_WindowProc), which
5572         calls gdk_event_translate(), which calls
5573         gdk_window_destroy_notify(), which gets confused unless the window
5574         is set as destroyed.
5575
5576         * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
5577         this function to indicate it's win32 only. Put inside #ifdef
5578         G_ENABLE_DEBUG.
5579
5580         * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
5581         debugging function. (gdk_event_translate:) Add a default branch
5582         that uses the above function to print debug messages with all
5583         Windows messages symbolically.
5584
5585         * gdk/win32/gdkprivate-win32.h: Declare it, and
5586         gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
5587
5588 Fri May 12 20:07:32 2000  Tim Janik  <timj@gtk.org>
5589
5590         * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
5591         public header file.
5592
5593 Fri May 12 17:13:32 2000  Tim Janik  <timj@gtk.org>
5594
5595         * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
5596
5597         * gtk/gtktext.c: made the adjustments no-construct args, simply
5598         provide default adjustments.
5599         (gtk_text_destroy): release adjustments.
5600
5601         * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
5602         adjustment argument non-construct.
5603
5604         * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
5605         instead of in finalize.
5606         (gtk_progress_get_text_from_value): 
5607         (gtk_progress_get_current_text): 
5608         (gtk_progress_set_value): 
5609         (gtk_progress_get_percentage_from_value): 
5610         (gtk_progress_get_current_percentage): 
5611         (gtk_progress_set_percentage): 
5612         (gtk_progress_configure): ensure an adjustment is present.
5613
5614 Thu May 11 01:24:08 2000  Tim Janik  <timj@gtk.org>
5615
5616         * gtk/gtkcolorsel.[hc]:
5617         * gtk/gtkcolorseldialog.[hc]:
5618         * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
5619         their parent implementation, use bit fields for boolean values, don't
5620         create unused widgets, usage of glib types, braces go on their own
5621         lines, function argument alignment, #include directives etc. etc. etc..
5622
5623         * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
5624
5625 Wed May 10 23:29:52 2000  Tim Janik  <timj@gtk.org>
5626
5627         * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
5628
5629         * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
5630         of NULL.
5631
5632         * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
5633         to freed data.
5634         (gtk_combo_destroy): don't keep a pointer to a destroyed window.
5635
5636         * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
5637         to NULL when the toplevel is getting destroyed.
5638         (gtk_menu_set_tearoff_state): same here for the tearoff_window.
5639         (gtk_menu_destroy): 
5640         (gtk_menu_init): store the information of whether we have to
5641         readd the initial child ref_count during destruction in a new
5642         GtkMenu field needs_destruction_ref_count.
5643
5644         * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
5645         here, those reading: learn from my mistake! ;)
5646         in order for set_?adjustment to support a default adjustemnt if
5647         invoked with an adjustment pointer of NULL, the code read (pseudo):
5648         if (v->adjustment) unref (v->adjustment);
5649         if (!adjustment) adjustment = adjustment_new ();
5650         if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
5651         now imagine the first unref to actually free the old adjustment and
5652         adjustment_new() creating a new adjustment from the very same memory
5653         portion. here, the latter comparision will unintendedly fail, and
5654         all hell breaks loose.
5655         (gtk_viewport_set_hadjustment):
5656         (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
5657         after unreferencing it.
5658
5659         * gtk/gtkcontainer.[hc]: removed toplevel registration
5660         functions: gtk_container_register_toplevel(),
5661         gtk_container_unregister_toplevel() and
5662         gtk_container_get_toplevels() which had wrong semantics
5663         anyways: it didn't reference and copy the list.
5664
5665         * gtk/gtkwindow.c: we take over the container toplevel registration
5666         bussiness now. windows are registered across multiple destructions,
5667         untill they are finalized. the initial implicit reference count
5668         users are holding on windows is removed with the first destruction
5669         though.
5670         (gtk_window_init): ref & sink and set has_user_ref_count, got
5671         rid of gtk_container_register_toplevel() call. add window to
5672         toplevel_list.
5673         (gtk_window_destroy): unref the window if has_user_ref_count
5674         is still set, got rid of call to
5675         gtk_container_unregister_toplevel().
5676         (gtk_window_finalize): remove window from toplevel list.
5677         (gtk_window_list_toplevels): new function to return a newly
5678         created list with referenced toplevels.
5679         (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
5680
5681         * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
5682         adjustment a non-construct arg.
5683         * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
5684         * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
5685         * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
5686
5687         * gtk/gtkrange.c: added some realized checks.
5688         (gtk_range_destroy): get rid of the h/v adjustments in the
5689         destroy handler instead of finalize. remove timer.
5690         (gtk_range_get_adjustment): demand create adjustment.
5691
5692         * gtk/gtkviewport.c: made h/v adjustment non-construct args.
5693         we simply create them on demand now and get rid of them in
5694         the destroy handler.
5695         (gtk_viewport_destroy): get rid of the h/v adjustments in the
5696         destroy handler instead of finalize.
5697         (gtk_viewport_get_hadjustment): 
5698         (gtk_viewport_get_vadjustment): 
5699         (gtk_viewport_size_allocate): demand create h/v adjustment
5700         if required.
5701
5702         * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
5703         gtk_widget_real_destroy () functionality.
5704         (gtk_widget_real_destroy): reinitialize with a new style, instead
5705         of setting widget->style to NULL.
5706
5707 Fri May  5 13:02:09 2000  Tim Janik  <timj@gtk.org>
5708
5709         * gtk/gtkcalendar.c:
5710         * gtk/gtkbutton.c: ported _get_type() implementation over to
5711         GType, either to preserve memchunks allocation facilities,
5712         or because Gtk+ 1.0 GtkTypeInfo was still being used.
5713
5714         * gtk/gtkobject.[hc]: derive from GObject. ported various functions
5715         over. prepare for ::destroy to be emitted multiple times.
5716         removed reference tracer magic. chain into GObjectClass.shutdown()
5717         to emit ::destroy signal.
5718
5719         * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
5720         fundamental.
5721
5722         * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
5723         cludge.
5724
5725         * gtk/gtksocket.c:
5726         * gtk/gtkplug.c:
5727         * gtk/gtklayout.c:
5728         * gtk/gtklabel.c:
5729         * gtk/gtkargcollector.c:
5730         * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
5731         not being a fundamental anymore, and to work with the new
5732         type system (nuked fundamental type varargs clutter).
5733
5734         * gtk/*.c: install finalize handlers in the GObjectClass
5735         part of the class structure.
5736         changed direct GTK_OBJECT()->klass accesses to
5737         GTK_*_GET_CLASS().
5738         changed direct object_class->type accesses to GTK_CLASS_TYPE().
5739
5740         * gtktypeutils.[hc]: use the reserved fundamental ids provided by
5741         GType. made most of the GTK_*() type macros and Gtk* typedefs
5742         simple wrappers around macros and types provided by GType.
5743         most notably, a significant portion of the old API vanished:
5744         GTK_TYPE_MAKE(),
5745         GTK_TYPE_SEQNO(),
5746         GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
5747         GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
5748         GTK_TYPE_ARGS,
5749         GTK_TYPE_CALLBACK,
5750         GTK_TYPE_C_CALLBACK,
5751         GTK_TYPE_FOREIGN,
5752         GtkTypeQuery,
5753         gtk_type_query(),
5754         gtk_type_set_varargs_type(),
5755         gtk_type_get_varargs_type(),
5756         gtk_type_check_object_cast(),
5757         gtk_type_check_class_cast(),
5758         gtk_type_describe_tree(),
5759         gtk_type_describe_heritage(),
5760         gtk_type_free(),
5761         gtk_type_children_types(),
5762         gtk_type_set_chunk_alloc(),
5763         gtk_type_register_enum(),
5764         gtk_type_register_flags(),
5765         gtk_type_parent_class().
5766         replacements, where available are described in ../docs/Changes-1.4.txt.
5767         implemented compatibility functions for the remaining API.
5768
5769         * configure.in: depend on glib 1.3.1, use gobject module.
5770
5771 Thu May 11 12:39:50 2000  Owen Taylor  <otaylor@redhat.com>
5772
5773         * TODO.xml: Various updates to current status.
5774
5775 Wed May 10 20:25:04 2000  Owen Taylor  <otaylor@redhat.com>
5776
5777         * gtk.m4: Print out version when test succeeds.
5778
5779 Wed May 10 16:38:17 2000  Owen Taylor  <otaylor@redhat.com>
5780
5781         * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
5782         gtk/gtkhsv.[ch]: Color selection dialog rewrite.
5783         
5784         (Original triangle color selector from Simon Budig
5785         <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
5786         from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
5787         Santiago <mrcooger@cyberverse.com>)
5788
5789         * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
5790         out into a separate widget.
5791
5792         * gtk/testgtk.c: Add some checkbuttons for toggling palette
5793         and opacity controls.
5794
5795 Wed May 10 16:08:09 2000  Owen Taylor  <otaylor@redhat.com>
5796
5797         * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that 
5798         snuck in prematurely.
5799
5800 2000-05-07  Tor Lillqvist  <tml@iki.fi>
5801
5802         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
5803         had deleted a ! operator by mistake, which caused
5804         GDK_SELECTION_CLEAR events never to be generated, which caused
5805         only the first copy to the clipboard from an gtkeditable to
5806         actually cause a copy to the Windows clipboard.
5807
5808 2000-05-06  Tor Lillqvist  <tml@iki.fi>
5809
5810         * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
5811         compilation, too. Current mingw gcc distributions include the
5812         necessary headers. Also the necessary IIDs are now in mingw
5813         headers/libraries, and own definitions unnecessary.
5814
5815         More hacking on OLE2 DND, still doesn't work though, and thus
5816         ifdeffed out.
5817
5818         * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
5819         here, too.
5820
5821 Sat,  6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
5822
5823         * gdk/nanox/*: nano-X port work in progress.
5824         * gdk/simple.c: simple test for Gdk.
5825         * README.nanox: notes about the port: read this first!
5826         * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
5827         with nano-X.
5828
5829 Fri May  5 11:18:47 2000  Owen Taylor  <otaylor@redhat.com>
5830
5831         * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
5832         gdk_window_clear() into common code, implement in terms of
5833         gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
5834         not redirected to the backing rectangle.
5835
5836 Wed Apr 26 01:53:23 2000  Owen Taylor  <otaylor@redhat.com>
5837
5838         * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into 
5839         EXTRA_DIST. It does not work well when the file that
5840         everything depends on is not in the tarball.
5841
5842 Tue Apr 25 22:20:41 2000  Owen Taylor  <otaylor@redhat.com>
5843
5844         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
5845         with recursion where process_updates() is called from
5846         an expose handler. (GtkTextView is highly broken in
5847         doing this, but it should work, so it is a nice test
5848         case.)
5849
5850 Sun Apr 23 23:39:18 2000  Owen Taylor  <otaylor@redhat.com>
5851
5852         * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
5853         handle the case where updates are queued during processing of
5854         updates.
5855
5856 Tue Apr 18 14:16:50 2000  Owen Taylor  <otaylor@redhat.com>
5857
5858         * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
5859         window is on gdk_display - use that instead of segfaulting.
5860
5861 Thu May  4 02:04:46 2000  Tim Janik  <timj@gtk.org>
5862
5863         * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
5864         broken and require an empty arg, give it to them.
5865
5866 Fri Apr 28 19:34:32 2000  Tim Janik  <timj@gtk.org>
5867
5868         * gtk/gtklabel.h: indentation fixes.
5869
5870 2000-05-02  Tor Lillqvist  <tml@iki.fi>
5871
5872         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
5873         draw too narrow or too low arcs, they seem to fail, at least with
5874         some display drivers.
5875
5876         * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
5877
5878         Large changes to the Win32 backend, partially made necessary by
5879         the changes to the backend-independent internal
5880         structures. Attempts to implement similar backing store stuff as
5881         on X11. The current (CVS) version of the Win32 backend is *not* as
5882         stable as it was before the no-flicker branch was merged. A
5883         zipfile with that version is available from
5884         http://www.gimp.org/win32/. That should be use by "production"
5885         code until this CVS version is usable. (But note, the Win32
5886         backend has never been claimed to be "production quality".)
5887
5888         * README.win32: Add the above comment about versions.
5889
5890         * gdk/gdkwindow.c: Don't use backing store for now on Win32.
5891
5892         * gdk/gdk.def: Update.
5893
5894         * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
5895         presumably be replaced by some more better mechanism as 1.4 gets
5896         closer to release shape.
5897
5898         * gdk/makefile.{cygwin,msc}: Update.
5899
5900         * gdk/win32/*.c: Correct inclusions of the backend-specific and
5901         internal headers. Change code according to changes in these. Use
5902         gdk_drawable_*, not gdk_window_* where necessary.
5903
5904         * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
5905         our old DND.
5906
5907         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
5908         to interpret single characters as UTF-8. Thanks to Hans Breuer.
5909         Use correct function name in warning messages.
5910
5911         * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
5912         GSourceFuncs gdk_event_prepare and gdk_event_check.
5913         (gdk_event_get_graphics_expose): Do implement, use
5914         PeekMessage. Thanks to Hans Breuer.
5915         (event_mask_string): Debugging function to print an GdkEventMask.
5916         (gdk_pointer_grab): Use it.
5917
5918         * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
5919         (old) book I used claimed was Hangul actually is CJK Unified
5920         Ideographs Extension A. Also, Hangul Syllables were missing.
5921         Improve logging.
5922
5923         * gdk/win32/gdkgc-win32.c: Largish changes.
5924
5925         * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
5926         g_win32_getlocale() from GLib, and not setlocale() to get current
5927         locale name.
5928
5929         * gdk/win32/gdkprivate-win32.h
5930         * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
5931         gdkwin32.h, similarily as in the X11 backend.
5932
5933         * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
5934         assignment was used instead of equals in if test. Thanks to Hans
5935         Breuer.
5936
5937         * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
5938         the X11 version.
5939
5940         * gdk/win32/makefile.{cygwin,msc}
5941         * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
5942         path to the Win32 headers that works also with the mingw compiler.
5943
5944         * gtk/gtkstyle.c: Include <string.h>.
5945
5946 2000-04-26  Havoc Pennington  <hp@redhat.com>
5947
5948         * gtk/gtklabel.c (gtk_label_get_text): Add this function,
5949         replacing the broken gtk_label_get ()
5950
5951 2000-04-15  Havoc Pennington  <hp@pobox.com>
5952
5953         * gdk/gdkdnd.h: clean up enum format, remove extra comma, 
5954         this keeps scanner scripts from getting confused.
5955
5956         * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
5957         data, rather than void
5958
5959 2000-04-15  Tor Lillqvist  <tml@iki.fi>
5960
5961         * gtk/gtkclist.c (gtk_clist_motion)
5962         * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
5963         with is_hint FALSE, get x and y from the event. They used to be
5964         used uninitialised. The Win32 backend never sends motion events
5965         marked as hints. This for instance fixes the annoying file and
5966         font selector behaviour in the Win32 version.
5967
5968 2000-04-14  Tor Lillqvist  <tml@iki.fi>
5969
5970         * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
5971         gtk_private_n_signals variables, they are used by some software,
5972         sigh.
5973
5974         * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
5975         installation directory from the Registry, where the installer
5976         should have put it.
5977
5978 Fri Apr  7 17:19:27 2000  Owen Taylor  <otaylor@redhat.com>
5979
5980         * gdk/x11/Makefile.am: Fix problem with installation directory for
5981         gdkx.h
5982
5983         * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
5984         <mrcooger@cyberverse.com> so that when selecting menus with the
5985         mouse, the first item will not be selected, but when selecting
5986         with an accelerator, or navigating left-right on a menubar with
5987         the menus popped up, the first item will be selected.
5988
5989 2000-04-05  Dan Damian  <dand@dnttm.ro>
5990
5991         * configure.in: Added "ro" to ALL_LINGUAS.
5992
5993 Wed Apr  5 00:08:36 2000  Owen Taylor  <otaylor@redhat.com>
5994
5995         * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
5996         indentation.
5997
5998         * Makefile.am (EXTRA_DIST): Fix typo.
5999
6000         * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
6001         to catch gdkconfig.h
6002
6003         * gtk/gtkitemfactory.c: Added FIXME.
6004
6005 2000-03-30  Jonathan Blandford  <jrb@redhat.com>
6006
6007         * gtk/gtkpaned.c (gtk_paned_get_position): oops.
6008         s/return_if_fail/return_val_if_fail/g and add a return value.
6009
6010 Mon Mar 27 20:56:14 2000  Owen Taylor  <otaylor@redhat.com>
6011
6012         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up 
6013         merge slipup.
6014
6015         * gdk/gdkinput.h: Fix missing line from merge.
6016
6017 Mon Mar 27 20:39:49 2000  Owen Taylor  <otaylor@redhat.com>
6018
6019         * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
6020         instead of gdkprivate.h.
6021
6022 Sun Mar 12 15:19:24 2000  Owen Taylor  <otaylor@redhat.com>
6023
6024         * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
6025         parent class to correctly be GtkDialogClass.
6026
6027 Thu Feb 24 23:58:21 2000  Owen Taylor  <otaylor@redhat.com>
6028
6029         * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
6030         toplevel windows and their immediate children by their parents,
6031         since the size of toplevel windows is out of our immediate
6032         control and we don't get any real benefit from trying to track
6033         this size for clipping.
6034
6035         * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
6036         for input_only windows.
6037
6038         * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
6039         to fix some hacks and make sure that we don't try to set the
6040         background of input only windows.
6041
6042 Thu Feb 24 18:11:46 2000  Owen Taylor  <otaylor@redhat.com>
6043
6044         * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
6045         the _really_ internal stuff, and leave gdkprivate.h for the fake private
6046         stuff that we've traditionally exposed.
6047
6048         * gdk/**.c: Use gdkinternals.h where appropriate.
6049
6050         * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
6051         not include gdkprivate-x11.h, move all stuff of conceivable public
6052         interest into gdkx.h; keep all really private stuff in
6053         uninstalled header gdkprivate-x11.h.
6054
6055         * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
6056         image->image_put on windows through a new function _gdk_window_draw_image()
6057         to allow us to do backing store for images. (Sort of ugly)
6058
6059         * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
6060         contexts locally so that we can offset them properly when drawing 
6061         onto backing pixmaps.
6062
6063         * gdk/gdkinput.h: Reindented
6064
6065         * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
6066         pixmap or color for the window, so we can properly initialize
6067         our double-buffer pixmaps, and also so that we temporarily set
6068         a background of None while scrolling.
6069
6070         * gdk/gdkregion.h: Revise region boolean operators to have an
6071         interface that is actually convenient - switch from creating new
6072         regions on every op, to "methods" that modify existing regions
6073         (A = A OP B). 3 argument forms which allow dest == src, would also
6074         be possible, but the current interfaces seem to map nicely
6075         onto what needs to be done. (There is quite a lot of region
6076         code in GDK now.)
6077
6078         * gdk/gdkregion.h: Add constructor from rectangle and a copy
6079         operator.
6080
6081         * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
6082         gdkpoly-generic.h: Copy region code from Xlib, switch it over
6083         to 32 bit coordinates, modify it to be mostly GTK+ style
6084         and to have interfaces that match gdkregion.h.
6085
6086         * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
6087         double-buffered drawing. gdk_window_begin_paint_{rect,region}()
6088         create a backing pixmap and redirect all drawing to
6089         that backing pixmap until a matching gdk_window_end_paint().
6090
6091         * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
6092         Create a special drawable class for GtkWindow's that 
6093         redirects the drawing to the backing pixmap as necessary
6094         and then calls the real operations in _gdk_windowing_window_class.
6095
6096         * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
6097         Store invalid region for each window. Generate expose events for invalid
6098         region in an idle. This replaces both the expose compression
6099         and the redrawing queuing in GTK+. It is both more efficient and
6100         simpler than either one individually and far more so then the
6101         combination.
6102
6103         * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
6104         Emulate 32 bit coordinates for windows with 16 bit coordinates
6105         by offsetting drawing, guffaw scrolling techniques and
6106         mapping/unmapping child windows as necessary.
6107
6108         * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
6109         where, when invalid regions are processed, the region is stored,
6110         and if expose events come in that are detectably duplicate
6111         the processed exposes (by comparison of event serial numbers),
6112         the stored region is subtracted out of those exposes.
6113
6114         * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
6115         regions newly exposed when scrolling or resizing windows.
6116         This, combined with forcing processesing of queued invalidated
6117         regions, gives nice flicker-free scrolling.
6118
6119         * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
6120         invalidated regions after every scroll.
6121
6122         * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
6123         emulation in GDK. Its, for all practical purposes just a
6124         GtkViewport/GtkFixed hybrid now.
6125
6126         * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
6127         (16-bit) structures as necessary instead of just casting.
6128
6129         * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
6130         in terms of the structures from gdkregion-generic.c, using appropriate
6131         offsets from GDK to X11 coordinates. Cache clip mask and
6132         origin and ts origin locally and only flush to the server
6133         when drawing, to avoid constantly setting and resetting these
6134         values when offsetting GC's for scrolling and backing pixmaps.
6135
6136         * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
6137
6138         * gtk/gtkcontainer.c: Call process_all_updates at end
6139         of resizing to reduce flicker. (Avoids having redraw
6140         lag arbitrarily behind resize under some circumstances)
6141
6142         * gtk/gtkentry.c: Remove old backing store code, and simply take
6143         advantage of the new backing store capabilities of GDK.
6144
6145         * gtk/gtkmain.c: Simple implementation of widget backing
6146         store - simply push a paint while handling each expose.
6147         (Should really be configurable widget for widget.)
6148         
6149         * gtk/gtkwidget.c: Remove all the old complicated redraw
6150         code, and simply invalidate the GDK windows from
6151         gdk_window_queue_clear(), etc. (Sigh, so much carefully
6152         debugged complexity ... gone to the winds.)
6153
6154         Remove all the code for suppressing expose events while
6155         resizes are pending; this isn't needed since the invalid
6156         areas won't be processed until after the resizes are
6157         processed, since they are in a lower priority idle.
6158
6159 Thu Feb 24 15:37:41 2000  Owen Taylor  <otaylor@redhat.com>
6160
6161         * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
6162         and height of dest rectangle for non-intersecting rectangles.
6163
6164 Sun Feb 20 16:47:31 2000  Owen Taylor  <otaylor@redhat.com>
6165
6166         * gtk/gtkwidget.h: Make GtkAllocation just a typedef
6167         for GdkRectangle.
6168
6169 Sun Feb 20 11:27:00 2000  Owen Taylor  <otaylor@redhat.com>
6170
6171         * gdk/gdk{events,image,private,types,window}.h
6172          gdk/x11/gdkinputprivate.h: Change all coordinates
6173          from int16 to int. Also, Change width and height from
6174          unsigned to signed to avoid all the stupid C 
6175          signedness bugs.
6176
6177 Sat Feb 19 12:01:53 2000  Owen Taylor  <otaylor@redhat.com>
6178
6179         * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
6180         Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
6181         Add some more detailed checking.
6182
6183         * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
6184         New function to retrieve the depth of a drawable.
6185
6186         * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
6187         field, reorder fields to save memory. 
6188
6189 Mon Dec 13 14:06:03 1999  Owen Taylor  <otaylor@redhat.com>
6190
6191         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
6192         of the background image instead of scaling the background down to
6193         a line.
6194
6195         * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
6196         which temporarily set slider to wrong size.
6197
6198         * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
6199         queue_clear().
6200
6201 Wed Nov 17 18:36:05 1999  Owen Taylor  <otaylor@redhat.com>
6202
6203 2000-03-23  Jonathan Blandford  <jrb@redhat.com>
6204
6205         * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
6206
6207 2000-03-17  Tor Lillqvist  <tml@iki.fi>
6208
6209         * gdk/win32/gdkevents-win32.c: Remove the #ifndef
6210         USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
6211
6212         * gdk/win32/gdkfont-win32.c
6213         * gdk/win32/gdkproperty-win32.c
6214         * gdk/win32/gdkselection-win32.c
6215         * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
6216         now declared such.
6217
6218 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
6219
6220         * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
6221
6222 Mon Mar 13 18:37:55 2000  Owen Taylor  <otaylor@redhat.com>
6223
6224         * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
6225         is called without trapping X errors.
6226
6227 Fri Feb 25 10:48:53 2000  Owen Taylor  <otaylor@redhat.com>
6228
6229         * gtk/gtkrc.*: Fix problem where stray '"' characters found their
6230         way into the fontset lists.
6231
6232 Tue Feb 22 08:52:52 2000  Tim Janik  <timj@gtk.org>
6233
6234         * gtk/gtkthemes.h: add extern "C" scope.
6235
6236 Mon Feb 21 20:16:42 2000  Lars Hamann  <lars@gtk.org>
6237
6238         * gtk/gtkclist.c: applied  patch from Guy Harris <guy@netapp.com>
6239         to make appends to the list constant. (gtk-guy-990901-0.patch)
6240
6241 Mon Feb 14 22:50:10 2000  Tim Janik  <timj@gtk.org>
6242
6243         * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
6244         for the typename hash table.
6245
6246 Mon Feb 14 15:01:23 2000  Owen Taylor  <otaylor@redhat.com>
6247
6248         * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
6249         to make sure we never divide by zero. 
6250         (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
6251
6252 Mon Feb 14 12:29:38 2000  Owen Taylor  <otaylor@redhat.com>
6253
6254         * gtk/gtkfontsel.c: Apply patch from
6255         SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
6256         better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
6257
6258         Also, some cleanups in atom handling.
6259
6260 Sun Feb 13 08:02:21 2000  Tim Janik  <timj@gtk.org>
6261
6262         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
6263         not GtkWidget.
6264
6265 Fri Feb 11 02:19:32 2000  Tim Janik  <timj@gtk.org>
6266
6267         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): 
6268         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): 
6269         * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
6270         more guint wrap-around bugs before going to bed.
6271
6272 Thu Feb 10 16:16:35 2000  Tim Janik  <timj@gtk.org>
6273
6274         * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
6275         guint wrap arounds in allocation.width.
6276
6277         * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
6278         process untill we fit the allocation given.
6279
6280 Tue Feb  8 09:38:29 2000  Tim Janik  <timj@gtk.org>
6281
6282         * gtk/gtkwidget.c:
6283         (gtk_widget_unrealize): guard widget access with ref/unref
6284         around signal emission.
6285         (gtk_widget_hide): same here, but also check its destroyed
6286         state before queueing a resize.
6287
6288 Tue Feb  8 03:05:55 2000  Tim Janik  <timj@gtk.org>
6289
6290         * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
6291         of gtk_default_insensitive_bg as insensitive base color.
6292
6293         * gtk/gtktext.c (gtk_text_style_set): set the background color according
6294         to the widget's state.
6295         (gtk_text_realize): same here.
6296         (gtk_text_state_changed): same here.
6297         (draw_bg_rect): compare background color against base[] from
6298         GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
6299
6300 Mon Feb  7 04:01:55 2000  Tim Janik  <timj@gtk.org>
6301
6302         * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
6303         grabs are active, unless a delete event is send to the toplevel
6304         of the currently grab holding widget.
6305
6306 Sun Feb  6 10:13:15 2000  Owen Taylor  <otaylor@redhat.com>
6307
6308         * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
6309         debugging g_print's.
6310
6311 Fri Feb  4 15:54:54 2000  Owen Taylor  <otaylor@redhat.com>
6312
6313         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
6314         ever make the scrolled-window requisition ever depend on the 
6315         visibility state of the scrollbars for the AUTOMATIC policy. 
6316         This breaks the GTK+ requisition model, and causes loops.
6317
6318 Fri Feb  4 15:09:12 2000  Owen Taylor  <otaylor@redhat.com>
6319
6320         * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
6321         the default font to avoid problems with XFree86-4.0 where the
6322         default charset is iso10646-1, not iso8859-1.
6323
6324 Thu Feb  3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
6325
6326         * acinclude.m4
6327         * config.guess
6328         * config.sub
6329         * ltconfig
6330         * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
6331
6332         * gtk/Makefile.am: minor cosmetic consistency tweak
6333
6334 Thu Feb  3 14:46:01 2000  Owen Taylor  <otaylor@redhat.com>
6335
6336         * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
6337         the activate_time to 0, so that we handle a quick
6338         press/release press/release properly and don't suppress
6339         the second release. (Red Hat bug #7545)
6340
6341 Wed Feb  2 22:25:17 2000  Tim Janik  <timj@gtk.org>
6342
6343         * gtk/gtkctree.c (row_delete):
6344         (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
6345         bugs with destruction notifier, *always* update internal
6346         structures *before* calling user code.
6347
6348 Sun Jan 30 20:10:52 2000  Lars Hamann  <lars@gtk.org>
6349
6350         A few more fixes for bug #5487, #2051, #2677.
6351         * gtk/gtkclist.c : 
6352         (gtk_clist_button_press):  Reset clist->anchor to -1 if event->type is
6353         not GDK_BUTTON_PRESS.
6354         (resync_selection): resync only if selection_mode is
6355         GTK_SELECTION_EXTENDED
6356         * gtk/gtkctree.c (resync_selection): same here
6357
6358 Sun Jan 30 12:29:20 2000  Owen Taylor  <otaylor@redhat.com>
6359
6360         * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
6361         gdk_drag_get_selection() and gtk_menu_detach().
6362
6363         [ From Jeroen Ruigrok/Asmodai ]
6364
6365 Sat Jan 29 10:11:56 2000  Owen Taylor  <otaylor@redhat.com>
6366
6367         * gtk/gtknotebook.c (gtk_notebook_size_request): 
6368         page->tab_label can be NULL.
6369
6370 2000-01-25  Havoc Pennington  <hp@pobox.com>
6371         
6372         * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
6373         arg is boolean
6374
6375         * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
6376
6377         * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
6378
6379         * gdk/gdkproperty.c (gdk_property_get): return boolean
6380
6381         * gdk/gdkinput.c (gdk_input_set_mode): return boolean
6382
6383         * gdk/gdkim.c (gdk_im_ready): return boolean
6384
6385         * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
6386
6387         * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
6388         glib clash, should fix glib)
6389
6390         * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
6391         (gdk_get_show_events): return gboolean, and canonicalize 
6392         to TRUE/FALSE
6393
6394         * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
6395         colormap is private
6396         (gdk_colors_alloc): gboolean whether to be contiguous
6397         (gdk_color_equal): return gboolean since we are a predicate
6398         and not a qsort() (this looks semi-wrong due to glib breakage,
6399         IMO glib should be fixed)
6400         
6401         * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
6402         (gdk_get_use_xshm): return gboolean
6403         (gdk_pointer_is_grabbed): return gboolean
6404
6405         * gdk/gdk.h: Change prototypes to match all the above changes,
6406         and re-run egtk-format-protos as required.
6407
6408 Fri Jan 28 12:28:17 2000  Owen Taylor  <otaylor@redhat.com>
6409
6410         * gtk/gtkctree.c (resync_selection): 
6411         * gtk/gtkclist.c (resync_selection):
6412
6413         Return immediately if clist->drag_pos < 0. This is a workaround
6414         for the corrupt state that the clist gets into when a
6415         GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
6416
6417         Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
6418         
6419         * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
6420         variable from recent commit.
6421
6422 Thu Jan 27 15:22:09 2000  Owen Taylor  <otaylor@redhat.com>
6423
6424         * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
6425
6426 Thu Jan 27 18:00:55 2000  Tim Janik  <timj@gtk.org>
6427
6428         * gtk/Makefile.am: prefix all autogenerated source that get build in
6429         $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
6430         in builddir. since we subsequently cd into srcdir for autogeneration,
6431         the paths have to be stripped from the target file names, thusly we
6432         use $(@F) as target names now.
6433         put a comment about configure.in's --disable-rebuilds option,
6434         which can be used for non-writable source directories, for development
6435         setups though, srcdir has to be *writable*.
6436
6437 hu Jan 27 00:15:03 2000  Owen Taylor  <otaylor@redhat.com>
6438
6439         * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
6440           Finish the job of allowing event to be NULL.
6441           (Fixes bug #4283, reported by Chris Blizzard)
6442
6443         * gtk/gtkentry.c (entry_adjust_scroll): When calculating
6444           things so that the cursor appears on screen, properly
6445           take into account INNER_BORDER.
6446           (Fixes bug #4754, reported by Antonio Campos)
6447
6448 Wed Jan 26 23:12:28 2000  Owen Taylor  <otaylor@redhat.com>
6449
6450         * gtk/gtknotebook.c (gtk_notebook_map): Don't
6451           show the tab_label unless it itself is visible.
6452
6453           gtk/gtknotebook.c (gtk_notebook_size_request):
6454           Do a better job of making sure that the visibility
6455           of the tab label corresponds to whether it should
6456           be mapped or not.
6457
6458 Wed Jan 26 21:17:03 2000  Owen Taylor  <otaylor@redhat.com>
6459
6460         * gtk/gtkoptionmenu.c (gtk_option_menu_position):
6461           Use the requisition, not the allocation, since the
6462           allocation has not necessarily been computed yet.
6463           (Pointed out by Eugene Osintsev)
6464
6465 Wed Jan 26 19:44:25 2000  Owen Taylor  <otaylor@redhat.com>
6466
6467         * gtk/gtkstyle.c (gtk_style_new): Dont' set
6468           style/base[GTK_STATE_INSENSITIVE] both to
6469           gtk_default_insensitive_bg!
6470           (Bug #2187, reported by Jonathan Blandford)
6471
6472         * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
6473           Add Alt_L, Alt_R to list of invalid accelerators.
6474           (Bug #3736, reported by Vlad Harchev)
6475
6476 Wed Jan 26 19:01:56 2000  Owen Taylor  <otaylor@redhat.com>
6477
6478         * gtk/gtkfilesel.c (open_ref_dir): Fix several
6479         bugs which occured after an attempt to open 
6480         invalid home directory left cmpl_state->reference_dir == NULL.
6481
6482          - completion on files in home directory didn't work
6483          - completion on an empty string caused  segfault
6484
6485          (Bug #3678, reported by Steve Ratcliffe)
6486
6487         * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
6488         cut and paste error that was causing scales to
6489         be incorrectly positioned.
6490         (Bug #2956,
6491          patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
6492
6493 2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>
6494
6495         * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
6496         when checking for dcgettext, if we've found we needed
6497         it for dgettext.
6498 +
6499 Wed Jan 26 18:06:07 2000  Owen Taylor  <otaylor@redhat.com>
6500
6501         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
6502         queue_clear on NO_WINDOW widgets during a reparent,
6503         since at that point the window and widget heirarchies
6504         are out of sync. This stops crashing in some cases
6505         (the scrolled window reparent test, for instance), and
6506         _probably_ won't cause drawing errors.
6507
6508         * gtk/testgtk.c: Make the reparenting-a-scrolled-window
6509         test do what it was supposed to do and be robust against
6510         window closings, etc. (Bug #2443)
6511
6512 Wed Jan 26 16:56:54 2000  Owen Taylor  <otaylor@redhat.com>
6513
6514         * gtk/gtkentry.c: Fix return values on mouse events.
6515         (Bug #2686, Sky <seb_sky@yahoo.com>)
6516
6517         * gtk/genmarshal.pl: Fix up handling of FOREIGN.
6518         (pointed out by George Lebl)
6519
6520         * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
6521         (From Ettore Perazzoli  <ettore@helixcode.com>)
6522  
6523 Mon Jan 24 10:44:48 2000  Owen Taylor  <otaylor@redhat.com>
6524
6525         * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
6526         clicks between rows or outside calender area correctly.
6527         (Patch from Damon Chaplin)
6528
6529         * gtk/gtkclist.c (gtk_clist_set_row_data_full): 
6530         * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full): 
6531           Call destroy function when overwriting existing data. 
6532           (Pointed out by Damon Chaplin)
6533
6534 Tue Jan 25 09:55:41 2000  Owen Taylor  <otaylor@redhat.com>
6535
6536         * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
6537           which was causing problems on various systems with Xmu.
6538           This hasn't been needed for a very long time.
6539           (Fixes #1185 3167)
6540
6541 Sun Jan 23 22:27:36 2000  Owen Taylor  <otaylor@redhat.com>
6542
6543         * gdk/gdki18n.h: Include <ctype.h> when defining
6544           gdk_isw* in terms of is* as a fallback.
6545           (Bug #4106 - Dan Winship <danw@MIT.EDU>)
6546
6547 Sun Jan 23 22:12:36 2000  Owen Taylor  <otaylor@redhat.com>
6548
6549         * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
6550           realize the widget when it is size allocated!
6551           (old, old bug)
6552
6553         * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
6554           Removed unused call to gdk_window_get_size() that
6555           showed up when the above was fixed.
6556
6557 Sat Jan 22 15:44:30 2000  Owen Taylor  <otaylor@redhat.com>
6558
6559         * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
6560           fix up widget->window when the widget is a
6561           NO_WINDOW container widget.
6562
6563 Sat Jan 22 12:40:48 2000  Owen Taylor  <otaylor@redhat.com>
6564
6565         * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
6566           to account for the fact that feof() does _not_ 
6567           return TRUE on errors, and thus avoid infinite loops
6568           when trying to use gdk_pixmap_create_from_xpm()
6569           on unreadable values.
6570
6571 Fri Jan 21 18:32:43 2000  Owen Taylor  <otaylor@redhat.com>
6572
6573         * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
6574
6575 Fri Jan 21 16:24:08 2000  Owen Taylor  <otaylor@redhat.com>
6576
6577         * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
6578           gdk_gc_set_dashes to take gint8 instead of gchar to
6579           make it clearer that it is _not_ a NULL terminated string.
6580
6581         * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
6582           gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
6583           gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
6584           arguments.
6585
6586 Thu Dec 30 04:51:05 1999  Tim Janik  <timj@gtk.org>
6587
6588         * gtk/gtkvscale.c (gtk_vscale_pos_background): 
6589         * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
6590         background size relative to our allocation, guard against small
6591         allocations, we may have not yet been size allocated.
6592
6593 Thu Dec  2 10:59:14 1999  Owen Taylor  <otaylor@redhat.com>
6594
6595         * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
6596         not just version == 3. We implement all 3 + most of 4 - 
6597         (we don't support matching text/plain;charset=iso-8859-1
6598         to a dest that expects text/plain). We'll still advertise
6599         3 to be safe, but any client implementing version >= 3
6600         must interoperate with 3.
6601         
6602 Tue Mar 14 11:53:31 2000  Owen Taylor  <otaylor@redhat.com>
6603
6604         * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
6605         background and gc members, add a warning in gtk_tooltips_set_color()
6606         indicating that this function is deprecated.
6607
6608 Thu Mar  9 22:10:56 GMT 2000  Tony Gale <gale@gtk.org>
6609
6610         * docs/gtkfaq.sgml: FAQ Update:
6611           - Minor cleanups (Emmanuel, me)
6612           - New questions:
6613                 I need to add a new signal to a GTK+ widget. Any idea? (timj)
6614                 How can I retrieve the text from a GtkMenuItem? (timj)
6615                 How do I validate/limit/filter the input to a GtkEntry? (me)
6616                 Memory does not seem to be released when I free the list
6617                         nodes I've allocated (timj)
6618
6619 2000-03-07  Tor Lillqvist  <tml@iki.fi>
6620
6621         * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
6622         (gdk_win32_gdi_failed) New function for reporting errors from GDI,
6623         for which it is no use to call GetLastError onWin9x.
6624         (gdk_other_api_failed) New function, for general error
6625         reporting without calling GetLastError.
6626         (gdk_win32_api_failed) OTOH, this function always calls
6627         GetLastError. (gdk_win32_last_error_string) Remove this function,
6628         GLib has the equivalent now.
6629
6630         * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
6631         call them with function name, file name and line number in the
6632         arguments.
6633
6634         * gdk/win32/*.c: Use the new macros for reporting errors from GDI
6635         functions.
6636         
6637         * gtk/gtk.def: Add some missing entry points.
6638
6639         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
6640         gtk_paned_set_gutter_size, which don't exist any longer, as void.
6641         
6642         Fixes by Hans Breuer:
6643
6644         * gdk/makefile.msc: Update for debugging.
6645
6646         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
6647         implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
6648         PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
6649         in the dash_list.
6650
6651         * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
6652         the x11 backend.
6653
6654         * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
6655
6656         * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
6657
6658 2000-03-04  Tor Lillqvist  <tml@iki.fi>
6659
6660         * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
6661         just pixel value of background colour.
6662
6663         * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
6664         containing code snippet previously duplicated in a couple of
6665         places.
6666         
6667         * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
6668         gdk_colormap_color.
6669
6670         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
6671         GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
6672         events for autorepeated Shift, Control and Alt keys. Use
6673         gdk_colormap_color.
6674
6675         * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
6676         pointer is inside the window the cursor of which we are setting,
6677         call SetCursor immediately.
6678
6679         * gdk/win32/makefile.cygwin
6680         * gtk/makefile.cygwin: If we don't have the build number stamp
6681         file, use zero.
6682
6683         * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
6684         gtk_paned_set_gutter_size as empty.
6685
6686         * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
6687         
6688 Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>
6689
6690         * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
6691           gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
6692           docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
6693           docs/gtk_tut.sgml docs/gtk.texi TODO:
6694
6695           Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
6696
6697 Sat Feb 26 11:46:25 GMT 2000  Tony Gale <gale@gtk.org>
6698
6699         * gtk/gtkcalendar.c: Implement num_marked_dates,
6700           and don't emit mutiple day_selected signals on
6701           month_prev.
6702
6703 2000-02-25  Jonathan Blandford  <jrb@redhat.com>
6704
6705         * docs/make-todo (lineno): let title and logo be configurable so
6706         that GNOME can use this script too.
6707
6708         * TODO.xml: added logourl and a title
6709
6710 Fri Feb 25 11:12:00 2000  Owen Taylor  <otaylor@redhat.com>
6711
6712         * TODO.xml: Added some UI items, and an explanatory
6713         comment at the top of the file.
6714
6715 Thu Feb 24 09:07:28 2000  Tim Janik  <timj@gtk.org>
6716
6717         * TODO.xml: some updates, added abunch of new entries.
6718         a note for those fiddeling with this file, when done
6719         with it, invoke:
6720         $ ./docs/make-todo TODO.xml >/dev/null
6721         and correct output errors before comitting changes.
6722
6723 Wed Feb 23 22:59:50 2000  Owen Taylor  <otaylor@redhat.com>
6724
6725         * TODO.xml: Added XML-structured TODO file.
6726         * docs/make-todo: python script to turn TODO.xml into
6727           pretty XML output. 
6728
6729 2000-02-23  Jonathan Blandford  <jrb@redhat.com>
6730
6731         * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
6732         the function to let it draw the seven dots, instead of the old,
6733         much maligned, method.
6734         (draw_dot): New function to draw a dot.
6735
6736         * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
6737         to draw the handle inside the border width as opposed to outside.
6738         Use paint function instead of gdk_draw_point.
6739
6740         * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
6741         to draw the handle inside the border width as opposed to outside.
6742         Use paint function instead of gdk_draw_point.
6743
6744         * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
6745         Change indenting to be more GTK like.
6746
6747 Wed Feb 23 10:54:14 GMT 2000  Tony Gale <gale@gtk.org>
6748
6749         * docs/gtk_tut.sgml: New section on GtkCalendar
6750         * examples/calendar: Update example code
6751
6752 Tue Feb 22 13:54:12 GMT 2000  Tony Gale <gale@gtk.org>
6753
6754         * docs/gtkfaq.sgml: FAQ Update
6755
6756 2000-02-19  Anders Carlsson  <andersca@gnu.org>
6757
6758         * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
6759         to prevent the scroll event to be propagated upwards.
6760
6761 Fri Feb 18 14:37:29 2000  Owen Taylor  <otaylor@redhat.com>
6762
6763         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
6764         OwnerGrabButtonMask from button entries for
6765         GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
6766
6767         * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
6768         to the event mask (which will result in button/press release
6769         being added to the event mask on Unix) so scrolling works
6770         for layouts in scroll windows.
6771
6772         * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
6773
6774         Patch from Anders Carlsson  <andersca@gnu.org> to add
6775         a scroll event.
6776
6777         * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
6778         scrolling to the "Test Scrolling" part of testgtk.
6779  
6780         * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
6781  
6782         * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
6783         it against GDK_SCROLL.
6784  
6785         * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
6786         way of mouse wheel scrolling.
6787  
6788         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
6789  
6790         * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
6791  
6792         * gtk/gtkmain.c: Removed previous mouse wheel hack.
6793  
6794         * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
6795         gdk_event_mask_table.
6796  
6797         * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added 
6798         GdkEventScroll handler.
6799  
6800         * gdk/gdkevents.h: Added GdkEventScroll structure.
6801  
6802 Thu Feb 17 17:10:12 2000  Owen Taylor  <otaylor@redhat.com>
6803
6804         * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
6805         and Anders Carlsson to change the Paned widgets so that they
6806         can be dragged from anywhere along the length. Also change
6807         the way that this is drawn to make this apparent.
6808
6809         * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
6810         from George Lebl to check that option_menu->menu is present
6811         before getting history.
6812
6813 2000-02-14  Tor Lillqvist  <tml@iki.fi>
6814
6815         * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
6816         before the assertion for non-NULL segment list.
6817
6818         * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
6819         Seems that pattern brushes *must* be 8x8 pixels! At least on my
6820         machine, but it might be display driver dependent. Sigh, so make
6821         sure the stipple is that size. Does Windows suck or what?
6822
6823         * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
6824         places.
6825
6826 2000-02-13  Havoc Pennington  <hp@pobox.com>
6827
6828         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
6829         refcount to 1
6830         (gdk_cursor_new): init refcount to 1
6831
6832         * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
6833
6834 2000-02-13  Tor Lillqvist  <tml@iki.fi>
6835
6836         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
6837         so that we don't have to do unnecessary settings to the HDC.
6838
6839         * gdk/win32/gdkdrawable-win32.c
6840         * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
6841         gdk_gc_predraw.
6842
6843         * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
6844         the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
6845         GDI paths, call WidenPath to get the outline of the stroken path,
6846         and then fill the outline (with the brush that was built from the
6847         stipple).
6848
6849         * gdk/win32/gdkgc-win32.c: Factor out common code from
6850         _gdk_win32_gc_new and gdk_win32_gc_set_values into
6851         gdk_win32_gc_values_to_win32values. Use correct colour for
6852         SetBkColor() (Until now the code actually used a random colour in
6853         the call to SetBkColor()... but that didn't show up as not many
6854         GDI APIs use the background colour. Pattern (opaque stippled)
6855         brushes do.)
6856
6857         * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
6858         gdk_win32_api_failed): New functions for error logging.
6859
6860         * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
6861         WIN32_API_FAILED to call them, passing function or file name and
6862         line number.
6863
6864         * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
6865
6866         * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
6867         GdkColor for foreground and background in GdkGCWin32Data.
6868
6869         * gdk/makefile.cygwin: Link in the resource object separately.
6870
6871         * gdk/win32/rc/gdk.rc
6872         * gtk/gtk.rc (New file)
6873         * gdk/win32/makefile.cygwin
6874         * gtk/makefile.cygwin: Update build number in DLLs automatically,
6875         as in GLib.
6876
6877 Sun Feb 13 08:54:45 2000  Tim Janik  <timj@gtk.org>
6878
6879         * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
6880         * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): 
6881         * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy): 
6882         * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
6883         parameters given and cursor->ref_count. coding style fixups.
6884
6885         * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
6886         not GtkWidget.
6887         
6888         * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
6889         fix up widget macros and add _GET_CLASS() variant.
6890         
6891         * gtk/*.c: some GtkType fixups.
6892
6893 2000-02-09  Tor Lillqvist  <tml@iki.fi>
6894
6895         * gdk/win32/gdkproperty-win32.c
6896         * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
6897         were reversed.
6898
6899 2000-02-04  Tor Lillqvist  <tml@iki.fi>
6900
6901         * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
6902         g_filename_to_utf8 to convert the font names Windows gives us from
6903         whatever is the default codepage to UTF-8.
6904         (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
6905         in the other direction.
6906
6907         * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
6908         error in debugging output.
6909
6910 2000-02-02  Tor Lillqvist  <tml@iki.fi>
6911
6912         * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
6913         and height parameters to gdk_window_clear_area(). Not minus one.
6914
6915 Wed Feb  2 11:58:05 2000  Owen Taylor  <otaylor@redhat.com>
6916
6917         * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
6918         checks if the widget passed to gtk_drag_get_data() was not the
6919         dest widget.
6920
6921 2000-02-01  Tor Lillqvist  <tml@iki.fi>
6922
6923         * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
6924         g_filename_from_utf8 functions (which were added a moment ago to
6925         GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
6926         size buffers.
6927
6928         gtk_file_selection_get_filename returns the filename in the C
6929         runtime encoding. It calls g_filename_from_utf8, but copies the
6930         returned string to a static buffer, which is returned. I think
6931         this is better than returning the result from g_filename_from_utf8
6932         directly, which would mean all apps that use it would have to free
6933         the return value. Or should this function care about this issue at
6934         all? Maybe a new function with clearly defined semantics.
6935
6936         * gtk/gtkfilesel.h: Add comment about
6937         gtk_file_selection_get_filename returning the filename in the C
6938         runtime's encoding.
6939
6940         * README.win32
6941         * gdk/gdk.def
6942         * gdk/makefile.{cygwin,msc}
6943         * gtk/gtk.def: Updates.
6944
6945         * gdk/gdkcursor-win32.c: Initialise refcount.
6946
6947 2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>
6948
6949         * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
6950
6951 2000-01-30  Havoc Pennington  <hp@pobox.com>
6952
6953         * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
6954         destroy
6955
6956         * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
6957
6958         * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then 
6959         implemented in platform-specific code
6960
6961         * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
6962
6963         * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
6964         underscore in front
6965
6966         * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
6967         put an underscore in front
6968
6969         * gdk/gdkcursor.c: new file, implements
6970         gdk_cursor_ref/gdk_cursor_unref
6971
6972         * gdk/gdkcursor.h: Refcount GdkCursor
6973
6974         * gdk/gdkcompat.h (gdk_cursor_destroy): compat
6975
6976 2000-01-29  Tor Lillqvist  <tml@iki.fi>
6977
6978         * gdk/gdkwindow.h
6979         * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
6980
6981 Tue Jan 25 11:43:21 2000  Owen Taylor  <otaylor@redhat.com>
6982
6983         * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
6984         structures to properly inherit from GtkWidget not GtkBin.
6985
6986 Sun Jan 23 20:28:24 2000  Owen Taylor  <otaylor@redhat.com>
6987
6988         * gtk+.spec.in: Added lib/gtk+/include/* to %files
6989         (bug #5178 - Peter Wainright)
6990         
6991         * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
6992         so that it will be installed.
6993         (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
6994
6995 Fri Jan 21 16:29:28 2000  Owen Taylor  <otaylor@redhat.com>
6996
6997         * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
6998         for the GtkStyleClass vtable const.
6999
7000         * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
7001         take a const string argument like GtkTranslateFunc. This will
7002         require changes in use code.
7003
7004 2000-01-19  Tor Lillqvist  <tml@iki.fi>
7005
7006         * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
7007         semantics (to mimic the X11 backend, which just calls XClearArea)
7008         is to check for zero width (and height), and in that case use the
7009         window's width minus x (height minus y). This fixes for instance
7010         some redraw problems with gtkclist, which were easily noticeable
7011         in the gtk file selection widget.
7012
7013         (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
7014         windows.
7015
7016 2000-01-13  Tor Lillqvist  <tml@iki.fi>
7017
7018         * configure.in
7019         * gdk/Makefile.am
7020         * gdk/x11/Makefile.am
7021         * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
7022         (bug #5177).
7023         * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
7024         out later.
7025
7026 2000-01-09  Tor Lillqvist  <tml@iki.fi>
7027
7028         * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
7029         WM_MOVE for iconified or invisible windows. This fixes various
7030         problems when minimising windows. Thanks to Bernd Herd.
7031
7032 2000-01-05  Tor Lillqvist  <tml@iki.fi>
7033
7034         * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
7035         backend's draw_lines method, not draw_points.
7036
7037 2000-01-02  Tor Lillqvist  <tml@iki.fi>
7038
7039         * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
7040         before Owen's reorganisation: Don't have queued_events and
7041         queued_tail statics in this file, but use gdk_queued_events and
7042         gdk_queued_tail. This makes exposure event compression work again.
7043
7044         (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
7045         seem to be needed?
7046
7047 1999-12-30  Tor Lillqvist  <tml@iki.fi>
7048
7049         * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
7050         gdkkeysyms.h to get the GDK_* keysym constants that are needed by
7051         gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
7052         doesn't do anything.
7053
7054         * gdk/gdk.def: Add gdk_xid_table_insert.
7055
7056         * gdk/win32/gdkprivate-win32.h
7057         * gdk/win32/gdkevents-win32.c
7058         * gdk/win32/gdkinput-win32.c
7059         
7060         * gdk/win32/gdkwindow-win32.c: Remove the superfluous
7061         extension_events field in the GdkWindowWin32Data struct. Use only
7062         the extension_events field in GdkWindowPrivate. Previously one was
7063         set, and the other one tested, which broke tablet
7064         functionality. Thanks to Keishi Suenaga for pointing this out.
7065
7066 1999-12-18  Tor Lillqvist  <tml@iki.fi>
7067
7068         * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
7069         When handling a single character (text length == 1), don't handle
7070         it as if it was UTF-8.
7071
7072 1999-12-11  Tor Lillqvist  <tml@iki.fi>
7073
7074         * Makefile.am: Distribute README.win32.
7075         
7076         * gdk/Makefile.am
7077         * gdk/win32/Makefile.am: Distribute Win32 files.
7078
7079         * gdk/makefile.msc: New file.
7080
7081         * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
7082         after label).
7083
7084         * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
7085         gdk_error_code as GDKVAR, as they are referred outside GDK.
7086
7087         * gdk/win32/makefile.msc: Update.
7088
7089         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
7090         tweaks. Check only if at least one of those Unicode subrange bits
7091         we care for is set. If no code page bits are set, guess (wildly)
7092         based on the charset.
7093
7094         * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
7095
7096         * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
7097         non-NULL.
7098
7099         * gtk/gtkdnd.c
7100         * gtk/gtklayout.c
7101         * gtk/gtkplug.c
7102         * gtk/gtkselection.c
7103         * gtk/gtksocket.c
7104         * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
7105         appropriate. There must be a cleaner way to handle this?
7106
7107         * gtk/gtkrc.c: Must include windows.h on Win32.
7108
7109         * gtk/testgtk.c: No need to include gdkx.h.
7110
7111         * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
7112
7113 1999-12-07  Tor Lillqvist  <tml@iki.fi>
7114
7115         * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
7116         the rbearing is set to the same as the width, but this should be
7117         fixed.
7118
7119 1999-12-06  Tor Lillqvist  <tml@iki.fi>
7120
7121         * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
7122         function. If Windows doesn't tell us what Unicode subranges a font
7123         covers, guesstimate based on the codepages it covers. This will
7124         hopefully help those Windows versions or fonts that don't give us
7125         any useful Unicode subrange information with GetTextCharsetInfo.
7126         Call this function in gdk_font_load_internal.
7127
7128         * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
7129         minor changes.
7130
7131 Fri Dec  3 14:09:50 1999  Owen Taylor  <otaylor@redhat.com>
7132
7133         * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
7134         New function, long needed.
7135
7136 Wed Dec  1 22:35:43 1999  Owen Taylor  <otaylor@redhat.com>
7137
7138         * gdk/gdkproperty.h x11/gdkproperty.c: Change 
7139         only_if_exists argument of gdk_atom_intern to
7140         bool.
7141
7142 1999-11-25  Tor Lillqvist  <tml@iki.fi>
7143
7144         * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin): 
7145         Fix two copy&paste errors.
7146
7147         * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
7148         win32 has changed.
7149
7150         * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
7151         GdkWin32SingleFont struct.
7152
7153         * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
7154         subranges of loaded fonts. Clear font signature first, in case
7155         GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
7156         ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
7157
7158         * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
7159         Unoffset clip region.
7160
7161 1999-11-23  Tor Lillqvist  <tml@iki.fi>
7162
7163         * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
7164         event->any.window before calling filter functions.
7165
7166 Fri Nov 19 10:34:41 1999  Owen Taylor  <otaylor@redhat.com>
7167
7168         * gtk/gtkgamma.h: Adapt cast macros to standard.
7169
7170 [ Merges from 1.2 ]
7171
7172 Tue Nov 16 10:15:54 1999  Owen Taylor  <otaylor@redhat.com>
7173
7174         * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
7175         If translation does not include a '/', use entire
7176         translation instead of crashing.
7177
7178 Sun Oct 31 22:21:11 1999  Tim Janik  <timj@gtk.org>
7179
7180         * docs/gtk_tut.sgml:
7181         s/gtk_accel_group_attach/gtk_window_add_accel_group/.
7182
7183 Sat Oct 30 09:09:09 1999  Owen Taylor  <otaylor@redhat.com>
7184
7185         * gtk/gtkselection.c (gtk_target_list_remove): Use
7186         g_list_remove_link, not g_list_remove.
7187
7188         [ From Geert Bevin <gbevin@thunderstorms.org> ]
7189         
7190 Sun Oct 24 07:41:40 1999  Tim Janik  <timj@gtk.org>
7191
7192         * gtk/gtkclist.c (real_undo_selection): commented out g_print()
7193         statement upon unselection (how the heck did that slip in?).
7194
7195 Sat Oct 23 03:03:08 1999  Tim Janik  <timj@gtk.org>
7196
7197         * gtk/gtktext.c (gtk_text_freeze): 
7198         (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
7199         in frozen state (and aparently crashes). patch provided by Anders
7200         Melchiorsen <and@kampsax.dtu.dk>.
7201
7202 Sat Oct 23 02:53:20 1999  Tim Janik  <timj@gtk.org>
7203
7204         * fix insensitive default/focus widget activation,
7205         reported by Matt Goodall <mgg@isotek.co.uk>.
7206
7207         * gtk/gtkwindow.c (gtk_window_key_press_event): 
7208         (gtk_window_activate_default):
7209         (gtk_window_activate_focus):
7210         return handled=FALSE for actiavtion of insensitive default
7211         widgets. return handled=TRUE for activation of insensitive
7212         focus widgets. don't activate in either case.
7213
7214 Tue Oct 19 09:55:08 1999  Owen Taylor  <otaylor@redhat.com>
7215
7216         * gtk-config.in (lib_gtk): Switch order of @x_cflags@
7217         and $glib_cflags to match library order and in the
7218         theory that an old version of GLib is more likely to
7219         be in the include directory for X then vice-versa.
7220         (Bug #2776)
7221
7222 Tue Oct 19 09:46:49 1999  Owen Taylor  <otaylor@redhat.com>
7223
7224         * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE 
7225         to determine the locale for fontsets, not LC_MESSAGES;
7226         the user may want English messages with a handling
7227         for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
7228         will still be broken) (Bug #2891)
7229
7230 Tue Oct 19 20:36:42 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
7231
7232         * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
7233
7234 Tue Oct 19 12:15:13 1999  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>
7235
7236         * gtk/gtkrc.ko: Changed the Korean default fontset.
7237
7238 Fri Oct  8 02:32:47 1999  Owen Taylor  <otaylor@redhat.com>
7239
7240         * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
7241         where when scrolling to the left or top double exposes
7242         were done, causing major slowdowns.
7243
7244 Thu Oct  7 18:31:55 1999  Owen Taylor  <otaylor@redhat.com>
7245
7246         * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
7247         names to lowercase and alphanumeric, before looking
7248         them up.
7249
7250         * gtk/Makefile.am: Install codeset variant gtkrc files
7251         with normalized names.
7252
7253 Thu Oct  7 22:52:42 1999  Tim Janik  <timj@gtk.org>
7254
7255         * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
7256         popup menus when the menu is already visible, but its parent
7257         is still hidden, (happens after tornoff window got hidden).
7258
7259 Thu Oct  7 11:09:55 1999  Owen Taylor  <otaylor@redhat.com>
7260
7261         * gtk/Makefile.am (install-data-local): Fix
7262         a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
7263         deleted, causing error messages on install.
7264
7265 Thu Oct  7 11:03:06 1999  Owen Taylor  <otaylor@redhat.com>
7266
7267         * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
7268         the handle as well, since we now sometimes ignore
7269         exposes on the handle while resizing.
7270
7271 Wed Oct  6 18:02:31 1999  Owen Taylor  <otaylor@redhat.com>
7272
7273         * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
7274         extra g_free introduced in one of the last one or two 
7275         commits.
7276
7277 Wed Oct  6 16:38:36 1999  Owen Taylor  <otaylor@redhat.com>
7278
7279         * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
7280         consistent, put each style that a gtkrc.* file creates
7281         in a unique namespace, remove old files before installing.
7282
7283 Wed Oct  6 14:31:16 1999  Owen Taylor  <otaylor@redhat.com>
7284
7285         * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
7286         gtk_rc_init is called multiple times. (Yes, people who
7287         do that have bugs in their code.)
7288
7289 Tue Oct  5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
7290
7291         * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
7292         Remove it since it's generated by the Makefile anyway
7293
7294 Tue Oct  5 02:43:41 1999  Owen Taylor  <otaylor@redhat.com>
7295
7296         * gdk/gdkinputcommon.h (gdk_input_device_new): Free
7297         device->info.axes for core pointer.
7298
7299 Thu Sep 30 13:55:25 1999  Owen Taylor  <otaylor@redhat.com>
7300
7301         * gtk/testgtk.c (destroy_idle_test): Rename idle to 
7302         idle_id, to deal with obsolete, broken C libraries.
7303
7304 Mon Sep 27 02:50:15 1999  Owen Taylor  <otaylor@redhat.com>
7305
7306         * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
7307         allocation->x/y twice!
7308
7309         * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
7310         consistent with gtk_vscale_pos_trough().
7311
7312 Sun Sep 26 19:44:34 1999  Owen Taylor  <otaylor@redhat.com>
7313
7314         * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
7315         be queueing a resize on a toplevel container between
7316         the time we show it and when we map it. So, we need
7317         to test GTK_WIDGET_VISIBLE() for toplevels, and only
7318         use GTK_WIDGET_DRAWABLE() for child windows.
7319
7320 Thu Sep 23 16:41:03 1999  Owen Taylor  <otaylor@redhat.com>
7321
7322         * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS 
7323         (fixes bug #2144)
7324
7325 Fri Sep 24 00:51:45 1999  Tim Janik  <timj@gtk.org>
7326
7327         * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
7328         container DRAWABLE (instead of VISIBLE), so we don't queue
7329         resizes on non-toplevel containers.
7330
7331 Sun Sep 19 18:13:31 1999  Owen Taylor  <otaylor@redhat.com>
7332
7333         * gtk/gtkselection.[ch]: Make the data argument
7334         const guchar *.
7335
7336 Sat Sep 18 21:27:40 1999  Owen Taylor  <otaylor@redhat.com>
7337
7338         * gtk/gtkwindow.c: Try to behave sensibly if 
7339         the focus widget is the window itself. (Should
7340         we allow this at all?)
7341
7342 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
7343
7344         * gtk/gtkwidget.c (gtk_widget_set_sensitive): 
7345         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): 
7346         * gtk/gtknotebook.c (gtk_notebook_set_show_border): 
7347         * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
7348         in prototypes and implementations consistent (Tomas Ogren).
7349
7350         * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
7351         before the widget is unparented (reported by damon).
7352
7353         * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
7354         since we provide unsigned data anyways.
7355
7356 Thu Sep 16 21:32:01 1999  Owen Taylor  <otaylor@redhat.com>
7357
7358         * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
7359         the call to gtk_tooltips_layout_text() until later.
7360
7361         * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
7362         Call gtk_widget_ensure_style() before using the style.
7363
7364 Wed Sep 15 02:52:19 1999  Owen Taylor  <otaylor@redhat.com>
7365
7366         * gtk/gtkwidget.c (gtk_widget_event): Added workaround
7367         for old widgets that don't propagate draws to all
7368         children. (Namely gnome-dock for gnome-libs <= 1.0.16)
7369
7370 Tue Sep 14 19:22:19 1999  Tim Janik  <timj@gtk.org>
7371
7372         * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
7373         for a redraw but just the widget that requested the resize.
7374
7375 Tue Sep 14 18:29:47 1999  Tim Janik  <timj@gtk.org>
7376
7377         * gtk/gtkcontainer.c: added new widget level method
7378         gtk_container_set_reallocate_redraws() and a GtkContainer flag
7379         reallocate_redraws : 1 to reflect the setting, exported this through
7380         the argument system as a boolean ::reallocate_redraws.
7381
7382         * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
7383         on the widget because the allocation changes, do so as well for
7384         widget->parent if the parent has reallocate_redraws set to TRUE.
7385         with that containers requesting reallocation redraws get automatically
7386         redrawn if their children changed allocation (this unfortunately
7387         affects also other children that didn't change allocation, but we
7388         cannot work around that before 1.3).
7389
7390 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
7391
7392         * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
7393         _and_ height are >0 (not _or_).
7394
7395         * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
7396         instead of gtk_container_queue_resize(), which is a core gtk internal
7397         function (must have been on crack when i queued that).
7398
7399         * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
7400         we can check more reliably if we want to discard expose events.
7401         * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
7402         flag.
7403         
7404         * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
7405         we simply trust these events. for deciding whether to discard exposes,
7406         check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
7407         
7408 Mon Sep 13 15:01:21 1999  Owen Taylor  <otaylor@redhat.com>
7409
7410         * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
7411         queues of areas that are completely off screen.
7412
7413         * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
7414         logic for handleboxes.
7415
7416         * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
7417         check on width/height.
7418
7419 Mon Sep 13 02:22:47 1999  Tim Janik  <timj@gtk.org>
7420
7421         * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
7422         we are fine with using $@ the way we do (if we actually encounter
7423         brokeness with $@ in VPATH builds because of additional path prefixes,
7424         we need to use $(@F) actually).
7425
7426 Mon Sep 13 01:34:53 1999  Tim Janik  <timj@gtk.org>
7427
7428         * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
7429         short lived bugs, that would allow language bindings to do surgeries
7430         to our guts.
7431
7432 Fri Sep 10 15:22:50 1999  Owen Taylor  <otaylor@redhat.com>
7433
7434         * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
7435         where comparison was being done against an uninitialized
7436         value causing intermittant results depending on
7437         compiler flags. Also make it clearer that we aren't
7438         ever initializing the child as 0x0 (though this will
7439         be caught in gtk_widget_size_allocate())
7440
7441 Fri Sep 10 10:06:56 1999  Owen Taylor  <otaylor@redhat.com>
7442
7443         * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
7444         gtk_window_unset_transient_for() call after we do checks
7445         involving the old transient parent.
7446         [ From Lance Capser <lmc@cyberhighway.net> ]
7447
7448 1999-09-07  Raja R Harinath  <harinath@cs.umn.edu>
7449
7450         * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
7451         an empty file.
7452
7453 Mon Sep  6 00:11:56 1999  Lars Hamann  <lars@gtk.org>
7454
7455         * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
7456         no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
7457
7458 1999-09-03  Raja R Harinath  <harinath@cs.umn.edu>
7459
7460         * gtk/Makefile.am (gen_sources): Improve VPATH builds.
7461         `$@' is valid only in the build dir, not after we've done 
7462         `cd $srcdir'.  Also use `test -f' instead of less portable
7463         `test -e'.
7464
7465 Fri Sep  3 15:59:56 1999  Owen Taylor  <otaylor@redhat.com>
7466
7467         * gtk/gtktext.c (correct_cache_insert): Rewrite
7468          for simplicity, and hopefully correctness.
7469          (Fixes bug #1322, which was a segfault when
7470           on some insertions with the properties around
7471           the insertion set up just wrong.)
7472
7473         * gtk/gtktext.c (gtk_text_adjustment): When we receive
7474          a "changed" signal, clamp the new value to the adjustment
7475          bounds to avoid segfaulting if someone tries to change
7476          the adjustment to a bogus value. (Bug #1795)
7477
7478 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
7479
7480         * gtk/gtkmain.c: Ignore unexpected destroy notifies
7481         for children, for toplevel windows handle them
7482         like delete_event.
7483
7484         * gtk/gtkplug.c: Add an unrealize handler so that
7485         we unref plug->socket_window when we are done
7486         with it.
7487
7488 Fri Sep  3 14:52:54 1999  Owen Taylor  <otaylor@redhat.com>
7489
7490         * gtk/gtktext.c (clear_area): Fix stupid signedness
7491          problem that was causing background to sometimes
7492          be misaligned.
7493
7494 Fri Sep  3 12:26:33 1999  Owen Taylor  <otaylor@redhat.com>
7495
7496         [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
7497         
7498         * gtk/gtkmenu.c (gtk_menu_position): Make
7499          sure we never position menus with negative x, y,
7500          since gtk_widget_set_uposition() can't handle that.
7501
7502         * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
7503          Modify the positioning code a bit so that we always
7504          put the top-left corner onscreen. (This is for
7505          UI reasons, gtk_menu_position() now takes care of
7506          gtk_widet_set_uposition() brokeness.)
7507
7508 Fri Sep  3 03:06:30 1999  Tim Janik  <timj@gtk.org>
7509
7510         * gtk/Makefile.am: fixed up things for -jx, x > 1.
7511
7512 Sun Sep  5 08:48:51 1999  Owen Taylor  <otaylor@redhat.com>
7513
7514         * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
7515           RC style that is passed in. The lack of the ref
7516           before was a bug. If people worked around this
7517           bug, this will introduce a slight memory leak
7518           in their code. The code should typically look like:
7519
7520             rc_style = gtk_rc_style_new ();
7521             [...]
7522             gtk_widget_modify_style (widget, rc_style);
7523             gtk_rc_style_unref (rc_style);
7524
7525         * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
7526           the style if it was already set.
7527
7528         * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
7529           style if it was set before.
7530
7531 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
7532
7533         * gtk/testgtk.c (main): Add a check to see if we
7534           are being run from the correct directory and
7535           to quit nicely if we are not.
7536
7537         * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
7538           static.
7539
7540 Thu Sep  2 23:00:03 1999  Tim Janik  <timj@gtk.org>
7541
7542         * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
7543
7544         * gtk/gtkwindow.c:
7545         queue resizes unconditionally (gtk_widget_queue_resize will figure
7546         what to do if the window is not realized).
7547         (gtk_window_move_resize): only recenter the window
7548         for GTK_WIN_POS_CENTER_ALWAYS.
7549         (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
7550         the same way as GTK_WIN_POS_CENTER.
7551
7552 Thu Sep  2 22:39:27 1999  Tim Janik  <timj@gtk.org>
7553
7554         * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
7555         with (!(info->last_flags & GDK_HINT_POS)) instead of
7556         (!info->last_flags & GDK_HINT_POS).
7557
7558         * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
7559         new_height unconditionally, because we use these values even if
7560         !default_size_changed && !hints_changed.
7561         comented the (default_size_changed || hints_changed) case with
7562         respect to resize rejects from the window manager.
7563
7564         * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
7565         in the zvt condition hack, since this includes the window hints, set
7566         the hints after the handling_resize case.
7567
7568         * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
7569         window is initially shown with to the geometry.
7570
7571 Thu Sep  2 07:38:56 1999  Tim Janik  <timj@gtk.org>
7572
7573         * gtk/gtkwindow.c (gtk_window_move_resize):
7574         s/size_changed/default_size_changed/g so i know what's
7575         really going on (frying brain on smaller flame now).
7576
7577 Thu Sep  2 05:47:47 1999  Tim Janik  <timj@gtk.org>
7578
7579         * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
7580         we have size_changed upon handling_resize. this is a gross
7581         workaround for the broken zvt widget and should be removed in
7582         1.3 again (search for FIXME).
7583         Owen provided an accurate comment for this:
7584
7585         /* We could be here for two reasons
7586          *  1) We coincidentally got a resize while handling
7587          *     another resize.
7588          *  2) Our computation of size_changed was completely
7589          *     screwed up, probably because one of our children
7590          *     is broken. It's probably a zvt widget.
7591          *
7592          * For 1), we could just go ahead and ask for the
7593          * new size right now, but doing that for 2)
7594          * might well be fighting the user (and can even
7595          * trigger a loop). Since we really don't want to
7596          * do that, we requeue a resize in hopes that
7597          * by the time it gets handled, the child has seen
7598          * the light and is willing to go along with the
7599          * new size. (this happens for the zvt widget, since
7600          * the size_allocate() above will have stored the
7601          * requisition corresponding to the new size in the
7602          * zvt widget)
7603          *
7604          * This doesn't buy us anything for 1), but it shouldn't
7605          * hurt us too badly, since it is what would have
7606          * happened if we had gotten the configure event before
7607          * the new size had been set.
7608          */
7609
7610 Wed Sep  1 20:46:11 1999  Owen Taylor  <otaylor@redhat.com>
7611
7612         * gtk/gtkrc.c: deal properly with the fact that RC
7613           style lists may include rc styles more than once.
7614
7615         * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
7616           unused static function.
7617
7618         * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
7619           stack of directories of RC files currently being
7620           parsed and implicitely add them to pixmap path.
7621           
7622           This fixes a bug where the directory would get
7623           appended then overwritten by pixmap_path declarations.
7624
7625           (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
7626
7627         * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
7628           theme's exit function. (Patch from Peter Wainwright,
7629           bug #1454)
7630
7631         * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
7632           Add a destroy() handler to take care of removing
7633           group for menu item. (Fixes bug #1197)
7634
7635         * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
7636           in warning message.
7637
7638 Wed Sep  1 21:27:42 1999  Tim Janik  <timj@gtk.org>
7639
7640         * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
7641         roundtrip to figure window's width and height, since we know that
7642         anyways from widget->allocation.
7643
7644 Wed Sep  1 12:37:44 1999  Owen Taylor  <otaylor@redhat.com>
7645
7646         * gtk/gtkwindow.c (gtk_window_move_resize): Compute
7647           the hints after we request the new size.
7648
7649 Wed Sep  1 10:38:37 1999  Owen Taylor  <otaylor@redhat.com>
7650
7651         * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
7652           GTK_WIDGET_REALIZED() assertion - we can compute the
7653           hints before we are realized.
7654
7655         * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
7656           hint changing so that we have a value of hints_changed
7657           when we decide whether to constrain the window size.
7658
7659         * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
7660
7661         * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
7662         change back to G_MAXINT.
7663
7664 Wed Sep  1 06:54:59 1999  Tim Janik  <timj@gtk.org>
7665
7666         * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
7667         new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
7668         contain uncluttered values.
7669         (gtk_window_compute_hints): simply assert that window is realized
7670         and that geometry_info is valid, since we rely on this anyways.
7671         (gtk_window_constrain_size): major cleanups to the code.
7672         if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
7673         for the base size, instead of the minimums. use 32767 as max width
7674         and height (like in gtkwindow.c) instead of G_MAXINT.
7675
7676 Wed Sep  1 04:41:25 1999  Tim Janik  <timj@gtk.org>
7677
7678         * cleaned up the GtkContainer.need_resize flag handling mess, we
7679         only need to force resize requests when we were prematurely
7680         realized, or our widget tree was modified when we were temporarily
7681         hidden. handling these cases directly upon showing the window (i.e.
7682         while the GdkWindow is still unmapped) avoids the need to wait for
7683         a configure event response and therefore makes the GUI more snappier
7684         and avoids blank windows during the roundtrip.
7685
7686         * gtk/gtkwidget.c:
7687         (gtk_widget_hide): 
7688         (gtk_widget_show): don't queue resizes on toplevels, they know how
7689         to deal with matters.
7690
7691         * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
7692         flag directly for not visible resize containers and spare us unecessary
7693         signal emissions.
7694
7695         * gtk/gtkwindow.c:
7696         (gtk_window_realize): if we need to enforce premature size allocation,
7697         queue a container resize so we are correctly resized later on.
7698         (gtk_window_init):
7699         (gtk_window_size_request):
7700         don't freak around with the ->need_resize flag,
7701         gtk_container_queue_resize() will care about that.
7702         (gtk_window_show):
7703         handle initial resizing issues here, we can handle matters better in
7704         this place, especially since we know that our GdkWindow is still
7705         unmapped.
7706         (gtk_window_move_resize):
7707         don't care about ->need_resize at all.
7708         handle size changes properly that occoured while we waited for a
7709         configure event.
7710
7711 Tue Aug 31 15:58:46 1999  Owen Taylor  <otaylor@redhat.com>
7712
7713         * gtk/gtkwidget.c (gtk_widget_set_uposition):
7714         * gtk/gtkwindow.[hc] (gtk_window_reposition):
7715         Move the hint setting code from gtk_widget_set_uposition
7716         to here; set the hints so that we respect any previously
7717         set geometry hints.
7718
7719         * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
7720         change the window hints here or move the window here,
7721         let that happen in gtk_window_move_resize().
7722
7723 Tue Aug 31 06:58:52 1999  Tim Janik  <timj@gtk.org>
7724
7725         * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
7726         to already queued resizes (and therefore redraws) on a widget, check
7727         its anchestry as well.
7728
7729         * gtk/gtkcontainer.c:
7730         (gtk_container_queue_resize): clear resize widgets for resize
7731         containers before aborting prematurely. this is especially important
7732         for toplevels which may need imemdiate processing or their resize
7733         handler to be queued.
7734         (gtk_container_dequeue_resize_handler): added new internal function for
7735         gtkwindow.c.
7736
7737         * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
7738         configure event, take possible changes in window position into account
7739         as well.
7740         if we request a new window size, queue up a resize handler that will
7741         last until the configure event response arrives.
7742         combined the ->need_resize case (initial show) with the general size
7743         (hints) changed case and added even more comments.
7744         if !auto_shrink, only revert to the old allocation if the new size
7745         is smaller than the current allocation.
7746
7747 Tue Aug 31 11:55:20 1999  Owen Taylor  <otaylor@redhat.com>
7748
7749         * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
7750                            gtk_window_set_geometry_hints
7751                            gtk_window_set_default_size):
7752         When hints are set, queue a resize so that the hints will
7753         be eventually reset on the toplevel.
7754
7755         * gtk/gtkwindow.c (gtk_window_show): Use
7756         gtk_window_compute_default_size(). Clear the need_resize flag
7757         on the initail map so that we don't unnecessarily trigger the
7758         resize code.
7759
7760         * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
7761         into separate functions. Compare the hints we are setting
7762         with what we set last time so that we can accurately
7763         tell when we need to reset the hints.
7764
7765         * gtk/gtkwindow.c (gtk_window_compute_default_size): New
7766         function to figure out the size from requisition
7767         and default_size.
7768
7769         * gtk/gtkwindow.c (gtk_window_constrain_size): Function
7770         from fvwm to constrain a size to the geometry hints.
7771
7772         * gtk/gtkwindow.c (gtk_window_compare_hints): New function
7773         to compare two sets of geometry hints.
7774
7775         * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
7776         from gtk_window_set_hints(), just compute the hints,
7777         don't set them.
7778
7779         * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
7780         code from gtk_window_move_resize() to separate function,
7781         rationalize a bit.
7782
7783 Tue Aug 31 13:05:03 1999  Owen Taylor  <otaylor@redhat.com>
7784
7785         * gtkrc.h: Move the ref_count member out of the GtkRcStyle
7786         structure into a new private structure.
7787
7788         * gtkrc.c: Split GtkRcStyle into public/private.
7789         In the private part, add a list of pointers to the
7790         RcStyle lists this RcStyle participates in.
7791
7792         * gtkrc.c: When a RcStyle is free, remove all
7793         lists referencing it from the 
7794         realized_style_ht hash, and free those lists.
7795         
7796         * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
7797         gtk_rc_init(), since that adds the default styles
7798         to the list of parsed RC files again.
7799
7800         * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
7801         
7802 Thu Aug 26 14:14:42 1999  Tim Janik  <timj@gtk.org>
7803
7804         * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
7805         checks that ensure that a widget's allocation is at least 1 in width
7806         and height. (GNOME note: this doesn't affect old panel code anymore,
7807         because GtkSocket will request width and height of at least 1 since
7808         Fri Jul 23).
7809
7810         * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
7811         allocated yet (happens if the user realizes the window prematurely),
7812         size request and allocate it.
7813         (gtk_window_size_allocate): guard against guint underflows.
7814
7815 Wed Aug 25 19:01:36 1999  Lars Hamann  <lars@gtk.org>
7816
7817         * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
7818         in gtk_built_sources, so gtk.defs gets built prior to all other
7819         sources.
7820
7821 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
7822
7823         * gtk/Makefile.am:
7824         invoke indent on gtkmarshal.*. 
7825         rewrote source generation rules, use COPYING as oldest source tag for
7826         a piggyback rule to generate all sources from (don't touch it ;).
7827         major cleanups, strip spaces on build rules for GNU Make.
7828
7829         * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
7830         source and target files from commandline arguments. don't invoke indent.
7831
7832 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
7833
7834         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
7835         notebook after switch to avoid drawing problems.
7836         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
7837         
7838         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
7839         show them instead. 
7840         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
7841
7842 Sat Aug 21 14:07:36 1999  Lars Hamann  <lars@gtk.org>
7843
7844         * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
7845         notebook after switch to avoid drawing problems.
7846         (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
7847         
7848         (gtk_notebook_pages_allocate): don't map not visible tab_labels, 
7849         show them instead. 
7850         (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
7851
7852 Wed Aug 18 09:20:10 1999  Tim Janik  <timj@gtk.org>
7853
7854         * gtk/gtkwindow.c:
7855         we use window->need_resize from configure_event now, to indicate that
7856         the gtkwindow should keep its allocation (e.g. because the user resized
7857         the window through window manager handles). resize_count is now reliably
7858         used to figure whether we got the allocation we requested from the
7859         window manager.
7860         configure events get queued as resizes now, the real stuff (size
7861         computation and allocation) now only goes on in gtk_window_move_resize().
7862         GtkWindow's requisition now contains its *real* requisition (like all
7863         other widgets), *not* taking usize into account.
7864         geometry_info->last_{width|height} is now updated from set_hints() only
7865         so it always contains the last hints we set for the window manager.
7866         made some event handlers return TRUE instead of FALSE.
7867         the overall code should be much more straight forward now, and the
7868         significant code portions are accompanied by comments now.
7869         (gtk_window_set_hints):
7870         removed requisition argument and made it
7871         fetch the requisition through gtk_widget_get_child_requisition.
7872         we also don't move the gdkwindow here anymore, gtk_window_move_resize()
7873         does that now.
7874         (gtk_window_show):
7875         ensure that the widget is realized before calling 
7876         gtk_container_check_resize() (and thus gtk_window_move_resize()), also
7877         ensure that we got properly size requested and allocated before
7878         realization.
7879         (gtk_window_configure_event):
7880         ignore plain window moves, or reallocate the widget tree through the
7881         resize queue otherwise.
7882         (gtk_window_move_resize):
7883         mostly rewrote this function to figure window manager hints more
7884         reliably, coalesce window moves and resizes to reduce configure events
7885         and do actuall size allocations.
7886
7887 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
7888
7889         * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
7890         that have a resize pending, because a redraw is already queued for them.
7891
7892         * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
7893         hack to clear resize_widgets.
7894
7895         * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
7896         for resize containers prior to size allocation. (this is also a bit
7897         ugly, but avoids side effects for stopped emissions and is thus more
7898         reliable).
7899         (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
7900
7901         * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
7902         function from gtk_tooltips_expose, as we connect to ::expose_event
7903         *and* ::draw now.
7904
7905 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
7906
7907         * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
7908         checks.
7909         (gtk_target_list_unref): Likewise.
7910
7911         * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
7912
7913 Tue Aug 17 15:47:07 1999  Owen Taylor  <otaylor@redhat.com>
7914
7915         * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
7916         guard against division by zero. (Fixes bug #1339)
7917
7918 Tue Aug 17 10:56:49 1999  Owen Taylor  <otaylor@redhat.com>
7919
7920         * gtk/gtkentry.c (gtk_move_{forward,backward}_word): 
7921         Prevent the trivial leak of information of allowing
7922         word motion when the entry is not visible.
7923
7924 Tue Aug 17 10:28:52 1999  Owen Taylor  <otaylor@redhat.com>
7925
7926         * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
7927         modality to error dialog as well as confirmation dialogs.
7928         (Bug #1803, reported by Rosanna Wing Sze Yuen)
7929
7930 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
7931
7932         * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
7933         tree->view_lines.
7934         (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
7935
7936         * gtk/Makefile.am (install-data-local): Solaris apparently
7937         has various troubles with ln -f; use rm first instead.
7938         (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
7939
7940 1999-07-30  Raja R Harinath  <harinath@cs.umn.edu>
7941
7942         * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
7943         use `cp' followed by `rm' (the `rm' was already there).
7944
7945 July 30, 1999 Elliot Lee <sopwith@redhat.com>
7946         
7947         * configure.in: Fix autoconf warnings about cross compilation by
7948         trying to provide sane defaults for AC_TRY_RUN.
7949         * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
7950         put them into $(srcdir) when generated. Also add a dependency of
7951         gtksignal.h on gtkmarshal.h for -j builds. 
7952         * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
7953
7954 Wed Jul 28 09:29:19 1999  Owen Taylor  <otaylor@redhat.com>
7955
7956         * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
7957         GDK_THREADS_{LEAVE,ENTER} pair.
7958         (From Paul Fisher <pnfisher@redhat.com>)
7959
7960 Fri Jul 23 01:00:15 1999  Tim Janik  <timj@gtk.org>
7961
7962         * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
7963         width and height are always >0 (owen).
7964
7965 Fri Jul 23 00:00:47 1999  Tim Janik  <timj@gtk.org>
7966
7967         * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
7968         change that assured that a widget's allocated with and height are
7969         always >1, since this breaks *buggy* panel code. unfortunately this
7970         back-breaks the gimp's color selector.
7971
7972         * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
7973         allocation is always >0 in width and height, before sending the
7974         configure event; this is a *gross* hack to get the gimp back to work.
7975         
7976         * marked both cases with TODO-1.3
7977
7978 Wed Jul 21 15:47:39 1999  Owen Taylor  <otaylor@redhat.com>
7979
7980         * gtk/gtktext.c: Don't display wrap indicators when
7981         text is not editable and word wrap is on.
7982
7983 Wed Jul 21 08:21:40 1999  Tim Janik  <timj@gtk.org>
7984
7985         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
7986         option menus here as they are not derived from menu shell, assure that
7987         the option menu has a menu we can add items to.
7988
7989 Tue Jul 20 23:29:48 1999  Tim Janik  <timj@gtk.org>
7990
7991         * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
7992         width/height to (gint) before calculations and check against < 0 to
7993         avoid guint wraparounds.
7994
7995 Sun Jul 18 00:35:49 1999  Tim Janik  <timj@gtk.org>
7996
7997         * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
7998         width and height is never zero. sanity check both dimensions against
7999         32767 and issue a warning if the allocation is greater than that.
8000
8001 Wed Jul  7 15:03:30 1999  Owen Taylor  <otaylor@redhat.com>
8002
8003         * gtk/gtkmain.c (gtk_events_pending): Unlock around call
8004         to g_main_pending() as well.
8005
8006 Wed Jul  7 14:59:01 1999  Owen Taylor  <otaylor@redhat.com>
8007
8008         * gtk/gtkmain.c (gtk_main_iteration): Unlock around
8009         call to g_main_iteration() - since that will regrab
8010         GTK+ lock to process events.
8011
8012 Thu Jul  1 15:01:55 1999  Owen Taylor  <otaylor@redhat.com>
8013
8014         * gtk/gtkwindow.c
8015         - Regularize with the rest of GTK+ by making widget->requisition
8016           not reflect the set_usize()
8017         - Always recompute geometry hints, then check if they
8018           changed before sending them to the X server. The
8019           previous checks for changes would fail in a number
8020           of circumstances. 
8021
8022 Thu Jul  1 11:55:59 1999  Owen Taylor  <otaylor@redhat.com>
8023
8024         * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
8025
8026 Wed Jun 30 19:26:36 1999  Owen Taylor  <otaylor@redhat.com>
8027
8028         * gtk/gtkdnd.c:
8029         - Code cleanups
8030         - Instantaneously update on modifier key presses
8031         - Allow cancellation of the drag with Escape.
8032
8033 Tue Jun 29 17:04:09 1999  Owen Taylor  <otaylor@redhat.com>
8034
8035         * gtk/testgtk.c (create_handle_box): Set the policy
8036         to auto_shrink - otherwise the appearance is rather
8037         strange when flipping between horizontal and vertical.
8038
8039 Mon Jun 28 09:29:52 1999  Tim Janik  <timj@gtk.org>
8040
8041         * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
8042         (gtk_window_set_default_size): don't change a value if it's < 0.
8043         queue a resize.
8044
8045 Sun Jun 27 11:00:33 1999  Tim Janik  <timj@gtk.org>
8046
8047         * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
8048
8049 Mon Jun 28 12:08:25 1999  Owen Taylor  <otaylor@redhat.com>
8050
8051         * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
8052         add an extra "/" when concating "/" + filename.
8053         (From Matt Grossman <mattg@oz.net>)
8054
8055 Mon Jun 28 10:57:12 1999  Owen Taylor  <otaylor@redhat.com>
8056
8057         * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
8058         for fg_gc if we set it for drawing pixmap.
8059
8060 Tue Jun 15 12:45:12 1999  Owen Taylor  <otaylor@redhat.com>
8061
8062         Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
8063         
8064         * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
8065         already set, call old engine's destroy function and
8066         unref the old engine.
8067
8068 Thu Jun 10 17:59:38 1999  Tim Janik  <timj@gtk.org>
8069
8070         * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
8071
8072 Wed Jun  9 15:13:16 1999  Tim Janik  <timj@gtk.org>
8073
8074         * gtk/gtkaccelgroup.h: mark certain functions as internal.
8075
8076 Wed Jun  9 13:48:28 1999  Tim Janik  <timj@gtk.org>
8077
8078         * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
8079         expand behaviour changed.
8080
8081         * gtk/gtklabel.c (gtk_label_set_pattern):
8082         (gtk_label_set_justify):
8083         (gtk_label_set_line_wrap):
8084         don't bother invoking queue_clear, the reallocation does
8085         that for us, always free_words so the upcoming resize will
8086         relayout the label's contents.
8087
8088 Wed Jun  9 12:50:48 1999  Tim Janik  <timj@gtk.org>
8089
8090         * applied argument implementation patches from Elena Devdariani
8091         <elena@cogent.ca>.
8092
8093         * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
8094         ::space_style, ::relief
8095         * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
8096         * gtk/gtkpreview.c: ::expand
8097         * gtk/gtkpaned.c: ::handle_size, ::gutter_size
8098         * gtk/gtknotebook.c: ::homogeneous
8099         * gtk/gtklabel.c: ::wrap
8100         * gtk/gtklist.c: ::selection_mode
8101         * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
8102         * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
8103         * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
8104         * gtk/gtkclist.c: ::sort_type
8105         * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
8106         * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
8107
8108 Tue Jun  1 23:38:38 1999  Owen Taylor  <otaylor@redhat.com>
8109
8110         * gtk/gtkstyle.c: Removed ill-thought-out part of last
8111         comment.
8112
8113 Tue Jun  1 23:30:09 1999  Owen Taylor  <otaylor@redhat.com>
8114
8115         * gtk/gtkstyle.c (gtk_style_attach): Get the reference
8116         counting right when we have to attach a new style
8117         for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
8118
8119         * gtk/gtkstyle.c: Documented the refcounting
8120         peculularities of gtk_style_attach.
8121
8122 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
8123
8124         * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
8125         window types.
8126
8127         * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
8128         of GTK_TOPLEVEL for creating the window.
8129
8130 1999-06-01  Tim Janik  <timj@dhcpd7.redhat.com>
8131
8132         * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
8133         the last argument (reported by Per Winkvist).
8134         
8135 Tue May 25 13:13:12 1999  Owen Taylor  <otaylor@redhat.com>
8136
8137         Fixes for invisible XOR lines (Frank Loemker
8138         <floemker@TechFak.Uni-Bielefeld.DE>)
8139         
8140         * gtk/gtkclist.c (gtk_clist_realize): Always use
8141         a non-zero pixel for GDK_XOR.
8142
8143         * gtk/gtkvpaned.c gtk/gtkhpaned.c: 
8144         Use GDK_INVERT instead of GDK_XOR.
8145
8146 Wed May 12 21:56:40 1999  Lars Hamann  <lars@gtk.org>
8147
8148         * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
8149         signals if h/voffsets differ from adjustment values.
8150         Reportet by Jerome Bolliet <bolliet@in2p3.fr>
8151
8152 Mon May 10 04:20:41 1999  Tim Janik  <timj@gtk.org>
8153
8154         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
8155         ::selection-done emissions up to the topmost menu shell.
8156
8157 Fri May  7 10:15:14 1999  Owen Taylor  <otaylor@redhat.com>
8158
8159         * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
8160         the user data on the window before destroying it.
8161
8162         * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
8163         unrealize handler to take care of destroying 
8164         notebook->panel properly. 
8165         (Bug #1198 - Morten Welinder <terra@diku.dk>)
8166
8167         * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
8168         of g_new and g_realloc to stop memory leak. (Actually,
8169         we could just use g_realloc(), but I'm not 100% sure
8170         that is portable).
8171         (Bug #1196 - Morten Welinder <terra@diku.dk>)
8172
8173 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
8174
8175         * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
8176
8177         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
8178         for fontsets.
8179
8180         * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
8181         with bin/button confusion.
8182
8183 Thu May  6 04:53:26 1999  Tim Janik  <timj@gtk.org>
8184
8185         * gtk/testgtk.c: in the ItemFactory test, link radio items together,
8186         and show how preselection of radio items is done.
8187
8188 Sun May  2 13:31:14 1999  Tim Janik  <timj@gtk.org>
8189
8190         * gtk/gtktreeitem.c (gtk_tree_item_set_subtree): 
8191         * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
8192         * gtk/gtktoolbar.c (gtk_toolbar_insert_element): 
8193         * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
8194         * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add): 
8195         * gtk/gtktable.c (gtk_table_attach): 
8196         * gtk/gtklist.c (gtk_list_insert_items): 
8197         * gtk/gtkmenushell.c (gtk_menu_shell_insert): 
8198         * gtk/gtknotebook.c (gtk_notebook_insert_page_menu): 
8199         * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add): 
8200         * gtk/gtkbin.c (gtk_bin_add): 
8201         * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end): 
8202         * gtk/gtkfixed.c (gtk_fixed_put): 
8203         * gtk/gtklayout.c (gtk_layout_put):
8204         general fixups to container_add logic. always realize child if
8205         child->parent is realized, only map the child and queue a resize
8206         if child and child->parent are both visible.
8207
8208 Fri Apr 30 09:02:28 1999  Tim Janik  <timj@gtk.org>
8209
8210         * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
8211         instead of gtk_container_foreach to walk and unrealize children, so
8212         composite children get also unrealized.
8213         (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
8214         (gtk_widget_map): assert that the widget is visible (basic constrain).
8215         (gtk_widget_real_map): assert that the widget is realized (basic
8216         constrain).
8217
8218 Fri Apr 29 00:53:20 1999  Tim Janik  <timj@gtk.org>
8219
8220         * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
8221
8222 Tue May  4 09:32:08 1999  Owen Taylor  <otaylor@redhat.com>
8223
8224         * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
8225         file for iso-8859-2 locales.
8226
8227         * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
8228
8229 Tue Apr 27 16:38:32 1999  Owen Taylor  <otaylor@redhat.com>
8230
8231         * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
8232          (Pointed out by andy@rz.uni-karlsruhe.de and others).
8233          Remove some suspicious and useless lines. 
8234
8235 Tue May  4 08:44:08 1999  Owen Taylor  <otaylor@redhat.com>
8236
8237         * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use 
8238         width,height = 0, 0 to mean - here to edge of window,
8239         instead of -1, -1, since the former is all we support.
8240
8241 Tue May  4 08:34:43 1999  Owen Taylor  <otaylor@redhat.com>
8242
8243         * gtk/gtkmain.c (gtk_main): Correctly free list nodes
8244         when removing from quit_functions list.
8245
8246 Tue Apr 27 14:17:16 1999  Tim Janik  <timj@gtk.org>
8247
8248         * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
8249
8250 Tue Apr 27 18:23:35 1999  Owen Taylor  <otaylor@redhat.com>
8251
8252         * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): 
8253          When redrawing characters on non-visible entry, use appropriate
8254          '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
8255
8256 Tue Apr 27 01:31:40 1999  Lars Hamann  <lars@gtk.org>
8257
8258         * gtk/gtkclist.c (drag_dest_cell): compute destination cell
8259         from drag coordinates.
8260         (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
8261         use drag_dest_cell.
8262
8263         * gtk/gtktree (drag_dest_cell)
8264         (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
8265         (Bug #1129)
8266
8267 Wed Apr 21 21:26:11 1999  Tim Janik  <timj@gtk.org>
8268
8269         * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
8270         translate_* fields.
8271         (gtk_item_factory_finalize): invoke translate_notify independant from
8272         translate_data.
8273         (gtk_item_factory_set_translate_func): likewise.
8274         (gtk_item_factory_destroy): only remove ifactory pointer from those
8275         widgets that belong to us (stupid me).
8276
8277 Mon Apr 19 12:05:31 1999  Owen Taylor  <otaylor@redhat.com>
8278
8279         * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
8280         rc_style list when lookup succeeeds.
8281
8282 Thu Apr 15 01:11:24 1999  Lars Hamann  <lars@gtk.org>
8283
8284         * gtk/gtkctree.c (resync_selection): 
8285         * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
8286         * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
8287         bug.
8288
8289 Fri Apr  9 19:22:19 1999  Owen Taylor  <otaylor@redhat.com>
8290
8291         * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
8292         Add some missing GDK_THREADS_ENTER()/LEAVE around
8293         timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
8294
8295 Thu Apr  8 20:10:33 1999  Tim Janik  <timj@gtk.org>
8296
8297         * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
8298         rather than emit_by_name.
8299
8300         * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
8301         on the widget across multiple signal emissions.
8302         (gtk_editable_delete_text): same here.
8303         (gtk_editable_class_init): set widget_class->activate_signal after
8304         editable_signals[ACTIVATE] has been created.
8305
8306 Wed Apr  7 22:59:47 1999  Owen Taylor  <otaylor@redhat.com>
8307
8308         * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
8309         position here prematurely -- we might not have the
8310         right ->min_position and ->max_position yet.
8311
8312 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
8313
8314         * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
8315         Add error traps so if the other end of the connection
8316         dies, we survive.
8317
8318         * gtk/gtkselection.c (gtk_selection_notify): Clean
8319         up properly when selection property retrieval fails.
8320         
8321         * gtk/gtkselection.c (gtk_selection_request): Correctly
8322         reject SelectionRequest notifies where the handler
8323         returns no data.
8324
8325 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
8326
8327         * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
8328         when we've previously highlighted.
8329
8330         * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
8331         emit two "drag_leave" signals for Motif drops.
8332
8333         * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
8334         back the correct status messages when dropping from
8335         Motif onto a proxy window that is rejecting the
8336         drop.
8337
8338 Sat Mar 27 23:32:13 1999  Tim Janik  <timj@gtk.org>
8339
8340         * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
8341         the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
8342         to compare two argument values. added gtk_arg_to_valueloc() to set a
8343         variable from an arg through its location (pointer).
8344
8345         * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
8346         gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
8347         as gfloat*, uchars are collected as guchar*, ints are collected as
8348         gint*, etc...
8349
8350 Mon Mar 29 17:45:47 1999  Owen Taylor  <otaylor@redhat.com>
8351
8352         * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
8353         Include <string.h> instead of <strings.h>.
8354
8355         * gtk/gtkstyle.c: Fix double include of gtkthemes.h
8356         (actually, a lot more duplicate includes occur if
8357          you trace through the sequence of #include's)
8358         gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
8359         
8360 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
8361
8362         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
8363         gtk-a-higuti-990322-[0-3]
8364
8365         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
8366         that was causing -DX_LOCALE not to work.
8367
8368         * gtk/gtkrc.c (gtk_rc_init):
8369         X_LOCALE will never have LC_MESSAGES defined
8370
8371 Thu Mar 25 12:38:31 1999  Tim Janik  <timj@gtk.org>
8372
8373         * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
8374         g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
8375
8376         * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
8377         left/right as well (gtk-michael-980726-0.patch.gz).
8378
8379         * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
8380         for pointer values, use gchar instead of char. fixed uline allocation
8381         leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
8382         chunks instead of G_ALLOC_ONLY.
8383         (gtk_label_size_request): always alter requisition as passed and leave
8384         widget->requisition alone.
8385         (gtk_label_set_text): allow NULL strings.
8386         (gtk_label_new): likewise.
8387
8388 Wed Mar 24 09:24:03 1999  Tim Janik  <timj@gtk.org>
8389
8390         * gtk/gtkdrawingarea.[hc]: type/macro fixups.
8391
8392 Mon Mar 22 05:51:34 1999  Tim Janik  <timj@gtk.org>
8393
8394         * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
8395         *and* mapped (i.e. drawable).
8396         (gtk_bin_expose): only send exposes to drawable children.
8397
8398         * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
8399         (gtk_box_expose): only send exposes to drawable children.
8400
8401         * gtk/gtkhscale.c (gtk_hscale_draw): 
8402         * gtk/gtkvscale.c (gtk_vscale_draw):
8403         hm, this is an ugly one. we first compute the size of our trough area
8404         here (window relative) and then check intersection with the draw_area
8405         which is parent relative because we're a NO_WINDOW widget, so we need
8406         to offset the trough area by allocation.x and allocation.y before the
8407         check. (this must not be done for the background area though, since
8408         that's already computed parent relative).
8409
8410 Mon Mar 22 00:41:39 1999  Lars Hamann  <lars@gtk.org>
8411
8412         * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
8413         unrealize title buttons.
8414
8415 Fri Mar 19 00:00:22 1999  Lars Hamann  <lars@gtk.org>
8416
8417         * gtk/gtkclist.c (gtk_clist_column_title_passive)
8418         (gtk_clist_column_title_active): 
8419         only connect/disconnect to GtkWidgetClass::event to block mouse events.
8420
8421         * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout): 
8422         zero initialize event, removed superfluous gdk_window_get_pointer call
8423
8424         * gtk/gtklist.c (gtk_list_vertical_timeout)
8425         (gtk_list_horizontal_timeout): removed superfluous
8426         gdk_window_get_pointer call
8427
8428 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
8429
8430         * plugging problems reported by "Bruce Mitchener, Jr."
8431         <bruce@puremagic.com> due to a purify session.
8432
8433         * gtk/gtkstyle.c:
8434         (gtk_style_ref): 
8435         (gtk_style_unref): assert ref_count to be > 0.
8436
8437         * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
8438         the requisition.
8439         (gtk_clist_set_shift): likewise.
8440
8441         * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
8442         adjustments.
8443
8444         * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
8445         event before sending it and set send_event to TRUE (which needs to
8446         be done for *all* synthesized events).
8447         (gtk_list_vertical_timeout): likewise.
8448
8449         * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
8450         leaks.
8451
8452         * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
8453         to TRUE when synthesizing events.
8454
8455 [ *** end of merges from 1.2 *** ]      
8456         
8457 1999-11-21  Tor Lillqvist  <tml@iki.fi>
8458
8459         * gdk/gdkconfig.h: Remove, as this is a file generated by configure
8460         (or copied from gdkconfig.h.win32 on Win32, sigh).
8461
8462         * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
8463
8464         * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
8465
8466         * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
8467
8468         * gdk/gdkconfig.h.win32: New file.
8469
8470         * gdk/win32/makefile.cygwin: Build just a static archive here.
8471
8472         * gdk/makefile.cygwin: New file. Get the win32-specific stuff
8473         for the DLL from the static archive built above.
8474
8475         * gdk/gdk.def: Moved here from the win32 subdirectory.
8476
8477         * gdk/win32/*: Adapt for the changed private struct organisation.
8478
8479         * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
8480
8481 Sun Nov 21 16:44:35 1999  Stefan Jeske  <stefan@gtk.org>
8482
8483         * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support 
8484         for wheel mice (buttons 4 and 5).
8485
8486 1999-11-18  Tor Lillqvist  <tml@iki.fi>
8487
8488         * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
8489         drawables use just the pixel field in the foreground and
8490         background GdkColor of the GdkGC.
8491
8492         gdk_gc_set_{fore,back}ground() are called in the GIMP with
8493         GdkColors containing uninitialized (red,green,blue) fields, and
8494         just the pixel field filled in, and furthermore in the
8495         visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
8496         It thus turns out that we really don't need to have the full
8497         GdkColor for fg and bg in GdkGCWin32Data after all. Will change
8498         it later to have just the pixel values.
8499
8500 Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
8501
8502         * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
8503
8504 Sat Nov 13 22:30:29 GMT 1999 Tony Gale  <gale@gtk.org>
8505
8506         * docs/gtkfaq.sgml: threads example from Erik Mouw.
8507         New question on GtkLabel background colors.
8508
8509         * docs/gtk_tut.sgml:
8510           - Correct the example code callback
8511             function definitions.
8512           - Update the gtkdial example code, from Frans van Schaik.
8513           - Update setselection.c to current API.
8514
8515         * examples/Makefile examples/*/*.c: Update to code
8516         listed in tutorial.
8517
8518 1999-11-10  Tor Lillqvist  <tml@iki.fi>
8519
8520         * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
8521         subrange table (from the "Developing International Software for
8522         WIndows 95 and Windows NT" book) was missing the Hangul syllable
8523         block... Get the loaded font's charset correctly.
8524
8525         (Note that this, and the other *-win32.c files, still really are
8526         the old ones, the win32 subdirectory is not ready for compilation
8527         yet after the reorg.)
8528
8529 Wed Nov 10 17:26:49 GMT 1999 Tony Gale  <gale@gtk.org>
8530
8531         * gtk/gtkclist.c: Fix off-by-one bug in parameter
8532         check.
8533
8534 Wed Nov 10 12:12:03 1999  Owen Taylor  <otaylor@redhat.com>
8535
8536         * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
8537         on results of XQueryDeviceState().
8538
8539 Mon Nov  8 16:40:43 1999  Owen Taylor  <otaylor@redhat.com>
8540
8541         * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
8542         we need to accesss only ->children. We need an accessor
8543         for the children.
8544
8545         * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
8546         DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
8547         to get rid of gdkx.h include.
8548         
8549         * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
8550         and random references to 'None'.
8551
8552         * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
8553         Get rid of unused #include <gdk/gdkx.h>
8554
8555         * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
8556         gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
8557         gdkconfig.h.
8558
8559 1999-11-08  Tor Lillqvist  <tml@iki.fi>
8560
8561         * gdk/win32/gdkdraw.c
8562         * gdk/win32/gdkfont.c
8563         * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
8564         following yesterday's changes. (Unrelated to Owen's reorg.)
8565
8566 Mon Nov  8 16:18:25 1999  Owen Taylor  <otaylor@redhat.com>
8567
8568         * gdk/x11/gdkinput-gxi.c: Add missing include,
8569           fix GdkWindowPrivate => GdkDrawablePrivate.
8570
8571         * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
8572
8573         * gdk/x11/Makefile.am (xinput_sources): Add missing
8574         backslash to fix building with --with-xinput=none
8575
8576 Mon Nov  8 14:47:04 1999  Owen Taylor  <otaylor@redhat.com>
8577
8578         Move all X specific code into the x11/ directory.
8579         Aside from shuffling things around, did the following:
8580
8581        * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
8582          gdk_arg_context_* - a simple argument parsing system
8583          in the style of popt.
8584
8585        * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
8586          gdk/x11/gdkprivate-x11.h:
8587          Remove X specific stuff from GdkDrawable and GdkWindowPrivate - 
8588          add ->klass and ->klass_data fields. The klass_data
8589          field points to an auxilliary structure that is
8590          windowing system dependent.
8591
8592        * gdk/gdkfont.c: Make most of the measurement functions
8593          simply wrappers around gdk_text_extents().
8594
8595        * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a 
8596          _gdk_font_strlen() function that hides the weird
8597          behavior in gtk+-1.[02] where a string is interpreted
8598          differently for 8-bit and 16-bit fonts.
8599
8600        * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
8601          to store common code for synthesizing double/triple
8602          press events.
8603         
8604        * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
8605          Make all the function that modify an existing GC
8606          simply wrappers around gdk_gc_set_values().
8607          
8608        * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
8609          for throwing out later.
8610
8611        * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
8612          GdkImagePrivate and GdkColormapPrivate to have a
8613          windowing system dependent part (GdkFontPrivateX etc.)
8614          that "derives" from the system-independent part.
8615
8616        * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
8617          Got rid of the included-source-files for XInput in
8618          favor of automake conditionals. (Which didn't exist
8619          when XInput support was originally added.)
8620
8621        * gdk/gdkrgb.c: Remove the visual id from the debugging
8622          statements since that is X11 specific; print out
8623          type/depth info instead.
8624          
8625
8626 Wed Nov  3 18:14:49 1999  Owen Taylor  <otaylor@redhat.com>
8627
8628         * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
8629         loading duplicates of hashed fonts.
8630
8631         * gdk/gdk.c (gdk_keysym_convert_case): rename
8632         gdk_XConvertCase to gdk_keysym_convert_case, allow
8633         results to be NULL in the GTK+ style.
8634
8635         * gdk/gdkcompat.h: Started compatibility header
8636         for renames.
8637
8638 1999-11-07  Tor Lillqvist  <tml@iki.fi>
8639
8640         * gdk/win32/gdkprivate.h: New font private structures, related to
8641         fontsets.
8642
8643         * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
8644         gdk_font_list_free(). On X11, will just be wrappers to
8645         XListFonts() and XFreeFontNames(). On Win32, the code previously
8646         in gtkfontsel.c is now here.
8647
8648         New function gdk_font_xlfd_create(). On X11 will get the FONT
8649         property of the font (for GDK_FONT_FONTs), or call
8650         XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
8651         builds a XLFD style name from the font information in the LOGFONT
8652         struct(s).
8653
8654         New function gdk_font_xlfd_free(), which correspondingly frees the
8655         string returned by gdk_font_xlfd_create().
8656
8657         Implement fontsets on Win32. Add a function that iterates over a
8658         wide char string and calls a callback function for each substring
8659         of wide chars from the same Unicode subrange (and thus probably
8660         available in the same real font).
8661
8662         Improve the XLFD emulation a bit.
8663
8664         * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
8665
8666         * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
8667         Beta3, WM_IME_CHAR messages don't seem to contain the composed
8668         multi-byte char as with the Active IMM on Win9x. Oh well, handle
8669         WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
8670         ImmGetCompositionStringW() to get the composed Unicode chars.
8671
8672         * gdk/win32/gdkgc.c
8673         * gdk/win32/gdkdraw.c: Changes needed because of the font private
8674         struct changes.
8675
8676         * gdk/win32/gdk.def: Add the new functions.
8677
8678 1999-11-04  Tor Lillqvist  <tml@iki.fi>
8679
8680         * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
8681         get the Platform SDK to get <dimm.h>.
8682
8683         * gdk/win32/gdkevents.c: More event handling fixes and
8684         simplification. Never generate motion events with is_hint true. We
8685         used to do that on bogus grounds earlier. Windows sends
8686         WM_MOUSEMOVE messages on button events even if the mouse hasn't
8687         moved, ignore these.
8688
8689         * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
8690
8691         * gdk/win32/gdkglobals.c
8692         * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
8693         the TrackMouseEvent function, and use it.
8694
8695         * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
8696         char before calling WideCharToMultiByte in order to get a string
8697         for the window title.
8698
8699         * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
8700
8701         * gdk/win32/gdk.def: Remove obsolete functions.
8702
8703         * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
8704         /nodefaultlib and /defaultlib switches.
8705
8706         * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
8707
8708 1999-10-31  Tor Lillqvist  <tml@iki.fi>
8709
8710         * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
8711         EuroSign).
8712
8713         * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
8714         same type as GdkWChar, especially on Win32.
8715
8716         * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
8717
8718         * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
8719         before passing to Windows GDI for drawing etc. Convert to the
8720         system default codepage before passing to Windows as window
8721         titles.
8722
8723         * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
8724         support changing input locale on the fly.
8725
8726         * gdk/win32/gdkevent.c: Support input language (keyboard locale)
8727         on-the-fly changes. Convert incoming characters from the current
8728         codepage to Unicode (and then to a UTF-8 multi-byte string) based
8729         on the current input language. Use keysym<->Unicode mapping tables
8730         and functions borrowed from xterm sources.
8731
8732         Support IMEs (Input Method Editors) for CJK languages. On non-CJK
8733         editions of Win9x, use the ActiveX-based Active IMM (Input Method
8734         Manager) if available. IMEs and the Active IMM are available under
8735         the disguise of Chinese, Korean and Japanese support for IE and
8736         Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
8737         support is present in all editions (as long as you install it).
8738
8739         Call DispatchMessage from gdk_events_queue() (and thus
8740         gdk_WindowProc()), instead of duplicating the code in
8741         gdk_WindowProc().
8742
8743         Reworked the grab handling and propagation code, factored out
8744         duplicated code snippets into separate functions. Other cleanups,
8745         too.
8746
8747         * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
8748         the <dimm.h> header describing the Active IMM.
8749
8750         * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
8751         just do the same as for "single" fonts.
8752
8753         * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
8754         gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
8755         the new keysyms from gdkkeysyms.h.
8756
8757         * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
8758         fontset, so that gtkentry uses wide characters.
8759
8760         * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
8761         GTk+'s system directory "gtk+", not "gtk".
8762
8763 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
8764
8765         * docs/gtkfaq.sgml: FAQ update
8766
8767 1999-10-21  Tor Lillqvist  <tml@iki.fi>
8768
8769         * gdk/win32/gdkprivate.h: Add more font private data.
8770
8771         * gdk/win32/gdkfont.c
8772         * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
8773         fonts and strings. Now works much better. You still have to
8774         have a correct font selected, though. No fontset emulation yet.
8775
8776 1999-10-19  Tor Lillqvist  <tml@iki.fi>
8777
8778         * gtk/maketypes.awk: Use G_OS_WIN32.
8779
8780         * gtk/gtk.def: Add some missing entry points. Also some non-public
8781         ones, but PyGTK porter claims to need them.
8782
8783         * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
8784         built-in type generation.
8785
8786 1999-10-14  Tor Lillqvist  <tml@iki.fi>
8787
8788         * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
8789         GDK_FONT_FONT fonts (which is all we have for now, we don't
8790         emulate fontsets). The X11 version uses plain XDrawString in that
8791         case, too. The string passed to gdk_draw_text_wc seems to be in
8792         fact (at least, when used by gtkentry and gtktext) either in a
8793         single-byte charset, or a DBCS. Not Unicode.
8794
8795         This fixes the problem in gtkfontsel, where even if you had
8796         selected a font with a non-Latin1 charset (windows-greek, for
8797         instance), the preview still used Latin-1 glyphs.
8798
8799         * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
8800         use GetTextExtentPoint32W, use GetTextExtentPoint32A.
8801         (gdk_font_load): Recognize the demibold etc weights, even if we
8802         don't have the corresponding constants in the headers.
8803         (gdk_font_hash_insert): Use same hash mechanism as in the X11
8804         version. Should save font resources a bit, when we don't have
8805         multiple HFONTs for the same font.
8806
8807         * gdk/win32/gdkprivate.h: Add the names field as in the X11
8808         version.
8809
8810 1999-10-11  ERDI Gergo  <cactus@cactus.rulez.org>
8811
8812         * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
8813         X values
8814
8815 1999-10-09  ERDI Gergo  <cactus@cactus.rulez.org>
8816
8817         * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
8818         layout support (as mentioned on
8819         http://www.jcinteractive.com/gnome-ui/software/widgets/)
8820
8821 Wed Oct  6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
8822
8823         * gtk/fnmatch.c
8824         * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
8825
8826 1999-10-05  Jesus Bravo Alvarez  <jba@pobox.com>
8827
8828         * configure.in (ALL_LINGUAS): Added Galician (gl)
8829
8830 1999-10-05  Tor Lillqvist  <tml@iki.fi>
8831
8832         * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
8833
8834         * gdk/win32/gdkcompat.c: New file, actually provide an
8835         implementation for the deprecated functions. (Just temporarily.)
8836
8837         * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
8838
8839         * gtk/makefile.{cygwin,msc}: Update gdk_headers.
8840
8841         * gdk/win32/gdk.def gtk/gtk.def: Updates.
8842
8843 1999-10-05  Kjartan Maraas  <kmaraas@online.no>
8844
8845         * configure.in: Added "uk" to ALL_LINGUAS.
8846         
8847 Mon Oct  4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
8848
8849         * configure.in: correct checking for BeOS check
8850
8851         * gdk/gdktypes.h
8852         * gtk/fnmatch.c
8853         * gtk/gtkfilesel.c
8854         * gtk/gtkitemfactory.c
8855         * gtk/gtkmain.[ch]
8856         * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
8857
8858 Mon Oct  4 16:16:53 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
8859
8860         * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
8861         encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
8862         languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
8863         by Bulgarian). 
8864
8865 Sun Oct  3 18:13:44 1999  Owen Taylor  <otaylor@redhat.com>
8866
8867         * gtk/gtkwidget.c (gtk_reset_shapes_recurse): 
8868         Fix a reference to window_private->destroyed.   
8869
8870         * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
8871         (ugly) setting of an internal GdkWindow member to use
8872         a _slightly_ cleaner macro.
8873
8874         * gdk/gdkprivate.h: Split GdkWindowPrivate into
8875         GdkDrawablePrivate and GdkWindowPrivate.
8876         Add extra macros for accessing GDK_DRAWABLE_ components.
8877
8878         * *.[ch]: Massive adjustments for the above, use the
8879         new macros in a lot of places.
8880
8881 Sun Oct  3 15:16:24 1999  Owen Taylor  <otaylor@redhat.com>
8882
8883         * gdk/gdktypes.h: Make GdkDrawable the base type,
8884         not GdkWindow.
8885
8886 Sun Oct  3 15:08:44 1999  Owen Taylor  <otaylor@redhat.com>
8887
8888         * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
8889
8890 Sun Oct  3 14:26:15 1999  Owen Taylor  <otaylor@redhat.com>
8891
8892         * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
8893
8894 Sun Oct  3 14:16:23 1999  Owen Taylor  <otaylor@redhat.com>
8895
8896         * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
8897         gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
8898
8899         * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
8900
8901         * docs/gtk-config.1: Now autogenerated.
8902         * docs/Changes-1.4.txt: started
8903         
8904 1999-10-03  Tor Lillqvist  <tml@iki.fi>
8905
8906         * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
8907         to #ifdef also here.
8908
8909         * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
8910         Owen did to the X11 backend.
8911
8912         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
8913         ScrollWindowEx when blitting inside a window, it can't be correct
8914         in the general case.
8915
8916         * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
8917         WM_GETMINMAXINFO is easier.
8918
8919         * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
8920         depth equal to the bitspixel value, not the visual's depth.
8921
8922         * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
8923         to 24 even if the bitspixel value is 32.
8924
8925         * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
8926         need to check for depth==32 when bpp==32, depth will always be 24.
8927
8928 Fri Oct  1 18:03:36 1999  Owen Taylor  <otaylor@redhat.com>
8929
8930         * docs/Changes-1.4.txt: Started
8931         
8932         * gtk/Makefile.am (gdk_headers): Include all the new headers.
8933
8934         * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
8935         
8936         * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
8937         into C file.
8938         
8939         * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
8940         header to gdkinputprivate.h.
8941
8942         * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
8943         unused since before 1.2.
8944
8945 1999-09-30  Tor Lillqvist  <tml@iki.fi>
8946
8947         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
8948         expand possible hex escapes in the font family (put there by
8949         logfont_to_xlfd if the font name isn't a legal XLFD font family,
8950         mainly if it contains slashes). (gtk_font_selection_create_xlfd):
8951         On Win32, add hex escapes here, too.
8952
8953 Wed Sep 29 19:55:35 1999  Owen Taylor  <otaylor@redhat.com>
8954
8955         * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
8956         to #ifdef GDK_WINDOWING_X11.
8957
8958 [ Merges from gtk-1-2 ]
8959
8960 Wed Sep  8 07:13:29 1999  Tim Janik  <timj@gtk.org>
8961
8962         * configure.in: fixed "GNU Make" check to pass with new make version
8963         3.77.95.
8964
8965 Fri Sep  3 16:04:41 1999  Tim Janik  <timj@gtk.org>
8966
8967         * gtk-config.in (--version): don't echo @GTK_VERSION@, but
8968         @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
8969         AM_PATH_GTK() macros don't get confused by the -pre1.
8970
8971 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
8972
8973         * configure.in (REBUILD): Change check for perl5
8974           to check explicitely for v >= 5.002. (5.001
8975           does not work with our scripts.)
8976
8977 Wed Aug 25 15:45:46 1999  Tim Janik  <timj@gtk.org>
8978
8979         * configure.in: evaluate $PERL for the perl version check. added
8980         --disable-rebuilds to give the user an option to completely disable
8981         any source autogeneration rules.
8982
8983 Mon Aug 23 23:16:14 1999  Tim Janik  <timj@gtk.org>
8984
8985         * configure.in: evaluate $ac_make when checking for GNU Make.
8986
8987 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
8988
8989         * docs/Makefile.am: added generation.txt.
8990
8991         * Makefile.am: require automake 1.4, build README from README.in and
8992         INSTALL from INSTALL.in in dist-hook.
8993         
8994         * README.in:
8995         * INSTALL.in: new files to autogenerate README and INSTALL from.
8996
8997         * configure.in: figure whether we have GNU Make
8998
8999         * docs/generation.txt: minor additions/corrections.
9000
9001 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
9002
9003         * docs/gtkfaq.sgml: FAQ Update
9004
9005 July 30, 1999 Elliot Lee <sopwith@redhat.com>
9006         
9007         * configure.in: Fix autoconf warnings about cross compilation by
9008         trying to provide sane defaults for AC_TRY_RUN.
9009
9010 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
9011
9012         * ltconfig
9013         * ltmain.sh: upgrade to libtool 1.3.3
9014
9015 Thu Jul  8 11:30:18 1999  Owen Taylor  <otaylor@redhat.com>
9016
9017         * INSTALL: Indicate that the --with-glib= configure
9018         time flag is unsupported.
9019
9020 Mon Jul  5 20:36:03 1999  Owen Taylor  <otaylor@redhat.com>
9021
9022         * docs/generation.txt: Added a file that gives
9023         documenation about the autogeneration process for
9024         various autogenerated files.
9025         
9026 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
9027
9028         * configure.in (LIBS): Look for libgmodule in the
9029         right location.
9030
9031 Thu Jun 17 13:57:31 1999  Owen Taylor  <otaylor@redhat.com>
9032
9033         * docs/gtk_tut.sgml: Removed references to
9034         code examples in my directory on gtk.org as
9035         they should all be in the tutorial now.
9036
9037         * docs/gtk_tut.sgml: Added sources for dial-test
9038         and scribble-xinput programs that were previously
9039         missing.
9040
9041 Fri Jun  4 00:08:59 1999  Owen Taylor  <otaylor@redhat.com>
9042
9043         * TODO: Added entry about menu keyboard navigation, removed
9044         some finished items.
9045
9046 Mon May 31 00:11:24 1999  Owen Taylor  <otaylor@redhat.com>
9047
9048         * acinclude.m4: Standardize on func_dgettext
9049         not func_gettext, so that the checks for dgettext
9050         actually are paid attention to.
9051
9052 Wed May  5 10:47:54 1999  Owen Taylor  <otaylor@redhat.com>
9053
9054         * configure.in (LIBS): Add $INTLLIBS into $LIBS
9055         directly, rather than repeating the checks for
9056         gettext.
9057
9058         * INSTALL: Added information about gettext and
9059         NLS support.
9060
9061         * acinclude.m4 (LIBM): Check for dgettext, not
9062         just gettext. This should hopefully fix things wrt
9063         systems with old versions of GNU gettext installed.
9064
9065 Tue Jun 29 15:59:25 1999  Owen Taylor  <otaylor@redhat.com>
9066
9067         * configure.in (LIBS): Look for libgmodule in the
9068         right location.
9069
9070 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
9071
9072         * autogen.sh: add --enable-maintainer-mode
9073
9074         * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
9075
9076 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
9077
9078         * docs/gtk-config.1.in:
9079           docs/Makefile.am:
9080           configure.in: gtk-config is now generated.
9081
9082         * docs/gtk-config.1: Removed, now generated.
9083
9084 Thu Sep 23 17:59:59 1999  Tim Janik  <timj@gtk.org>
9085
9086         * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
9087         handle CreateNotify itself, still put out a debuging message for
9088         --gdk-debug=events. made the ReparentNotify debugging message more
9089         verbose.
9090         wrap xcoords translation for ConfigureEvents into an error trap,
9091         a destroy event may already be pending, and in that case, the
9092         actuall coordinate values are not at all critical.
9093
9094 Sat Sep 18 22:24:15 1999  Owen Taylor  <otaylor@redhat.com>
9095
9096         * gdk/gdkcc.c: Stop leaking the color_hash all over
9097         the place. Simplify and improve the logic.
9098
9099 Fri Sep 17 09:57:15 1999  Tim Janik  <timj@gtk.org>
9100
9101         * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
9102         for prototypes and function implementations consistent (reported
9103         by Tomas Ogren).
9104
9105 Tue Sep 14 18:23:01 1999  Tim Janik  <timj@gtk.org>
9106
9107         * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
9108         send_event set in debugging output.
9109         (gdk_compress_exposures): default initialize the event so we don't
9110         operate on bogus values (namely send_event).
9111
9112 Thu Sep  2 16:33:59 1999  Owen Taylor  <otaylor@redhat.com>
9113
9114         * gdk/gdkwindow.c: When we receive an unexpected
9115         destroy notify on one of our windows, don't just
9116         warn about it, also mark our windows as destroyed.
9117
9118 Sun Sep  5 08:10:53 1999  Owen Taylor  <otaylor@redhat.com>
9119
9120         * gdk/gdkfont.c (gdk_font_hash_insert): Add
9121           name => font and name => fontset hashes. The 
9122           name => fontset hash is a _big_ win since we
9123           weren't previously caching fontsets at all and loading
9124           fontsets is expensive. The name => font hash
9125           is less of a win, but it does save us from doing
9126           repeated XQueryFont calls on the same font.
9127
9128         * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
9129           list so we can remove font/fontset from hash.
9130
9131 Thu Sep  2 19:02:37 1999  Owen Taylor  <otaylor@redhat.com>
9132
9133         * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
9134           and slightly confusing test. [ XInternAtom (,,TRUE)
9135           will never return None ].
9136
9137 Sat Sep  4 08:39:26 1999  Owen Taylor  <otaylor@redhat.com>
9138
9139         * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
9140           gdk/gdkwindow.c (gdk_window_set_hints):
9141
9142         Don't omit setting the properties if flags == 0 -
9143         there may be an existing set of properties there
9144         already. (Very old bug. Would it be better to
9145         delete the property instead?)
9146
9147         * gdk/gdkselection.c (gdk_selection_property_get): Fix 
9148           spelling error in comment.
9149
9150 Wed Sep  1 14:05:30 1999  Owen Taylor  <otaylor@redhat.com>
9151
9152         * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
9153           to avoid stomping over gdk_error_warnings.
9154
9155         * gdk/gdkimage.c (gdk_image_new): compute image->bpp
9156           as (bits_per_pixel + 7) / 8. This gives the same
9157           result as before for multiples of 8, but actually
9158           a "reasonable" value for 1bit or 4bit displays.
9159
9160 Mon Aug 23 19:11:17 1999  Tim Janik  <timj@gtk.org>
9161
9162         * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
9163         GNU Make.
9164
9165 Tue Aug 17 07:43:04 1999  Tim Janik  <timj@gtk.org>
9166
9167         * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
9168         discarding configure events.
9169
9170 1999-08-18  Federico Mena Quintero  <federico@redhat.com>
9171
9172         * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
9173         refcount is greater than zero.
9174
9175         * gdk/gdkwindow.c (gdk_window_unref): Likewise.
9176
9177         * gdk/gdkfont.c (gdk_font_unref): Likewise.
9178
9179         * gdk/gdkgc.c (gdk_gc_unref): Likewise.
9180
9181         * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
9182
9183 Wed Aug 11 01:04:57 1999  Owen Taylor  <otaylor@redhat.com>
9184
9185         * gdk/gdkproperty.c (gdk_property_get): Fix assumption
9186         that format 32 => sizeof(item) == 4. It really is
9187         sizeof(long).
9188
9189 Tue Jun 29 23:02:42 1999  Owen Taylor  <otaylor@redhat.com>
9190
9191         * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
9192         core dump at all on X IO errors, only core dump
9193         if --enable-debug for X errors.
9194
9195 Thu Jun 24 17:06:23 1999  Tim Janik  <timj@gtk.org>
9196
9197         * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
9198         unknown window:" message. disabled ConfigureNotify discarding code,
9199         because it led to events being processed out of order.
9200
9201 Thu Jun 24 12:22:02 1999  Tim Janik  <timj@gtk.org>
9202
9203         * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
9204
9205         * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
9206         we export this function, supress error warnings and don't reset the
9207         error code in the first half of this function.
9208
9209         * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
9210         code (instead of just -1) so gdk_error_trap_pop() reveals something
9211         actually informative about the error that happened.
9212
9213         * gdk/*.c:
9214         don't rely on gdk_error_code being -1 if an error occoured, but just
9215         gdk_error_code != 0.
9216
9217 Thu Jun 24 11:50:07 1999  Tim Janik  <timj@gtk.org>
9218
9219         * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
9220         pointer *before* invoking the filter function, so we at least don't
9221         crash if a filter is removed that is currently executed. window filters
9222         *really* need to be made truely reentrant at some point.
9223
9224 Mon Jun 14 11:10:15 1999  Tim Janik  <timj@gtk.org>
9225
9226         * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
9227         PropertyNotify debug messages.
9228
9229 Wed May  5 22:51:06 1999  Owen Taylor  <otaylor@redhat.com>
9230         
9231         Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
9232         
9233         * gdk/gdkim.c: Fix cut-and-paste errors for 
9234         x/y and PreeditAttributes/StatusAttributes.
9235
9236 Wed May  5 22:24:21 1999  Owen Taylor  <otaylor@redhat.com>
9237
9238         * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
9239         G_MAXINT to 2^16 to alleviate overflow problems in
9240         various window managers.
9241
9242 Wed Apr 21 00:42:08 1999  Owen Taylor  <otaylor@redhat.com>
9243
9244         * gdk/gdkfont.c (gdk_text_measure): Fix the return value
9245         for fontsets.
9246
9247 Wed May  5 12:42:01 1999  Owen Taylor  <otaylor@redhat.com>
9248
9249         * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
9250         Initialize size_hints.x and size_hints.y because kwm
9251         brokenly pays attention to them.
9252         (Bug #1181 -  Lars Heete <hel@admin.de>)
9253
9254 Wed May  5 11:38:56 1999  Owen Taylor  <otaylor@redhat.com>
9255
9256         * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the 
9257         return value of gdk_list_visuals(). 
9258         (Bug #1193 - Morten Welinder <terra@diku.dk>)
9259
9260 Tue May  4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
9261
9262         * gdk/gdkim.c (gdk_im_real_open): cast the return value of
9263         XSetIMValues to (void *) when comparing to NULL, to workaround
9264         the problem of some compilers barfing since older X headers don't
9265         have the prototype for it.
9266
9267 Mon Apr 19 10:11:12 1999  Owen Taylor  <otaylor@redhat.com>
9268
9269         * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
9270         for pseudocolor where colormap->colors was double
9271         allocated.
9272
9273         * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
9274         color value in the hash table with the pixel filled
9275         in so when we do later hash table lookups, the color
9276         value is correct.
9277         
9278 Sun May  2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
9279
9280         * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
9281         making the call
9282
9283 Tue Apr 27 11:17:35 1999  Owen Taylor  <otaylor@redhat.com>
9284
9285         * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
9286         pointed out by Morten Welinder <terra@diku.dk>.
9287
9288 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
9289
9290         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
9291           default filter from the list
9292
9293 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
9294
9295         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
9296           default filter from the list
9297
9298 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
9299
9300         * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
9301
9302         * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
9303         g_strdup_printf instead of calcing the length separately
9304
9305 Tue Apr 13 02:49:33 1999  Owen Taylor  <otaylor@redhat.com>
9306
9307         * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
9308         that we don't do in many other places. (Fixing duplicate 
9309         #include of config.h)
9310
9311         * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
9312         Otherwise, #ifndef XINPUT_NONE check in the latter
9313         doesn't work. (Bug #546)
9314
9315 Sun Apr 11 14:38:03 1999  Tim Janik  <timj@gtk.org>
9316
9317         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
9318         "None" case insensitive.
9319
9320 Tue Apr  6 16:38:51 1999  Owen Taylor  <otaylor@redhat.com>
9321
9322         * gdk/gdkselection.c: 
9323         Add error traps so if the other end of the connection
9324         dies, we survive.
9325
9326 Tue Apr  6 12:24:21 1999  Owen Taylor  <otaylor@redhat.com>
9327
9328         * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
9329         dest_xid field into two fields - one for the window
9330         to send in messages, one to indicate the last looked
9331         up window for caching purposes. This is needed, so
9332         that Leave messages get the correct window.
9333
9334 Mon Apr  5 13:21:30 1999  Owen Taylor  <otaylor@redhat.com>
9335
9336         * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
9337         Fix warning created by people mucking around
9338         with the gsource API.
9339
9340         * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
9341         Change mapping between GIOCondition and GdkInputCondition
9342         to match the way the Linux kernel does it. This should
9343         fix problems where closed pipes were no longer signalling
9344         GDK_INPUT_READ on systems with a native poll().
9345
9346 Mon Apr  5 17:11:57 1999  Owen Taylor  <otaylor@redhat.com>
9347
9348         * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check 
9349         explicitly for the string "None" - it is in the XPM
9350         spec and some servers treat unknown colors in odd ways
9351         (like asking the user!)
9352
9353 Thu Apr  1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
9354
9355         * gdk/gdkevents.c: made "->" into a "." of previous change so
9356         it compiles
9357
9358 Thu Apr  1 18:41:25 1999  Owen Taylor  <otaylor@redhat.com>
9359
9360         * gdk/gdkevents.c (gdk_compress_exposures): Set the
9361         window field of the event structure before calling
9362         user filters.
9363
9364 1999-03-31  Federico Mena Quintero  <federico@nuclecu.unam.mx>
9365
9366         * gdk/gdk.c (gdk_init_check): Use False as the last argument to
9367         XInternAtom() here.  This is a particularly Old And Nasty(tm) bug.
9368
9369 Mon Mar 29 17:31:52 1999  Owen Taylor  <otaylor@redhat.com>
9370
9371         * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
9372         intermediate text property - prevents major memory
9373         leak when gdk_use_mb.
9374         gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
9375
9376 Mon Mar 29 17:02:58 1999  Owen Taylor  <otaylor@redhat.com>
9377
9378         Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
9379         gtk-a-higuti-990322-[0-3]
9380
9381         * gdk/gdkfont.c (gdk_text_extents_wc): Make  work when
9382         sizeof(wchar_t) != sizeof (GdkWChar)
9383
9384         * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
9385         that was causing -DX_LOCALE not to work.
9386
9387         * gtk/gtkrc.c (gtk_rc_init):
9388         X_LOCALE will never have LC_MESSAGES defined
9389
9390         * gdk/gdk.c (gdk_init_check):
9391         Remove --xim-preedit and --xim-status from argv properly.
9392
9393         * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
9394         that the client window is present on the X server
9395         before we pass it to the input method.
9396
9397 Tue Mar  9 10:46:49 1999  Owen Taylor  <otaylor@redhat.com>
9398
9399         * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
9400         if --display is specified on the command line, than
9401         the drag window will not be created on that display.
9402         
9403 Tue Mar  9 10:38:24 1999  Owen Taylor  <otaylor@redhat.com>
9404
9405         * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
9406         lookups with only_if_exists == TRUE were inserting
9407         bogus values into the atom cache.
9408
9409 Wed Mar 17 09:00:00 1999  Tim Janik  <timj@gtk.org>
9410
9411         * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
9412         then reset it to NULL.
9413
9414         * gdk/gdkcolor.c:
9415         (gdk_colors_free): 
9416         (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
9417         key for g_hash_table_remove() in both functions, this prevents us
9418         from accessing possibly uninitialized portions of a GdkColor structure
9419         where we are only interested in its pixel value.
9420
9421 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
9422
9423         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
9424         font hash table, if we have a GdkFontPrivate entry for this font
9425         already, simply increment its reference count, provided by Olaf Dietsche
9426         <olaf.dietsche+list.gtk@netcologne.de>.
9427
9428 1999-09-21  Tor Lillqvist  <tml@iki.fi>
9429
9430         * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
9431         just to be sure.
9432
9433         * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
9434         unused variables, leftovers from the X11 version.
9435
9436         * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
9437
9438         * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
9439         downcase fields on X11.
9440
9441 Mon Sep 20 13:17:39 1999  Pablo Saratxaga <pablo@mandrakesoft.com>
9442         
9443         * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
9444         Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
9445
9446 1999-09-17  Tor Lillqvist  <tml@iki.fi>
9447
9448         * gdk/win32/gdk.def: Add gdk_threads_mutex.
9449
9450         * gtk/makefile.msc: Correct path to libintl.
9451
9452         Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
9453         use of gint vs. int, and gint vs. gboolean in headers and
9454         definitions. Use GtkType for the *_get_type functions. Note that
9455         these changes preserve binary compatibility.
9456
9457         * gdk/gdk.c
9458         * gdk/win32/gdk.c
9459         * gdk/gdk.h: Fix inconsistencies: gint vs int.
9460
9461         * gtk/gtkmain.c
9462         * gtk/gtkclist.c
9463         * gtk/gtkmenufactory.c
9464         * gtk/gtknotebook.c
9465         * gtk/gtkwidget.c: Fix inconsistencies, also gint
9466         vs. gboolean.
9467
9468         * gtk/gtkcolorsel.[ch]
9469         * gtk/gtkcombo.[ch]
9470         * gtk/gtkdrawingarea.[ch]
9471         * gtk/gtkgamma.[ch]
9472         * gtk/gtkhandlebox.[ch]
9473         * gtk/gtkhpaned.[ch]
9474         * gtk/gtkhruler.[ch]
9475         * gtk/gtkplug.[ch]
9476         * gtk/gtkpreview.[ch]
9477         * gtk/gtkruler.[ch]
9478         * gtk/gtksocket.[ch]
9479         * gtk/gtkstatusbar.[ch]
9480         * gtk/gtktoolbar.[ch]
9481         * gtk/gtkvbbox.[ch]
9482         * gtk/gtkvpaned.[ch]
9483         * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
9484         functions.
9485
9486         * gtk/gtkgamma.h: Fix bug, missing () in call of
9487         gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS. 
9488
9489 1999-09-14  Tor Lillqvist  <tml@iki.fi>
9490
9491         * gdk/gdkcolor.c (gdk_colormap_new)
9492         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
9493         colormap->colors was allocated twice.
9494
9495         * gdk/win32/gdk.c: Remove some unused stuff.
9496
9497         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
9498         colormap.
9499
9500         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
9501         * gtk/gtklabel.h (gtk_label_get_type)
9502         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
9503         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
9504         in a couple of places, not guint.
9505
9506 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
9507
9508         * configure.in,po/et.po: added Estonian language file
9509
9510 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
9511
9512         * configure.in,po/da.po: added Danish file
9513
9514 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
9515
9516         * docs/gtkfaq.sgml: Minor FAQ Update
9517
9518 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
9519
9520         * docs/gtkfaq.sgml: FAQ update
9521
9522 1999-08-27  Tor Lillqvist  <tml@iki.fi>
9523
9524         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
9525         way to get window contents continually refreshed while resizing. I
9526         didn't like the effects myself, so it's not on by default.
9527
9528         * gdk/win32/gdkprivate.h: New flag variable
9529         gdk_event_func_from_window_proc, FALSE by default.
9530
9531         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
9532         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
9533         are passed --gdk-event-func-from-window-proc.
9534
9535         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
9536         and we have am event_func, call it instead of enqueing the event.
9537
9538 1999-08-23  Tor Lillqvist  <tml@iki.fi>
9539
9540         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
9541         Kelley: Set expose_count in GdkEventExposes correctly.
9542
9543         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
9544         MULTIPLE_WINDOW_CLASSES).
9545
9546         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
9547         for bug in NT, apparently NT *does* draw the end pixel, too, in
9548         LineTo with a one-pixel pen, so we don't have to do it ourselves.
9549
9550 1999-08-21  Tor Lillqvist  <tml@iki.fi>
9551
9552         Improvements by Hans Breuer: 
9553
9554         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
9555
9556         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
9557         CS_?REDRAW flags as they cause lots of (late) redraws when "show
9558         window contents while dragging" is turned on. Allocate at least
9559         one unique class for every GdkWindowType. If support for single
9560         window-specific icons is ever needed (eg. Dialog specific), every
9561         such window should get its own class.
9562
9563 1999-08-19  Tor Lillqvist  <tml@iki.fi>
9564
9565         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
9566         error that caused crashes.
9567
9568 1999-08-17  Tor Lillqvist  <tml@iki.fi>
9569
9570         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
9571         window, use ScrollWindowEx, and call UpdateWindow. This prevents
9572         bugs when for instance part of the window was outside the
9573         display. Thanks to Philippe Colantoni for finding and fixing this.
9574
9575 1999-08-16  Tor Lillqvist  <tml@iki.fi>
9576
9577         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
9578         endpoint calculations which were totally wrong. (A little RTFMing
9579         helps a lot ;-)
9580
9581         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
9582         from a separate directory, not from gettext, because of licensing
9583         issues (we want to use the LGPL version).
9584
9585         * README.win32: Mention the intl from glibc vs from gettext issue.
9586
9587 1999-08-13  Tor Lillqvist  <tml@iki.fi>
9588
9589         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
9590         in the key event handling: Now AltGr chars work again. Also,
9591         now Alt-digits are passed up as well as Control-digits.
9592         Pass keypad plus and minus as normal plus and minus.
9593
9594 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
9595
9596         * docs/gtkfaq.sgml: FAQ Update
9597
9598 1999-07-25  Tor Lillqvist  <tml@iki.fi>
9599
9600         * README.win32
9601         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
9602         the Wintab SDK.
9603
9604         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
9605         OK, but getting closer. Guard against bogus tilt data from Wacom
9606         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
9607         enable easier building without Wintab.
9608
9609         * gdk/win32/gdkinput.h
9610         * gdk/win32/gdkevents.c 
9611         * gdk/win32/gdkwindow.c: Minor changes related related to above.
9612         
9613         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
9614         code. As we have just one visual on Win32, no sense to have it in a
9615         table, and no need for the hash table.
9616
9617         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
9618         better on white background.
9619
9620 1999-07-21  Tor Lillqvist  <tml@iki.fi>
9621
9622         * README.win32: Update gcc build instructions. Mention gettext is
9623         GPL.
9624
9625         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
9626         supported cursor size with GetSystemMetrics.
9627
9628         * gdk/win32/gdkfont.c
9629         * gtk/gtkfontsel.c: Guard against some font weight and charset
9630         symbols being undefined (in mingw32 headers).
9631
9632         * gdk/win32/makefile.cygwin
9633         * gtk/makefile.cygwin
9634         * gtk/gtkthemes.c: No longer need to have differently named
9635         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
9636
9637 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
9638
9639         * docs/gtkfaq.sgml: Long awaited FAQ update.
9640
9641 1999-07-15  Tor Lillqvist  <tml@iki.fi>
9642
9643         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
9644         it. Obscure bit manipulation needed.
9645
9646         * gdk/win32/gdkevents.c: Logging.
9647         
9648         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
9649         style (file name include compiler name) for theme engines.
9650
9651 1999-07-13  Tor Lillqvist  <tml@iki.fi>
9652
9653         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
9654
9655         * gdk/win32/gdkevents.c: Fix long-standing bug in key
9656         events. The key.string wasn't zero-terminated, still we strdup'ed
9657         it in gdk_event_copy(). Synthesize crossing events for button
9658         events before possible propagation.
9659
9660         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
9661
9662         * gdk/win32/makefile.cygwin
9663         * gtk/makefile.cygwin: Use new DLL naming style for the
9664         GCC-compiled ones.
9665
9666         * gdk/win32/makefile.msc
9667         * gtk/makefile.msc: Cosmetics mostly.
9668
9669         * gtk/gtk.def: Add missing entry points.
9670
9671         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
9672
9673 1999-07-09  Tor Lillqvist  <tml@iki.fi>
9674
9675         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
9676         or height is zero. Don't print a warning if Pie or Arc fails, they
9677         always fail (?) for very narrow ellipses.
9678
9679         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
9680         the part or the destination window corresponding to source area
9681         outside of the source drawable's boundary.
9682
9683         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
9684         anything if less than two points.
9685
9686         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
9687         return NULL. Gtk cut-and-paste inside a single program works
9688         better this way. (It always gets the clipboard contents from
9689         Windows, not from its own copy, which is cleared anyway. I can't
9690         say I fully understand what happens... Emulating the X selection
9691         and property stuff is a bit of a mess.)
9692
9693         * gdk/win32/gdkevents.c
9694         * gdk/win32/gdkproperty.c: A bit more verbose logging.
9695
9696         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
9697         that never got deleted). Revamp gdk_region_shrink.
9698
9699         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
9700         after use.
9701
9702         * gtk/gtk.def: Add some missing entry points.
9703
9704         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
9705         component.
9706
9707 1999-07-04  Tor Lillqvist  <tml@iki.fi>
9708
9709         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
9710         Control-digits specially.
9711
9712 1999-07-03  Tor Lillqvist  <tml@iki.fi>
9713
9714         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
9715
9716 1999-06-28  Tor Lillqvist  <tml@iki.fi>
9717
9718         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
9719         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
9720         finding this.)
9721
9722 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
9723
9724         * gtk+.spec.in: Corrected some typos in files section.
9725         
9726 1999-06-15  Tor Lillqvist  <tml@iki.fi>
9727
9728         * README.win32: Mention using GNU gettext.
9729         * config.h.win32: Enable NLS stuff.
9730         * gtk/makefile.msc: Use GNU gettext.
9731         * gdk/win32/gdkdnd.c: Minor header reorg.
9732         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
9733         cosmetics.
9734         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
9735         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
9736
9737 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
9738
9739         * acinclude.m4
9740         * config.guess
9741         * config.status
9742         * ltconfig
9743         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
9744
9745 1999-05-30  Tor Lillqvist  <tml@iki.fi>
9746
9747         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
9748         SafeAdjustWindowRectEx. Don't override all calls to
9749         AdjustWindowRectEx by it, but use it only in two places: When
9750         creating a new top-level window and when moving a top-level
9751         window.
9752
9753         Use screen coordinate rectangle, not client rectangle, in
9754         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
9755         when we try to place a window so that the decoration (mainly,
9756         title bar) isn't visible.
9757
9758         These changes fix the bug that showed up for instance as the
9759         GIMP's saved top-level windows moving right and down (by an amount
9760         equal to the window decoration) for each session. This bug showed
9761         up also in testgtk's "Saved Position".
9762
9763         gdk_window_resize also redone a bit.
9764
9765 1999-05-25  Tor Lillqvist  <tml@iki.fi>
9766
9767         * gtk/testgtkrc: Add (commented out) Windows-style theme
9768         include line.
9769
9770         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
9771
9772 1999-05-18  Tor Lillqvist  <tml@iki.fi>
9773
9774         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
9775         gdkx.h to a gdk subdirectory, so that applications can include
9776         these with <gdk/*.h> without trouble.
9777
9778         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
9779         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
9780         have their bitmap destroyed.
9781
9782         * gdk/win32/gdk.def: Add gdk_root_parent.
9783
9784 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
9785
9786         * configure.in
9787           gtk-config.in
9788           ltconfig
9789           ltmain.sh     
9790           gtk/Makefile.am: changes to compile nicely (with xlib) 
9791           on BeOS
9792
9793 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
9794
9795         * acinclude.m4
9796         * config.guess
9797         * config.sub
9798         * ltconfig
9799         * ltmain.sh: upgrade to libtool 1.3
9800
9801 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
9802
9803         * gtk/gtkclist.c:
9804         * gtk/gtkctree.c: merges from gtk-1-2
9805
9806 1999-04-25  Tor Lillqvist  <tml@iki.fi>
9807
9808         Support added for building using a GNU toolchain on Win32,
9809         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
9810
9811         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
9812         * config.h.win32: Changes for gcc.
9813         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
9814         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
9815         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
9816         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
9817         Protect shl stuff unavaiilable with mingw32 headers.
9818         * gdk/win32/gdkevents.c: Fix typo.
9819         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
9820         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
9821         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
9822         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
9823         the mingw32 headers.
9824         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
9825         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
9826         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
9827         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
9828         Test for NATIVE_WIN32, not _MSC_VER.
9829         * gtk/gtkmain.c: No use warning about developer version on Win32,
9830         there aren't any non-developer versions anyhow.
9831         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
9832         * gtk/makefile.msc: Use pthread from another directory. Minor other
9833         changes. 
9834
9835 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
9836
9837         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
9838           default filter from the list
9839
9840 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
9841
9842         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
9843          when gtk_widget_grab_default() is called for a widget that
9844          is not within a GtkWindow.
9845
9846 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
9847
9848         * docs/gtk_tut.sgml, examples/clist.c: use a
9849           scrolled window in the clist example. Minor
9850           tutorial fixes.
9851
9852 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
9853
9854         * docs/gtk_tut.sgml: Style check from David King
9855           <dking@youvegotmail.net>
9856
9857 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
9858
9859         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
9860         compile with unknown value of GDK_WINDOWING
9861
9862 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
9863
9864         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
9865         after the rule is fired.
9866         (install-exec-local): Install gdkconfig.h only if the contents are
9867         different from the currently installed gdkconfig.h.
9868
9869 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
9870
9871         * gdk/Makefile.am (configexecincludedir): Rename from 
9872         configincludedir so that gdkconfig.h will be installed 
9873         as part of `make install-exec'. 
9874
9875 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
9876
9877         * acinclude.m4
9878         * config.guess
9879         * config.sub
9880         * ltconfig
9881         * ltmain.sh: upgrade to libtool 1.2f
9882
9883         * autogen.sh: libtool is not required to autogen gtk+
9884
9885         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
9886         needed)
9887
9888 1999-03-18  Tor Lillqvist  <tml@iki.fi>
9889
9890         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
9891         declaring gdk variables exported/imported from the DLL. New image
9892         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
9893         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
9894         GDK_DRAG_PROTO_OLE2.
9895
9896         * gdk/gdk.h: Merge in Win32 version: Two new functions,
9897         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
9898         declared only for the Win32 version, but could be in the X11
9899         version as well. (Needed for a Xlib-less gdk_imlib.)
9900         gdk_color_hash should have only one parameter. Declare
9901         gdk_threads_mutex with GDKVAR.
9902         
9903         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
9904         just one parameter.
9905
9906         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
9907         per pixel, not bits.
9908
9909         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
9910         Fetch bpp (which means bits-per-pixel here) from another place on
9911         Win32. Accept also depth==32 (which we might get on Win32) with
9912         bpp==32.
9913
9914         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
9915         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
9916         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
9917         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
9918         in the backend-dependent directory, not in the common gdk
9919         directory.
9920
9921         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
9922         headers.
9923
9924 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
9925
9926         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
9927         want to use the Gtk+ devel version (which is true, and yes - even i am
9928         currently working with the 1.2.x branch). so everyone reading this, you
9929         probably want to issue
9930         cvs checkout -r glib-1-2 glib
9931         and
9932         cvs checkout -r gtk-1-2 gtk+
9933         as your next two comands.
9934
9935 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
9936
9937         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
9938         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
9939
9940         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
9941         file. strongly deprecated the GTK_HAVE_* macros, we provide
9942         GTK_CHECK_VERSION() for people that need to check for certain
9943         Gtk+ versions.
9944
9945         * gtk/gtkcompat.h: removed this from CVS.
9946         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
9947         idea right from the start, it just didn't seem like that back then.
9948
9949 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
9950
9951         * merges from gtk-1-2:
9952
9953 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
9954
9955         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
9956         item factory class has been created.
9957         (gtk_item_factory_parse_rc): likewise.
9958
9959         * gtk/gtkmenu.c:
9960         keep proper references for old_active_menu_item.
9961         (gtk_menu_reparent): unset the usize of the new parent,
9962         so the menu can sanely be size requested and we don't get nasty screen
9963         artefacts upon next reparentation.
9964         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
9965         enter notify. only synthesize enter notifies if the pointer really is
9966         inside the event window.
9967         (gtk_menu_popdown): use gtk_menu_shell_deselect().
9968         (gtk_menu_popup): move the background setting stuff into
9969         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
9970
9971         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
9972         gtk_menu_shell_select_item() to select the new item.
9973         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
9974         do the right thing for deselection as well.
9975
9976 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
9977
9978         * gtk/gtkwidget.[hc]:
9979         (gtk_widget_accelerators_locked): return whether a widget's accelerators
9980         are locked.
9981
9982         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
9983         existing accelerators if the widget's accelerators are locked.
9984
9985 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
9986
9987         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
9988
9989         * gtk/gtkmenu.c: truely forward key press and key release events to
9990         the menu widget from the toplevel or tearoff window. we can't simply
9991         connect to that, we need to stop further processing of the events as
9992         well.
9993
9994 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
9995
9996         * gtk/gtkmenu.c:
9997         (gtk_menu_key_press): pass event->keyval, event->state to
9998         gtk_accelerator_valid, instead of event->keyval twice.
9999         refuse to install single letter accelerators for menus that use
10000         single letter shortcuts.
10001
10002         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
10003         gtk_menu_ensure_uline_accel_group().
10004
10005         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
10006         which will always return an uline accel group, made
10007         gtk_menu_get_uline_accel_group() return NULL if the group isn't
10008         yet created.
10009
10010 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
10011
10012         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
10013
10014         * gtk/gtkclist.c (gtk_clist_column_title_passive):
10015         Leave button sensitive, trap  button_press, button_release,
10016         motion_notify, enter_notify and leave_notify events instead.
10017         (gtk_clist_column_title_active): disconnect event handler.
10018         (gtk_clist_drag_data_get): fixed memory leak. Reported by
10019         Guillaume Laurent <glaurent@worldnet.fr>
10020
10021 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
10022
10023         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
10024         width/height mixups.
10025
10026         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
10027         if needed.
10028
10029 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
10030
10031         * gtk/testgtk.c (create_item_factory): unref the item factory after
10032         window's destruction.
10033
10034         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
10035         count on the menu shell around the menu item's activation, since the
10036         signal emission may cause menu shell destruction.
10037
10038         * gtk/gtkitemfactory.c:
10039         the previous code leaked one accel group per menu. we use
10040         gtk_menu_get_uline_accel_group() now to fix that, and with that
10041         also create the underline accelerator group of the menus only if
10042         required (i.e. an underline accelerator has been specified).
10043         (gtk_item_factory_construct):
10044         (gtk_item_factory_create_item): removed code that would create an
10045         extra accel group for the menu (and leak references).
10046         (gtk_item_factory_create_item): adapted the underline accelerator
10047         installation code to properly feature gtk_menu_get_uline_accel_group().
10048
10049         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
10050         menu->accel_group, this may return NULL if the accelerator group
10051         hasn't been set yet.
10052         added gtk_menu_get_uline_accel_group() to retrive the underline
10053         accelerator group of the menu, this will be created on demand
10054         and proper care is taken about its reference count.
10055
10056         * gtk/gtkitemfactory.h:
10057         * gtk/gtkitemfactory.c:
10058         dumped the approach of keeping a widgets by action list on the
10059         factory since the factory<->widget destroy negotiation didn't work
10060         and would be hard to get going at all. instead we keep a list of
10061         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
10062         persistant throughout a program's life time).
10063         also, i removed the static const gchar *key_* variables, and made
10064         them inline strings (they weren't actually used anyways).
10065         (gtk_item_factory_add_item): update ifactory->items.
10066         (gtk_item_factory_destroy): destroy ifactory->items (and remove
10067         the item factory pointer from the remaining ifactory widgets).
10068         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
10069         list to find the widget.
10070         (gtk_item_factory_get_item): new function that works around
10071         gtk_item_factory_get_widget() limitations, this function will only
10072         return menu items, even for <Branch> entries.
10073
10074 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
10075
10076         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
10077         font hash table, if we have a GdkFontPrivate entry for this font
10078         already, simply increment its reference count, provided by Olaf Dietsche
10079         <olaf.dietsche+list.gtk@netcologne.de>.
10080
10081         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
10082         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
10083
10084 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
10085
10086         * gtk/gtkcontainer.c:
10087         (gtk_container_add_with_args):
10088         (gtk_container_addv):
10089         (gtk_container_add): before adding a child to a conatiner, make sure
10090         it is (default) constructed, this is neccessary because under certain
10091         circumstances the child will get relized and mapped immediatedly, in
10092         which case it has to be constructed already.
10093
10094 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
10095
10096         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
10097         values > 1 as TRUE also.
10098
10099 1999-03-16  Tor Lillqvist  <tml@iki.fi>
10100
10101         * README.win32: New file.
10102                 
10103         * configure.in: Check for lstat.
10104
10105         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
10106         completeness.
10107
10108         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
10109
10110         * gtk/gtk.def: Removed CRs.
10111
10112         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
10113         ..\gdk\win32).
10114
10115         * gdk/win32/makefile.msc: Correct upwards relative paths.
10116         
10117 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
10118
10119         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
10120           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
10121           it was connecting a void function to expose_event and the int
10122           returning function to the draw signal
10123
10124 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
10125
10126         * configure.in:
10127         Use correct path to libgmodule.la when ref'ing uninstalled copy
10128         of glib.  (Already in stable branch, Bug #417)
10129
10130 1999-03-15  Tor Lillqvist  <tml@iki.fi>
10131
10132         Win32 merge and general portability stuff:
10133                 
10134         * acconfig.h,configure.in: Check for <sys/time.h>.
10135
10136         * gdk/win32: New directory (actually, been there for a while).
10137         
10138         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
10139         NATIVE_WIN32, and use these. Always case fold on Win32. No
10140         backslashed escapes on native Win32.
10141
10142         * gtk/{gtk.def,makefile.msc}: New files.
10143
10144         * gtk/Makefile.am: Add above new files.
10145         
10146         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
10147         instead of <strings.h>.
10148
10149         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
10150         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
10151         <unistd.h> appropriately.
10152
10153         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
10154         Use ABS() (from <glib.h>) instead of abs().
10155         
10156         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
10157         of gtk (and thus glib) headers, so that WIN32 will be
10158         defined. With MS C, include <direct.h> for mkdir prototype.
10159
10160         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
10161         some casts, needed by MS C.
10162
10163         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
10164         implemented).
10165
10166         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
10167         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
10168         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
10169
10170         * gtk/gtkmain.h: Mark variables for export/import on Win32.
10171                 
10172         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
10173         the event is not a hint, or its window is not the slider. Needed
10174         on Win32, at least.
10175
10176         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
10177         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
10178         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
10179         a subdirectory of the Windows directory as gtk system
10180         configuration directory.
10181
10182         * gtk/gtkselection.c: No chunks on Win32.
10183
10184         * gtk/gtksocket.c: Not implemented on Win32.
10185
10186         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
10187
10188         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
10189
10190         * gtk/maketypes.awk: Declare variables with a macro that expands to
10191         necessary export/import magic in the case of Win32.
10192                 
10193         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
10194
10195 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
10196
10197         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
10198         since those were meant only for gdki18n.h.  
10199         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
10200         for widechar tests.
10201         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
10202
10203 1999-03-13  Tor Lillqvist  <tml@iki.fi>
10204
10205         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
10206         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
10207
10208         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
10209         installed) to CFLAGS.
10210
10211         * gdk/Makefile.am: Add rules for gdkconfig.h.
10212
10213         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
10214         APIs.
10215
10216         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
10217         gdkx.h anyway when compiling for X11.
10218         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
10219         general): Merge in Win32 version.
10220         
10221         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
10222         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
10223         expansion (if we don't have HAVE_PWD_H), allow for drive
10224         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
10225         included code from Craig Setera's port to Win32 (the one that uses
10226         X11, and the cygwin dll), even if it probably will be abandoned.
10227
10228         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
10229         the user entered one herself.  This way one can complete *.h and
10230         don't get matches on any .help files, for instance.
10231         
10232 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
10233
10234         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
10235         font hash table, if we have a GdkFontPrivate entry for this font
10236         already, simply increment its reference count, provided by Olaf Dietsche
10237         <olaf.dietsche+list.gtk@netcologne.de>.
10238
10239         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
10240         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
10241
10242 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
10243
10244         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
10245         the number of calls to gdk_draw_point() (and thus to X) by
10246         clipping the points by hand.
10247
10248         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
10249         the clip parameter.
10250         (gtk_handle_box_paint): Only paint the handle if the expose area
10251         intersects it.
10252
10253 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
10254
10255         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
10256
10257 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
10258
10259         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
10260         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
10261
10262 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
10263
10264         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
10265          textmode (O_TEXT) for OS/2 version.
10266
10267 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
10268
10269         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
10270         GtkSpinButton, "input" and "output", to make the output more flexible.
10271         The user has to provide a mapping between adjustment->value and the
10272         output string (and vice versa, if the spin button is editable). 
10273         See testgtk for examples.
10274
10275 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
10276
10277         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
10278         new one.
10279         
10280         * configure.in: set gtk+ version to 1.3.0.