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