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