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