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